Files
CyberSecurityUP bf2754ece6 feat(harness): cross-domain attack path chaining engine
Model attack paths by capability exchange instead of CWE identity: each
finding declares the artifacts it *provides* and the artifacts it
*requires*, and steps link when one produces what the next consumes.

New crates/harness/src/attack_path.rs:
- 36 artifact types (password hash, Kerberos ticket, machine account /
  keytab, bearer + cloud token, API key, cert/key, shell, local admin,
  implant, domain user/admin, cloud role, tenant admin, DB sysadmin,
  internal reach, source code, sensitive data, agent control, ...).
- Reach rules decide what may cross an asset boundary: HostLocal stays
  on the host, Realm travels inside a domain/tenant (with fuzzy realm
  matching for CORP\user vs corp.local vs ad:corp), Portable travels
  anywhere. This is what lets a token lifted from process memory reach
  a cloud control plane while still refusing bogus host-to-host jumps.
- 17 domain planes classified from agent name, CWE, MITRE id, endpoint
  and evidence text: web, api, network, host, Active Directory, cloud,
  identity, container, mobile, binary, firmware, AI/LLM, supply chain,
  wireless, social, physical, OT.
- Timeline-aware DAG (observed_at stamped at validation; a later step
  can never enable an earlier one), typed nodes mirroring the kill
  chain view (exploited weakness, discovered/compromised credential,
  accessed resource, loaded implant, established session, impact) and
  14 impact terminals up to domain and full tenant compromise.
- Path enumeration with budget, prefix and weakness-sequence dedupe,
  Jaccard diversity filter and impact/severity/pivot scoring.
- Renderers: Mermaid, ASCII, JSON, Markdown.

Integration:
- pipeline: stamps observed_at, persists loot.json (previously the
  chaining rounds' loot only ever existed inside a prompt), folds loot
  into the graph and logs the best path.
- chain::repair: no longer discards legitimate cross-host links; it
  consults portable_link instead of requiring a host match.
- report: "Attack paths" section in Markdown, HTML and Typst/PDF, plus
  attack-paths.json and attack-paths.mmd run artifacts (redacted).
- CLI: neurosploit paths <run> [--top N] [--mermaid] [--json] [--save].

15 unit tests cover web, API, mobile, binary, AD, cloud, identity, OT
and AI chains, the host-local isolation guard, and the renderers.
2026-11-20 14:55:22 -03:00
..