Agent Security

Defensive agent supply-chain security for repositories that AI agents and automations touch. Use before making a repo public or pushing to one, when reviewing a cloned starter template or third-party skill/package, or when an agent has GitHub credentials that can delete/rename/transfer/archive repos. Ships two battle-tested defenses: (1) scan-repo — a deterministic, network-free leak + dropper gate that blocks secrets, obfuscated code-execution droppers, invisible-unicode, and private-context leaks from entering a public repo; and (2) repo-guard — a PATH shim + Claude Code hook that hard-blocks destructive GitHub repo-lifecycle operations unless a human confirms the exact repo. Also ships scan-content — a KNOWN-pattern tripwire for untrusted fetched content (web/search/tool/MCP output) — paired with a behavioral contract for handling untrusted content, because prompt injection is unsolved and detection alone cannot prevent it. Plus vet-incoming — an inbound supply-chain gate that vets a third-party template/p

0xNyk 3ef0c27 11 files · 30.6 KB Updated

File contents

0xnyk/agent-security/tree/main/ commit 3ef0c2711a

Frequently asked questions

npx skillmds@latest add 0xnyk/agent-security