Osint methodology

From elementalsouls/Claude-BugHunter · View interactive version

Osint methodology is an AI agent skill from the GitHub repository elementalsouls/Claude-BugHunter. Plan and run OSINT for authorized red-team reconnaissance and external attack-surface assessments. Use for seed discovery, asset expansion and enrichment, exposure analysis, and reporting. Covers asset graphs, identity and authentication mapping, APIs, JavaScript, mobile and cloud surfaces, exposure

How to use this skill

Skill file

OSINT Methodology — External Red-Team Edition

0. When to use this skill / When NOT

Use this skill when:

Do NOT use this skill when:


1. Authorization & Legal Posture

This skill is intended for assets the operator owns or has written authorization to assess (red-team rules of engagement, bug-bounty in-scope assets, ASM contracts).

Soft scope check: when a user asks you to act against a target whose authorization isn't established earlier in the conversation, ask once before proceeding:

"Quick scope check: is this a target you own or have written authorization to assess (e.g., a red-team engagement, in-scope bug-bounty asset, or your own infrastructure)? I want to make sure we stay on the right side of the engagement boundary."

Once authorization is asserted, proceed without re-asking. If the user explicitly states the engagement type (e.g., "this is for our pentest of acme.com under contract"), you don't need to ask again.

Always-on guardrails (regardless of authorization):


2. Confidence Levels

Every assertion you make during an engagement should carry a confidence level. Three levels:

| Level | Meaning | Examples |

|---|---|---|

| TENTATIVE | Plausible based on indirect evidence; unverified. | Snippet-only Google dork match; email pattern inferred from name; subdomain returned by one passive source only; favicon-hash overlap (two hosts share a favicon — could be shared infra, could be a coincidence). |

| FIRM | Directly observed but uncorroborated. | Subdomain that resolves to an IP; HEAD-confirmed bucket exists (private); CT-log entry shows certificate; Shodan banner returned. |

| CONFIRMED | Multiple independent corroborations OR directly verified. | Live-validated PMAK token (read-only /me returned 200); breach corpus + crt.sh + DNS all agree; bucket listable AND files retrievable; user enumerated AND password reset flow returns valid hint. |

Rule of three for attribution: require three independent weak signals, OR one strong + one weak, before asserting linkage. Don't single-source attribute.

2.1 Confidence Upgrade Workflows

Confidence isn't static — every TENTATIVE asset should have a documented path to FIRM and to CONFIRMED. Use these per-asset-type rules.

| Asset type | TENTATIVE → FIRM | FIRM → CONFIRMED |

|---|---|---|

| Subdomain | Returned by ≥2 independent passive sources, OR DNS A/AAAA/CNAME resolves successfully. | Serves on a standard port (80/443/22/etc.) AND HTTP banner / TLS cert / SSH banner returned. |

| IP | Discovered via ≥2 sources (passive DNS, ASN lookup, Shodan). | Active probe responds (TCP SYN-ACK on at least one port, or ICMP echo reply). |

| WebApp | URL extracted from JS / API / archive but not yet hit. | HTTP request returns 2xx/3xx/4xx (any non-network-error response) AND content-length > 0. |

| Email | Generated from a name pattern OR returned by snippet-only dork. | Listed in Hunter.io / EmailRep / IntelX / breach corpus, OR MAIL FROM/RCPT TO SMTP probe returns 250 (without delivery — abort at DATA). |

| Bucket (S3/GCS/Azure) | Permutation candidate; no probe yet. | HEAD returns 200, 301, or 403 (existence confirmed). Then CONFIRMED when GET returns object listing or known object retrieval. |

| Endpoint (API / wayback) | Extracted from JS regex / Wayback / Postman. | HTTP request returns non-404 (route exists). Then CONFIRMED when the endpoint's behavior is fingerprinted (auth posture, response shape, rate limits). |

| Credential / secret | Matches catalog regex in captured text. | Read-only validator (/me, auth.test, sts:GetCallerIdentity, /user) returns success. Then CONFIRMED with documented scope + account ID. |

| Person | Name extracted from a single source (LinkedIn / breach / GitHub commit). | Confirmed by a second source (Hunter.io role + LinkedIn profile, or two breach sources with same email). |

| Repo | Name match on org keyword in GitHub search. | Repo metadata shows confirmed org/email/website match. Then CONFIRMED when commit-history shows employee involvement. |

| Mobile app | Name match in app store. | Ownership-confidence score ≥70 (see companion skill §21). Then CONFIRMED when binary metadata (signing cert, package name, dev account) ties back to target. |

| Certificate | Returned by crt.sh once. | CT-log entry confirmed in ≥2 logs. Then CONFIRMED when serving on a discovered host. |

| SSO tenant | Discovery-endpoint returns OIDC metadata. | Tenant GUID extracted AND domain resolves through the tenant's expected MX / autodiscover / SP record. |

Default reporting posture: never claim CONFIRMED without explicit corroboration. When in doubt, downgrade. Operators trust under-claims more than over-claims.


3. Output Format Conventions

When you produce findings during an active session, structure each finding to match the schema below — it drops cleanly into asset-management tools.

Finding:
  id:           <stable hash or UUID>
  module:       <which technique discovered it; "manual" if hand-found>
  asset_key:    <typed key, e.g. sub:api.example.com or webapp:https://example.com/admin>
  category:     <e.g. SECRET_LEAK, MISSING_HSTS, OPEN_GRAPHQL_API, LEAKED_CRED, SSO_EXPOSURE>
  severity:     <info|low|medium|high|critical>
  confidence:   <tentative|firm|confirmed>
  title:        <one-line summary>
  description:  <2-5 sentences>
  evidence:
    url:        <where it was found>
    timestamp:  <UTC ISO8601>
    sha256:     <hash of any downloaded artifact>
    raw:        <truncated to 2 KiB>
  references:
    - <CVE-ID, advisory URL, vendor doc>
  remediation:  <action the asset owner can take>

Always use UTC timestamps. Local time creates correlation bugs across notes/screenshots/logs.


4. Source Hygiene & Citations

For every artifact you capture, record: URL + UTC timestamp + SHA-256 hash + tool version + run_id.

When citing a source in your output, prefer durable references (CVE, vendor advisory, ATT&CK technique ID, RFC) over ephemeral ones (a Twitter post, a forum thread). If the only source is ephemeral, archive it (archive.today, Wayback SavePageNow) before citing.


5. Do NOT (hard rules)


6. OpSec

6.1 Sock Puppets

A sock puppet is a fake account that cannot be linked to you. Build a posting history, age the account, use it from a separate browser profile.

Resources & techniques:

References:

6.2 Detectability & OpSec Tagging

Every probe leaves a footprint. Tag every operation in your notes with a detectability level so you can reason about the SIEM trail you're leaving on the target's side.

| Tag | Examples |

|---|---|

| Low | Passive Shodan InternetDB; CT-log queries (crt.sh); Wayback CDX; passive DNS (SecurityTrails); Hunter.io email enrichment; HTTP HEAD on public buckets; getuserrealm.srf; Microsoft OIDC metadata fetch. |

| Medium | Microsoft GetCredentialType user-enum; Okta /api/v1/authn user-enum; Postman API key validation; AWS sts:GetCallerIdentity (logs to CloudTrail); Slack auth.test; full-page screenshots; Swagger/GraphQL probes against a 28/13-path wordlist; targeted favicon-hash + JARM fingerprinting. |

| High | Active port scans (naabu / masscan / nmap); Nuclei full template runs against production; subdomain brute-force at scale; APK download from third-party mirrors; deep-mode user enumeration past N attempts per tenant; SMTP RCPT TO enumeration; web fuzzing (ffuf/gobuster). |

When working with a client, document the operations actually run and their detectability tag in the engagement report — clients appreciate knowing what their detection stack should have caught.

Defaults: passive by default. Active probes only when (a) explicitly authorized, (b) within agreed maintenance windows, and (c) with the operator's awareness of the resulting log volume.

6.3 Validator Discipline

When you discover a credential in the wild (a leaked API key, a sourcemap-exposed token, a hard-coded PMAK in a public Postman workspace), you may want to confirm it's live. Do this with read-only validators only.

Discipline:

Concrete validator endpoints (Postman, AWS, GitHub, Slack, Anthropic, OpenAI, npm, Atlassian, DataDog) live in the companion offensive-osint skill.

6.4 Detection-Aware Probing (signs of detection + back-off)

Your probes will eventually hit detection. Recognize the signs and back off before you trip an active response.

