ai-agent-security
Skill18 starsChanged 3 months agoMITView on GitHub
Review AI agents with tools — shell, HTTP, files, browsers — for excessive agency, unsafe exec of model output, and missing human gates (CWE-78 / CWE-94).
3 other projects use a version of this.
Adopted by
Most recently taken up by
- jaskaranhundal/usap-skillstheir own version, first seen Sep 5, 2026
- conjure-3301/skillstheir own version, first seen Aug 17, 2026
- amajorai/skillstheir own version, first seen May 29, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- jaskaranhundal/usap-skills★ 4same name
- amajorai/skills★ 3same name
- conjure-3301/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ai-application-securitySkill
- api-securitySkill
- attack-surface-mappingSkill
- authentication-analysisSkill
- authorization-analysisSkill
- axguard-auditSkill
- axguard-csoSkill
- axguard-knowledgeSkill
- axguard-preshipSkill
- axguard-remediateSkill
- axguard-reportSkill
- axguard-securitySkill
- axguard-triageSkill
- cloud-securitySkill
- command-injectionSkill
- configuration-securitySkill
- deserialization-securitySkill
- file-upload-securitySkill
- graphql-securitySkill
- jwt-securitySkill
- mcp-securitySkill
- oauth-securitySkill
- path-traversalSkill
- prompt-injectionSkill
- prototype-pollutionSkill
- secrets-detectionSkill
- security-architecture-reviewSkill
- security-remediationSkill
- security-triageSkill
- session-securitySkill
- sql-injectionSkill
- ssrf-analysisSkill
- ssti-analysisSkill
- supply-chain-securitySkill
- threat-modelingSkill
- websocket-securitySkill
- xss-analysisSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
After axguard hits agent.*
- Very specific: line 63
Run axguard scan / audit; collect agent.* (and related injection.*, ssrf.*, secrets.*).
- Distinctive: line 66
Check allowlists: commands, hosts, paths, HTTP methods.
- Distinctive: line 69
Ensure tool credentials are least-privilege and not the developer’s personal cloud keys.
- Very specific: line 91
Never exec model output; treat all natural-language “code” as untrusted.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI Agent Security
Purpose
Assess agents that can act — tool-calling loops with shell, filesystem, network, email, or code execution — focusing on least privilege, approval gates, and never treating model text as trusted code.
When to Use
- LangChain/LlamaIndex/OpenAI-tools style agents, IDE copilots with terminal, browser agents
- After
axguardhitsagent.* - Any feature where model output selects or parameterizes privileged actions
When Not to Use
- Pure chat/RAG without tools (use
ai-application-security/prompt-injection) - Writing offensive agent jailbreaks or exploit PoCs
Security Concepts
Excessive agency appears when tools are broad (unrestricted shell), credentials are over-scoped, or autonomy lacks human approval for mutate/egress. Prompt injection (direct or via documents/tool output) becomes high impact when tools exist. Executing model output via eval / subprocess / child_process is classic CWE-94 / CWE-78.
Threat Model
Attacker goals:
- Coerce the agent to run shell commands or exfiltrate secrets.
- Abuse HTTP tools for SSRF into cloud metadata or intranet.
- Overwrite files, exfiltrate repos, or send emails as the victim.
- Chain tool outputs (indirect injection) to escalate in the next loop turn.
Analysis Workflow
- Run
axguard scan/audit; collectagent.*(and relatedinjection.*,ssrf.*,secrets.*). - Inventory tools: name, side effects (read/write/egress/exec), argument schema, who can invoke.
- Confirm model text never flows into
eval,exec,os.system, orshell=Truewithout a hard allowlist intermediary. - Check allowlists: commands, hosts, paths, HTTP methods; deny-by-default.
- Require human approval (or strong policy engine) for destructive and egress actions.
- Apply
prompt-injectionto tool descriptions, retrieved docs, and tool results re-entering context. - Ensure tool credentials are least-privilege and not the developer’s personal cloud keys.
- Cross-check MCP-exposed tools with
mcp-security.
Evidence Requirements
- Tool registration sites and permission scope
- Code path from model/tool args → sink
- Presence or absence of allowlist + approval gate
- Secret material reachable by tools
False Positive Controls
- Tools that only call typed internal APIs with server-side authZ independent of the model
- Dry-run / plan-only agents with no execution backend enabled in prod
- Shell tool strings that are fully static and unreachable from model args (still prefer removal)
Remediation
- Replace shell tools with narrow typed actions; sandbox where shell is unavoidable.
- Structured tool calls + schema validation; reject unknown tools/args.
- Human-in-the-loop for high impact; session budget limits (steps, tokens, spend).
- Separate privileges: retrieval identity ≠ mutate identity ≠ egress identity.
- Never
execmodel output; treat all natural-language “code” as untrusted.
Verification
Hostile prompt + hostile document tests should fail closed (no shell, no secret egress). Re-run /axguard-agent. Confirm approval gates cannot be skipped via prompt text alone.
Related Skills
prompt-injection, mcp-security, ai-application-security, command-injection, ssrf-analysis, security-remediation
Framework Mapping
- CWE-78 OS Command Injection
- CWE-94 Improper Control of Generation of Code ('Code Injection')
- OWASP A03:2021 Injection; A04:2021 Insecure Design
- OWASP LLM01:2026 Prompt Injection; LLM03:2026 Excessive Agency
- MITRE ATLAS AML.T0051
References
- https://genai.owasp.org/resource/owasp-genai-llm-top-10-2026/
- https://cwe.mitre.org/data/definitions/78.html
- https://cwe.mitre.org/data/definitions/94.html
- https://www.nist.gov/itl/ai-risk-management-framework
Research Provenance
Primary: CWE-78/94; OWASP Top 10:2021 A03/A04; OWASP LLM Top 10:2026 (LLM01/LLM03); ATLAS 2026.08 AML.T0051 (accessed 2026-09-15).
Internal: AXGuard rules/agent.json, /axguard-agent.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

