Commit Graph
3 Commits
Author SHA1 Message Date
Joas A SantosandClaude Opus 5 5393464134 feat(skills): chain on what a finding yields, not only on declared edges
Chaining ran entirely off `chains:` — skill A names skill B. That is a fixed
graph, so it only carries escalation paths somebody wrote down in advance. A
credential recovered by a skill nobody thought to draw an edge from reached
nothing, and the loop stopped at the end of whatever path was drawn.

extract_intel already mined credentials, secrets, internal hosts and endpoints
out of findings, but only to append as text to the recon context, where it
fired a skill solely if one happened to carry a matching trigger. The CWE
match was worth 5, under the 15 gate, so it could never promote anything on
its own.

Add a `consumes` field over a closed vocabulary of nine capabilities, and
derive from each finding what it actually yielded. Derivation reads the
finding's own fields and prose, not its agent's name, so a credential counts
the same whether default_credentials or sqli_union turned it up. A match is
worth 20, enough to clear the gate alone, because the point is that an
unforeseen path can start a round by itself.

72 skills declare what they consume. On a UNION SQLi yielding credentials, admin
access and an internal host, round 2 now reaches cloud_iam_privesc,
container_escape and exposed_admin_panel — none of which sqli_union names.

Five tests, three on the catalogue on disk: that a credential from a skill
declaring no chains at all still reaches credential-consuming skills, that a
disclosed internal host does the same, that a capability match clears the
round gate, that an empty finding set mints nothing so the anti-flooding
guarantee holds, and that every declared capability is one the deriver can
actually produce.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-12-04 12:23:23 -03:00
Joas A SantosandClaude Opus 5 de6ba6d63d feat(skills): scope skills by engagement mode, cover 152 more
load_catalog loads all ten category directories whatever the engagement is,
and route never looked at a skill's category. So giving code_sqli the trigger
"sql" would have launched a source-review agent during a black-box web run
against a target with no source to read, and the AD skills would have fired on
any recon mentioning ldap or smb.

Add a `modes` field. A skill that names its modes runs only in those; one that
names none runs anywhere, which is what the 91 skills from the previous change
rely on. The mode comes from the same string each site already passes to the
coverage ledger.

Frontmatter for 152 more skills, 179 chain edges: recon discovery feeders,
container image scanning, Active Directory, Linux and Windows local privesc,
AWS, GCP and Azure, and the 84 source-review skills scoped to whitebox and
greybox. 243 of 530 now carry it.

Priority was being added unconditionally, so any skill at priority >= 30
scored 15 with nothing matching and cleared the gate on an empty recon. The
field documents itself as ordering skills that are "equally triggered" — a
tiebreaker — so it now applies only once a skill has matched. An anti-flooding
test on meaningless recon caught this.

Six tests on the catalogue on disk: that a web run never picks source-review
or host skills, that whitebox and host runs do reach theirs, that nothing
fires on meaningless recon in any mode, and that every chain edge resolves.
The generator refuses triggers under two characters or on a stoplist of terms
too common to discriminate, which rejected five on the first pass.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-12-04 11:52:58 -03:00
CyberSecurityUPandClaude Opus 4.8 f8d70ce9c5 v3.5.1: infra/host engagements — IP + SSH/Windows-AD creds + Linux/Win/AD agents + REPL context bar
Infra:
- creds.yaml gains `ssh:` (host/port/user/password/key) and `windows:`/`ad:`
  (host/user/password/domain/ntlm-hash) blocks; multi-block YAML parser.
  host_instruction() tells agents how to authenticate to the host.
- 14 infra agents (agents_md/infra/): port/service scan, SMB enum, Linux privesc/
  sudo/cron/SSH, Windows privesc/SMB-signing/WinRM, AD kerberoast/asreproast/ACL/
  DCSync/default-creds. Loader gains `infra` category → 317 agents total.
- run_host pipeline + `neurosploit host <ip> --creds creds.yaml` (and Mode::Host
  in run_mode/TUI): host recon (nmap/netexec) → infra agent selection → test →
  validate → chain → report, with host tooling doctrine + supplied creds.

REPL:
- Context/status bar above the prompt: "model auth · cwd · mode▸target"
  (e.g. claude-opus-4-8 sub · /opt/projeto · black-box▸app.acme.com).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 22:17:14 -03:00