跳到正文
FunCoding

offensive-osint

Operational arsenal for external red-team and bug-bounty reconnaissance. Concrete wordlists (28 Swagger paths, 13 GraphQL paths, 35 high-risk ports, 6 missing-header findings, 15 always-on HTTP checks, 5 SAML paths, cloud bucket permutations, JS guess-paths, vendor product fingerprints for Citrix/F5/Pulse/Fortinet/Cisco/PaloAlto/VMware/Exchange, cloud-native service fingerprints, container/K8s exposure paths, CI/CD platform paths, documentation/wiki leak paths, WHOIS/RDAP, DNS record catalog, Wayback CDX recipes), 80-pattern secret-regex catalog (incl. modern AI API keys: Anthropic/OpenAI/HuggingFace/Cloudflare/DigitalOcean/npm/PyPI/Docker Hub/Atlassian/DataDog/Sentry/ngrok; plus a provider-expansion tier: Postman PMAK/GitLab/Square/Shopify/Mailchimp/PagerDuty/Asana/Databricks/Grafana/Terraform Cloud/Fastly/Algolia/Segment/Airtable/GCP+Google OAuth/Azure AD/Facebook OAuth/RubyGems/JFrog/Okta/Slack app-level/Dropbox/Doppler/HashiCorp Vault/Firebase Cloud Messaging), 80+ dork corpus across 9 categories, GitHub code-search dorks, copy-paste curl/httpie probes for every check, post-discovery enumeration workflows (AWS/GitHub/Slack/JWT/PMAK/Anthropic/OpenAI), endpoint interest scoring rubric (0–100), mobile app ownership confidence + APK static-analysis pipeline (acquisition, apktool/aapt2/jadx/androguard decompile, manifest exported-component/deep-link/misconfig extraction, Firebase config, network-security-config, embedded-secret scan), identity-fabric endpoints (Entra/Okta/ADFS/Google/SAML/M365 Teams+SharePoint+OneDrive+OAuth + user-enum), GraphQL field-suggestion enumeration when introspection disabled, 9 read-only secret validators (Postman/AWS/GitHub/Slack/Anthropic/OpenAI/npm/Atlassian/DataDog), Postman workspace search (verified endpoint), Stack Exchange sweep, public SaaS dorks, email security analysis (SPF/DMARC/DKIM/BIMI/MTA-STS/DNSSEC), origin-discovery / CDN bypass techniques, TLS deep audit (sslyze/testssl.sh/JA3/JA4), reverse-DNS sweep + IPv6 enum, vulnerability prioritization data sources (NVD/EPSS/CISA KEV/ExploitDB/Metasploit), 27 attack-path hint templates, 80+ severity-matrix examples, LinkedIn employee enumeration, job posting tech-stack analysis, Slack/Discord workspace discovery, package registry leak hunting (npm/PyPI/Docker Hub/Quay/GHCR), sat imagery for physical recon, tooling quick-install one-liners, sector-specific recon notes (healthcare/finance/ICS-SCADA/IoT/government), runnable stdlib-only secret_scan.py helper, plus the existing tool references for username/email/phone/people/social/breach/infrastructure/crypto/media/geospatial/AI/archiving/automation. Use when you need concrete probe paths, regexes, payloads, scoring rules, curl one-liners, and tool URLs for an authorized external recon engagement.

Star
3,204
分类
安全
许可证
MIT
最近提交
2026年10月21日

skills/offensive-osint/SKILL.md

在 GitHub 上查看

Offensive OSINT — External Red-Team Arsenal

Companion skill: osint-methodology (the "how to think" skill). This skill is the "what to reach for." Use them together.

0. When to use / When NOT

Use this skill when:

  • You need concrete probe paths, wordlists, regexes, payloads, scoring rules, or tool URLs.
  • You're executing reconnaissance and need the actual technical reference (vs. methodology).
  • You're building a recon automation and need specific lists to seed it.

Do NOT use this skill when:

  • The user is asking for active exploitation, post-exploitation, or anything past reconnaissance.
  • The user is asking for defensive / blue-team detections.
  • The target's authorization isn't established — see §1.

For assets the operator owns or has written authorization to assess. Soft scope check before acting against an unverified third-party target — see methodology skill §1 for the full posture.


2. Confidence Levels

  • TENTATIVE — plausible based on indirect evidence (snippet-only dork match, single-source asset, inferred email pattern).
  • FIRM — directly observed (subdomain resolves, HEAD-confirmed bucket exists, banner returned).
  • CONFIRMED — verified via independent corroboration OR direct verification (live PMAK validation, multiple sources agree, listable bucket with object retrieval).

3. Output Format Conventions

Findings should carry: id, module, asset_key, category, severity (info/low/medium/high/critical), confidence, title, description, evidence (url + UTC timestamp + sha256 + raw ≤ 2 KiB), references, remediation. UTC timestamps everywhere.


4. Source Hygiene & Citations

URL + UTC timestamp + SHA-256 + tool version + run_id, every artifact. PNG screenshots, JSONL run logs, raw HTTP captures capped at 2 KiB body.


5. Do NOT

  • Don't paste creds/PII/session tokens into cloud LLMs.
  • Don't run destructive probes outside DEEP/--aggressive.
  • Don't use validated credentials for anything except read-only liveness check.
  • Don't single-source attribute.
  • Don't assume vendor labels are ground truth.

6. General OSINT (curated tool refs)

7. Search Engines

ToolNotes
Carrot2Clusters results by topic
etoolsMetasearch
KagiPrivacy-first, non-personalized
Brave SearchIndependent index; Goggles for custom ranking
PDF SearchPDF + table of contents
Google Fact Check ExplorerCross-site fact-check

8. Username & Email Investigation

ToolPurpose
SherlockUsername search across social networks
MaigretProfile collector by username
What's My NameUsername search
HoleheEmail registration check
EpieosEmail pivots and metadata
OSINT IndustriesEmail/username/phone lookups
Hunter.ioDomain → emails
EmailRepEmail reputation
EmailableEmail verification
MugetsuX/Twitter username history
RocketReach / ApolloEmail enrichment + pattern guessing
PhoneInfogaPhone number intelligence

Browser extensions: GetProspect, SignalHire.



10. Phone Number OSINT


11. Email-Pattern Inference (TENTATIVE candidates)

Given a (first_name, last_name, domain), generate these 8 candidate addresses for breach pre-hits, phishing list curation, and downstream enrichment. Mark as TENTATIVE confidence until corroborated.

{first}.{last}@{domain}        # [email protected]
{first}{last}@{domain}         # [email protected]
{first}@{domain}               # [email protected]
{first[0]}{last}@{domain}      # [email protected]
{first}.{last[0]}@{domain}     # [email protected]
{last}@{domain}                # [email protected]
{first}_{last}@{domain}        # [email protected]
{first}-{last}@{domain}        # [email protected]

Lowercase before lookup. Strip diacritics for ASCII fallback. If the org uses a known pattern (e.g., Hunter.io shows {first}.{last} is dominant), prioritize that one and mark FIRM.


12. Email-Harvest Source Stack

Six parallel sources, dedup at the end:

  1. IntelX phonebook API — 2-step search + poll. Largest single source for breach-era addresses.
  2. Hunter.io — domain-search endpoint. ~25 free/month. Returns verified emails + roles.
  3. crt.sh — extract X.509 SAN extensions. Many certs include admin/contact emails.
  4. DuckDuckGo SERP scrape — HTML scrape of "@{target-domain}" results.
  5. Bing SERP scrape — same query, complementary index.
  6. Wayback CDX — historic snapshots of the target's homepage / contact / about pages often contain emails removed from the live site.

Email regex:

\b[A-Za-z0-9._%+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,}\b

Noise filter (reject numeric-only locals):

^[0-9]+$

(Discards garbage like [email protected] from random tokens.)


13. Social Media

PlatformTool
InstagramPicuki — profile view without account
X/Twittersnscrape — preferred CLI scraper; Twint as fallback
FacebookGraph Search, sowsearch.info, lookup-id.com, whopostedwhat.com
Facebook (research)Meta Content Library — CrowdTangle successor (researcher-gated)
YouTube/TwitchSocial Blade — analytics
TikTokTokboard — trends + profile analytics
RedditReveddit — removed content; RedTrack.social — user history
BlueskyFiresky — real-time firehose; SkyView — follower graphs
MastodonFediSearch — cross-instance search; Fedifinder — find Twitter users on Mastodon
FacesSearch4Faces

14. Public Records & Company Information

14.1 RU registries

Rusprofile, Kontur.Focus (freemium), zakupki.gov.ru (procurement), EGRUL/EGRIP (official, captcha-gated).

14.2 CN registries + USCC + ICP

  • GSXT — gsxt.gov.cn National Enterprise Credit Info; cross-check with Tianyancha / Qichacha.
  • USCC (Unified Social Credit Code) — 18-character entity ID assigned to all CN legal entities. Format: <region:6><authority:2><type:1><serial:9>. Useful for joining GSXT records to ICP filings.
  • ICP Beian — beian.miit.gov.cn — every domain serving traffic in mainland CN must register an ICP filing; the filing links the domain to a USCC, which links to the legal entity in GSXT.
  • Workflow: target.cn domain → ICP lookup → USCC → GSXT → entity name + officers + adjacent registered entities.

14.3 Sanctions & Compliance


15. Breach & Leak Data

15.0.1 HudsonRock Cavalier — direct API recipe

The web UI wraps a public, unauthenticated JSON API. Hit it directly:

# By domain (canonical first call)
curl -sk -m 30 "https://cavalier.hudsonrock.com/api/json/v2/osint-tools/search-by-domain?domain=target.com" | jq .

# By email (single-account check)
curl -sk -m 30 "https://cavalier.hudsonrock.com/api/json/v2/osint-tools/[email protected]" | jq .

# By URL (when target's app is the breach victim)
curl -sk -m 30 "https://cavalier.hudsonrock.com/api/json/v2/osint-tools/search-by-url?url=https://app.target.com" | jq .

PowerShell:

$hr = Invoke-RestMethod -Uri "https://cavalier.hudsonrock.com/api/json/v2/osint-tools/search-by-domain?domain=$D" -TimeoutSec 30
"Employees: $($hr.employees) | Users: $($hr.users) | Third-party: $($hr.third_parties) | Total: $($hr.total)"
$hr.data.employees_urls | Sort-Object -Property occurrence -Descending | Select-Object -First 20
$hr.data.clients_urls   | Sort-Object -Property occurrence -Descending | Select-Object -First 15

Top-level JSON fields:

  • total — total stealer entries touching this domain.
  • totalStealers — global stealer-log corpus size (context only).
  • employees — count of <*>@<domain> accounts found.
  • users — count of accounts where the domain appeared as a visited URL (customers/vendors).
  • third_parties — accounts touching adjacent domains in the org.
  • data.employees_urls[] — {occurrence, type, url} — internal apps where employees were logging in when stolen. Subdomain hits here = recon gold.
  • data.clients_urls[] — same shape; user-facing apps (often reveals undocumented public portals).
  • data.stealer_families[] — {_key, _value} → which stealer (RedLine / Lumma / StealC / Vidar / Raccoon).
  • data.dates_compromised[] — {_key, _value} → temporal distribution.

Free-tier caveats (CRITICAL to know):

  • Subdomain hostnames in data.*_urls[] past the first few are redacted with asterisks (*****.target.com). Pivot to paid Cavalier tier or other sources for unredacted.
  • Free endpoint returns counts + sample URLs only. Cleartext passwords + emails are never in the free response.
  • Rate limit ~1 req/sec/IP; 429 on burst. Sleep 1s between calls.
  • For unredacted creds + bulk enumeration → paid Cavalier portal.

Severity mapping (per §15.1 + §15.2): employees ≥ 10 → CRITICAL, regardless of whether the breached service is still online (legacy Lotus Domino / on-prem mail decommissioned + cloud SSO migration → employees almost always reuse passwords → SSO_EXPOSURE escalates CRITICAL).

15.1 Domain-Level Breach Severity Mapping

When you query a breach corpus by domain, map the result to severity like so:

StatSeverity
≥ 10 employees compromisedCRITICAL
1–9 employees compromisedHIGH
≥ 1 end-user (non-employee) compromisedMEDIUM
Domain seen in breach with 0 named accountsINFO

Employees vs end-users distinction: an employee account is <anything>@<target-domain> (the breach victim is the target's own staff). An end-user account is the target's customer who reused a password — useful for credential-stuffing risk awareness but not directly compromising the target's identity fabric.

15.2 SSO_EXPOSURE finding

When a discovered SSO tenant (Entra GUID / Okta slug / Google Workspace domain) intersects with the breach corpus on its domain → SSO_EXPOSURE finding, severity CRITICAL. Evidence: tenant ID + product + employee count + per-account source attribution.

Legacy-mail-decommissioned pattern (high-value variant):

If mail.<domain> / webmail.<domain> returns NXDOMAIN today but HudsonRock/HIBP corpus still has historical employee credentials against it AND autodiscover.<domain> resolves to Microsoft IPs (M365) or aspmx.l.google.com MX (Workspace), the org migrated from on-prem to cloud — and the stolen passwords almost certainly survived the migration via password reuse. Escalate to CRITICAL SSO_EXPOSURE even when the legacy host is dead.

Concrete triggers (all three together):

  1. Resolve-DnsName mail.<domain> -Type A → NXDOMAIN (legacy gone)
  2. HudsonRock corpus has employee URLs against the old host (e.g. mail.<domain>/names.nsf for Lotus Domino, mail.<domain>/owa/ for Exchange, mail.<domain>/iwaredir.nsf for iNotes, mail.<domain>/zimbra/ for Zimbra)
  3. Current MX → M365 / Google Workspace / Zoho cloud (DNS confirms migration)

Evidence pack: tenant GUID + breach count + 3+ legacy URLs from corpus + autodiscover Microsoft IPs + current MX. Recommend forced password rotation + MFA audit + Conditional Access review.


16. Pre-built Wordlists & Probe Paths

Copy-pasteable arsenals, severity-annotated where relevant.

16.1 Swagger / OpenAPI discovery — 28 paths

Probe each path on every alive webapp. GET (or HEAD if rate-limited).

swagger.json
swagger.yaml
swagger/v1/swagger.json
swagger/v2/swagger.json
swagger-ui.html
swagger-ui/
swagger-resources
api-docs
api-docs.json
api/swagger
api/swagger.json
api/swagger-ui.html
api/v1/swagger.json
api/v2/swagger.json
api/v3/api-docs
v2/api-docs
v3/api-docs
openapi.json
openapi.yaml
openapi/v1
openapi/v3
docs
redoc
rapidoc
api/docs
api/documentation
.well-known/openapi

Severity:

  • Reachable Swagger/OpenAPI spec without auth → HIGH LEAKY_API_SPEC (full endpoint enumeration leaks; often reveals undocumented internal APIs).
  • Behind auth but accessible to any authenticated user → MEDIUM (still discloses internal API surface).

16.2 GraphQL discovery — 13 paths

graphql
graphiql
api/graphql
v1/graphql
v2/graphql
query
api/query
gql
altair
playground
subscriptions
graphql/console
api/v1/graphql

Standard introspection POST body:

{
  "operationName": "IntrospectionQuery",
  "query": "query IntrospectionQuery { __schema { types { name kind fields { name type { name kind } } } queryType { name } mutationType { name } subscriptionType { name } } }"
}

Severity:

  • Introspection returns schema without auth → HIGH OPEN_GRAPHQL_API.
  • Field-suggestion enumeration possible (server returns "did you mean" for typo'd field names) → MEDIUM (re-derive partial schema even when introspection is disabled).
  • /graphql accepts batched queries ([...] request body) → MEDIUM (rate-limit bypass surface; auth bypass via mixed batches).

UI markers (lower severity but still discoverable):

  • HTML response contains graphiql, playground, apollo studio, altair → GraphiQL UI exposed (often shipped accidentally on prod).

16.3 High-risk ports — 35 services

For each open port, emit a finding with the severity and "why an attacker cares" below. Source for the open-port observation: Shodan InternetDB (free, 1 req/sec) is the recommended starting point.

PortServiceSeverityWhy it matters
21FTPHIGHAnonymous read often enabled; cleartext creds.
22SSHLOWBanner discloses version; brute-force surface.
23TelnetHIGHCleartext protocol; should never be exposed.
25SMTPLOWOpen relay risk; version banner.
53DNSLOWRecursion = DDoS amplifier; AXFR opportunism.
80HTTPINFOStandard.
110POP3LOWCleartext if no STARTTLS.
111rpcbindMEDIUMNFS exports enumeration.
135MS RPCHIGHEnum via Impacket.
139NetBIOS-SSNHIGHFile/printer enum.
143IMAPLOWCleartext if no STARTTLS.
161SNMPHIGHCommunity strings often public/private; full device enum.
389LDAPHIGHAnonymous bind = full directory dump.
443HTTPSINFOStandard.
445SMBCRITICALEternalBlue, SMB relay, anonymous shares.
465SMTPSLOWBanner.
514rsyslogMEDIUMLog injection / DoS.
587SMTP-MSALOWBanner.
631IPP/CUPSMEDIUMPrint server enum / RCE in old CUPS.
873rsyncHIGHModules often listable; backup data exposure.
1433MSSQLHIGHBrute-force; xp_cmdshell.
1521Oracle TNSHIGHBrute-force; SID enum.
2049NFSHIGHWorld-readable exports.
2375Docker API (unencrypted)CRITICALUnauthenticated container/host takeover.
2376Docker API (TLS)HIGHCert validation bypass risk.
3000Common dev / GrafanaMEDIUMOften Grafana / Express dev with default creds.
3306MySQLHIGHBrute-force; default root:"".
3389RDPCRITICALBlueKeep / DejaBlue / NLA bypass.
5432PostgreSQLHIGHBrute-force; default postgres:postgres.
5601KibanaHIGHOften unauthenticated; Elasticsearch pivot.
5900VNCHIGHOften unauthenticated or weak password.
5984CouchDBHIGHDefault no auth; admin party.
6379RedisCRITICALNo auth default; write authorized_keys for SSH.
7001WebLogicHIGHFrequent CVEs (CVE-2020-14882, etc.).
8000Common devMEDIUMDjango, common dev servers.
8080HTTP-altMEDIUMTomcat, Jenkins, common proxy.
8443HTTPS-altMEDIUMSame as 8080.
8888Common dev / JupyterHIGHJupyter often exposes interactive shell.
9090Cockpit / PrometheusHIGHServer admin UI / metrics scraping.
9200ElasticsearchCRITICALTypically no auth.
9300Elasticsearch transportHIGHCluster join + RCE.
11211memcachedMEDIUMUDP DDoS amp; data dump.
27017MongoDBCRITICALNo auth by default.
50070Hadoop NameNodeHIGHHDFS browse.

When Shodan InternetDB returns vulns[] for a port, escalate the finding severity by one tier and include the CVE list in evidence.

16.4 Missing security headers — 6 findings

For every alive webapp, audit response headers. Each missing header below = one finding.

HeaderSeverity (default)Severity (sensitive path)Notes
Strict-Transport-SecurityMEDIUMHIGHSensitive paths: /login, /signin, /sso, /admin, /auth.
Content-Security-PolicyMEDIUMMEDIUMXSS impact mitigation gone.
X-Frame-OptionsLOWLOWClickjacking. (CSP frame-ancestors is the modern replacement.)
X-Content-Type-OptionsLOWLOWMIME-sniff XSS.
Referrer-PolicyINFOINFOOutbound link leakage.
Permissions-PolicyINFOINFOFeature-policy hardening.

16.5 Always-on HTTP checks — 15 paths

Run these against every alive webapp regardless of Nuclei availability. Cheap; high signal.

PathFindingSeverityMatch logic
/.git/configExposed .git repoCRITICALBody contains [core], [remote, repositoryformatversion
/.git/HEADExposed .git/HEADHIGHBody matches ^ref:\s
/.envExposed .envCRITICALMultiline regex ^\s*[A-Z_][A-Z0-9_]*\s*=
/server-statusApache server-statusMEDIUMBody contains Apache Server Status or matching title
/server-infoApache mod_infoMEDIUMBody contains Apache Server Information
/.DS_StoreExposed .DS_StoreLOWByte signature \x00\x00\x00\x01Bud1
/phpinfo.phpphpinfo() leakHIGHBody contains phpinfo(), PHP Version, or matching title
/info.phpphpinfo() (alt path)HIGHSame as above
/actuator/envSpring Boot /actuator/envCRITICALBody contains "propertySources", systemProperties, systemEnvironment
/actuator/heapdumpSpring Boot heapdumpCRITICALHPROF magic bytes / large binary download
/_cat/indicesElasticsearch openHIGHReturns index list
/consoleJenkins script consoleHIGHBody contains Jenkins/Script Console
/manager/htmlTomcat ManagerHIGHBody contains Tomcat Web Application Manager
/wp-admin/install.phpOrphaned WP installLOWBody contains WordPress Installation
/.well-known/security.txtDisclosure policy infoINFOParse contact + policy fields

Plus parse /robots.txt for Disallow: paths — those become the next-tier wordlist for that target.

16.6 SAML metadata — 5 paths

/saml/metadata
/FederationMetadata/2007-06/FederationMetadata.xml
/federationmetadata/2007-06/federationmetadata.xml
/simplesaml/saml2/idp/metadata.php
/auth/saml2/metadata

Reachable SAML metadata XML reveals: EntityID, signing certs (often pinned → cert-reuse pivot), SingleSignOnService URL, NameIDFormat. Mark as MISCONFIG (LOW severity unless metadata leaks internal hostnames or non-public certs, then MEDIUM).

16.7 SSO subdomain prefixes — 8 prefixes

Probe each against root domain + every sibling brand domain:

auth.{domain}
login.{domain}
sso.{domain}
idp.{domain}
iam.{domain}
identity.{domain}
accounts.{domain}
oauth.{domain}

Plus probe /.well-known/openid-configuration on every alive subdomain (regardless of prefix).

16.8 Cloud bucket permutation arsenal

6 prefixes:

""           # bare candidate
backup-
assets-
static-
dev-
prod-

15 suffixes:

""           # bare candidate
-backup
-assets
-static
-media
-data
-uploads
-dev
-prod
-staging
-logs
-private
-public
-dump
-archive

47 generic stems (filter unless combined with target-identifying token):

www, mail, email, app, apps, web, webmail, ftp, cdn, static, assets, media, img, images,
videos, download, downloads, upload, uploads, data, files, docs, support, help, kb,
blog, news, dev, test, staging, stg, qa, uat, sandbox, preprod, preview, vpn,
mx, smtp, imap, pop, dns, ns, ns1, ns2, mx1, mx2

Provider URL templates:

S3:

https://{candidate}.s3.amazonaws.com/
https://{candidate}.s3-{region}.amazonaws.com/      # try us-east-1, us-west-2, eu-west-1, ap-southeast-1 first
https://s3.{region}.amazonaws.com/{candidate}/

GCS:

https://{candidate}.storage.googleapis.com/
https://storage.googleapis.com/{candidate}/

Azure Blob:

https://{candidate}.blob.core.windows.net/

Probe technique: HEAD first → 200/301 = exists, 403 = exists private, 404 = skip. On exists, GET root → if XML/JSON object listing returns, CRITICAL PUBLIC_CLOUD_BUCKET. Direct-URL object reads but not listable → HIGH PUBLIC_CLOUD_BUCKET_OBJECT_READ.

16.9 JS guess-paths for endpoint discovery

Probe these paths on every alive webapp (in addition to scraped <script src=...>):

/main.js
/app.js
/bundle.js
/runtime.js
/index.js
/vendor.js
/_next/static/_buildManifest.js
/_next/static/_ssgManifest.js
/static/js/main.js
/static/js/bundle.js
/assets/index.js
/static/js/main.<hash>.js                 # try hash discovery via 404 patterns

For every found JS, also try <jsfile>.map for sourcemap leaks (HIGH INFO_DISCLOSURE).

16.10 Endpoint extraction regex tiers

Three tiers, run in order on every JS body + every sourcesContent[] blob:

Tier 1 — generic quoted paths:

['"`](/[A-Za-z0-9_\-./{}\[\]?=&%:]+)['"`]

Match group: the path. High recall, lots of false positives — apply allowlist downstream.

Tier 2 — API-ish paths (biased filter on tier 1):

['"`](/(?:api|graphql|gql|v\d+|swagger|openapi|rest|services|internal|admin|auth|oauth|user|users|account|accounts|search|export|upload|file|files|download|webhook|hooks|callback|admin)/[A-Za-z0-9_\-./{}\[\]?=&%:]+)['"`]

Tier 3 — fully-qualified URLs:

\bhttps?://[A-Za-z0-9.\-]+\.[A-Za-z]{2,}(?::\d+)?[/A-Za-z0-9_\-./{}\[\]?=&%:#]*

Dedup on (method, normalized-path-template) where the template replaces /123/ with /{id}/ etc.

16.11 Internal-host leakage regexes

Run on every JS body + sourcesContent + APK strings + manifest:

RFC1918:

\b(?:10\.(?:\d{1,3}\.){2}\d{1,3}|172\.(?:1[6-9]|2\d|3[01])\.(?:\d{1,3})\.(?:\d{1,3})|192\.168\.(?:\d{1,3})\.(?:\d{1,3})|127\.(?:\d{1,3}\.){2}\d{1,3})\b

Internal DNS suffixes:

\b[A-Za-z0-9][A-Za-z0-9\-]{0,62}\.(?:internal|corp|lan|intranet|local|prod|staging|dev|qa|test)\b

Kubernetes service DNS:

\b[A-Za-z0-9\-]+\.[A-Za-z0-9\-]+\.svc(?:\.cluster\.local)?\b

Each match → MEDIUM INFO_DISCLOSURE. Aggregate per host: if many matches share the same internal subdomain, that's a recon seed for any future internal phase.

16.12 Subdomain-takeover provider fingerprints (summary, 27 providers)

Watch for these CNAME targets + the corresponding "available for claim" response signature:

ProviderCNAME patternTakeover signature
GitHub Pages*.github.ioThere isn't a GitHub Pages site here.
Heroku*.herokuapp.comNo such app
AWS S3*.s3*.amazonaws.comNoSuchBucket
AWS CloudFront*.cloudfront.netBad request w/ specific X-Amz error
Azure (multiple)*.azurewebsites.net, *.blob.core.windows.net, *.cloudapp.net, *.trafficmanager.netVarious per-product 404 patterns
Shopifyshops.myshopify.comSorry, this shop is currently unavailable.
Squarespace*.squarespace.comNo Such Account
Tumblr*.tumblr.comWhatever you were looking for doesn't currently exist.
WordPress*.wordpress.comDo you want to register *.wordpress.com?
FastlyvariousFastly-specific 404
Pantheon*.pantheonsite.ioThe gods are wise, but do not know of the site...
Surge.sh*.surge.shproject not found
Bitbucket Pages*.bitbucket.ioRepository not found
Tilda*.tilda.wsPlease renew your subscription
Strikingly*.s.strikinglydns.comPAGE NOT FOUND
Smartling*.smartling.comDomain is not configured
Ngrok*.ngrok.ioTunnel not found
Webflow*.webflow.ioSite not found
Zendesk*.zendesk.comHelp Center Closed
Cargo*.cargocollective.com404 Not Found (with cargo branding)
Statuspage*.statuspage.ioNot found
Intercom*.intercom.helpNot found
Helpjuice*.helpjuice.comNot found
Helpscout*.helpscoutdocs.comNot found
Tictail*.tictail.comNot found
Brightcove*.brightcovegallery.comNot found
SmugmugvariousNot found

For full per-provider detection signatures + edge cases, use SubdomainX or Subzy/Subjack against a freshly-fetched fingerprint database.


16.13 Copy-Paste Probes (curl one-liners)

Every probe path in §16.1–16.12 with a runnable curl. Defaults: -sk (silent + ignore TLS errors), -m 10 (10s max), -o /tmp/r (response body to disk), -w '%{http_code}\n' (print status code), -A "Mozilla/5.0" (UA — change per persona).

Always-on HTTP checks (§16.5):

T="https://target.example"

# .git/config (CRITICAL)
curl -sk -m 10 "$T/.git/config" | grep -E '\[core\]|\[remote|repositoryformatversion'

# .git/HEAD (HIGH)
curl -sk -m 10 "$T/.git/HEAD" | grep -E '^ref:'

# .env (CRITICAL)
curl -sk -m 10 "$T/.env" | grep -E '^[[:space:]]*[A-Z_][A-Z0-9_]*[[:space:]]*='

# Apache /server-status (MEDIUM)
curl -sk -m 10 "$T/server-status" | grep -i 'Apache Server Status'

# Apache /server-info (MEDIUM)
curl -sk -m 10 "$T/server-info" | grep -i 'Apache Server Information'

# .DS_Store (LOW)
curl -sk -m 10 "$T/.DS_Store" -o /tmp/dsstore && file /tmp/dsstore | grep -i 'data'

# phpinfo.php (HIGH)
curl -sk -m 10 "$T/phpinfo.php" | grep -E 'phpinfo\(\)|PHP Version'

# info.php (HIGH)
curl -sk -m 10 "$T/info.php" | grep -E 'phpinfo\(\)|PHP Version'

# Spring Boot /actuator/env (CRITICAL)
curl -sk -m 10 "$T/actuator/env" | grep -E '"propertySources"|systemProperties|systemEnvironment'

# Spring Boot /actuator/heapdump (CRITICAL — saves binary; check size)
curl -sk -m 30 "$T/actuator/heapdump" -o /tmp/heap && file /tmp/heap | grep -i 'HPROF\|data'

# Elasticsearch open (HIGH)
curl -sk -m 10 "$T/_cat/indices?v"

# Jenkins script console (HIGH)
curl -sk -m 10 "$T/script" | grep -iE 'Jenkins|Script Console'

# Tomcat manager (HIGH)
curl -sk -m 10 "$T/manager/html" -w '%{http_code}\n' | tail -1     # 401 = present + auth-gated; 200 = no auth

# WordPress orphan installer (LOW)
curl -sk -m 10 "$T/wp-admin/install.php" | grep -i 'WordPress Installation'

# security.txt (INFO)
curl -sk -m 10 "$T/.well-known/security.txt"

SSO subdomain prefixes (§16.7):

D="target.example"
for prefix in auth login sso idp iam identity accounts oauth; do
  echo "=== ${prefix}.${D} ==="
  curl -sk -m 10 "https://${prefix}.${D}/.well-known/openid-configuration" -o /dev/null -w '%{http_code}\n'
done

# Generic OIDC discovery on any host:
curl -sk -m 10 "https://${HOST}/.well-known/openid-configuration" | jq .

SAML metadata paths (§16.6):

H="target.example.com"
for p in /saml/metadata \
         /FederationMetadata/2007-06/FederationMetadata.xml \
         /federationmetadata/2007-06/federationmetadata.xml \
         /simplesaml/saml2/idp/metadata.php \
         /auth/saml2/metadata; do
  echo "=== $p ==="
  curl -sk -m 10 "https://${H}${p}" -o /dev/null -w '%{http_code} %{size_download}\n'
done

Cloud bucket probes (§16.8):

B="candidate-bucket-name"

# S3 (us-east-1 first)
curl -sk -m 10 -I "https://${B}.s3.amazonaws.com/" -w 'STATUS:%{http_code}\n' | head -20
# If 200/301: list objects
curl -sk -m 10 "https://${B}.s3.amazonaws.com/?list-type=2" | head -50

# S3 region-specific
for r in us-east-1 us-west-2 eu-west-1 ap-southeast-1; do
  curl -sk -m 10 -I "https://${B}.s3-${r}.amazonaws.com/" -w "${r}: %{http_code}\n"
done

# GCS
curl -sk -m 10 -I "https://${B}.storage.googleapis.com/"
curl -sk -m 10 "https://storage.googleapis.com/${B}/"

# Azure Blob
curl -sk -m 10 -I "https://${B}.blob.core.windows.net/"
curl -sk -m 10 "https://${B}.blob.core.windows.net/?comp=list"

GraphQL introspection POST (§16.2):

H="https://target.example/graphql"

curl -sk -m 15 -X POST "$H" \
  -H 'Content-Type: application/json' \
  -d '{
    "operationName":"IntrospectionQuery",
    "query":"query IntrospectionQuery { __schema { types { name kind fields { name type { name kind } } } queryType { name } mutationType { name } subscriptionType { name } } }"
  }' | jq '.data.__schema.types | length'

Read-only secret validators (§23):

# Postman PMAK
curl -sk -m 10 -H "X-Api-Key: PMAK-..." https://api.getpostman.com/me | jq .

# AWS (use boto3 instead of curl — pre-signing complexity)
python3 -c "import boto3; print(boto3.client('sts', aws_access_key_id='AKIA...', aws_secret_access_key='...').get_caller_identity())"

# GitHub PAT (note scope header)
curl -sk -m 10 -H "Authorization: token ghp_..." https://api.github.com/user -D /tmp/h | jq -r '.login,.email'
grep -i 'X-OAuth-Scopes' /tmp/h

# Slack
curl -sk -m 10 -H "Authorization: Bearer xoxb-..." -X POST https://slack.com/api/auth.test | jq .

# Anthropic (read-only validation)
curl -sk -m 10 -H "x-api-key: sk-ant-..." -H "anthropic-version: 2023-06-01" https://api.anthropic.com/v1/models | jq '.data | length'

# OpenAI
curl -sk -m 10 -H "Authorization: Bearer sk-..." https://api.openai.com/v1/models | jq '.data | length'

# npm
curl -sk -m 10 -H "Authorization: Bearer npm_..." https://registry.npmjs.org/-/whoami | jq .

# Atlassian (account)
curl -sk -m 10 -u "email:ATATT3xFfGF0_..." https://your-domain.atlassian.net/rest/api/3/myself | jq .

# DataDog (API + APP key both required)
curl -sk -m 10 -H "DD-API-KEY: ..." -H "DD-APPLICATION-KEY: ..." https://api.datadoghq.com/api/v1/validate | jq .

Bulk webapp triage (httpx, faster than curl loop):

# Install: go install github.com/projectdiscovery/httpx/cmd/httpx@latest
echo "target.example" | httpx -sc -title -tech-detect -web-server -ip -cdn -follow-redirects

# With probe list
cat subdomains.txt | httpx -sc -title -tech-detect -path /actuator/env,/.git/config,/.env -mc 200,301,403

Save responses for evidence:

mkdir -p evidence/$(date -u +%Y%m%d)
T="https://target.example"
P="/actuator/env"
TS=$(date -u +%Y%m%dT%H%M%SZ)
SAFE_NAME=$(echo "${T}${P}" | tr '/:' '_')
curl -sk -m 10 "$T$P" -o "evidence/$(date -u +%Y%m%d)/${TS}_${SAFE_NAME}.body" \
  -D "evidence/$(date -u +%Y%m%d)/${TS}_${SAFE_NAME}.headers"
sha256sum "evidence/$(date -u +%Y%m%d)/${TS}_${SAFE_NAME}".* > "evidence/$(date -u +%Y%m%d)/${TS}_${SAFE_NAME}.sha256"

16.14 Email Security Analysis (SPF/DMARC/DKIM/BIMI/MTA-STS/DNSSEC)

Spoof feasibility + SaaS tenant inference from a target's email DNS.

SPF lookup + parsing:

D="target.example"
dig +short TXT "$D" | grep -i 'v=spf1'

Common SPF parsing checklist:

  • Ends in -all (hardfail) → strict; major providers reject spoofs.
  • Ends in ~all (softfail) → spam folder for spoofs.
  • Ends in ?all or no all → permissive; spoofs likely deliver.
  • Includes (include:) reveal SaaS tenants:
    • include:_spf.google.com → Google Workspace.
    • include:spf.protection.outlook.com → Microsoft 365.
    • include:_spf.salesforce.com → Salesforce.
    • include:mail.zendesk.com → Zendesk customer.
    • include:sendgrid.net → SendGrid customer.
    • include:mailgun.org → Mailgun customer.
    • include:_spf.atlassian.net → Atlassian Cloud.
    • include:amazonses.com → AWS SES.
    • include:mktomail.com → Marketo.
    • include:_spf.intuit.com → Intuit (QuickBooks/Mailchimp).
    • include:spf.mandrillapp.com → Mandrill.
    • include:_spf.workday.com → Workday.

If SPF includes ≥10 mechanisms (max-lookups limit) → SPF eval likely fails → spoofs may pass. Tools: spfquery, spftools (online), dig +trace.

DMARC policy + alignment:

dig +short TXT "_dmarc.${D}"

Parse for:

  • p= → primary policy (none, quarantine, reject).
  • sp= → subdomain policy (defaults to p=).
  • aspf= / adkim= → alignment mode (r=relaxed, s=strict).
  • pct= → percentage of mail to which policy applies.
  • rua= / ruf= → reporting addresses (often reveals SaaS DMARC vendors: dmarcian, valimail, Agari, easydmarc).

Severity:

  • p=none → spoof-feasible, downgrade trust → MEDIUM finding.
  • p=quarantine pct<100 → partial enforcement → LOW.
  • p=reject + aspf=s + adkim=s → well-postured → no finding.

DKIM key discovery:

DKIM selectors aren't well-known; common patterns:

for selector in default google selector1 selector2 mail email k1 dkim s1 s2 mta1 mta2 \
                amazonses 20240101 20230101 mailchimp sendgrid mxvault; do
  echo "=== ${selector} ==="
  dig +short TXT "${selector}._domainkey.${D}"
done

If a key returns: extract p=<base64> and check key length. RSA-1024 → MEDIUM (deprecated; should be 2048+). Missing or rotated infrequently → LOW finding.

BIMI (Brand Indicators for Message Identification):

dig +short TXT "default._bimi.${D}"

If present + p=reject DMARC → brand-impersonation defense in inbox UI. Absence is LOW only (operational, not exploitable).

MTA-STS (Mail Transfer Agent Strict Transport Security):

dig +short TXT "_mta-sts.${D}"
curl -sk -m 10 "https://mta-sts.${D}/.well-known/mta-sts.txt"

If neither responds → MX-server TLS not enforced; MITM-able. LOW finding. If mode=enforce present and policy file matches → well-postured.

TLS-RPT (TLS Reporting):

dig +short TXT "_smtp._tls.${D}"

DNSSEC validation:

dig +dnssec "${D}" SOA | grep -E 'flags|RRSIG'
delv "${D}" 2>&1 | grep -i 'fully validated\|insecur'

If delv returns "insecure" → DNSSEC not enabled (LOW finding; doesn't enable spoof but is hardening gap).

MX → IdP / mail-host inference:

dig +short MX "${D}"
MX patternIdP / hosting
aspmx.l.google.com, *.googlemail.comGoogle Workspace
*.mail.protection.outlook.comMicrosoft 365
*.mail.eo.outlook.comMicrosoft 365 (older)
*.zoho.comZoho Mail
*.yandex.netYandex 360
*.fastmail.comFastmail
*.proofpoint.com, *.pphosted.comProofpoint (M365 user with Proofpoint inbound)
*.mimecast.com, *.mimecast-eu.comMimecast
*.barracudanetworks.comBarracuda
Self-hosted IPs in target ASNOn-prem mail server (often Exchange)

DMARC reporting-vendor inference (parse rua= / ruf=):

RUA/RUF hostVendorImplication
*.dmarcian.comdmarcianDMARC reporting customer
*.valimail.com, *.dmarc-rua.comValimailDMARC reporting customer
*.kdmarc.comKratikal kDMARCIndian DMARC vendor; common in IN orgs
*.agari.comAgari (Fortra)Email security vendor
*.easydmarc.comEasyDMARCDMARC reporting customer
*.dmarcanalyzer.comDMARC AnalyzerReporting customer
*.postmarkapp.comPostmarkDMARC reporting addon
<addr>@<target-domain>Self-hosted reportingInternal mailbox; sometimes leaks team-name (itg@, secops@, dmarc@)

Capture the vendor + the internal RUA mailbox. Both are leak surfaces (vendor compromise = DMARC bypass; internal mailbox = phishing target).

Windows / PowerShell parallel for the entire §16.14 audit:

PS 5.1 Resolve-DnsName does not accept -Type CAA (use PowerShell 7+ or nslookup -type=CAA <domain>). Otherwise:

$D = "target.example"
"=== SPF ==="; (Resolve-DnsName $D -Type TXT -EA SilentlyContinue | ? { $_.Strings -match 'v=spf1' }).Strings
"=== DMARC ==="; (Resolve-DnsName "_dmarc.$D" -Type TXT -EA SilentlyContinue).Strings
"=== MTA-STS ==="; (Resolve-DnsName "_mta-sts.$D" -Type TXT -EA SilentlyContinue).Strings
"=== TLS-RPT ==="; (Resolve-DnsName "_smtp._tls.$D" -Type TXT -EA SilentlyContinue).Strings
"=== BIMI ==="; (Resolve-DnsName "default._bimi.$D" -Type TXT -EA SilentlyContinue).Strings
"=== MX ==="; Resolve-DnsName $D -Type MX -EA SilentlyContinue | Select NameExchange,Preference
"=== DKIM common selectors ==="
foreach ($s in @("default","google","selector1","selector2","mail","email","k1","dkim","s1","s2","amazonses","mailchimp","sendgrid","mxvault","20240101","zoho","zmail","outlook","o365")) {
  $r = Resolve-DnsName "$s._domainkey.$D" -Type TXT -EA SilentlyContinue
  if ($r) { "${s}: FOUND" }
}
"=== CAA (PS 5.1 fallback) ==="; nslookup -type=CAA $D 2>$null

16.15 Origin Discovery / CDN Bypass

If the target is behind Cloudflare/Akamai/Fastly/CloudFront, their CDN IPs are well-defined. Find IPs not in those ranges that serve the same site = origin.

Cloudflare IPv4 ranges:

https://www.cloudflare.com/ips-v4

Akamai ASNs: AS16625, AS20940, AS21342, AS21357. Fastly: AS54113. AWS CloudFront: published in https://ip-ranges.amazonaws.com/ip-ranges.json filter service:CLOUDFRONT.

Origin discovery via DNS history:

# SecurityTrails (paid)
curl -sk -H "APIKEY: ..." \
  "https://api.securitytrails.com/v1/history/${D}/dns/a" | jq '.records[] | {ip:.values[].ip, first_seen, last_seen}'

Free alternatives:

# Validin
curl -sk "https://app.validin.com/api/axon/${D}/dns" | jq .

# RiskIQ Community (free tier; auth required)
curl -sk -u "user:apikey" "https://api.riskiq.net/pt/v2/dns/passive?query=${D}" | jq .

Filter the result: any historical A record IP not in current CDN ranges = origin candidate.

Origin via certificate SAN pivot (Censys):

# Censys (free 250 queries/month with key)
censys search "services.tls.certificates.leaf_data.subject.common_name:${D} AND NOT services.tls.certificates.leaf_data.issuer.common_name:'Cloudflare'"

Or via crt.sh + manual IP check:

curl -sk "https://crt.sh/?q=%25.${D}&output=json" | jq -r '.[].name_value' | sort -u

Origin via favicon hash (Shodan):

# Compute favicon mmh3
python3 -c "
import urllib.request, codecs, mmh3
data = urllib.request.urlopen('https://target.example/favicon.ico').read()
b64 = codecs.encode(data, 'base64')
print(mmh3.hash(b64))"

# Search Shodan
shodan search "http.favicon.hash:<computed-hash>" --fields ip_str,port,org

Cross-reference with CDN ranges; non-CDN matches = origin candidates.

Origin via JARM:

# Compute JARM
python3 -c "
import jarm
print(jarm.scan('target.example'))
" 2>/dev/null || echo "Install: pip install pyjarm"

# Search Shodan for matching JARM
shodan search "ssl.jarm:<jarm-hash>" --fields ip_str,port

Origin via Host-header probe (validate candidate):

CANDIDATE_IP="203.0.113.42"
curl -sk -m 10 -H "Host: target.example.com" "https://${CANDIDATE_IP}/" -o /tmp/candidate.html
diff <(curl -sk -m 10 https://target.example.com/) /tmp/candidate.html | head -50

If small/no diff → confirmed origin. Document with detectability=low.

Origin via auxiliary subdomains (often skip CDN):

for sub in mail smtp ftp sftp cpanel webmail direct origin direct-connect noproxy \
           dev staging stg uat preprod sandbox preview origin-www old-www legacy \
           server srv host1 host2 vps server1; do
  echo "=== ${sub}.${D} ==="
  dig +short A "${sub}.${D}"
done | grep -vE '^(===|$)' | sort -u

Cross-reference any returned IP against CDN ranges.

Origin via email-header bounce:

Send mail to <random>@${D} from a sock-puppet account. The bounce often includes Received: headers showing the inbound mail server's actual IP — sometimes co-located with web origin.

Origin via misconfigured CDN error pages:

Some CDN 5xx error pages historically leaked upstream details. Trigger errors and inspect:

# Trigger CDN-side 5xx (oversized request, malformed Host)
curl -sk -m 10 -H "Host: " "https://target.example/" -o /tmp/err.html
curl -sk -m 10 -H "X-Forwarded-For: $(python3 -c 'print("a"*8000)')" "https://target.example/"
grep -iE 'origin|upstream|server|backend|cf-ray' /tmp/err.html

16.16 Vendor Product Fingerprints

Common edge appliances / products on the target's perimeter, with fingerprint paths and notes on common CVEs.

ProductFingerprint pathsNotes
Citrix Netscaler / Gateway/vpn/index.html, /logon/LogonPoint/tmindex.html, /citrix/Version in HTML; CVE-2023-3519 (RCE), CVE-2019-19781 (path traversal RCE) — both KEV-listed.
F5 BIG-IP TMUI/tmui/login.jsp, /mgmt/tm/sys/Banner reveals version; CVE-2022-1388 (auth bypass), CVE-2023-46747 — KEV-listed.
Cisco ASA / AnyConnect/+CSCOE+/, /CSCOE/index.html, /webvpn.html, /+CSCOE+/portal.htmlCVE-2020-3452 (file read), CVE-2018-0101 (RCE).
Pulse Secure / Ivanti Connect/dana-na/, /dana-na/auth/url_default/welcome.cgi, /api/v1/CVE-2024-21887 (KEV), CVE-2023-46805 (KEV) — chained command injection.
FortiGate / FortiOS/remote/login, /remote/info, /api/v2/CVE-2022-42475 (RCE, KEV), CVE-2024-21762 (RCE, KEV).
PaloAlto GlobalProtect/global-protect/, /global-protect/portal/css/login.css, /api/?type=keygenCVE-2024-3400 (RCE, KEV), CVE-2019-1579.
VMware Horizon/portal/info.jsp, /broker/xml, /login.jsplog4shell exposure (CVE-2021-44228, KEV).
VMware vCenter/sdk, /ui/, /vsphere-client/, /websso/SAML2/CVE-2021-21972 (RCE, KEV), CVE-2021-22005.
VMware ESXi/sdk, /ui/, /folderCVE-2021-21974 (heap overflow → ESXiArgs ransomware, KEV).
Microsoft Exchange OWA/owa/, /ews/exchange.asmx, /ecp/ProxyShell (CVE-2021-34473), ProxyLogon (CVE-2021-26855), ProxyNotShell (CVE-2022-41040) — all KEV.
WatchGuard Firebox/auth/, /wgcgi.cgiCVE-2022-26318 (CGI).
SonicWall SMA/cgi-bin/welcome, /__api__/v1/, /diagnostics/CVE-2021-20016, CVE-2024-40766 (KEV).
Sophos UTM/XG/XGS/userportal/, /webconsole/, /cgi-bin/CVE-2022-1040 (RCE, KEV).
Check Point R80/R81/sslvpn/portal/, /clients/CVE-2024-24919 (KEV).
Zoho ManageEngine/RestAPI/Login, /api/json/v2/Multiple RCE CVEs; check version.
Atlassian Confluence/confluence/, /login.action, /rest/api/spaceCVE-2022-26134 (OGNL RCE, KEV), CVE-2023-22515 (KEV).
Atlassian Jira/secure/Dashboard.jspa, /rest/api/2/serverInfoMultiple CVEs; check version.
GitLab self-hosted/users/sign_in, /-/oauth/applications, /helpVersion in HTML footer; CVE-2021-22205 (RCE, KEV).
Telerik UI/Telerik.Web.UI.WebResource.axd?type=rauCVE-2017-9248, CVE-2019-18935 — old but still found.
ConnectWise ScreenConnect/SetupWizard.aspx, /Bin/SetupWizard.aspxCVE-2024-1709 (auth bypass, KEV).
SolarWinds Orion/Orion/Login.aspxSUNBURST supply-chain (CVE-2020-10148).
Kaseya VSA/dl.asp, /userFilterTableRpt.aspCVE-2021-30116 (REvil supply-chain).
Microsoft IIS / OWA miscServer: Microsoft-IIS/<version>Old versions = old CVEs; check.
Cisco Smart Installport 4786 openCVE-2018-0171 (smart install client mode RCE).

Per-vendor probe pattern:

T="https://target.example"
# Citrix
curl -sk -m 10 "$T/vpn/index.html" -o /tmp/c1 -w '%{http_code}\n'
grep -iE 'NetScaler|Citrix|version' /tmp/c1
# F5
curl -sk -m 10 "$T/tmui/login.jsp" -o /tmp/c2 -w '%{http_code}\n'
grep -iE 'BIG-IP|version' /tmp/c2
# (etc — repeat per product)

Auto-fingerprint with Nuclei:

nuclei -u $T -t http/technologies/ -severity info,low,medium,high,critical
nuclei -u $T -t http/cves/ -severity high,critical -etags fuzz

16.17 Cloud-Native Service Fingerprints

Modern apps deploy on serverless / managed services. Fingerprint the platform from the URL pattern.

ProviderURL patternNotes
AWS Lambda Function URL*.lambda-url.<region>.on.awsDirect invocation; check IAM auth posture.
AWS App Runner*.<region>.awsapprunner.comManaged container; usually behind auth.
AWS API Gateway*.execute-api.<region>.amazonaws.comREST/HTTP/WebSocket; check authorizer config.
AWS CloudFrontd{14}\.cloudfront\.netDistribution; origin behind it (see §16.15).
AWS ALB / ELB*.elb.<region>.amazonaws.comBehind = EC2 / ECS.
AWS Amplify*.amplifyapp.comStatic + Lambda backend.
Google Cloud Run*.run.app (and *.<region>.run.app)Container; check public-vs-IAM auth.
Google Cloud Functions*.cloudfunctions.net, *.<region>-<project>.cloudfunctions.netServerless.
Google App Engine*.appspot.comOlder serverless.
Azure Functions*.azurewebsites.net (also App Service)Function App behind same domain pattern.
Azure Container Apps*.azurecontainerapps.ioContainers.
Azure Static Web Apps*.azurestaticapps.netStatic + Functions.
Vercel*.vercel.app, *.now.sh (legacy)Frontend + serverless.
Netlify*.netlify.app, *.netlify.comFrontend + functions.
Cloudflare Workers*.workers.devEdge functions.
Cloudflare Pages*.pages.devStatic + functions.
Heroku*.herokuapp.comDynos.
Render*.onrender.comContainer/static.
Fly.io*.fly.devEdge containers.
Railway*.railway.appApp platform.
DigitalOcean App Platform*.ondigitalocean.appStatic + container.

For each pattern:

  • Confirm public vs auth-required (HEAD / GET).
  • Check CORS posture.
  • For Lambda Function URLs / Cloud Run / Cloud Functions: check whether IAM auth is enforced (anonymous invocation = HIGH finding).
  • For static + functions hybrids (Vercel/Netlify/Cloudflare Pages): the function paths are usually /api/*; enumerate via JS extraction.

16.18 Container & Kubernetes Exposure

Increasingly common; often forgotten when behind a NAT.

TargetPortProbeSeverity if exposed
Docker API (unencrypted)2375curl -sk -m 5 http://${IP}:2375/v1.40/infoCRITICAL (container/host takeover)
Docker API (TLS)2376curl -sk -m 5 https://${IP}:2376/v1.40/infoHIGH (cert validation bypass possible)
Kubernetes API server6443 / 8443curl -sk -m 5 https://${IP}:6443/apiHIGH if system:anonymous returns non-403
Kubernetes Dashboard8001 / 9090 / 30000+curl -sk -m 5 http://${IP}:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboardHIGH if reachable
kubelet10250 (HTTPS), 10255 (HTTP, deprecated)curl -sk -m 5 https://${IP}:10250/podsCRITICAL (no auth = pod exec)
etcd2379 (client), 2380 (peer)curl -sk -m 5 https://${IP}:2379/v2/keys/ (v2) or etcdctl --endpoints=${IP}:2379 get / (v3)CRITICAL (cluster state + secrets)
kube-proxy10256curl http://${IP}:10256/healthzINFO
kube-controller-manager10257curl https://${IP}:10257/metricsMEDIUM
kube-scheduler10259curl https://${IP}:10259/metricsMEDIUM
cAdvisor4194 (deprecated)curl http://${IP}:4194/metricsLOW (resource metrics)
Helm Tiller (Helm 2 — deprecated but found)44134helm --host ${IP}:44134 listHIGH (Tiller had cluster-admin)

Public container registries to check for leaks:

RegistrySearch pattern
Docker Hubhttps://hub.docker.com/search?q=<target-keyword>&type=image
Quay (Red Hat)https://quay.io/search?q=<target-keyword>
GitHub Container Registry (GHCR)enumerable via GitHub API: https://api.github.com/orgs/<org>/packages?package_type=container
Amazon ECR Publichttps://gallery.ecr.aws/?searchTerm=<keyword>
Azure Container Registry (public)varies; check for *.azurecr.io
Google Container Registry (public)https://console.cloud.google.com/gcr/images/<project>?project=<project>

Per-image scan workflow:

  1. docker pull <registry>/<image>:<tag> (or skopeo inspect).
  2. docker save <image> -o /tmp/img.tar.
  3. Extract layers; scan with secret catalog (§17).
  4. Inspect Dockerfile history (docker history <image>) — sometimes reveals build args or COPY of secrets.

16.19 CI/CD Platform Exposure

PlatformCommon exposureProbe
Jenkins/script (Groovy console = RCE if no auth), /asynchPeople/, /jnlpJars/jenkins-cli.jar, /computer/, /job/<name>/api/jsoncurl -sk -m 10 "${T}/script" and curl -sk -m 10 "${T}/asynchPeople/api/json"
GitLab self-hosted/users/sign_in (version in HTML), /-/oauth/applications (auth-required), /api/v4/version, /-/snippets/<id>/rawcurl -sk -m 10 "${T}/api/v4/version"
GitHub Actions workflow files.github/workflows/*.yml in any public repoSearch via GitHub code search: path:.github/workflows extension:yml secrets
CircleCI config.circleci/config.yml in any repoSearch: path:.circleci/config.yml
TeamCity/login.html, /agent.html?agentId=*, /admin/admin.htmlcurl -sk -m 10 "${T}/login.html" | grep -i 'TeamCity' — version disclosure. CVE-2024-27198 (KEV).
Bamboo (Atlassian)/userlogin.action, /rest/api/latest/infocurl -sk -m 10 "${T}/rest/api/latest/info"
Drone CI/api/info, /logincurl -sk -m 10 "${T}/api/info"
Travis CI (legacy).travis.yml in repos; https://api.travis-ci.com/repos/<owner>/<repo>API often exposes build env.
Argo CD/api/version, /applicationscurl -sk -m 10 "${T}/api/version". Check anonymous-auth posture.
Tekton/apis/tekton.dev/v1beta1/pipelineruns (K8s native)Enumerate via K8s API.
Spinnaker/gate/info, /applicationscurl -sk -m 10 "${T}/gate/info"
Buildkiteper-org dashboards; usually behind auth.Check public agents page.

GitHub Actions secret-leak patterns to look for in workflows:

# Anti-pattern: secret echoed to log
run: echo "${{ secrets.MY_API_KEY }}"

# Anti-pattern: secret in environment without mask
env:
  KEY: ${{ secrets.MY_API_KEY }}
run: ./deploy.sh   # script may echo $KEY

# Anti-pattern: pull_request_target with checkout of fork code (CVE class)
on: pull_request_target
jobs:
  test:
    steps:
      - uses: actions/checkout@v3
        with:
          ref: ${{ github.event.pull_request.head.sha }}   # checks out fork code with secrets in env

16.20 Documentation / Wiki Leak Paths

Public-share features on collaboration platforms regularly leak.

PlatformURL patternWhat's exposed
Notion (publish page)*.notion.site/<slug> or notion.so/<workspace>/<page-id>Public page; sometimes whole workspaces published by accident.
Confluence Cloud (anonymous)<target>.atlassian.net/wiki/spaces/Public spaces; check /wiki/display/<SPACE>/.
Atlassian Service Desk<target>.atlassian.net/servicedesk/customer/portal/<N>Sometimes lists all internal request types.
Trello boardhttps://trello.com/b/<id>/<slug>Public board with cards; check via Google site:trello.com "${target}".
Asana public projecthttps://app.asana.com/0/<id>/<id>Public project view.
ReadTheDocs<project>.readthedocs.ioHosted docs; "private builds" sometimes default to public.
GitBook<workspace>.gitbook.io/<book>/Published docs; sometimes contain internal SOPs.
MkDocs / Docusaurus on subdomaindocs.<target>Often contains internal architecture diagrams + setup notes.
Slab<workspace>.slab.com/posts/<id>Published posts.
Codacoda.io/d/<doc-id>Public docs.
Mirohttps://miro.com/app/board/<id>/Public boards (often architecture diagrams).
Lucidcharthttps://lucid.app/lucidchart/<id>/viewPublic diagrams.
Figmahttps://www.figma.com/file/<key>/Public design files; sometimes leak product spec.
GitHub Wikigithub.com/<org>/<repo>/wikiPublic wikis; check stale ones.
Linearlinear.app/<workspace>/issue/<id>Public issues (rare but happens).
Confluence anonymous server<target>/confluence/, <target>/wiki/ (self-hosted)Anonymous read sometimes left on.
Monday.comview.monday.com/<id>Shared boards.
Wrikeapp.wrike.com/external/<id>External-shared spaces.

Dork-driven discovery:

site:notion.site "{target}"
site:notion.so "{target}"
site:atlassian.net "{target}"
site:trello.com "{target}"
site:miro.com "{target}"
site:lucid.app "{target}"
site:figma.com "{target}"
site:asana.com "{target}"
site:gitbook.io "{target}"
site:readthedocs.io "{target}"

16.21 WHOIS / RDAP / Historical

WHOIS gives current registrant; RDAP is the structured replacement; historical WHOIS is the pivot gold.

Current WHOIS:

whois target.example                              # standard CLI
curl -sk -m 10 "https://www.whois.com/whois/${D}"  # web fallback

RDAP (RFC 7480, structured JSON):

# IANA bootstrap → returns the registry RDAP server
curl -sk "https://rdap.org/domain/${D}" | jq .
curl -sk "https://www.iana.org/rdap" | jq .   # bootstrap registry

What to extract from WHOIS / RDAP:

  • Registrant: name, org, email, phone, address (often redacted post-GDPR but not always for non-EU registrants).
  • Registrar: enables registrar-account pivot for related domains.
  • Created / updated / expiry dates: pattern of bulk registrations = same registrant.
  • Nameservers: NS reuse pivot.
  • Status flags (clientHold, clientTransferProhibited, etc.) = posture indicators.
  • Abuse contact: useful for responsible disclosure (§30).

Historical WHOIS:

Pre-GDPR records often have unredacted contact info. Sources:

SourceNotes
DomainToolsPaid; gold-standard; full WHOIS history.
WhoisXML APIPaid; bulk + history.
SecurityTrailsPaid; WHOIS + DNS history.
viewdns.infoFree WHOIS history (limited).
whoisology.comPaid; reverse WHOIS by registrant email.

Reverse-WHOIS pivots:

If you have a registrant email, search "every domain registered by this email":

# DomainTools (paid)
curl -sk -H "X-API-Username: ..." -H "X-API-Key: ..." \
  "https://api.domaintools.com/v1/reverse-whois/[email protected]"

This finds adjacent corporate assets (subsidiary domains, brand variations, employee personal projects on corp email).

16.22 DNS Record Catalog (TXT verification tokens, MX→IdP)

For every target domain, dump all common record types:

D="target.example"
for rtype in A AAAA MX TXT NS SOA CAA SRV CNAME PTR; do
  echo "=== ${rtype} ==="
  dig +short "${D}" "${rtype}"
done

TXT record verification token catalog (each token reveals a SaaS tenancy):

TXT patternSaaS / serviceImplication
google-site-verification=<token>Google Workspace / Search Console / AnalyticsGoogle tenancy.
MS=ms<digits>Microsoft 365 (older)M365 tenancy.
apple-domain-verification=<token>Apple Business Manager / iCloud CalendarApple ecosystem.
atlassian-domain-verification=<token>Atlassian Cloud (Jira/Confluence/etc.)Atlassian customer.
facebook-domain-verification=<token>Facebook Business / PixelFB Business.
adobe-idp-site-verification=<token>Adobe Sign / Creative CloudAdobe customer.
docusign=<token>DocuSignDocuSign customer.
dropbox-domain-verification=<token>Dropbox BusinessDropbox customer.
box-verification=<token>BoxBox customer.
webexdomainverification.<id>WebexCisco Webex.
zoom_verify_<id>ZoomZoom customer (admin domain).
notion=<token> (rare)Notion workspaceNotion enterprise.
slack-domain-verification=<token>Slack Enterprise GridSlack EG.
asana-domain-verification=<token>Asana EnterpriseAsana customer.
mongodb-site-verification=<token>MongoDB AtlasDB tenant.
_dnsauth.<token>Many ACME / Let's Encrypt CAsDNS-01 challenge in progress.
pinterest-site-verification=<token>Pinterest BusinessMarketing surface.
cisco-ci-domain-verification=<token>Cisco Spark / WebexCisco.
_globalsign-domain-verification=<token>GlobalSign cert authorityCert provider.
mailru-verification:<token>Mail.ruRU presence.
yandex-verification:<token>Yandex servicesRU presence.
zscaler-verification-<id>-<date>-<random>Zscaler (ZIA / ZPA / ZDX)Web SSE / SASE customer; the date suffix is the verification-issued date.
cloudflare-verify=<token>Cloudflare (Zero Trust / Access / WARP)Cloudflare org-tier customer.
autosect-site-verification=<token>AutoSect (security tooling)Security vendor on tenant.
cisco-site-verification=<token>Cisco (various products)Cisco vendor.
mscid=<token>Microsoft (newer M365 verification)M365 tenancy (newer format).
_amazonses=<token>AWS SES sender verificationSES sender.
salesforce-domain-verification=<token>SalesforceSF customer.
workday-domain-verification=<token>WorkdayWorkday customer (HR + Finance).
shopify-domain-verification=<token>ShopifyE-commerce customer.
klaviyo-domain-verification=<token>KlaviyoMarketing automation.
mailchimp-domain-verification=<token>MailchimpMarketing email.
hubspot-domain-verification=<token>HubSpotCRM / marketing.
zendesk-verification=<token>ZendeskSupport tenancy (also see §43).
freshworks-verification=<token>FreshworksSupport / CRM customer.
intercom-verification=<token>IntercomMessaging tenancy.
loom-site-verification=<token>LoomVideo.
miro-site-verification=<token>MiroWhiteboard tenancy.
gitlab-domain-verification=<token>GitLabSelf-hosted or cloud verification.

Each discovered tenancy is a separate attack surface (own credentials, own MFA posture, own data).

Autodiscover-as-confirmation pattern:

autodiscover.<domain> resolving to Microsoft IP space (40.96.0.0/13, 52.96.0.0/14, 13.107.0.0/16) is definitive proof of M365 Exchange Online tenancy — even when MX records are obscured by Mimecast/Proofpoint/Barracuda inbound filtering. Probe:

Resolve-DnsName "autodiscover.$D" -Type A | Select Name,IPAddress

If IPs are in Microsoft ranges → M365_CONFIRMED. Cross-reference with getuserrealm.srf (§22.1) for tenant GUID extraction.

CAA records:

dig +short CAA "${D}"

Lists which CAs are allowed to issue certs. Absence = LOW finding (any CA can mis-issue). Presence + restrictive list = good posture.

SOA serial pattern analysis:

dig +short SOA "${D}"

Serial format YYYYMMDDNN reveals last-edit date. Pattern across multiple zones can correlate ownership.

16.23 Wayback CDX Deep Usage

The Wayback Machine has a structured query API.

Basic CDX query:

D="target.example"
curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*&output=json&fl=timestamp,original&limit=10000"

Returns JSON array of [timestamp, original_url] tuples.

Useful filters:

  • &from=20200101&to=20231231 — date range.
  • &filter=mimetype:application/json — only JSON responses (often APIs).
  • &filter=mimetype:application/javascript — JS bundles.
  • &filter=statuscode:200 — only successful captures.
  • &filter=urlkey:.*api.* — only URLs containing "api".
  • &collapse=urlkey — dedup by URL.
  • &collapse=digest — dedup by content (catches identical pages re-archived).

Get specific snapshot:

TS="20231215120000"
URL="https://target.example/admin/dashboard"
curl -sk "https://web.archive.org/web/${TS}/${URL}"

Diff snapshot vs live:

LIVE=$(curl -sk -m 10 "${URL}")
ARCHIVED=$(curl -sk -m 10 "https://web.archive.org/web/${TS}/${URL}")
diff <(echo "$LIVE") <(echo "$ARCHIVED") | head -100

Save current page:

curl -sk -X POST "https://pragma.archivelab.org/" \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://target.example/admin"}'

Find every archived JS:

curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*.js&output=json&fl=timestamp,original&filter=statuscode:200" | \
  jq -r '.[1:][] | "\(.[0]) \(.[1])"'

For each, fetch the archived JS and run the secret catalog (§17). Old JS often had hard-coded keys later removed.

Legacy-app pivot (when *.js returns empty):

Static brochure-ware sites (older corporate sites, especially pre-2015) often have zero archived JS because the frontend was server-rendered. Pivot to legacy file extensions:

# ASP / ASP.NET classic
curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*.asp&output=json&fl=timestamp,original&filter=statuscode:200&collapse=urlkey&limit=500"

# PHP
curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*.php&output=json&fl=timestamp,original&filter=statuscode:200&collapse=urlkey&limit=500"

# JSP / .NET aspx / CGI / Coldfusion
for ext in aspx jsp cgi cfm; do
  echo "=== .$ext ==="
  curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*.${ext}&output=json&fl=timestamp,original&filter=statuscode:200&collapse=urlkey&limit=200"
done

# JSON / XML config (sometimes leaks endpoints + creds)
for ext in json xml yml yaml ini conf; do
  echo "=== .$ext ==="
  curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*.${ext}&output=json&fl=timestamp,original&filter=statuscode:200&collapse=urlkey&limit=100"
done

# Anything indexed (broad sweep — useful for legacy enumeration)
curl -sk "https://web.archive.org/cdx/search/cdx?url=${D}/*&output=json&fl=timestamp,original&filter=statuscode:200&collapse=urlkey&limit=10000"

Legacy .asp / .cfm / .jsp URLs often reveal: forgotten admin panels, old user-enum endpoints, legacy auth flows, SQL-injection-prone parameters. Cross-reference with current DNS — many legacy hosts now NXDOMAIN but the URL paths sometimes survive on a renamed host.

16.24 Common-Prefix Subdomain Sweep (active, low-detectability)

Empirically: passive cert-transparency enumeration (crt.sh / VirusTotal / Subfinder) misses 20–40% of high-value subdomains because (a) many internal hosts use wildcard certs that don't expose the FQDN, (b) some hosts have never been issued public certs (HTTP-only or self-signed), (c) very-recently-provisioned hosts haven't propagated to CT log mirrors yet.

Always pair passive enum with an active prefix-probe. Detectability: low (single A-record query per host; no port scan, no HTTP).

The high-yield prefix list (ordered by hit-rate from real engagements):

www, mail, webmail, smtp, imap, pop, owa, autodiscover, ftp, sftp,
vpn, sslvpn, gateway, gp, globalprotect, citrix, fortinet, anyconnect,
api, app, apps, mobile, m,
portal, login, sso, idp, iam, identity, accounts, oauth, auth, adfs,
admin, manage, console, dashboard, cp, cpanel,
intranet, internal, hr, payroll, finance, sap, erp, crm, helpdesk, servicedesk,
support, help, kb, status, monitoring, grafana, kibana, prometheus,
docs, wiki, confluence, jira, bitbucket, gitlab, jenkins, sonar, nexus,
git, svn, repo, code,
dev, test, staging, stg, qa, uat, sandbox, preprod, preview, demo,
careers, jobs, vacancies, recruit, eapps,
shop, store, ecommerce, checkout, payments, pay, billing,
old, legacy, archive, backup, beta, v1, v2, classic,
cdn, static, assets, media, img, files, downloads, public,
ns, ns1, ns2, dns, mx, mx1, mx2,
zoom, teams, slack, lync, sip, voice, meet,
sclepro, tender, tenders, suppliers, vendor, vendors, procurement, purchase

One-liner (PowerShell):

$D = "target.example"
$prefixes = @("www","mail","webmail","owa","autodiscover","ftp","vpn","sslvpn","gateway","api","app","portal","login","sso","idp","iam","identity","accounts","oauth","auth","adfs","admin","intranet","hr","sap","erp","crm","support","help","status","grafana","kibana","docs","wiki","jira","jenkins","gitlab","dev","test","staging","stg","qa","uat","sandbox","preprod","preview","careers","jobs","eapps","old","legacy","beta","tender","suppliers","procurement")
foreach ($p in $prefixes) {
  $r = Resolve-DnsName "$p.$D" -Type A -ErrorAction SilentlyContinue
  if ($r) {
    $ips = ($r | ? {$_.IPAddress}).IPAddress -join ","
    "$p.$D -> $ips"
  }
}

One-liner (bash + dig):

D="target.example"
for p in www mail webmail owa autodiscover ftp vpn sslvpn gateway api app portal login sso idp iam identity accounts oauth auth adfs admin intranet hr sap erp crm support help status grafana kibana docs wiki jira jenkins gitlab dev test staging stg qa uat sandbox preprod preview careers jobs eapps old legacy beta tender suppliers procurement; do
  IP=$(dig +short A "$p.$D" | head -1)
  [ -n "$IP" ] && echo "$p.$D -> $IP"
done

Mass DNS approach (faster for large prefix lists):

# Generate candidate FQDNs from a wordlist; resolve in parallel via puredns
puredns resolve <(awk -v d="$D" '{print $1"."d}' assetnote-best-dns-wordlist.txt) -r resolvers.txt

What to extract from each hit:

  • IP / IP block → ASN lookup (§28.1) → confirms target-owned vs hosted-elsewhere.
  • For vpn.* / gateway.* / gp.* / globalprotect.* / citrix.* → flag for active vendor fingerprint (§16.16) under separate engagement scope.
  • For api.* / app.* → seed for §16.1–16.10 webapp probes.
  • For staging.* / dev.* / uat.* → seed for §16.5 always-on HTTP checks (often weaker auth + debug endpoints).
  • For intranet.* / eapps.* / sclepro.* → public-intranet finding (often MEDIUM; per §40).

Real-engagement validation: in an internal smoke test, prefix-sweep found vpn., api., intranet., staging., support., eapps., sclepro., autodiscover. — all of which crt.sh missed (or returned 502 for). Treat passive + active as complementary, not alternatives.


17. Secret-Pattern Catalog — 80 patterns (29 base + 19 modern + 32 provider expansion)

The catalog runs against any text source: GitHub code, Postman workspaces, JS bodies, sourcesContent blobs, mobile-app strings, Wayback HTML, paste sites, Stack Exchange code blocks. Order matters: most-specific patterns first so generic catches don't pre-empt typed ones.

#NameRegexSeverityCategory
1AWS Access Key\b(AKIA|ASIA)[0-9A-Z]{16}\bCRITICALaws
2AWS Secret Key (typed)(?i)aws[_\-]?secret[_\-]?access[_\-]?key['"\s:=]+([A-Za-z0-9/+=]{40})CRITICALaws
3AWS Secret (loose)(?i)aws(.{0,20})?(secret|sk)["'=: ]+([0-9a-z/+=]{40})HIGHaws
4GCP Service Account JSON"type"\s*:\s*"service_account"CRITICALgcp
5Google API Key\bAIza[0-9A-Za-z_\-]{35}\bHIGHgcp
6GitHub Classic PAT\bghp_[A-Za-z0-9]{36}\bCRITICALgithub
7GitHub Fine-grained PAT\bgithub_pat_[A-Za-z0-9_]{82}\bCRITICALgithub
8GitHub OAuth\bgho_[A-Za-z0-9]{36}\bHIGHgithub
9GitHub Server-to-Server\bgh[usr]_[A-Za-z0-9]{36,}\bHIGHgithub
10Stripe Live Key\bsk_live_[0-9A-Za-z]{24,}\bCRITICALstripe
11Stripe Test Key\bsk_test_[0-9A-Za-z]{24,}\bLOWstripe
12Slack Token\bxox[abpors]-[0-9A-Za-z\-]{10,48}\bHIGHslack
13Slack Webhookhttps://hooks\.slack\.com/services/T[A-Z0-9]+/B[A-Z0-9]+/[A-Za-z0-9]+MEDIUMslack
14SendGrid Key\bSG\.[A-Za-z0-9_\-]{22}\.[A-Za-z0-9_\-]{43}\bHIGHemail_svc
15Mailgun Key (v1)\bkey-[0-9a-zA-Z]{32}\bHIGHemail_svc
16Mailgun Key (loose)\bkey-[0-9a-f]{32}\bHIGHemail_svc
17Twilio API Key\bSK[0-9a-fA-F]{32}\bHIGHtwilio
18Twilio Account SID\bAC[a-f0-9]{32}\bMEDIUMtwilio
19Twilio Auth Token(?i)twilio(.{0,20})?(auth|token)["'=: ]+([a-f0-9]{32})HIGHtwilio
20Heroku API Key(?i)heroku(.{0,20})?api["'=: ]+([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})MEDIUMpaas
21Firebase URL\bhttps?://[a-z0-9\-]+\.firebaseio\.com\bLOWfirebase
22JWT (any)\beyJ[A-Za-z0-9_\-]{10,}\.eyJ[A-Za-z0-9_\-]{10,}\.[A-Za-z0-9_\-]{10,}\bMEDIUMjwt
23Bearer Token Assignment(?i)authorization["'=: ]+bearer\s+[A-Za-z0-9._\-]{20,}MEDIUMbearer
24Basic Auth in URLhttps?://[^/\s:@]+:[^/\s:@]+@[^/\s]+MEDIUMbasic_auth
25RSA Private Key-----BEGIN RSA PRIVATE KEY-----CRITICALprivate_key
26EC Private Key-----BEGIN EC PRIVATE KEY-----CRITICALprivate_key
27OpenSSH Private Key-----BEGIN OPENSSH PRIVATE KEY-----CRITICALprivate_key
28Generic Private Key-----BEGIN (DSA |PGP |)PRIVATE KEY-----CRITICALprivate_key
29Generic API Key(?i)(?:api[_\-]?key|apikey|api_secret|access_token|secret[_\-]?token)['"\s:=]+["']([A-Za-z0-9+/=_\-]{24,})["']MEDIUMgeneric
30Anthropic API Key\bsk-ant-(?:api03|admin01)-[A-Za-z0-9_\-]{93,}\bCRITICALai_api
31OpenAI API Key (legacy)\bsk-[A-Za-z0-9]{20}T3BlbkFJ[A-Za-z0-9]{20}\bCRITICALai_api
32OpenAI Project Key\bsk-proj-[A-Za-z0-9_\-]{40,}T3BlbkFJ[A-Za-z0-9_\-]{40,}\bCRITICALai_api
33OpenAI User Session\bsess-[A-Za-z0-9]{40}\bHIGHai_api
34HuggingFace Token\bhf_[A-Za-z0-9]{30,}\bHIGHai_api
35Cloudflare API Token\b[A-Za-z0-9_\-]{40}\b (when paired with (?i)cloudflare/X-Auth-Key context)HIGHinfra_api
36Cloudflare Global API Key(?i)cf[_\-]?api[_\-]?key['"\s:=]+([a-f0-9]{37})CRITICALinfra_api
37DigitalOcean Token\bdop_v1_[a-f0-9]{64}\bHIGHinfra_api
38npm Token (Modern)\bnpm_[A-Za-z0-9]{36}\bHIGHpackage_registry
39PyPI Token\bpypi-AgENdGV[A-Za-z0-9_\-]+\bHIGHpackage_registry
40Docker Hub PAT\bdckr_pat_[A-Za-z0-9_\-]{27,}\bHIGHpackage_registry
41Atlassian API Token\bATATT3xFfGF0[A-Za-z0-9_\-]{180,}\bHIGHsaas_api
42New Relic License Key\b(?:NRAA|NRAK|NRBR)-[A-F0-9]{27}\bMEDIUMobservability
43DataDog API Key (in DD_API_KEY context)(?i)dd[_\-]?api[_\-]?key['"\s:=]+([a-f0-9]{32})HIGHobservability
44Sentry DSNhttps://[a-f0-9]+@o[0-9]+\.ingest\.sentry\.io/[0-9]+LOWobservability
45ngrok Auth Token\b[12][A-Za-z0-9]{26}_[A-Za-z0-9]{32,}\b (when (?i)ngrok context)MEDIUMtunneling
46Linear API Key\blin_api_[A-Za-z0-9]{40}\bMEDIUMsaas_api
47Discord Bot Token\b[MN][A-Za-z\d]{23}\.[\w\-]{6}\.[\w\-]{27}\bHIGHbot_token
48Telegram Bot Token\b\d{8,10}:[A-Za-z0-9_\-]{35}\bHIGHbot_token

Provider expansion (v2.2, #49–80). Row 49 (Postman PMAK) is grounded directly in the reference implementation's modules/secrets_beyond_github.py::_RE_PMAK — a real gap, since §23.1 already documents the PMAK validator but the catalog never had the detection regex. Rows 50–80 add well-known, distinctive-prefix or context-anchored token formats for providers not covered by rows 1–48, in the same reliability bar: standalone only where the vendor's own prefix is distinctive enough to not collide (glpat-, sq0atp-, shpat_, dapi, .atlasv1., GOCSPX-, ya29., EAA, rubygems_, AKCp, SSWS , xapp-1-, sl., dp.pt., hvs., AAAA…:), context-anchored (mirroring the §17 #35 Cloudflare approach) everywhere the vendor's own token has no fixed shape (PagerDuty, Asana, Fastly, Algolia, Segment, legacy Airtable key, Azure/Entra client secret, Okta generic token).

#NameRegexSeverityCategory
49Postman API Key (PMAK)\bPMAK-[A-Za-z0-9]{24,64}\bCRITICALpostman
50GitLab Personal Access Token\bglpat-[A-Za-z0-9_\-]{20}\bHIGHgitlab
51Square Access Token\bsq0atp-[0-9A-Za-z\-_]{22}\bCRITICALsquare
52Square OAuth Secret\bsq0csp-[0-9A-Za-z\-_]{43}\bHIGHsquare
53Shopify Access Token\bshpat_[a-fA-F0-9]{32}\bHIGHshopify
54Shopify Shared Secret\bshpss_[a-fA-F0-9]{32}\bHIGHshopify
55Mailchimp API Key\b[0-9a-f]{32}-us[0-9]{1,2}\bHIGHemail_svc
56PagerDuty API Key(?i)pagerduty(.{0,20})?(api|token|key)['"\s:=]+([A-Za-z0-9+_\-]{20,32})MEDIUMsaas_api
57Asana Personal Access Token(?i)asana(.{0,20})?(token|pat)['"\s:=]+([0-9]{1,10}/[0-9]{10,20}:[a-f0-9]{32})MEDIUMsaas_api
58Databricks Personal Access Token\bdapi[0-9a-f]{32}(?:-\d)?\bHIGHsaas_api
59Grafana API Key (legacy)\beyJrIjoi[A-Za-z0-9+/=]{40,}\bMEDIUMobservability
60Grafana Cloud Access Policy Token\bglc_[A-Za-z0-9+/]{32,}={0,2}\bMEDIUMobservability
61Terraform Cloud/Enterprise Token\b[A-Za-z0-9]{14}\.atlasv1\.[A-Za-z0-9_\-=]{60,70}\bCRITICALinfra_api
62Fastly API Token(?i)fastly(.{0,20})?(api|token)['"\s:=]+([A-Za-z0-9_\-]{32})HIGHinfra_api
63Algolia Admin API Key(?i)algolia(.{0,20})?(admin|api)[_\-]?key['"\s:=]+([A-Za-z0-9]{32})HIGHsaas_api
64Segment Write Key(?i)segment(.{0,20})?(write)?[_\-]?key['"\s:=]+([A-Za-z0-9]{20,32})LOWsaas_api
65Airtable API Key (legacy)(?i)airtable(.{0,20})?(api)?[_\-]?key['"\s:=]+(key[A-Za-z0-9]{14})MEDIUMsaas_api
66Airtable Personal Access Token\bpat[A-Za-z0-9]{14}\.[a-f0-9]{64}\bHIGHsaas_api
67GCP OAuth Client Secret\bGOCSPX-[A-Za-z0-9_\-]{28}\bHIGHgcp
68Google OAuth Access Token\bya29\.[0-9A-Za-z_\-]{20,}\bHIGHgcp
69Google OAuth Client ID\b[0-9]+-[0-9A-Za-z_]{32}\.apps\.googleusercontent\.com\bLOWgcp
70Azure AD / Entra Client Secret(?i)(?:azure|entra)[_\-]?(?:client|app)[_\-]?secret['"\s:=]+([A-Za-z0-9_~.\-]{34,40})HIGHazure
71Facebook Graph API Access Token\bEAA[A-Za-z0-9]{90,}\bHIGHoauth
72RubyGems API Key\brubygems_[a-f0-9]{48}\bHIGHpackage_registry
73JFrog Artifactory API Key\bAKCp[A-Za-z0-9]{50,70}\bHIGHinfra_api
74Okta SSWS Token\bSSWS\s+[0-9a-zA-Z_\-]{40}\bCRITICALidentity
75Okta API Token(?i)okta(.{0,20})?(api)?[_\-]?token['"\s:=]+([0-9a-zA-Z_\-]{40})HIGHidentity
76Slack App-Level Token\bxapp-1-[A-Za-z0-9\-]{20,}\bHIGHslack
77Dropbox Short-Lived Token\bsl\.[A-Za-z0-9_\-]{130,140}\bMEDIUMoauth
78Doppler Personal Token\bdp\.pt\.[A-Za-z0-9]{40,44}\bCRITICALsecrets_mgmt
79HashiCorp Vault Token\bhvs\.[A-Za-z0-9_\-]{90,100}\bCRITICALsecrets_mgmt
80Firebase Cloud Messaging Server Key (legacy)\bAAAA[A-Za-z0-9_\-]{7}:[A-Za-z0-9_\-]{140,}\bHIGHfirebase

False-positive notes:

  • Patterns 22 (JWT), 23 (Bearer), 29 (Generic) trigger on test/example data frequently. Always look at context — a JWT in a README.md example block ≠ a JWT in a production .env file.
  • Pattern 16 (Mailgun loose) and pattern 11 (Stripe test) are noisy by design; severity is set low for that reason.
  • Pattern 24 (Basic auth in URL) catches monitoring-tool URLs and CI-debug URLs as well as real creds — verify before alerting.
  • For GitHub's Fine-grained PAT (pattern 7), the 82 length is by GitHub's spec — be skeptical of matches significantly longer or shorter.
  • Patterns 56 (PagerDuty), 57 (Asana), 62 (Fastly), 63 (Algolia), 64 (Segment), 65 (Airtable legacy), 70 (Azure/Entra), 75 (Okta generic) are context-anchored because the vendor token itself has no fixed shape — same discipline as pattern 35 (Cloudflare). A hit means "provider name + key-shaped value on the same line," not a cryptographically distinctive match; verify before escalating.
  • Pattern 59 (Grafana legacy) and 60 (Grafana Cloud) can both fire on the same key in older self-hosted instances that still mint eyJrIjoi…-style tokens even under a Cloud-flavored URL — treat as one finding, not two.
  • Pattern 69 (Google OAuth Client ID) is LOW by design: a client ID is a public identifier by OAuth spec, not a secret — the finding is config/tenant disclosure, not credential exposure. Don't escalate without a paired client secret (pattern 67) or refresh token.
  • Pattern 80 (FCM Server Key) enables push-notification injection to every installed instance of the app (phishing/malware push at scale), not data read — cross-reference §21.1 for the mobile-static-analysis context this typically surfaces in.

18. Dork Corpus — 80+ templates, 9 categories

Substitute {domain} with the target domain (e.g., example.com) and {company} with the company name (e.g., Acme Corporation). Run via Google, Bing, Brave, DuckDuckGo, Yandex, Baidu — engines surface different results.

18.1 Files

site:{domain} filetype:env
site:{domain} ext:env OR ext:ini OR ext:cfg OR ext:conf
site:{domain} ext:sql OR ext:sqlite OR ext:dump OR ext:bak
site:{domain} ext:pem OR ext:key OR ext:p12 OR ext:pfx
site:{domain} ext:log
site:{domain} intitle:"index of"
site:{domain} inurl:.git OR inurl:/.git/
site:{domain} inurl:backup OR inurl:.bak OR inurl:old
site:{domain} ext:yml OR ext:yaml
site:{domain} ext:properties

18.2 Admin / login panels

site:{domain} inurl:admin OR inurl:login OR inurl:sso OR inurl:dashboard
site:{domain} intitle:"phpMyAdmin"
site:{domain} intitle:"Jenkins"
site:{domain} intitle:"Grafana"
site:{domain} intitle:"Kibana"
site:{domain} intitle:"Splunk"
site:{domain} (intitle:"login" OR intitle:"sign in")
site:{domain} intitle:"GitLab"
site:{domain} intitle:"Swagger" OR intitle:"OpenAPI"
site:{domain} inurl:phpinfo

18.3 Secrets / credential leakage

"{domain}" ("api_key" OR "apikey" OR "access_token")
"{domain}" (password OR passwd OR pwd)
site:pastebin.com "{domain}"
site:ghostbin.com "{domain}"
site:rentry.co "{domain}"
site:gist.github.com "{domain}"
site:hastebin.com "{domain}"
"{domain}" "BEGIN RSA PRIVATE KEY"

18.4 Cloud / CI / shadow-IT

site:s3.amazonaws.com "{domain}"
site:storage.googleapis.com "{domain}"
site:blob.core.windows.net "{domain}"
site:digitaloceanspaces.com "{domain}"
site:trello.com "{domain}"
site:*.atlassian.net "{domain}"
site:dev.azure.com "{domain}"
site:bitbucket.org "{domain}"
site:firebaseio.com "{domain}"
site:herokuapp.com "{domain}"

18.5 Docs / intel mining

site:{domain} filetype:pdf (confidential OR internal OR restricted)
site:{domain} filetype:xlsx OR filetype:csv
site:{domain} filetype:docx
site:scribd.com "{company}"
"{company}" filetype:pdf (salary OR payroll OR org-chart OR "organization chart")
site:linkedin.com/in "{company}"
site:slideshare.net "{company}"

18.6 Vuln indicators

site:{domain} intext:"sql syntax" OR intext:"you have an error in your sql"
site:{domain} intext:"Warning: mysql_"
site:{domain} intext:"Fatal error:" intext:"on line"
site:{domain} intext:"stack trace" OR intext:"Traceback (most recent call last)"
"Apache/2.4.49" site:{domain}
"Server: nginx/1.14" site:{domain}
site:{domain} inurl:wp-content OR inurl:wp-includes

18.7 Internal tool exposure

site:{domain} intitle:"Splunk"
site:{domain} intitle:"Grafana"
site:{domain} intitle:"Kibana"
site:{domain} intitle:"Prometheus Time Series"
site:{domain} intitle:"Jaeger UI"
site:{domain} intitle:"AlertManager"
site:{domain} intitle:"Argo CD"
site:{domain} intitle:"Sonarqube"
site:{domain} intitle:"Sentry"
site:{domain} intitle:"Confluence"
site:{domain} intitle:"Jira"
site:{domain} intitle:"GitLab"
site:{domain} intitle:"Gitea"
site:{domain} intitle:"Drone CI"
site:{domain} inurl:"/jenkins/"

18.8 Backup / dump file extensions

site:{domain} ext:bak OR ext:backup OR ext:old OR ext:orig OR ext:save OR ext:swp
site:{domain} ext:tar OR ext:tar.gz OR ext:tgz OR ext:zip OR ext:rar OR ext:7z
site:{domain} ext:db OR ext:sqlite OR ext:sqlite3 OR ext:mdb
site:{domain} ext:dump OR ext:rdb OR ext:bson
site:{domain} (intext:"-- MySQL dump" OR intext:"PostgreSQL database dump")
site:{domain} ext:pcap OR ext:pcapng OR ext:cap
site:{domain} ext:core OR ext:hprof OR ext:dmp

18.9 Sector-specific (healthcare / finance / gov)

# Healthcare
site:{domain} (filetype:pdf OR filetype:xlsx) (HIPAA OR PHI OR "patient records")
site:{domain} ("DICOM" OR "HL7" OR "ICD-10")

# Finance
site:{domain} (filetype:pdf OR filetype:xlsx) (SOC OR "audit report" OR "internal control")
site:{domain} (filetype:pdf OR filetype:xlsx) ("Form 10-K" OR "Form 10-Q" OR earnings)
site:{domain} ("SWIFT" OR "BIC" OR IBAN OR "wire transfer")

# Gov / public sector
site:{domain} (filetype:pdf OR filetype:doc) (FOUO OR "controlled unclassified" OR CUI)
site:{domain} (filetype:pdf OR filetype:xlsx) ("personnel security" OR clearance)

18.10 Result classification

After running, score each result via URL signature → title hint → snippet regex:

  • CRITICAL URL signatures: .pem, .p12, .pfx, .key extensions; id_rsa filename.
  • HIGH URL signatures: /.env, /.git/, database dumps, wp-config.bak, /phpmyadmin, /jenkins, /phpinfo.php.
  • MEDIUM URL signatures: /admin, /login, /swagger, .log, /backup, .DS_Store.
  • Snippet content (e.g., a secret regex hit in the snippet) overrides URL signature only if higher severity.
  • Confidence: snippet-only match = TENTATIVE (operator must visit URL to confirm; tag detectability=medium).

19. GitHub Code-Search Dorks for Targets — 13 dorks

Apply each template to {target} (root domain stem like acme), {domain} (full root domain like acme.com), and optionally {company} (Acme Corporation):

"{target}" filename:.env
"{target}" filename:.env.example
"{target}" filename:config
"{target}" AWS_ACCESS_KEY_ID
"{target}" AWS_SECRET_ACCESS_KEY
"{target}" password
"{target}" api_key
"{target}" secret
"{target}" authorization: Bearer
"{target}" filename:id_rsa
"{target}" filename:.git-credentials
"{target}" filename:wp-config.php
"@{domain}" password                        # emails + password context

Requirements: GitHub personal access token (any scope; recommend a fine-grained PAT with read-only repo access). Rate limit per token; concurrency cap ≤5.

For each result:

  1. Fetch the file (or relevant fragment) via the GitHub Contents API.
  2. Run the secret catalog (§17).
  3. If a secret hits → SECRET_LEAK finding with catalog severity, evidence = repo URL + file path + matched secret (truncated, last 4 chars only).
  4. Optional: clone the repo to a tempdir, run trufflehog/gitleaks for full history scan.

20. Endpoint Interest Score — 0–100 rubric

For every classified endpoint (§22 in methodology skill), apply this rubric:

SignalPointsConditions
Unauth write+40POST/PUT/DELETE/PATCH endpoint returns 200/201/202/204 anonymously.
Open GraphQL introspection+35__schema query returns full type list anonymously.
Verb tampering bypass+30OPTIONS reveals method not documented; that method is accessible.
Reflected CORS + credentials+25Access-Control-Allow-Origin reflects request Origin AND Access-Control-Allow-Credentials: true.
Sensitive keyword in path+20Path matches one of: admin, internal, debug, user, password, token, key, export, upload, backup, config, secret, private, delete, purge, wipe.
Schema leak in error+20Response body contains stack trace, ORM error class, framework signature (e.g., ActiveRecord::RecordNotFound, org.hibernate.exception.*, django.db.utils.IntegrityError).
API key in URL+15Path or query string contains api_key=, apikey=, token=, access_token=.
Wildcard CORS+10Access-Control-Allow-Origin: *.
Missing rate-limit headers+10No RateLimit-* / X-RateLimit-* headers; no Retry-After after rapid requests.

Thresholds:

ScoreSeverity
≥ 90CRITICAL
70–89HIGH
50–69MEDIUM
25–49LOW
< 25INFO

For score ≥ 70, attach an attack_path_hint in evidence (see §29).


21. Mobile App Ownership Confidence — 0–100 rubric

Before running deep APK static analysis, score whether the discovered app actually belongs to the target. Threshold: ≥70 = accept.

SignalPoints
Package reverse-DNS matches target domain (e.g., com.acme.android ⟂ acme.com)+40
Developer email is <anything>@<target-domain>+25
Developer website URL is the target domain (or a confirmed sibling brand domain)+20
App name contains a brand keyword from operator-supplied brand list+10
App has ≥ minimum review-score threshold (default 20 reviews)+5

Apps below threshold are tagged mobile_review_pending and shown but not analyzed. Operator can re-score with --mobile-ownership-threshold 50 for noisier collection.

21.1 APK Static Analysis Pipeline

Once an app clears the §21 ownership gate, run this pipeline. Passive static analysis only — no Frida/emulator instrumentation, no exercising the app against a live backend, no replaying captured app traffic. Confirming a leaked secret is live uses the §23 read-only validators; confirming an open cloud surface (Firebase, S3, GCS) uses §16.8/§16.17 — separate, explicit steps, deliberately not bundled into this pass.

A. Acquisition

SourceMethodNotes
Google Playpip install google-play-scraper (§46.9) for metadataPlay's public surface does not distribute the binary itself
APKPureHTML-scrape the download page, extract the .apk linkNo login required; rate-limit-friendly; primary automatable source
APKMirrorManual browser downloadStronger anti-automation than APKPure; fallback only
iOS IPAOperator-supplied, dropped into a local ipa_uploads/ dirNever auto-download a .ipa — DMCA posture; analyse in place if the operator has it in scope
curl -s "https://apkpure.net/$(echo com.acme.android | tr . -)/com.acme.android/download" \
  | grep -oE 'https://[^"]+\.apk[^"]*' | head -1

B. Decompile toolchain

# apktool — resources + manifest to readable XML (not raw AXML)
apktool d app.apk -o out/

# aapt2 (Android SDK build-tools) — manifest dump without full unpack
aapt2 dump badging app.apk
aapt2 dump xmltree app.apk --file AndroidManifest.xml

# jadx — Java source recovery from classes.dex (for logic review, not just strings)
jadx -d out_src/ app.apk

Windows: apktool.bat; aapt2.exe lives under %LOCALAPPDATA%\Android\Sdk\build-tools\<ver>\aapt2.exe (install via Android Studio SDK Manager or sdkmanager --install "build-tools;34.0.0"); jadx.bat from the portable jadx zip, or jadx-gui.exe for interactive review.

No-toolchain alternative — pure Python, what the reference implementation's own mobile_attack_surface.py uses (no apktool/jadx dependency):

pip install androguard
from androguard.core.apk import APK
a = APK("app.apk")
print(a.get_package(), a.get_effective_target_sdk_version())
print(a.get_permissions())
manifest_xml = a.get_android_manifest_axml().get_xml()  # decoded AndroidManifest.xml

C. AndroidManifest.xml parse

  • Exported-component test (the subtlety most manual reviews miss): a component is effectively exported if android:exported="true" OR exported is unset and it declares an <intent-filter>. Don't just grep for exported="true".
  • android:debuggable="true" on <application> — production debug surface.
  • android:allowBackup — defaults to "true" when the attribute is absent entirely. Most manifests never set it, so absence of the attribute is not absence of the risk.
  • android:usesCleartextTraffic — explicit "true" allows unencrypted HTTP app-wide (API ≥28 defaults this to false, so an explicit "true" is a deliberate override worth flagging harder).
  • Custom <permission> declarations — check android:protectionLevel. normal or dangerous means any installed app can hold the permission; sensitive custom permissions (guarding IPC to exported components) should be signature.
  • android:networkSecurityConfig reference on <application> — pivot to step G below.

D. Deep-link / intent-filter extraction

Walk every activity / activity-alias / service / receiver for <intent-filter><data android:scheme=… android:host=…/></intent-filter>. For each scheme://host pair:

  • Flag handlers whose component name or host contains auth, token, reset, callback, oauth, sso, or login — these are the deep links worth weaponizing (attacker-controlled query params reaching an auth/token flow).
  • Distinguish App Links (https:// scheme + android:autoVerify="true" + a matching .well-known/assetlinks.json on the host) from a custom scheme (myapp://). Only the custom scheme is hijackable by a second app registering the same scheme — App Links are domain-verified by the OS.

E. Firebase / GCP config extraction

  • google-services.json → `project_

相似的 Skill

agent-security-hardening

AFaffaan-m/ECC314k近 7 天新增 3,503 个 star

精选

ponytail-audit

审计整个代码库,找出 bug、安全漏洞和性能瓶颈,获得按重要性排序的通俗报告。

DIDietrichGebert/ponytail202k近 7 天新增 4,226 个 star

gstack

GAgarrytan/gstack143k近 7 天新增 524 个 star

精选

security-and-hardening

按 OWASP Top 10 检查输入处理、登录和依赖,加固代码。

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

doubt-driven-development

ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star

ruview-rvagent

RUruvnet/RuView106k近 7 天新增 596 个 star