agentleFS
mahumadadmahumadad/quarry/skills/recon/passive-recon/SKILL.md

passive-recon

Skill1 starsChanged 13 days agoMITView on GitHub

Passive information gathering that never touches the target directly — WHOIS, DNS records via public resolvers, certificate transparency logs, Wayback Machine history, and Google dorking. Use at the very start of an engagement, before any active scanning, to build an initial picture with zero footprint on the target. Do NOT use for anything that sends traffic to the target itself — use active-recon or port-scan for that.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run via a browser or googler "site:example.com filetype:env" if installed.

    line 66

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Signals

  • Engagement just moved from SCOPED to RECON (see engagement-flow).
  • Need initial domain/org/IP-range info before any active tool runs.
  • Need historical content (old endpoints, parameters, pages) without hitting the live site.

Prerequisites

  • scope.txt with target domains/orgs from scope-discipline.

Methodology

  1. WHOIS on the apex domain — registrant org (confirms ownership), name servers, registration/expiry dates, sometimes abuse contact:
    whois example.com
    whois -h whois.arin.net "n 1.2.3.0/24"     # reverse: who owns an IP block
  2. Certificate transparency logs — fastest way to enumerate historical and current hostnames issued certs for the domain, including forgotten subdomains:
    curl -s "https://crt.sh/?q=%.example.com&output=json" | jq -r '.[].name_value' | sort -u
  3. Public DNS lookups via resolvers only (no direct queries to the target's own NS yet — that's active and belongs in dns-enumeration):
    dig +short A example.com @8.8.8.8
    dig +short MX example.com @1.1.1.1
    dig +short TXT example.com @8.8.8.8
    dig +short NS example.com @8.8.8.8
  4. Wayback Machine / historical crawl data — reveals old parameters, endpoints, and pages that may still be reachable or hint at app structure:
    # list all known URLs for the domain
    echo example.com | gau --subs > wayback-urls.txt
    # or directly from the CDX API
    curl -s "http://web.archive.org/cdx/search/cdx?url=*.example.com/*&output=text&fl=original&collapse=urlkey" > wayback-raw.txt
    # waybackurls (tomnomnom) as an alternative/complement
    echo example.com | waybackurls > wayback-urls2.txt
  5. Google dorking for exposed files, login portals, error messages, and indexed internal paths:
    site:example.com filetype:pdf
    site:example.com inurl:admin
    site:example.com intitle:"index of"
    site:example.com ext:sql | ext:env | ext:log
    site:example.com inurl:wp-content "error" OR "warning" OR "fatal"
    Run via a browser or googler "site:example.com filetype:env" if installed; Google actively rate-limits/CAPTCHAs scripted queries, so pace these manually if automating.
  6. Consolidate: merge crt.sh hostnames, wayback hostnames, and dork results into a single candidate hostname list for dns-enumeration/subdomain-discovery to validate.
    cat crtsh.txt wayback-urls.txt | grep -oP '([a-z0-9-]+\.)+example\.com' | sort -u > candidates.txt

Tooling

whois, dig/host (against public resolvers only — @8.8.8.8, @1.1.1.1), curl against crt.sh's JSON endpoint, gau, waybackurls, jq, manual/googler dorking. Run --help on any of these before first use this engagement per the project's CLI anti-hallucination rule.

Validation gate

  • Every hostname found is checked against scope.txt before being carried into active-recon.
  • No request was sent directly to the target's own infrastructure (only to crt.sh, archive.org, public resolvers, and search engines).

Gotchas

  • crt.sh frequently has duplicate/wildcard entries (*.example.com) and dead subdomains — this is a candidate list, not a confirmed-live list; resolve it in dns-enumeration.
  • Wayback data can be years stale — treat old endpoints as hypotheses to verify, not current attack surface.
  • WHOIS privacy services hide registrant info for most domains now — don't expect PII; focus on name servers and registration dates for infra clues (e.g. recently registered = possibly a phishing/test domain, not the real target).
  • Google dork volume will get your scripted queries CAPTCHA'd fast — space them out or do them manually in a browser session.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.