Skip to content

fix(agent-owasp-compliance): use the published OWASP Top 10 for Agentic Applications 2026 risk IDs 🤖🤖🤖 - #6451

Open
Johnbjoseph-cybersec wants to merge 3 commits into
github:mainfrom
Johnbjoseph-cybersec:jbj/owasp-agentic-top10-ids
Open

Johnbjoseph-cybersec wants to merge 3 commits into
github:mainfrom
Johnbjoseph-cybersec:jbj/owasp-agentic-top10-ids

Conversation

@Johnbjoseph-cybersec

Copy link
Copy Markdown

Description

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:

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:

  • 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.

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

  • Update to existing instruction, prompt, agent, plugin, skill, workflow, or canvas extension.

John B Joseph, Co-founder & CPTO, Purplecop Security

🤖 Generated with Claude Code

@Johnbjoseph-cybersec
Johnbjoseph-cybersec requested a review from a team as a code owner November 16, 2026 04:32
Copilot AI adaptive review requested due to automatic review settings November 16, 2026 04:32
@github-actions github-actions Bot added the skills PR touches skills label Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔒 PR Risk Scan Results

Scanned 1 changed file(s).

Severity Count
🔴 High 0
🟠 Medium 0
ℹ️ Info 0

✅ No matching risk patterns were detected in changed files.

This is an automated soft-gate report. Findings indicate review targets and do not block merge by themselves.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🚦 Submission status: 🛠️ Requires submitter fixes

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

Automated checks

Check Status Details
Line endings ✅ Passed Passed · logs
Spelling ✅ Passed Passed · logs
Generated README consistency ✅ Passed Passed · logs
Skill validation ✅ Passed Passed · logs
Skill lint (vally) ✅ Passed Passed · logs
Risk scan ✅ Passed Passed · logs
Contributor reputation ✅ Passed Passed · logs
Duplicate resource scan ✅ Passed Passed · logs
PR quality signal ⏭️ Skipped Skipped by its workflow · logs

Action needed

  • Address the changes requested by aaronpowell, then push an update.

Review

  • Approvals: 0/1
  • Assigned reviewer: not assigned yet — comment /request-review to ask for one
  • Review target date: not set
  • Still needed: 1 more approval(s); an approval from a maintainer with admin or maintain permission; resolution of changes requested by aaronpowell
  • The core-maintainers pool is not staffed yet; an approver with admin or maintain permission is required instead.

Commands

Command Who What it does
/rerun-checks PR author, maintainers Re-runs failed or incomplete checks and re-evaluates this gate
/request-review PR author, maintainers Asks the review rotation to assign a reviewer (adds needs-reviewer)

Updated for 5410b02 · gate run · This comment is maintained automatically — see submission gate docs.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🔴 Contributor Reputation Check: HIGH risk

Check Risk
Profile HIGH
Credential audit NONE

Maintainers: please review this contributor before merging.
See the workflow run for full details.
Automated check powered by AGT.

@github-actions github-actions Bot added the needs-review:HIGH Contributor reputation check flagged HIGH risk label Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Vally Lint Results

✅ All checks passed

Scope Checked
Skills 1
Agents 0
Total 1
Severity Count
❌ Errors 0
⚠️ Warnings 0
ℹ️ Advisories 0

Summary

Level Finding
ℹ️ ✅ 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
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

@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

1 open issue
What changed in this PR

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.

Review effort: Balanced (dynamic)

Comment thread skills/agent-owasp-compliance/SKILL.md Resolved
…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.
Copilot AI adaptive review requested due to automatic review settings November 16, 2026 19:37
@github-actions github-actions Bot added awaiting-automation and removed ready-for-review Submission passed intake validation and is ready for maintainer review labels Nov 16, 2026
@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Low severity 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.

1 resolved since last review

Review effort: Balanced (adaptive)

… 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.
Copilot AI adaptive review requested due to automatic review settings November 16, 2026 19:42
@github-actions github-actions Bot added awaiting-automation and removed ready-for-review Submission passed intake validation and is ready for maintainer review labels Nov 16, 2026
@github-actions github-actions Bot added ready-for-review Submission passed intake validation and is ready for maintainer review and removed awaiting-automation labels Nov 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Medium severity 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.

Review effort: Balanced (adaptive)

@Johnbjoseph-cybersec

Copy link
Copy Markdown
Author

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
ASI08 Cascading Failures Covered Circuit breakers (agent-sre/.../cascade/circuit_breaker.py:51-175), fail-closed gateway (mcp_gateway.py:218-231, :498-516)
ASI09 Human-Agent Trust Partial 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
ASI10 Rogue Agents Covered Hash-chained audit (agentmesh/governance/audit.py:141-191, verify_chain at :540), anomaly detection (agent-sre/.../anomaly/rogue_detector.py), kill switch (agent-hypervisor/.../security/kill_switch.py)

Where the checklist was hard to apply to real code. These predate this PR, so I've left them for a separate follow-up:

  1. 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.
  2. ASI04 and ASI07 have no Failing/Passing lines, so those verdicts are judgement calls.
  3. ASI05 says no exec(), but an in-process restricted sandbox uses exec itself, and "sandbox" isn't defined.
  4. ASI03 names did:web: and did:key:, so a literal search misses other DID methods.
  5. 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

@aaronpowell aaronpowell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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.

@github-actions github-actions Bot added requires-submitter-fixes Submission has quality-gate findings that submitter must fix before maintainer review and removed ready-for-review Submission passed intake validation and is ready for maintainer review labels Nov 17, 2026
@Johnbjoseph-cybersec

Copy link
Copy Markdown
Author

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk:high needs-review:HIGH Contributor reputation check flagged HIGH risk requires-submitter-fixes Submission has quality-gate findings that submitter must fix before maintainer review skills PR touches skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants