You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(agent-owasp-compliance): use the published OWASP Top 10 for Agentic Applications 2026 risk IDs 🤖🤖🤖 - #6451
skills/agent-owasp-compliance/SKILL.md says it checks agents against the OWASP Agentic Security Initiative Top 10, but its risk list (lines 24-33 and the table at 41-50) is not the one OWASP published. The OWASP Top 10 for Agentic Applications 2026 (OWASP GenAI Security Project, Agentic Security Initiative, December 2025) is:
The skill had ASI-01 Prompt Injection through ASI-10 Behavioral Anomaly. Only ASI-01 and ASI-02 roughly line up. The rest point at a different entry: the skill's ASI-06 is Insufficient Logging, but the published ASI06 is Memory & Context Poisoning. Supply chain is ASI04, not ASI-09. Memory poisoning and human-agent trust had no check at all, and code execution was only two bullets under tool use. So when someone asks Copilot "is my agent OWASP compliant?", the X/10 report it produces cites IDs that point at the wrong OWASP entries.
What this PR changes, in this file only:
The overview, the risk table, the ten ## Check headings, the sample report and the quick questions now use the published IDs and names.
The existing checks are kept and moved to the risk they actually test. Allowlists and least privilege go to ASI02. eval/exec/shell go to ASI05. Escalation and identity go to ASI03. Agent-to-agent verification goes to ASI07. Deterministic policy and circuit breakers go to ASI08. Audit logging and the kill switch go to ASI10. Each move follows the matching entry's mitigation list.
ASI06 and ASI09 get short "what to search for" lists, taken from OWASP's own mitigations for those entries.
The check_asi_01 example no longer flags eval/exec/shell=True as goal-hijack findings. That is code execution, and it is now checked under ASI05.
The Agent Governance Toolkit link no longer says it covers "10/10 ASI controls". That count was made against the old list.
Related Resources now links to the Top 10 page. The old owasp.org/www-project-agentic-ai-threats link returns 404.
The front matter is unchanged, so docs/README.skills.md does not need regenerating. Line endings are LF.
Risk tier:merge-risk:high — Privileged execution, automation, or review-policy change Required to merge: passing submission-gate checks plus 1 approval from reviewers with write access, including a maintainer with admin or maintain permission.
Why this tier
Spawns processes or evaluates code in skills/agent-owasp-compliance/SKILL.md
Label needs-review:HIGH flags a high contributor-risk signal
✓ [spec-compliance] All 1 skill(s) are spec-compliant.
ℹ️
✓ spec-compliance: All spec checks passed.
ℹ️
✓ [valid-refs] All file references across 1 skill(s) are valid.
ℹ️
✓ valid-refs: All file references resolve to existing files within the skill directory.
ℹ️
1 skill(s) linted, 1 passed
Full linter output
### Linting skills/agent-owasp-compliance
✅ agent-owasp-compliance (2/2 checks passed)
✓ [spec-compliance] All 1 skill(s) are spec-compliant.
✓ spec-compliance: All spec checks passed.
✓ [valid-refs] All file references across 1 skill(s) are valid.
✓ valid-refs: All file references resolve to existing files within the skill directory.
1 skill(s) linted, 1 passed
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The checklist’s ASI05 question reverses the intended safety signal, while ASI03 mixes safeguards with prohibited capabilities, making “yes” and “no” inconsistent indicators of protection.
Updates the existing agent security skill to use the published OWASP Top 10 for Agentic Applications 2026 risk IDs and names, aligning its checks and reports with that taxonomy.
Changes:
Remaps existing checks and adds memory-poisoning and human-agent trust guidance.
Updates the scanner example, sample report, and quick assessment questions.
Replaces the OWASP resource link and narrows the toolkit coverage claim.
File
Description
skills/agent-owasp-compliance/SKILL.md
Aligns risk mappings, assessment guidance, examples, and references with the published 2026 taxonomy.
…ns so yes means protected
The checklist says any "no" is a gap, but the ASI05 question asked whether
unsafe execution is possible, and the ASI03 question combined a safeguard
with a forbidden capability.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The passing ASI07 example lacks documented or explicit expiry and nonce checks, leaving valid signed tasks vulnerable to repeated execution.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Missing replay protection for signed tasks
skills/agent-owasp-compliance/SKILL.md:207
The ASI07 checklist requires replay protection, but this passing example does not show a freshness or nonce check. Document that verify_signature must validate signed expiry and atomically reject reused sender/nonce pairs, or add those checks before process_task, so a valid signed task cannot be executed repeatedly.
… passing example
The ASI07 checklist asks for replay protection, but the passing example
only checked trust and the signature, so a valid signed task could be
executed again.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The revised control classification lacks a real-repository Copilot run with reviewed evidence, leaving the new X/10 assessment unvalidated.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Validate the revised assessment against a real agent repository
skills/agent-owasp-compliance/SKILL.md:41
This changes how the skill classifies repository controls, but the PR provides only a sample report for my-agent-system, not evidence that Copilot ran the revised skill against a real agent repository and that its conclusions were checked. Please include a real-input run with the evidence found and the reviewed results; otherwise the new X/10 assessment cannot be validated.
On the request for a real-repository run: I applied the revised checklist to microsoft/agent-governance-toolkit at 5bcf1da, following each check's "What to search for" bullets and Failing/Passing lines. Scope: the Python runtime packages (agent-governance-python/*/src), plus .github/workflows and policy-engine/ for ASI04 and ASI08. Tests, examples and the other language SDKs were left out.
Result: 5 of 10 covered, 5 partial, 0 not found.
Risk
Verdict
Evidence (paths at 5bcf1da)
ASI01 Agent Goal Hijack
Covered
agent-os/.../prompt_injection.py:457, tool-parameter screening in mcp_gateway.py:466-470, tool-output scanning in mcp_gateway.py:266-310
ASI02 Tool Misuse
Partial
Allowlists exist (base_agent.py:596-628), but they are opt-in, so the default matches the Failing line "access to all tools by default"
ASI03 Identity and Privilege Abuse
Partial
Per-agent Ed25519 identity (agentmesh/identity/agent_id.py:172), 15-minute scoped credentials (credentials.py:49-150), scope-narrowing delegation (delegation.py:107-123); not every ASI03 criterion is met at this SHA
ASI04 Supply Chain
Covered
Signed plugin installs by default (marketplace/installer.py:93-141), MCP tool fingerprints (mcp_security.py:551-584), SBOM workflow (.github/workflows/sbom.yml)
ASI05 Code Execution
Covered
Container sandbox with no network, a read-only filesystem and dropped capabilities (agent-sandbox/.../sandbox_provider.py:81-82, docker_provider/provider.py:1134-1147)
ASI06 Memory Poisoning
Partial
Validated memory writes with provenance and content hashes (memory_guard.py:62-300); no per-tenant memory namespaces or expiry of unverified entries found
ASI07 Inter-Agent Communication
Partial
Signed requests with timestamp and single-use nonce checks (agentmesh/integrations/request_auth.py:111-297); not every ASI07 criterion is met at this SHA
Approval required for sensitive tools and timeout-to-deny (mcp_gateway.py:495-513, escalation.py:299-300); the risk summary shown to the approver is free text from the caller rather than application-generated
Where the checklist was hard to apply to real code. These predate this PR, so I've left them for a separate follow-up:
The ASI01 detection snippet passes if a keyword such as sanitize appears in any .py file. It doesn't check that validation runs before tool execution, which is what the prose asks for.
ASI04 and ASI07 have no Failing/Passing lines, so those verdicts are judgement calls.
ASI05 says no exec(), but an in-process restricted sandbox uses exec itself, and "sandbox" isn't defined.
ASI03 names did:web: and did:key:, so a literal search misses other DID methods.
ASI10 asks for a hash chain and a policy decision in each entry, but not that the hash covers the decision.
John B Joseph, Co-founder & CPTO, Purplecop Security
The reason will be displayed to describe this comment to others. Learn more.
Thanks for aligning the skill with OWASP’s published 2026 risk IDs and names. One ASI05 detail needs tightening: at skills/agent-owasp-compliance/SKILL.md:170, “No eval() or exec() on agent-generated code or content” conflicts with the passing criterion at line 172, which permits generated code in a sandbox. As written, the check could flag an interpreter used inside an isolated sandbox as a failure. Please scope this to untrusted execution without an adequate sandbox, and define the isolation properties the skill should look for so it can distinguish that from contained execution.
Agreed, line 170 contradicts the Passing line as written. I'll push a change to this PR that scopes the check to execution outside an adequate sandbox and defines what counts as one. Proposed text for the ASI05 check:
What to search for:
No eval() or exec() on agent-generated code or content in the agent's own process, or anywhere that does not meet the isolation properties below
No subprocess.run(shell=True) or os.system() with model- or user-controlled input
Human approval or an allowlist for auto-executed commands
Isolation properties (all required for execution to count as sandboxed):
A process boundary separate from the agent: container, microVM or separate OS process. Restricted globals passed to exec inside the agent's interpreter do not count.
Runs as non-root, with no added capabilities
No network by default; any egress goes through an explicit allowlist
Filesystem limited to a scratch or read-only workspace, with no host mounts and no access to the agent's credentials or environment secrets
CPU, memory and wall-clock limits, with the sandbox discarded after each run
Failing:exec() called on model output inside the agent loop, including with restricted globals. Passing: Generated code is statically checked, then run in a sandbox that meets every isolation property above.
The container, non-root, network and resource-limit properties come from OWASP's ASI05 mitigations (page 22: "Never run as root. Run code in sandboxed containers with strict limits including network access"). The in-process exclusion and the filesystem property are added so the check can tell contained execution from an exec call with a restricted namespace. I'll align the ASI05 row in the risk table, the sample report row and quick question 5 with the same wording.
Prepared with AI assistance.
John B Joseph, Co-founder & CPTO, Purplecop Security
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
skills/agent-owasp-compliance/SKILL.mdsays it checks agents against the OWASP Agentic Security Initiative Top 10, but its risk list (lines 24-33 and the table at 41-50) is not the one OWASP published. The OWASP Top 10 for Agentic Applications 2026 (OWASP GenAI Security Project, Agentic Security Initiative, December 2025) is:ASI01 Agent Goal Hijack, ASI02 Tool Misuse and Exploitation, ASI03 Identity and Privilege Abuse, ASI04 Agentic Supply Chain Vulnerabilities, ASI05 Unexpected Code Execution (RCE), ASI06 Memory & Context Poisoning, ASI07 Insecure Inter-Agent Communication, ASI08 Cascading Failures, ASI09 Human-Agent Trust Exploitation, ASI10 Rogue Agents.
The skill had ASI-01 Prompt Injection through ASI-10 Behavioral Anomaly. Only ASI-01 and ASI-02 roughly line up. The rest point at a different entry: the skill's ASI-06 is Insufficient Logging, but the published ASI06 is Memory & Context Poisoning. Supply chain is ASI04, not ASI-09. Memory poisoning and human-agent trust had no check at all, and code execution was only two bullets under tool use. So when someone asks Copilot "is my agent OWASP compliant?", the X/10 report it produces cites IDs that point at the wrong OWASP entries.
What this PR changes, in this file only:
## Checkheadings, the sample report and the quick questions now use the published IDs and names.check_asi_01example no longer flagseval/exec/shell=Trueas goal-hijack findings. That is code execution, and it is now checked under ASI05.The front matter is unchanged, so
docs/README.skills.mddoes not need regenerating. Line endings are LF.Source: https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/ (PDF: "Agentic Top 10 At A Glance", page 8, and each entry's Prevention and Mitigation Guidelines, pages 9-38).
Type of Contribution
John B Joseph, Co-founder & CPTO, Purplecop Security
🤖 Generated with Claude Code