agent-security-hardening
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
Every VulnHunter finding makes two claims: a mechanism (this input reaches this sink) and an impact (an attacker gains something they did not have). The mechanism claim is cheap to assert; the impact claim is only proven by execution against the real dependency. This procedure decides, per finding, how much runtime the impact claim needs, executes it, and records the choice so the report can show what was done to prove it — not just that something was done.
Phase 2b, per candidate — after confirmation (Phase 2b's adversarial
verify), because the sandbox decision depends on what the finding needs to
prove. The decision feeds poc-impact (Phase 3): the provisioned runtime is
where the PoC executes and the impact is measured.
For the candidate finding, enumerate what execution the impact claim needs:
A reimplementation of the parser is not a probe — it is static-trace.
Rung 2 means importing the actual library.
Then choose the sandbox that supports the rung. Fixed preference order; never skip a cheaper option without written cause:
Docker container (default — uniform, disposable, matches CI, immune to host drift, and the only way to reach rung 3 when the host lacks the dependency). Record the image and version tag.
In-process harness, only if the dependency cannot containerize cheaply (e.g. a licensed mainframe-backed service in the target's own infra). Record the harness description and the exact dependency version pinned.
Static trace only when the claim is structural, justified in writing. Never the default, never available to a behavioural claim.
Claim type decides the runtime; runnability does not decide the claim
type. Structural → static is legitimate. Behavioural and runnable → execute
it. Behavioural and not runnable → HOLD-UNVERIFIED, never static.
"Not runnable" is earned, not declared. A behavioural HOLD records why the probe could not run, as exactly one of:
attempted: <command> → <result>; log: <path>: you ran a container or
in-process probe and it failed. <path> is relative to the results
directory and names a file there holding the command's output.external-service: <name>: a service outside the repo with no runnable
image (a vendor API, the target org's own hosted backend).model-behaviour: the outcome depends on a third-party model's behaviour.needs-credentials: <what>: needs real secrets or accounts you must not mint.A dependency that ships a public container image is never external-service:
start it, and record attempted: if it fails.
\), comment syntax
(e.g. --, #, /*), alternate quoting, and encodings. Name the classes
you tried in the Evidence cell.Medium and above must execute in a container unless a rung-1/2 probe already settled the behavioural claim in-process; the container is then needed only for the end-to-end impact claim. Record which rung closed the claim.
A mock is allowed only when the real dependency is genuinely unavailable: record
EXECUTED-MOCK, severity ceiling Low until a real-boundary run. A mock executes
your call site, not the dependency, so it never closes a behavioural claim — the
claim stays HOLD-UNVERIFIED with the real-dependency probe named.
Every finding MUST carry one Runtime line in one of these forms. A mock on a
behavioural claim combines two on the same line:
Runtime: EXECUTED-MOCK — <what was mocked>; severity ceiling Low; claim HOLD-UNVERIFIED — probe: <real-dependency probe>.
Runtime: docker:<image>@<tag>Runtime: in-process:<description> — name the rung, e.g.
in-process:rung-2 (real URL parser, pinned version)Runtime: static — <justification> — structural claims onlyRuntime: EXECUTED-MOCK — <what was mocked and why>; severity ceiling LowRuntime: HOLD-UNVERIFIED — probe: <what to call, with what payload, fed to what>
(defined in vulnhunt/SKILL.md)A finding without a Runtime line is incomplete and MUST NOT be reported.
Before handing the finding to poc-impact, verify:
static-trace);EXECUTED-MOCK with the ceiling noted — and a mock-only behavioural claim also
carries its HOLD on the same line;static on a behavioural
claim is not.A mechanism-proving assertion is not an impact measurement. "The rendered page
contains the injected <script> tag" is the mechanism. The finding is "another
user's session token reached the attacker's server." If your test asserts the
first, it has not proven the second.
| Variable | Required | Purpose |
|---|---|---|
VULNHUNT_SKILLS_DIR | no | Override the skills root this skill is loaded from. |
VULNHUNT_HOST_CMD | no | Command prefix for harness session invocation, when the host harness must be driven explicitly. |
VULNHUNT_DIR | no | Findings directory, when operating on a prepared scan workspace. |
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
Audit the whole repo: find bugs, security holes and performance bottlenecks. Get a ranked report in plain English.
DIDietrichGebert/ponytail203k4,904 new stars in the last 7 days
GAgarrytan/gstack143k598 new stars in the last 7 days
Harden code against the OWASP Top 10: input handling, authentication, sessions and dependencies.
ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days
ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days
RUruvnet/RuView106k596 new stars in the last 7 days