Repository navigation
💡 Agent Prompt Injection Threat Model and CI Hardening Playbook #485
Replies: 1 comment
Weekly UpdateWhat ChangedThree critical real-world incidents strengthen the case for this threat model:
actions/checkout v7 (Jun 18, 2026) now blocks fork PR checkouts in privileged contexts by default, closing one major vector in the pwn-request attack pattern. See new Discussion #533. Updated Assessment
RecommendationAdvance — urgency increased. The CVE-2025-66032 demonstrates that the exact attack patterns this threat model addresses are being actively exploited against AI coding agents in CI. The org uses Claude Code in CI workflows — the affected toolchain. Prioritize: (1) audit all agent workflows for untrusted input exposure, (2) document the trust boundary between issue/PR content and agent prompts, (3) add OIDC token scoping to limit blast radius of compromised sessions. |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Create a comprehensive threat model and hardening playbook for the org's agentic CI workflows, addressing the "Comment and Control" attack class (March 2026) where PR titles and issue bodies are weaponized to hijack AI agents. The playbook codifies the "Rule of Two" principle: never let an agent simultaneously process untrusted input and hold state-changing tool access.
Market Signal
The agent security landscape has shifted dramatically in Q1-Q2 2026:
Sources: CSA Research Note, Comment and Control disclosure, NSA MCP Guidance (PDF)
User Signal
The org runs five agent-driven workflows that process untrusted inputs:
dev-lead.ymlfeature-ideation.ymlcompliance-audit.ymlclaude-code-reusable.ymlagent-shield.ymlExisting ideas #269 (Agent Shield v2) and #367 (Agent Input Sanitization) address individual pieces but no unified threat model ties them together. The feature-ideation auto-enhance work (PR #448) introduced a new attack surface where Discussion content is processed by an agent.
Technical Opportunity
The existing
agent-shield.ymlprovides a runtime detection foundation.ci-standards.mdalready mandates action pinning and permission scoping. A unified threat model would connect these existing controls with new defenses:Assessment
Adversarial Review
Strongest objection: The org already has
agent-shield.ymland existing ideas #269 (Agent Shield v2) and #367 (Agent Input Sanitization). Is this just duplication?Rebuttal: Agent-shield is a runtime detection tool — it detects attacks after they happen. Ideas #269 and #367 are point solutions for specific attack vectors. This playbook is the strategic layer above them: a threat model that maps the org's actual attack surfaces to controls, identifies gaps, and prioritizes hardening work. The "Comment and Control" disclosure, Microsoft CVE, and NSA MCP guidance provide new urgency and structure that didn't exist when those ideas were proposed in May 2026. The playbook references agent-shield as one control among many, giving it architectural context.
Suggested Next Step
Draft a
standards/agent-ci-threat-model.mdcovering:All reactions