# uphiago/recon-skills architecture

> Architecture diagram of the GitHub repository uphiago/recon-skills, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/uphiago/recon-skills
- Repository: https://github.com/uphiago/recon-skills

## Overview

#### Purpose and Consumption Model
This is a versioned, documentation-first security assessment skill pack, not an application service. Operators or automation load focused `SKILL.md` playbooks based on discovered target signals; commands generally persist artifacts under `OUTPUT_DIR`. Repository orientation and operating constraints are defined in `README.md`, `AGENTS.md`, and `STYLE.md`.

#### Entry Points and Orchestration
Broad assessments begin with planning and surface discovery, then branch into targeted validation:
- End-to-end recon gates: `meta/recon-playbook/SKILL.md`
- Broad web and bounty workflows: `redteam/web2-recon/SKILL.md`, `redteam/bb-methodology/SKILL.md`
- Asset discovery: `recon/subdomain-enumeration/SKILL.md`, `recon/web-enumeration/SKILL.md`
- Cross-skill sequencing is guidance rather than executable orchestration.

#### Discovery and Recon Stage
`recon/` contains modular collection and classification playbooks for DNS/subdomains, ports/services, HTTP routes, technology fingerprints, JS, exposed source, and cloud-facing surfaces. These modules consume target scope and prior artifacts, then produce signals that select later skills. Representative boundaries: `recon/port-service-discovery/SKILL.md`, `recon/js-secrets-extraction/SKILL.md`, `recon/asn-infrastructure-mapping/SKILL.md`.

#### Targeted Validation Stage
`redteam/hunt-*` is the main vulnerability-validation catalog, organized by vulnerability class, framework, API style, identity system, and infrastructure platform. It should be invoked only after relevant discovery evidence, separating broad enumeration from focused exploit verification. Examples: `redteam/hunt-ssrf/SKILL.md`, `redteam/hunt-oauth/SKILL.md`, `redteam/hunt-k8s/SKILL.md`.

#### Identity, Infrastructure, and Specialized Paths
Dedicated domains address high-impact boundaries outside generic web testing:
- Authentication and SSO: `auth/saml-sso-attack/SKILL.md`, `redteam/okta-attack/SKILL.md`
- Infrastructure/container escalation: `infra/docker-privesc/SKILL.md`
- API, cloud, and SaaS exposure: `recon/api-noauth-hunt/SKILL.md`, `recon/firebase-supabase-attack/SKILL.md`
These playbooks interact with authorized external targets and may depend on credentials, network access, proxies, browsers, or platform-specific tooling; responsibility remains with the operator.

#### Evidence, Chains, and Reporting
Validated findings feed evidence capture, attack-path construction, and deliverables. `chains/` defines multi-step compromise narratives, while red-team skills govern validation and communication: `chains/cross-attack-chains/SKILL.md`, `redteam/triage-validation/SKILL.md`, `redteam/evidence-hygiene/SKILL.md`, and `redteam/report-writing/SKILL.md`. Reference documents provide reusable templates and domain knowledge, e.g. `chains/cross-attack-chains/references/exploit-chains-template.md`.

#### Executable Utilities and Quality Boundary
Most repository content is Markdown; a small Python utility layer supports repeatable probes/scans, including `recon/js-secrets-extraction/scripts/scan_js.py`, `redteam/offensive-osint/scripts/secret_scan.py`, and `meta/sector-recon-methodology/scripts/parallel_sector_probe.py`. Catalog integrity is enforced by the primary CI/runtime entry point `scripts/validate_skills.py`, invoked in `.github/workflows/validate.yml`; it checks structural requirements while style debt remains warning-level.

