mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-12-05 10:34:31 +01:00
capabilities_from matches keywords over a finding's title, impact and evidence. It misses a credential phrased in words the list does not carry, and it mints rce from a finding that merely warns command injection is possible. Add a second reader. capabilities_via_model shows a model the findings and the nine-name vocabulary and asks what the tester can now do that they could not before, with the distinction stated: a parameter reported vulnerable to command injection is not rce, a command whose output is in the evidence is. The two are unioned, never substituted. Only names from CAPABILITIES survive — anything the model invents is dropped — and a failed or refused call leaves the keyword result standing, so the read can only widen what was already derived. Off with NEUROSPLOIT_CAPABILITY_READ=off, and skipped once the USD budget is in wrap-up, since it is one call per round. Fixes a latent bug the new tests surfaced: SkillMeta derived Default, giving max_rounds 0, while the field's serde default is 2. The key-value frontmatter parser starts from Default::default() and fills in only the keys a file names, and route drops any skill that has reached its max_rounds — so a skill whose frontmatter omitted the key loaded with 0 and was silently unroutable. No shipped skill omits it, so nothing was broken in practice, but the next one written would have been. Default is now written by hand to agree with serde. Five tests: that only vocabulary names survive the filter, that an unusable reply cannot narrow the keyword result, that route uses supplied capabilities rather than re-deriving them, that frontmatter without max_rounds is still routable, and that the two defaults cannot drift apart again. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>