Signs you've been detected (in roughly increasing severity):

  1. Rate-limit responses — 429 Too Many Requests, Retry-After header set, X-RateLimit-Remaining: 0.
  2. Captcha interstitials — Cloudflare interstitial page, hCaptcha challenge, AWS WAF page.
  3. WAF page — explicit "Access denied" with provider branding (Cloudflare, Akamai, Imperva, F5 ASM, AWS WAF, Sucuri).
  4. Status code drift — endpoints that previously returned 200/401 now return 403 only from your IP.
  5. Banner change — server header shape or response timing changes consistently.
  6. DNS poisoning back to NXDOMAIN — target's authoritative servers stop resolving subdomains (probably their CDN took over).
  7. Honeypot bait — endpoints that look too good (/admin/db_dump.sql, exposed .env with credentials that don't validate). Real exposures rarely look this clean.
  8. Direct contact — your sock-puppet email gets a "we noticed unusual activity" message; or, in extreme cases, your IP gets a courtesy abuse-contact email.

Back-off ladder:

  1. Slow down. Halve your concurrency. Add 2–10s jitter between requests.
  2. Switch endpoints. Stop hitting the path that triggered. Move to a different module of the recon pipeline.
  3. Switch persona. New User-Agent (rotate among realistic browsers), new TLS fingerprint (different httpx/curl version).
  4. Switch IP. Rotate to a new egress (residential proxy, Tor for sensitive lookups, a different cloud region).
  5. Pause. Wait 1–24 hours. Many WAFs have rolling-window IP-based reputation; passive time often resets it.
  6. Document and consult. If you've hit (3) WAF, (4) status drift, or (8) direct contact, stop active probing and consult the engagement lead. Continued probing past these signals risks scope violation.

Persona / IP rotation rules:

Don't:


7. External Red-Team Recon Pipeline

A 5-stage pipeline for any authorized external assessment. Stages are sequential; modules within a stage can run concurrently.

Stage 1 — Seed Discovery

Establish the ground truth of who/what the target is.

Stage 2 — Asset Expansion

Discover everything that might belong to the target.

Stage 3 — Enrichment

Add depth to the discovered assets.

Stage 4 — Exposure Analysis

Convert assets into findings.

Stage 5 — Reporting

Make the work usable.

7.5 Pipeline Priority Order (highest signal density first)

When budget is constrained, work in this order:

  1. Breaches — infostealer logs (HudsonRock Cavalier free tier) + HIBP + DeHashed. Highest ROI for red teams; often gives valid plaintext creds for corp SSO. Requires emails as input.
  2. GitHub recon — code-search dorks. Finds AWS keys, Slack tokens, JWT secrets, .env files. Fastest path to cloud pivot.
  3. Nuclei misconfig sweep — exposed admin panels, CVEs with public POCs.
  4. Cloud buckets — permutate company name + subdomain stems. Listable bucket = CRITICAL.
  5. Ports — Shodan InternetDB first (free, keyless). VPN concentrators, RDP, Jenkins, GitLab-CE, Elasticsearch are the high-value pivot points.
  6. Email OSINT — feeds breaches; feeds phishing list.
  7. Web tech / WAF / screenshots — triage thousands of hosts; know the stack before probing.
  8. Wayback — archived JS often has hard-coded keys; archived endpoints reveal removed admin/dev paths.
  9. DNS deep + email security — SPF/DMARC gaps enable email spoofing; TXT verification tokens reveal SaaS tenancies.
  10. Certificates — CT-log timeline catches forgotten subdomains; weak ciphers = cheap findings.
  11. ASN + reverse DNS — corporate IP space hosts unadvertised infra.
  12. WHOIS — registrant PII reveals adjacent corp assets.
  13. Typosquat — actively-registered squats are findings; unregistered ones go on the phishing-domain shortlist.
  14. Security headers — low standalone value but required for client reports.

7.6 Time Budgeting & Engagement Profiles

Stage and asset count drive how long a recon takes. Rough estimates (single operator on a typical SaaS-style target):

| Stage | Small org (<100 employees) | Medium (100–1K) | Large (1K+) |

|---|---|---|---|

| 1. Seed discovery | 30 min | 30 min | 30 min |

| 2. Asset expansion | 1–2 h | 2–4 h | 4–8 h |

| 3. Enrichment (per 100 alive webapps) | ~1 h | ~1 h | ~1 h |

| 4. Exposure analysis | 1–3 h | 3–6 h | 6–12 h |

| 5. Reporting | 2–4 h | 4–8 h | 1–2 days |

Engagement profiles:

When to abort early:


8. Asset Graph Discipline

Treat every discovery as a typed asset in a graph, not a free-floating string.

8.1 Asset Taxonomy (29 types)

| Category | Asset Types |

|---|---|

| DNS / Network | domain, subdomain, ip, netblock, asn |

| Service | port, service, certificate |

| Identity | email, person, credential |

| Code / Config | repo, secret |

| Cloud / Storage | bucket, firebase_project |

| Web | webapp, wayback_endpoint, api_endpoint, api_spec, graphql_schema |

| Mobile | mobile_app, deep_link, exported_component |

| Phishing / Adversarial | typosquat_domain |

| Collaboration / SaaS | postman_collection, postman_workspace, postman_api_key, stack_post, saas_public_surface |

8.2 Asset Schema

Every asset carries:

8.3 Edge Taxonomy

Relationships are typed edges, not text:

RESOLVES_TO, HOSTED_ON, IN_NETBLOCK, BELONGS_TO_ASN, LISTED_IN_CERT, OWNED_BY, ALIAS_OF, BREACHED_FROM, EMPLOYED_BY, HOSTS_REPO, TYPOSQUAT_OF, EXPOSES, DOCUMENTED_BY, BELONGS_TO_HOST, REQUIRES_AUTH, LEAKS_SCHEMA, SHIPPED_BY_ORG, CONTAINS_SECRET, TALKS_TO_HOST, EXPOSES_DEEPLINK, HAS_EXPORTED_COMPONENT, USES_FIREBASE_PROJECT, LACKS_PINNING_FOR.

8.4 Discipline rules

8.5 Asset-Level Triage Rules

When you have a mixed bag of assets and limited probe budget, prioritize by what each asset enables:

WebApp priority by hostname signal (highest first):

  1. Auth-related hostnames (auth., login., sso., idp., accounts., oauth.).
  2. Admin paths (/admin, /dashboard, /console, /manager, /wp-admin, /phpmyadmin).
  3. Dev/staging hosts (dev., staging., stg., qa., uat., test., sandbox., preprod., preview.) — lower defenses, often dump prod data.
  4. API hostnames (api., services., gateway., graph.).
  5. Customer-facing hostnames (portal., app., my., account.).
  6. Marketing / content (www., blog., news., careers., support.).

Subdomain priority by inferred function:

IP priority by netblock:

Email priority by role hint:

| Role indicator | Priority | Why |

|---|---|---|

| ceo@, cfo@, cto@, ciso@ | HIGHEST | Exec accounts have highest breach value (BEC, finance authority, board access). |

| it@, helpdesk@, support@, security@ | HIGH | IT/security accounts have privileged tool access; helpdesk accounts handle reset workflows. |

| dev, engineer, architect, dba | MEDIUM | Developer accounts often have GitHub / cloud / CI access. |

| sales, marketing, hr, finance | MEDIUM | SaaS access (Salesforce, HubSpot, Workday); finance enables BEC. |

| Generic role accounts (info@, noreply@, contact@) | LOW | Often unmonitored or alias forwarded; less personal context. |

Repo priority by recency + naming:

Application order: when you have N assets and budget for M probes (M < N), apply asset-type priority first, then within-type priority. E.g.: 50 subdomains → probe API + admin + dev first (~15), then auth + prod-app (~20), defer marketing/content to a later pass.


9. Findings Rubric & Severity Mapping

Severity is operational, not subjective. Use these anchors:

9.1 CRITICAL

Pre-auth code execution, confirmed valid credentials, listable production data, fundamental trust violations.

Examples:

9.2 HIGH

Significant exposure but not yet RCE; clear path to escalation; high-value information disclosure.

Examples:

9.3 MEDIUM

Information disclosure, hardening gaps, brute-force exposure.

Examples:

9.4 LOW

Cosmetic or marginal hardening gaps.

Examples:

9.5 INFO

Worth recording, no action required immediately.

Examples:

9.6 Severity escalation rules


10. Bug-Bounty / Red-Team Pivot Modes

Existing investigative work (threat-actor research, doxxing investigations, attribution) operates under different posture than offensive recon. Switch posture explicitly.

| Aspect | Investigative Mode | Offensive Recon Mode |

|---|---|---|

| Probing rate | Slow, single-threaded, blend with normal traffic. | Bursts, parallel, but rate-limited per provider. |

| OpSec posture | Sock-puppet only, never reveal investigator. | Persona may be the engagement persona; team may notify SOC. |

| Evidence handling | Court-grade chain of custody; hashes, timestamps, screenshots. | Engagement-grade; same hashing/timestamp discipline but evidence is for the client report. |

| Severity in scope | All severity levels relevant for context. | CRIT/HIGH/MED matter; LOW/INFO often dropped from exec summary. |

| Authorization posture | Public-record / OSINT-only; no probing private resources without authorization. | Written rules of engagement; explicit scope; explicit out-of-scope list. |

| Reporting format | Narrative + sourced timeline. | Per-asset findings + remediation + reproduction steps. |

| Stop conditions | When the question is answered. | When the engagement window closes OR when the report is delivered. |

When you're working with the user, ask which mode they're in if it's unclear from context.

10.1 Scale-Based Tactics

Org size shapes which techniques pay off.

Small org (< 100 employees):

Medium org (100–1K):

Large org (1K–10K):

Very large org (10K+) or conglomerate:

Cross-scale principle: the smaller the org, the more individual-account focus pays off. The larger the org, the more systemic posture findings (DMARC gaps, SSO_EXPOSURE breadth, vendor-product version sweeps) pay off.


11. Identity Fabric Mapping

An organization's IdP/SSO posture is a high-value target: compromise the identity fabric and you don't need to break into individual apps. Map it methodically.

11.1 Subdomain prefix enumeration

Probe these prefixes against the target's root domain (and any sibling brand domains discovered):

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

Plus generic OIDC discovery on every alive subdomain:

{any-host}/.well-known/openid-configuration

11.2 Microsoft Entra (Azure AD)

11.3 Okta

11.4 ADFS

11.5 Google Workspace

11.6 Generic OIDC (Keycloak / Auth0 / Ping / OneLogin / Duo)

11.7 SAML metadata

Probe these paths on every alive webapp:

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

SAML metadata XML contains: EntityID, signing certs, SingleSignOnService URL, NameIDFormat.

11.8 AWS account-ID extraction

11.9 Output

Each discovered IdP becomes a Service asset with attrs.product, attrs.tenant_id, attrs.discovery_endpoint. Then in Stage 4, correlate with breach data: every compromised user under a discovered tenant becomes an SSO_EXPOSURE finding (CRITICAL — see §22.3).

11.10 Microsoft 365 Deep Surface

Beyond plain Entra fingerprinting, M365 exposes a wider attack surface that's worth enumerating in depth.

Teams Federation:

SharePoint subdomains:

OneDrive personal site enumeration:

M365 OAuth client_id discovery:

Power Platform / Power Apps:

M365 OAuth misconfig findings to look for:

Detectability: all M365 endpoint probes log to Entra sign-in logs / audit logs (medium-low for fetch-only; medium for any auth attempt).


12. API & Auth-Map Methodology

Modern targets expose REST, GraphQL, and undocumented internal APIs. The OSINT goal is to enumerate them, classify them, and rank by attack interest.

12.1 Discovery paths

12.2 Classification

For each endpoint, capture:

url, method, source[], auth_required, auth_type, auth_location,
rate_limited, cors_policy, sensitive_path_keywords[], schema_leaks,
verb_tampering_possible, interest_score (0..100), interest_reasons[]

How to determine each field:

12.3 Interest score (0–100)

See companion skill §20 for the full rubric. Score ≥ 70 → HIGH/CRITICAL finding with attack_path_hint in evidence.

12.4 Attack-path hints

When emitting a HIGH/CRITICAL finding, include a one-sentence attack-path hint in the evidence so the operator knows where to start exploiting. Templates in companion skill §39.


13. JavaScript Deep Analysis

For every alive webapp, scrape its JS — it's where modern frontends leak.

13.1 Script discovery

13.2 Sourcemap detection (HIGH info disclosure)

13.3 Secret scanning

Run the 29+-pattern catalog (companion skill §17) over every JS body and every parsed sourcesContent[] blob. Each hit = SECRET_LEAK finding with the catalog's per-pattern severity.

13.4 Endpoint extraction

Three regex tiers (companion skill §16.10). Each unique endpoint becomes a wayback_endpoint asset and feeds into the API classifier in §12.

13.5 Internal-host leakage detection

Three patterns (companion skill §16.11): RFC1918, internal DNS suffixes, K8s service DNS. Each match = MEDIUM INFO_DISCLOSURE.

13.6 GraphQL introspection probe

When an extracted endpoint ends in /graphql or /graphiql, POST the standard introspection query. If schema returns → HIGH MISCONFIG. Then enumerate mutations and subscriptions for high-value targets.

13.7 Next.js manifest parsing

_buildManifest.js and _ssgManifest.js enumerate every Next.js page route — exposes the application's full route structure.

13.8 Budget guidelines


14. Mobile Attack Surface

Mobile apps are often the weakest link.

14.1 App discovery

14.2 Ownership confidence (0–100)

See companion skill §21. Threshold: ≥70 for deep analysis.

14.3 APK acquisition + static analysis

14.4 Secret scanning

Run the catalog over manifest, resources, asset files, dex string-extract output.

14.5 Backend hostname extraction

Every discovered hostname becomes a subdomain asset. Write sidecar mobile_endpoints.json for the API discovery module to consume.

14.6 Manifest misconfig findings

| Manifest attribute | Severity |

|---|---|

| android:debuggable="true" | CRITICAL |

| android:allowBackup="true" (without whitelist) | MEDIUM |

| android:usesCleartextTraffic="true" | MEDIUM |

| Exported activity/service/receiver without android:permission | MEDIUM |

| Sensitive deep-link handler | HIGH |

| WebView with setJavaScriptEnabled(true) + addJavascriptInterface(...) | HIGH |

| Certificate pinning absent | LOW |

14.7 Firebase canonical probe

For every Firebase project ID extracted:

14.8 iOS path


15. Cloud Attack Surface

15.1 Bucket permutation

Build candidate bucket names from: target's root domain, subdomain stems, optional brand/company name. Filter generic stems unless combined with target-identifying tokens. Apply 6 prefixes × 15 suffixes (companion skill §16.8 has the lists).

15.2 Provider URL templates

S3, GCS, Azure Blob templates — see companion skill §16.8.

15.3 Probe technique

15.4 Severity mapping

| Outcome | Severity |

|---|---|

| Bucket listable | CRITICAL |

| Bucket exists, objects readable by direct URL but not listable | HIGH |

| Bucket exists, ACL private | INFO |

15.5 Adjacent cloud signals

Extract AWS account-ID from S3 region/error responses. GCP project ID from GCS error responses. Azure tenant ID from blob URL patterns.


16. Cryptocurrency Investigation

16.1 Transaction Analysis

Tools: Cielo (multi-chain), TRM (graphs), Arkham (multichain + entity labels), MetaSleuth (visual), Range (CCTP), Socketscan (EVM bridge), Pulsy (bridge aggregator), Chainalysis Horizon 2.0 (paid), Elliptic Lens.

16.2 Layer 2 / Rollup Analysis

Methodology: start with L1 bridge events; use L2 explorers for in-rollup activity; for privacy protocols focus on timing analysis and clustering.

16.3 Cautions

16.4 Wallet / Exchange / NFT Profiling

Same patterns: age + activity + connections + balance over time + linked accounts. NFTs add ownership history + metadata + connected wallets.


17. Image Analysis

17.1 Reverse Image Search

17.2 Metadata (EXIF)

ExifTool, Jeffrey's Image Metadata Viewer, EXIF Viewer Pro.

17.3 Image Forensics

Forensically, FotoForensics, Bellingcat Photo Checker, Sensity AI, Exposing.ai, Adobe Content Credentials Verify, c2patool. Techniques: ELA, metadata, clone detection, noise analysis.

17.4 Geolocation Workflow

17.5 Specialized


18. Video Analysis

18.1 Context extraction

Signs/banners, architecture, road markings, license plates, clothing, cross-platform snippet search.

18.2 Metadata

YouTube Data Viewer (Amnesty), ExifTool on downloaded files.

18.3 Platform-specific

18.4 Auditory clues

Languages, dialects, background noises (train horns, prayer calls, wildlife). Tools: Audacity, Sonic Visualiser, SoundCMD. Spectrograms for unique patterns; Shazam/SoundHound for music.

18.5 Frame extraction

FFmpeg, VLC. Stitch panoramas; stabilize panning footage (FFmpeg deshake or Blender VSE). Prefer original uploads over re-encodes.


19. Chronolocation and Time Analysis

19.1 Shadow Analysis

Tools: SunCalc, ShadeMap, Bellingcat Shadow-Finder, NOAA Solar Calculator.

19.2 Astronomical Calculations

Stellarium, SkyMap, MoonCalc to simulate sky at different times/locations.

19.3 Satellite Imagery Time

Google Earth Pro (historical imagery slider), Sentinel Hub EO Browser (Sentinel + Landsat with timelapse). Record coordinates in WKT; hash cached tilesets.


20. Threat Actor Investigation

20.1 Actor-Centric Workflow

20.2 Attribution Discipline

20.3 Russia-Specific Pivots

20.4 China-Specific Pivots

20.5 Infrastructure & Internet Measurement


21. People & Social Media Investigation

21.1 Username Enumeration

WhatsMyName, NameCheckup, Sherlock, Maigret.

21.2 Profile Picture & Face Search

PimEyes, Exposing.ai, Azure Face API (compliance).

21.3 Social Graph & Content Analysis

Maltego, snscrape, SocialBlade. Bluesky / Mastodon: instance explorers + handle resolvers.


22. Breach × Identity Correlation

This is the highest-ROI single technique for external red teams. Execute it on every engagement.

22.1 Source stack

| Source | Tier | Notes |

|---|---|---|

| Hudson Rock Cavalier | FREE | Infostealer-log corpus; very high signal for corp SSO. |

| Have I Been Pwned | Free + paid | Domain-wide existence + Pwned Passwords (k-anonymity). |

| DeHashed | Paid | Searchable per-record API. |

| IntelX | Free + paid | Aggregator; phonebook search. |

| Local breach corpus | Operator-supplied | Whatever's on disk. |

22.2 Domain-level severity

| Stat | Severity |

|---|---|

| ≥10 employees compromised | CRITICAL |

| 1–9 employees compromised | HIGH |

| ≥1 end-user (non-employee) compromised | MEDIUM |

| Domain seen in breach with 0 named accounts | INFO |

22.3 SSO_EXPOSURE correlation

After Stage 3 has run identity-fabric mapping AND breach lookups have completed: for every discovered IdP tenant, intersect with breach corpus on the tenant's domain. Non-empty intersection → SSO_EXPOSURE finding, severity CRITICAL. Evidence: tenant ID + product + employee count + per-account source attribution.

22.4 Operational handling of stealer logs


23. Infrastructure OSINT

23.1 IP & Domain Discovery

Shodan, Censys, Onyphe, DNSDB.

23.2 Certificate & Passive DNS

crt.sh, SecurityTrails.

23.3 Malware & Artifact Analysis Workflow

23.4 Telegram / WeChat Investigation


24. Automation & Case Management

24.1 Tools

Hunchly, Kasm Workspaces, ArchiveBox, SingleFileZ.

24.2 Cross-Module Coordination Patterns

When multiple OSINT tools (or modules) run, late-arriving outputs need to feed into earlier-running consumers. Three patterns:

  1. Sidecar JSON drops — module writes <scan>/mobile_endpoints.json or <scan>/secrets_sidecar.json; later modules read on start. No blocking.
  2. Asset-graph upserts — shared graph store; new assets trigger downstream modules via event bus.
  3. Late-binding queues — long-running enumeration emits assets continuously; enrichment workers pull.

In ad-hoc engagement: tmpdir + JSON sidecars + one-line manifest makes operations composable.

24.3 Multi-Engine Corpus Run Methodology

Running a large dork corpus across multiple engines:

24.4 Evidence Preservation for Offensive Engagements


25. Synthetic Media Verification

Sensity AI, Hive Moderation, Reality Defender, Adobe Content Credentials Verify, CarNet (AI car-model identification for geolocation aid).


26. Anti-Patterns & Common Failure Modes

A non-exhaustive list of mistakes that come up often.


27. WAF / CDN Bypass & Origin Discovery

Web targets are increasingly behind Cloudflare / Akamai / Fastly / AWS CloudFront. The CDN itself is hard to attack; the origin server is often softly defended. Six techniques to find it.

27.1 DNS history pivot

The target's domain may have pointed directly at the origin IP before the CDN was deployed. Query historical passive DNS:

What to look for: an IP that resolved 1–5 years ago and is not in the current CDN's published IP ranges (Cloudflare / Akamai / etc.). Cross-check the IP's current banner — if it serves the same site without the CDN, you've got the origin.

27.2 Certificate SAN pivot

Certificates often get re-issued with the same SAN list across origin and CDN. Search CT logs:

27.3 Favicon hash + JARM origin clustering

If the target has a unique favicon, the origin server still serves it (CDNs proxy but don't strip the favicon). Compute the favicon's mmh3 hash and search:

Returned IPs that are not in CDN ranges are origin candidates.

JARM (TLS handshake hash) works similarly: compute the target's JARM via jarm, search Shodan ssl.jarm:<jarm-hash>. Origin servers usually have a different JARM than CDNs.

27.4 Direct IP probe with Host header

If you have an origin candidate IP from steps 27.1–27.3:

curl -sk -H "Host: target.example.com" https://<candidate-IP>/

If the response matches the public site (same title, same body fingerprint) — you've found the origin. CDN-only IPs return generic CDN error pages or 403 to wrong Host.

27.5 mail.* / ftp.* / cpanel.* exception

Targets often forget to put auxiliary subdomains behind the CDN:

Probe each. If any resolves to a non-CDN IP, that IP often hosts the prod origin too.

27.6 Error page / misconfig leakage

When the CDN throws an error (request triggers WAF, origin is down, configuration mismatch), it sometimes leaks the origin IP in the error body:

27.7 Email-header bounce trick (for email-server origin)

Send an email to a non-existent address at the target. The bounce often reveals origin mail server IPs in the Received: headers — these mail servers are sometimes on the same IP / netblock as the web origin. (Use a sock-puppet email; never your real engagement persona.)

27.8 Confidence rules

When unsure, document the hypothesis in the asset attrs — don't claim origin discovery without ≥2 corroborating signals.


28. Vulnerability Prioritization (CVE / EPSS / KEV)

A Nuclei scan can return 100+ CVEs against a target. You can't validate all of them. Prioritize by exploitability.

28.1 Data sources (companion skill §29.2 has the URLs)

28.2 Prioritization rubric

For each CVE in your list, score:

| Signal | Weight |

|---|---|

| Listed in CISA KEV | +50 (proven exploited; treat as immediate) |

| EPSS score ≥ 0.7 | +30 |

| EPSS score 0.3–0.69 | +15 |

| Public Metasploit module exists | +25 |

| Public POC on ExploitDB / GitHub | +15 |

| Vendor-issued advisory + patch | +10 (means the vuln is real and patchable; not always exploitable) |

| Auth-required vs unauth-required | unauth +20, post-auth +0 |

| Network-vector (network) vs adjacent / local | network +15, adjacent +5, local +0 |

| CVSS v3 base ≥ 9.0 | +15 |

Total score → priority tier:

| Score | Tier | Action |

|---|---|---|

| ≥ 100 | P0 | Immediate validation; surface in engagement summary now. |

| 70–99 | P1 | Validate this engagement; include in technical report. |

| 40–69 | P2 | Mention in technical report; validate if time permits. |

| < 40 | P3 | List in appendix; no validation expected. |

28.3 Validation discipline

28.4 Handle CVE-less findings

Many real-world findings (sourcemap exposure, open GraphQL introspection, public bucket) don't have a CVE. Score them by their independent interest score (companion skill §20 for endpoints; §40 for severity-mapping examples). Don't gate on CVE availability.


29. Phishing Infrastructure & Pretext Development

Authorized red team engagements often include phishing. The OSINT side of phishing — building the phishing-feasibility shortlist and the pretext list — is in scope here. Crafting actual phishing payloads is out of scope (operational tradecraft, separate domain).

29.1 Phishing-feasibility shortlist

For an authorized engagement, the operator typically wants three lists:

A. Already-registered typosquats — these are findings (someone is squatting; client should know).

B. Available-for-registration typosquats — these are the operator's phishing-domain shortlist for the engagement.

C. Cert-SAN impersonation patterns — domains the operator could register that would make convincing certs (e.g., acme-secure.com, acme-login.com, acme-vpn-portal.com).

Generation pattern:

  1. Run dnstwist (or equivalent) on the target's primary domain → get all variations (homoglyph, typosquatting, bit-flip, hyphenation, addition).
  2. Check WHOIS for each: registered = list A, unregistered = list B.
  3. For list C: combine target stem + plausible service words (secure, login, vpn, portal, mail, helpdesk, it, account, verify, support, password, auth, sso).

29.2 Subdomain takeover for trusted-domain phishing

If you found a takeover-able subdomain (companion skill §16.12), you can host phishing content on a subdomain of the actual target. This bypasses every brand-impersonation defense the user has.

Procedure:

  1. Confirm takeover signature on the candidate (<sub>.target.com CNAMEd to unclaimed <x>.herokuapp.com).
  2. Register the unclaimed resource (<x>.herokuapp.com on Heroku).
  3. Now <sub>.target.com serves your content.
  4. Stop and consult the engagement lead before going live with phishing content. Even in authorized engagements, the takeover step itself may need explicit client sign-off.

29.3 Email spoof feasibility

Use email security analysis (companion skill §16.14) to determine spoof feasibility:

| SPF policy | DMARC policy | Spoof feasibility |

|---|---|---|

| ~all (softfail) or absent | p=none or absent | HIGH — direct spoof of <anything>@<target> likely lands. |

| ~all | p=quarantine | MEDIUM — lands in spam folder, but lands. |

| -all (hardfail) | p=quarantine | LOW — most providers reject; some still deliver to spam. |

| -all | p=reject | VERY LOW — spoof rejected by major providers. Requires lookalike domain. |

If spoof is hard, fall back to lookalike (list B) or compromised-third-party (different engagement). Document the postural finding regardless.

29.4 Pretext development from OSINT

Pretexts work when they tap a target's existing context. Build pretexts from harvested OSINT.

Pretext sources:

Per-role pretext templates (the ones operators use most):

29.5 Operational discipline for phishing infrastructure


30. Bug Bounty Submission & Responsible Disclosure

When you find an issue on a bug-bounty target (HackerOne, Bugcrowd, Intigriti, YesWeHack) or on a non-program target where you choose to disclose responsibly.

30.1 Platform-specific basics

| Platform | URL | Notes |

|---|---|---|

| HackerOne | hackerone.com | Largest; strong scope-tracking; CVSS-based reward calc. |

| Bugcrowd | bugcrowd.com | VRT (Vulnerability Rating Taxonomy) instead of CVSS for severity. |

| Intigriti | intigriti.com | EU-strong; flexible scope models. |

| YesWeHack | yeswehack.com | EU-headquartered; growing. |

| HackenProof | hackenproof.com | Crypto/blockchain-focused programs. |

| Open Bug Bounty | openbugbounty.org | Free for sites without official programs (only XSS/SSRF disclosure). |

| security.txt | rfc9116 | Universal: every site should publish /.well-known/security.txt. |

30.2 Report structure (works on any platform)

Title: [Severity] [Affected component] Brief description
   Example: [HIGH] [api.acme.com] Unauthenticated SSRF via /v1/proxy

Summary
   2-3 sentences explaining what was found and why it matters.

Steps to Reproduce
   1. Numbered, copy-pasteable.
   2. Include exact URLs, payloads, expected vs actual response.
   3. Reproduce the issue from a fresh state where possible.

Proof of Concept
   - Screenshot showing the vulnerability triggered.
   - HTTP request/response (sanitize sensitive data; redact other users' data).
   - Or short video/GIF for complex multi-step issues.

Impact
   Quantify: what data is at risk, how many users, what business functions break.
   Tie to the program's impact criteria where defined.

Severity (per program criteria)
   - CVSS v3 vector: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
   - Score: 9.8 (Critical)
   - Justification: <1-2 sentence reasoning>

Remediation
   - Concrete recommendation. "Validate the URL parameter against an allowlist before fetching."
   - If a quick fix: WAF rule, header check.
   - If a structural fix: refactor recommendation.

Affected component
   - URL: https://api.acme.com/v1/proxy
   - Date discovered: 2026-04-27 14:23 UTC
   - Method: HTTP GET / POST / etc.

30.3 Severity inference per program

30.4 Disclosure for unprogrammed targets (CVD)

If the target has no bug bounty program but you found a real vulnerability during authorized testing (e.g., a customer's external assessment surfacing a third-party vendor's bug):

  1. Check for <target>/.well-known/security.txt — if present, follow its Contact: and Encryption: (PGP) instructions.
  2. If absent, try security@<target> then abuse@<target>.
  3. If those bounce, escalate via the registered abuse contact in WHOIS.
  4. CERT/CC (cert.org) and national CERTs (CISA, CERT-EU, JPCERT) for coordination if vendor unresponsive.
  5. Standard 90-day disclosure window before public release (Project Zero norm).

30.5 Cloud provider / SaaS-specific channels

30.6 Things to avoid in reports


31. Client Deliverable Templates

Operator-facing artifacts (asset graph, JSONL log, finding DB) are not the same as client-facing artifacts (exec summary, technical report). Build deliverables intentionally.

31.1 Executive summary template

ENGAGEMENT: <Client Name>
ASSESSMENT TYPE: External Attack Surface Assessment
ENGAGEMENT WINDOW: <start date> – <end date>
SCOPE: <one-line scope description, e.g., "All internet-facing assets of acme.com and its 3 brand domains">
LEAD: <your name / team>

----- KEY FINDINGS -----

1. [CRITICAL] <One-line title>
   Business impact: <one sentence in business language>
   Estimated remediation effort: <hours / days / weeks>
   Recommended action: <verb + object, e.g., "Rotate the exposed AWS access key and audit CloudTrail">

2. [CRITICAL] <One-line title>
   …

3. [HIGH] <One-line title>
   …

(Top 3-5 findings only; full list in technical report)

----- POSTURAL OBSERVATIONS -----

- Email security (SPF/DMARC): <2-3 sentences on posture, e.g., "DMARC is set to p=none, allowing spoof of <target>.com email; tightening to p=reject would block external spoofing.">
- Identity fabric (SSO): <2-3 sentences>
- Cloud surface (S3/GCS/Azure): <2-3 sentences>
- Mobile attack surface: <2-3 sentences if applicable>

----- AGGREGATE METRICS -----

- Assets discovered: <N> (<breakdown>)
- Findings: <N CRIT, M HIGH, P MED, Q LOW, R INFO>
- Live credentials confirmed: <N>
- Detectability of our operations: <90% low / 8% medium / 2% high>

----- RECOMMENDED NEXT STEPS -----

1. Address P0 findings in next 7 days.
2. Address P1 findings in next 30 days.
3. Schedule re-test for: <date>.
4. Consider follow-on assessments: <if applicable, e.g., authenticated app testing, internal pentest>.

31.2 Per-finding report card template

Each finding in the technical report uses this card:

═══════════════════════════════════════════════════════════
FINDING #<N>: <Title>
SEVERITY: <CRIT / HIGH / MED / LOW / INFO>
CONFIDENCE: <CONFIRMED / FIRM / TENTATIVE>
ASSET: <typed asset key>
DISCOVERED: <UTC timestamp>
═══════════════════════════════════════════════════════════

DESCRIPTION
  <2-5 sentence technical explanation>

EVIDENCE
  - URL: <where it was found>
  - Tool: <how it was discovered>
  - Screenshot: <attachment ref>
  - Raw HTTP: <sanitized capture>
  - Hash (SHA-256): <of any downloaded artifact>

REPRODUCTION
  Step 1: <command or action>
    Expected: <output>
  Step 2: …

IMPACT
  <Business-language impact statement>
  Affected systems: <list>
  Affected user populations: <if applicable>

REMEDIATION
  Immediate (within hours):
    - <action>
  Short-term (within days):
    - <action>
  Long-term (within weeks):
    - <action>

REFERENCES
  - <CVE-ID, advisory URL, OWASP top-10 link, vendor doc>

ATTACK PATH HINT
  <If applicable, the one-sentence hint from companion skill §39>

31.3 Risk translation matrix

Engineers think in CVSS. Executives think in business outcomes. Translate.

| Technical finding | Business-language impact |

|---|---|

| Listable S3 bucket with PII | "Customer records publicly downloadable. Potential GDPR/CCPA notification trigger if accessed. Estimated cost of disclosure: 30-day notification + credit monitoring + legal review." |

| Exposed .env with DB credentials | "Database access to all customer data. Pivots to backups, billing systems, employee PII. If exploited: full data breach scope." |

| Live AWS access key with admin scope | "Full cloud account compromise. Attacker can spin up cryptominers, exfiltrate all data, lateral-move to connected accounts. If exploited: 6-figure cloud bill + complete environment rebuild." |

| Open GraphQL introspection on prod | "API attack surface fully mapped by attackers. Enables more precise follow-on attacks; not directly exploitable but attacker reconnaissance is now zero-effort." |

| Subdomain takeover possible | "Attackers can host content under your trusted domain. Phishing emails from this domain bypass brand-impersonation defenses; users will trust them." |

| Open Firebase Realtime Database | "Mobile app's backend database is publicly readable. All user data, possibly writable. If exploited: full data breach + potential service disruption." |

| Missing HSTS on /login | "Login pages can be downgraded to HTTP via active network attacks. Credentials potentially captured by anyone with network access (coffee shop, conference WiFi)." |

| DMARC p=none | "Anyone on the internet can send email appearing to be from your domain. Phishing campaigns become trivially convincing for both customers and employees." |

| ≥10 employees in breach corpus | "Stolen credentials for your staff are circulating; attackers can attempt these against your SSO. Even if SSO has MFA, password reuse against other services puts those at risk." |

| android:debuggable=true | "Mobile app can be reverse-engineered and modified by anyone. Trust boundary between app and server is undermined; backend assumes app integrity that doesn't exist." |

| Vendor product (Citrix/F5/Pulse) version with KEV CVE | "Network appliance has a known-exploited vulnerability. Attackers are actively scanning the internet for this exact issue. Patch immediately." |

31.4 Reporting cadence for engagements > 1 day

31.5 Reproduction package contents

Deliver alongside the report:

<engagement-id>-reproduction-package.zip
├── README.md                    # how to use the package
├── engagement-metadata.json     # client, dates, scope, lead
├── tools-used.txt               # tool name + version, one per line
├── run-log.jsonl                # every event during engagement
├── assets.db                    # SQLite of all discovered assets
├── findings.db                  # SQLite of all findings
├── evidence/
│   ├── screenshots/             # PNG, named by finding-id
│   ├── http/                    # raw HTTP captures (sanitized)
│   ├── downloads/               # any binary artifacts (with .sha256 alongside)
│   └── code/                    # any extracted source (sanitized)
├── re-test-script.sh            # reruns probes for the CRIT/HIGH findings
└── disclosure/                  # if applicable: bounty submissions, vendor notifications

The package is the source of truth — the report is the human-readable view. Anyone with the package can reproduce the engagement and verify findings.


32. Skill Self-Test

Drop these prompts into a fresh Claude session to verify the skill loads and behaves correctly. Pass criteria: expected sections referenced, no hallucinated content, scope-check invoked when needed.

  1. "I'm doing external recon on acme.com (in-scope bug bounty). Where do I start?" → §0, §1, §7, §7.5, §11.
  2. "How do I tell if a target uses Entra, Okta, or ADFS without active probing?" → §11.2-11.4 + companion skill §22.
  3. "What should I look for when I scrape JS bundles?" → §13.
  4. "What's the workflow for finding and analyzing a target's Android apps?" → §14.
  5. "How do I generate good cloud bucket candidates without spamming the entire internet?" → §15.
  6. "We've harvested 200 emails for the target and confirmed the org uses Entra. Highest-ROI next step?" → §22.
  7. "I found a live AWS access key in a public GitHub repo. Should I check if it works?" → §6.3 + companion skill §23.2.
  8. "Our team just acquired a 4GB stealer-log dump. How do we handle it?" → §22.4.
  9. "I found three indicators that look like APT28 — does that confirm it?" → §20.2 + §2.
  10. "Investigating a Russian cybercrime actor. What corporate/people pivots?" → §20.3.
  11. "How do I link a .cn domain to its operating company?" → §20.4 + companion skill §14.2.
  12. "List the most common mistakes red teamers make during external recon." → §26.
  13. "Run a full subdomain enum on chase.com." → §1 (scope check; should NOT run).
  14. "My subdomain marked TENTATIVE — how to upgrade?" → §2.1.
  15. "How long should a 1-week recon engagement take across the 5 stages?" → §7.6.
  16. "50 subdomains, 12 webapps, 4 IPs, 23 emails — triage order?" → §8.5 + §7.5.
  17. "Probing a 50-employee SaaS company with M365 + GitHub + AWS. Where to focus?" → §10.1 + §11.10 + §22.
  18. "Target is fully behind Cloudflare. How do I find the origin?" → §27.
  19. "100 CVEs from a Nuclei scan. How do I prioritize?" → §28.
  20. "My probes are getting 429s and a Cloudflare interstitial. What now?" → §6.4.
  21. "Authorized engagement asks for phishing-feasibility shortlist. Walk me through it." → §29.
  22. "Found unauth POST endpoint on a HackerOne target. Write me the report." → §30.2.
  23. "Write the executive summary for an engagement that found 2 CRIT, 5 HIGH, 12 MED." → §31.1 + §31.3.

33. Changelog


Related Skills & Chains

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.