Main entry points: [`recon/port-service-discovery/SKILL.md`](https://github.com/uphiago/recon-skills/blob/main/recon/port-service-discovery/SKILL.md) (Recon modules), [`redteam/triage-validation/SKILL.md`](https://github.com/uphiago/recon-skills/blob/main/redteam/triage-validation/SKILL.md) (Triage & validation), [`recon/api-noauth-hunt/SKILL.md`](https://github.com/uphiago/recon-skills/blob/main/recon/api-noauth-hunt/SKILL.md) (Specialized exposure paths), [`scripts/validate_skills.py`](https://github.com/uphiago/recon-skills/blob/main/scripts/validate_skills.py) (Skill validator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orientation["Orientation"]
  node_guidance["Repository guidance<br/>documentation<br/>[README.md]"]
  node_skill_catalog["Versioned skill catalog<br/>Markdown playbooks"]
  node_ci_workflow["Catalog CI workflow<br/>GitHub Actions<br/>[validate.yml]"]
  node_skill_validator{{"Skill validator<br/>Python validation utility<br/>[validate_skills.py]"}}
end

subgraph group_orchestration["Assessment Guidance"]
  node_recon_playbook["Recon playbook<br/>assessment gate<br/>[SKILL.md]"]
  node_web_workflows["Web &amp; bounty workflows<br/>assessment guidance<br/>[SKILL.md]"]
end

subgraph group_recon["Discovery"]
  node_recon_modules["Recon modules<br/>discovery playbooks<br/>[SKILL.md]"]
  node_js_probe{{"JS secret scanner<br/>Python probe<br/>[scan_js.py]"}}
  node_specialized_recon["Specialized exposure paths<br/>discovery playbooks<br/>[SKILL.md]"]
  node_target_signals[("Target signals &amp; artifacts<br/>assessment artifacts")]
end

subgraph group_validation["Validation"]
  node_hunt_catalog["Vulnerability hunt catalog<br/>validation playbooks<br/>[SKILL.md]"]
  node_identity_paths["Identity &amp; SSO paths<br/>validation playbooks<br/>[SKILL.md]"]
  node_infra_paths["Infrastructure escalation<br/>validation playbooks<br/>[SKILL.md]"]
end

subgraph group_evidence["Evidence &amp; Delivery"]
  node_triage["Triage &amp; validation<br/>finding validation<br/>[SKILL.md]"]
  node_attack_chains["Attack-path narratives<br/>chain playbooks<br/>[SKILL.md]"]
  node_evidence_hygiene["Evidence capture<br/>evidence practice<br/>[SKILL.md]"]
  node_reporting["Assessment report<br/>deliverable playbook<br/>[SKILL.md]"]
end

node_operator(("Operator / automation<br/>actor"))
node_external_targets(("Authorized external targets<br/>target environment"))

node_guidance -->|"orients"| node_skill_catalog
node_ci_workflow -->|"invokes"| node_skill_validator
node_skill_validator -->|"checks structure"| node_skill_catalog
node_operator -->|"loads"| node_recon_playbook
node_operator -->|"loads"| node_web_workflows
node_recon_playbook -.->|"sequences"| node_recon_modules
node_web_workflows -.->|"guides"| node_recon_modules
node_operator -->|"accesses"| node_external_targets
node_recon_modules -->|"collects from"| node_external_targets
node_js_probe -->|"supports"| node_recon_modules
node_specialized_recon -->|"investigates"| node_external_targets
node_recon_modules -->|"produces"| node_target_signals
node_specialized_recon -->|"produces"| node_target_signals
node_target_signals -->|"selects"| node_hunt_catalog
node_target_signals -->|"selects"| node_identity_paths
node_target_signals -->|"selects"| node_infra_paths
node_hunt_catalog -->|"submits findings"| node_triage
node_identity_paths -->|"submits findings"| node_triage
node_infra_paths -->|"submits findings"| node_triage
node_triage -->|"captures evidence"| node_evidence_hygiene
node_triage -->|"builds chains"| node_attack_chains
node_evidence_hygiene -->|"supplies evidence"| node_reporting
node_attack_chains -->|"supplies narratives"| node_reporting

click node_guidance "https://github.com/uphiago/recon-skills/blob/main/README.md"
click node_ci_workflow "https://github.com/uphiago/recon-skills/blob/main/.github/workflows/validate.yml"
click node_skill_validator "https://github.com/uphiago/recon-skills/blob/main/scripts/validate_skills.py"
click node_recon_playbook "https://github.com/uphiago/recon-skills/blob/main/meta/recon-playbook/SKILL.md"
click node_web_workflows "https://github.com/uphiago/recon-skills/blob/main/redteam/web2-recon/SKILL.md"
click node_recon_modules "https://github.com/uphiago/recon-skills/blob/main/recon/port-service-discovery/SKILL.md"
click node_js_probe "https://github.com/uphiago/recon-skills/blob/main/recon/js-secrets-extraction/scripts/scan_js.py"
click node_specialized_recon "https://github.com/uphiago/recon-skills/blob/main/recon/api-noauth-hunt/SKILL.md"
click node_hunt_catalog "https://github.com/uphiago/recon-skills/blob/main/redteam/hunt-ssrf/SKILL.md"
click node_identity_paths "https://github.com/uphiago/recon-skills/blob/main/auth/saml-sso-attack/SKILL.md"
click node_infra_paths "https://github.com/uphiago/recon-skills/blob/main/infra/docker-privesc/SKILL.md"
click node_triage "https://github.com/uphiago/recon-skills/blob/main/redteam/triage-validation/SKILL.md"
click node_attack_chains "https://github.com/uphiago/recon-skills/blob/main/chains/cross-attack-chains/SKILL.md"
click node_evidence_hygiene "https://github.com/uphiago/recon-skills/blob/main/redteam/evidence-hygiene/SKILL.md"
click node_reporting "https://github.com/uphiago/recon-skills/blob/main/redteam/report-writing/SKILL.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_guidance,node_skill_catalog,node_ci_workflow,node_skill_validator toneBlue
class node_recon_playbook,node_web_workflows toneAmber
class node_recon_modules,node_js_probe,node_specialized_recon,node_target_signals toneMint
class node_hunt_catalog,node_identity_paths,node_infra_paths toneRose
class node_triage,node_attack_chains,node_evidence_hygiene,node_reporting toneIndigo
class node_operator,node_external_targets toneNeutral
```

## Components

### Orientation

- [Repository guidance](https://github.com/uphiago/recon-skills/blob/main/README.md): documentation · Defines orientation and operating constraints. · `README.md`
- **Versioned skill catalog**: Markdown playbooks · Documentation-first pack of focused SKILL.md procedures.
- [Catalog CI workflow](https://github.com/uphiago/recon-skills/blob/main/.github/workflows/validate.yml): GitHub Actions · `.github/workflows/validate.yml`
- [Skill validator](https://github.com/uphiago/recon-skills/blob/main/scripts/validate_skills.py): Python validation utility · Checks catalog structure; style debt is warning-level. · `scripts/validate_skills.py`

### Assessment Guidance

- [Recon playbook](https://github.com/uphiago/recon-skills/blob/main/meta/recon-playbook/SKILL.md): assessment gate · Plans end-to-end reconnaissance and gates later work. · `meta/recon-playbook/SKILL.md`
- [Web & bounty workflows](https://github.com/uphiago/recon-skills/blob/main/redteam/web2-recon/SKILL.md): assessment guidance · Broad web and bounty assessment sequencing. · `redteam/web2-recon/SKILL.md`

### Discovery

- [Recon modules](https://github.com/uphiago/recon-skills/blob/main/recon/port-service-discovery/SKILL.md): discovery playbooks · Enumerate and classify DNS, services, HTTP, technologies, JS, source, and cloud surfaces. · `recon/port-service-discovery/SKILL.md`
- [JS secret scanner](https://github.com/uphiago/recon-skills/blob/main/recon/js-secrets-extraction/scripts/scan_js.py): Python probe · Repeatable utility used by JS secrets extraction. · `recon/js-secrets-extraction/scripts/scan_js.py`
- [Specialized exposure paths](https://github.com/uphiago/recon-skills/blob/main/recon/api-noauth-hunt/SKILL.md): discovery playbooks · API, SaaS, ASN, and infrastructure-specific discovery. · `recon/api-noauth-hunt/SKILL.md`
- **Target signals & artifacts**: assessment artifacts · Scope, discovery evidence, and persisted command outputs.

### Validation

- [Vulnerability hunt catalog](https://github.com/uphiago/recon-skills/blob/main/redteam/hunt-ssrf/SKILL.md): validation playbooks · Focused exploit verification selected from relevant discovery evidence. · `redteam/hunt-ssrf/SKILL.md`
- [Identity & SSO paths](https://github.com/uphiago/recon-skills/blob/main/auth/saml-sso-attack/SKILL.md): validation playbooks · Authentication and identity-provider attack procedures. · `auth/saml-sso-attack/SKILL.md`
- [Infrastructure escalation](https://github.com/uphiago/recon-skills/blob/main/infra/docker-privesc/SKILL.md): validation playbooks · Container and platform escalation procedures. · `infra/docker-privesc/SKILL.md`

### Evidence & Delivery

- [Triage & validation](https://github.com/uphiago/recon-skills/blob/main/redteam/triage-validation/SKILL.md): finding validation · Confirms findings before they enter evidence and reporting. · `redteam/triage-validation/SKILL.md`
- [Attack-path narratives](https://github.com/uphiago/recon-skills/blob/main/chains/cross-attack-chains/SKILL.md): chain playbooks · Builds multi-step compromise narratives from validated findings. · `chains/cross-attack-chains/SKILL.md`
- [Evidence capture](https://github.com/uphiago/recon-skills/blob/main/redteam/evidence-hygiene/SKILL.md): evidence practice · Governs preservation and handling of validation evidence. · `redteam/evidence-hygiene/SKILL.md`
- [Assessment report](https://github.com/uphiago/recon-skills/blob/main/redteam/report-writing/SKILL.md): deliverable playbook · Communicates validated findings and attack paths. · `redteam/report-writing/SKILL.md`

### Other components

- **Operator / automation**: actor · Selects playbooks and retains responsibility for authorized target access.
- **Authorized external targets**: target environment · May require credentials, network access, proxies, browsers, or platform tooling.

## Connections

- Repository guidance → Versioned skill catalog: orients
- Catalog CI workflow → Skill validator: invokes
- Skill validator → Versioned skill catalog: checks structure
- Operator / automation → Recon playbook: loads
- Operator / automation → Web & bounty workflows: loads
- Recon playbook → Recon modules: sequences
- Web & bounty workflows → Recon modules: guides
- Operator / automation → Authorized external targets: accesses
- Recon modules → Authorized external targets: collects from
- JS secret scanner → Recon modules: supports
- Specialized exposure paths → Authorized external targets: investigates
- Recon modules → Target signals & artifacts: produces
- Specialized exposure paths → Target signals & artifacts: produces
- Target signals & artifacts → Vulnerability hunt catalog: selects
- Target signals & artifacts → Identity & SSO paths: selects
- Target signals & artifacts → Infrastructure escalation: selects
- Vulnerability hunt catalog → Triage & validation: submits findings
- Identity & SSO paths → Triage & validation: submits findings
- Infrastructure escalation → Triage & validation: submits findings
- Triage & validation → Evidence capture: captures evidence
- Triage & validation → Attack-path narratives: builds chains
- Evidence capture → Assessment report: supplies evidence
- Attack-path narratives → Assessment report: supplies narratives
