Skip to content

feat: add skill-sec — agent instructions supply-chain security auditor - #523

Open
sudo-ai-git wants to merge 1 commit into
addyosmani:mainfrom
sudo-ai-git:feat/skill-sec
Open

sudo-ai-git wants to merge 1 commit into
addyosmani:mainfrom
sudo-ai-git:feat/skill-sec

Conversation

@sudo-ai-git

Copy link
Copy Markdown

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:

  • validate-skills.js: 25 skills, 0 errors
  • validate-artifact-paths.js: 0 errors
  • validate-commands.js: 0 errors
  • validate-reference-links.js: 0 errors
  • run-evals.js: 135 checks, 0 errors, 0 warnings (trigger rank-1 rate 84%, matching baseline)
    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.

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 addyosmani left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@sudo-ai-git

Copy link
Copy Markdown
Author

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:

  • source-driven-development: treats fetched content as untrusted data at runtime
  • security-and-hardening: covers prompt injection at execution
  • skill-sec: pre-install static scan of a SKILL.md/system prompt artifact itself (R1 injection → R8 priv-esc, secrets, exfiltration, obfuscation, untrusted fetches) with line-level evidence — so a malicious skill never reaches the agent to be retrieved or executed.

Happy to reconcile either way you prefer:

  • Option A (extension): fold the 8-rule audit + malicious fixture into as a new “Skill Supply-Chain Audit” section
  • Option B (standalone): keep as focused skill that other skills can reference as a prerequisite gate (“run skill-sec before installing any community skill”)

Whichever shape keeps the catalog tightest — your call. Leaving the PR open as reference, no rush.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants