Repository navigation
feat: add skill-sec — agent instructions supply-chain security auditor - #523
sudo-ai-git wants to merge 1 commit into
Conversation
Audits a downloaded SKILL.md / system-prompt against the eight malicious-agent patterns (prompt injection, data exfiltration, hardcoded secrets, dangerous commands, obfuscation, untrusted fetches, credential access, privilege escalation), citing the offending line for each. Defaults: no prior-instruction overrides, no hidden payloads, no credential reads. Fills a real gap vs security-and-hardening (which hardens code the agent writes) — this gates untrusted instructions the agent is about to run, the skill supply-chain surface. Includes execution eval + fixture.
addyosmani
left a comment
There was a problem hiding this comment.
This is a genuinely relevant idea. Scanning a downloaded SKILL.md or prompt for hidden directives before it influences the agent is a real attack surface as skills get shared, and shipping a malicious fixture to prove the scanner catches it is the right way to test it. But it's a new skill, and I'm being deliberate about growing the catalog, so I'll hold it for a conversation rather than merge. It also overlaps two things already here worth reconciling against: source-driven-development's retrieval-safety section (treat fetched content as untrusted data) and security-and-hardening's injection coverage. Worth deciding whether this is a new skill or an extension of those. Leaving it open, not a no.
|
Thanks for the thoughtful review, @addyosmani — appreciate you holding it for conversation vs quick merge. You’re right about the overlap. The intent for is not to duplicate source-driven-development (retrieval-safety) or security-and-hardening (injection) — it’s the pre-execution supply-chain gate before those apply:
Happy to reconcile either way you prefer:
Whichever shape keeps the catalog tightest — your call. Leaving the PR open as reference, no rush. |
What this adds
skill-sec — a supply-chain auditor for downloaded agent instructions. When an agent is about to run a SKILL.md / system-prompt it fetched from the internet, this skill audits it against the eight malicious-agent patterns — prompt injection, data exfiltration, hardcoded secrets, dangerous commands, obfuscation, untrusted fetches, credential access, privilege escalation — and cites the offending line for each.
Why it is a real gap (not a duplicate)
covers hardening code the agent writes (input validation, auth, storage). This skill covers the orthogonal surface: gating untrusted instructions the agent is about to execute — the skill-supply-chain problem (marketplace/GitHub downloads). The two are complementary; this one does not overlap 's content and there is no existing skill for auditing downloaded SKILL.md/prompt files.
Compliance
All five repo validators pass locally:
Includes a CI-compliant eval case () + execution fixture (), 4 positive + 3 negative triggers routed to existing skills, and a behavioral execution eval with a deliberately-malicious fixture the agent must flag.
Integrity note
The skill is intentionally free of any proprietary method — pure public-supply-chain-security practice, tested end-to-end.