AI threat catalogue Supply Chain and Provenance Development
Compromise of AI Coding Agents and Developer Tools
Coding agents and AI extensions in the development environment and build pipeline become an entry point themselves. They follow hidden instructions from tickets or code or are remote-controlled by malicious packages, with developer permissions.
Description
AI coding agents read source code, tickets, pull requests (proposed changes) and error messages and execute commands on that basis. Attackers place instructions in exactly this content, for example in a ticket title or a hidden comment. An agent that triages tickets or reviews code in the CI/CD pipeline (the automated build and delivery chain) follows them with the pipeline's secrets. Malicious packages invoke AI command-line tools installed on developer machines with safety prompts switched off in order to hunt for credentials. Manipulated agent configuration files give attackers persistent access.
Possible impact
Attackers obtain credentials, signing keys and publishing rights and can use them to ship manipulated software versions that end up with customers. The damage therefore extends beyond the own team into the supply chain. Because the actions come from a legitimate tool, they barely stand out in logs; cleaning up and replacing all secrets is laborious and can halt development for days.
Example
A project has an AI agent in its build pipeline pre-sort new tickets. An attacker opens a ticket whose title contains an instruction to the agent. The agent follows it, reads the package publishing token from the pipeline and discloses it. Shortly afterwards, a manipulated version of the package appears in the public registry.
- Main lifecycle phase
- Development and training
- Arises in
- Development and training, Supply chain and procurement
- Takes effect in
- Development and training, Operation and monitoring
Recommended mitigations (7)
Compare effects and implementation levels. Expand each entry for the additional classification and rationale.
-
Run coding agents in the CI/CD pipeline without publishing secrets; publish only via short-lived OIDC tokens (trusted publishing)
Technical- Effect
- Preventive, Impact-limiting
- Implementation level
- Supply chain, Infrastructure
Classification and rationale
Complementary control typeOrganizational & process-based
Primarily technical: Machine-enforced identity, permission, or scope rules constrain unauthorized access and actions; complemented by binding workflows.
Meaning, implementation and evidence
- What it means
- Coding agents run in pipeline jobs without access to publishing secrets; packages and artefacts are published only in a separate step using short-lived OIDC tokens bound to repository and workflow.
- Effect on the threat
- An agent steered by hidden instructions or malicious packages cannot harvest publishing keys or ship manipulated versions in the project's name.
- When it helps
- Useful where coding agents or AI extensions in development environments or the CI/CD pipeline read tickets, code or pull requests and run commands themselves.
- Suggested implementation
- Remove publishing secrets from all agent jobs.
- Switch publishing to trusted publishing with short-lived OIDC tokens.
- Separate the publishing step from agent steps and tie it to approvals.
- Useful evidence examples
- Pipeline configuration, list of removed secrets, trusted publishing configuration or publishing log.
-
Treat issue, pull request and comment text as untrusted data and never pass it to the agent as an instruction
Technical- Effect
- Preventive
- Implementation level
- Application, API & agents, Supply chain
Classification and rationale
Complementary control typeOrganizational & process-based
Primarily technical: System-enforced inspection, transformation, or blocking rules stop or neutralize disallowed content before further processing; complemented by binding workflows.
Meaning, implementation and evidence
- What it means
- Text from issues, pull requests and comments is handed to the agent only as clearly delimited data, never as part of its instructions, and workflows do not trigger agents on external contributions without review.
- Effect on the threat
- Hidden instructions planted by attackers in tickets or comments cannot make the agent change code or leak secrets with developer rights.
- When it helps
- Useful where coding agents or AI extensions in development environments or the CI/CD pipeline read tickets, code or pull requests and run commands themselves.
- Suggested implementation
- Check workflows for direct embedding of external text in agent prompts.
- Pass external text as marked data and reduce agent rights for those runs.
- Require approval before agents run on contributions from external people.
- Useful evidence examples
- Workflow configuration, prompt templates, test report with injection examples or review checklist.
-
Allow agent modes without confirmation prompts only in isolated containers without credentials
Technical- Effect
- Preventive, Impact-limiting
- Implementation level
- Application, API & agents, Infrastructure
Classification and rationale
Complementary control typeGovernance & compliance
Primarily technical: Architectural and runtime boundaries separate data, execution, or tenants and limit the spread of failures; complemented by rules and oversight.
Meaning, implementation and evidence
- What it means
- Modes in which coding agents run commands and edit files without confirmation are only permitted in isolated, short-lived containers without credentials, secrets or access to developer accounts.
- Effect on the threat
- If an unattended agent is misled by manipulated input or malicious packages, it reaches neither credentials nor the developer's system.
- When it helps
- Useful where coding agents or AI extensions in development environments or the CI/CD pipeline read tickets, code or pull requests and run commands themselves.
- Suggested implementation
- Define a policy on permitted agent modes per environment.
- Provide preconfigured isolated containers without credentials.
- Technically block confirmation-free modes outside these containers.
- Useful evidence examples
- Policy, container configuration, agent settings configuration excerpt or test evidence.
-
Allowlist and version pinning for AI extensions in the IDE and pipeline
Technical- Effect
- Preventive
- Implementation level
- Supply chain, Application, API & agents
Classification and rationale
Complementary control typeOrganizational & process-based
Primarily technical: Machine-enforced identity, permission, or scope rules constrain unauthorized access and actions; complemented by binding workflows.
Meaning, implementation and evidence
- What it means
- Only vetted AI extensions and agent plugins may be installed in the IDE and pipeline, each pinned to a defined, reviewed version without automatic updates.
- Effect on the threat
- Malicious or later compromised extensions do not slip into environments with developer rights unnoticed via updates.
- When it helps
- Useful where coding agents or AI extensions in development environments or the CI/CD pipeline read tickets, code or pull requests and run commands themselves.
- Suggested implementation
- Maintain an allowlist of AI extensions with assessment criteria.
- Pin versions and disable automatic updates.
- Review and approve new versions before adopting them.
- Useful evidence examples
- Allowlist, configuration excerpt with pinned versions, review record for new versions or policy.
-
Integrity protection and change monitoring for agent configuration files and hooks
Technical- Effect
- Preventive, Detective
- Implementation level
- Application, API & agents, Supply chain
Classification and rationale
Complementary control typeOrganizational & process-based
Primarily technical: Cryptographic or machine-verifiable properties protect confidentiality, integrity, or provenance; complemented by binding workflows.
Meaning, implementation and evidence
- What it means
- Configuration files, rule files and hooks of coding agents are versioned, protected by write restrictions or code owner rules and monitored for any change.
- Effect on the threat
- Attackers cannot silently reprogram agents through tampered rules or hooks, because changes must be approved or trigger an alert.
- When it helps
- Useful where coding agents or AI extensions in development environments or the CI/CD pipeline read tickets, code or pull requests and run commands themselves.
- Suggested implementation
- Identify agent configurations and hooks and put them under version control.
- Require owner approval for changes.
- Detect and report unexpected changes via checksum or diff.
- Useful evidence examples
- List of protected files, code owner rules, alert configuration or change log.
-
Monitoring of unusual agent actions in the pipeline, such as secret access or outbound connections
Technical- Effect
- Detective
- Implementation level
- Supply chain, Use & operations
Classification and rationale
Complementary control typeOrganizational & process-based
Primarily technical: Software or analytical tools systematically produce and evaluate measurements, deviations, or attack indicators; complemented by binding workflows.
Meaning, implementation and evidence
- What it means
- Agent actions in build and deployment pipelines are logged and analysed for anomalies such as secret access, unexpected outbound connections or changes to workflows.
- Effect on the threat
- An agent that is remotely controlled or manipulated by instructions is noticed through atypical actions before secrets leak or tampered artefacts are produced.
- When it helps
- Useful where coding agents or AI extensions in development environments or the CI/CD pipeline read tickets, code or pull requests and run commands themselves.
- Suggested implementation
- Log agent actions, secret access and network connections in the pipeline.
- Define expected behaviour per job and alert on deviations.
- Handle alerts with assigned ownership and the ability to abort runs.
- Useful evidence examples
- Logging configuration, alert rules, alert log or investigation report.
-
Incident playbook: withdraw compromised package versions, rotate all reachable secrets, notify downstream users
Organizational & process-based- Effect
- Impact-limiting, Corrective
- Implementation level
- Supply chain, Use & operations
Classification and rationale
Complementary control typeTechnical
Primarily organizational and process-based: A defined reporting, triage, and handling workflow turns observations into traceable follow-up actions; complemented by technical implementation.
Meaning, implementation and evidence
- What it means
- A prepared procedure governs how, after a compromise, affected package versions are withdrawn or flagged as unsafe, all secrets reachable by the agent are rotated and downstream users are informed.
- Effect on the threat
- Malicious versions stop spreading, leaked secrets become worthless and downstream users can check their own systems in time.
- When it helps
- Useful where coding agents or AI extensions in development environments or the CI/CD pipeline read tickets, code or pull requests and run commands themselves.
- Suggested implementation
- Define responsibilities and steps for withdrawal, rotation and notification.
- Keep the list of secrets reachable by agents up to date.
- Prepare advisory templates for downstream users and rehearse the procedure.
- Useful evidence examples
- Playbook, secrets inventory, exercise record or published security advisory.
Framework mappings
Verified locations in OWASP, NIST AI RMF, MITRE ATLAS, the EU AI Act and further frameworks. The mappings are taxonomic, not evidence of compliance.
Verified references (18)
Every reference states the framework, the exact location and the publishing organisation.
- OWASP Top 10 ASI04:2026 Agentic Supply Chain VulnerabilitiesASI04 Agentic Supply Chain Vulnerabilities, pp. 18–20 of the official PDFOWASP FoundationOriginal
- OWASP Top 10 ASI05:2026 Unexpected Code Execution (RCE)ASI05 Unexpected Code Execution (RCE), pp. 21–23 of the official PDFOWASP FoundationOriginal
- OWASP Top 10 LLM01:2026 Prompt InjectionLLM01:2026 Prompt Injection, OWASP Top 10 for LLM Applications 2026 v1.0, pp. 10-17 (doi:10.5281/zenodo.22109015); canonical text 2026/final/LLM01_PromptInjection.md at commit 7e144e05OWASP FoundationOriginal
- OWASP Top 10 LLM04:2026 Supply ChainLLM04:2026 Supply Chain, OWASP Top 10 for LLM Applications 2026 v1.0, pp. 27-32 (doi:10.5281/zenodo.22109015); canonical text 2026/final/LLM04_SupplyChain.md at commit 7e144e05OWASP FoundationOriginal
- NIST AI RMF NISTAML.015 Indirect Prompt InjectionTaxonomy Index, pp. x–xi; Section 3.4, pp. 50–53; Glossary, p. 110National Institute of Standards and Technology (NIST)Original
- NIST AI RMF NISTAML.05 Supply Chain AttacksTaxonomy Index, pp. x–xi; Section 3.2, pp. 41–43National Institute of Standards and Technology (NIST)Original
- MITRE ATLAS AML.T0051.001 IndirectATLAS-2026.10.yaml technique object with id AML.T0051.001 (content release 2026.10, format-version 6.1.0); sub-technique of AML.T0051 LLM Prompt InjectionMITREOriginal
- MITRE ATLAS AML.T0083 Credentials from AI Agent ConfigurationATLAS-2026.10.yaml technique object with id AML.T0083 (content release 2026.10, format-version 6.1.0)MITREOriginal
- EU AI Act Article 15(5) Accuracy, robustness and cybersecurityArticle 15(5), including the express references to data/model poisoning, adversarial examples/evasion, confidentiality attacks and model flawsEuropean Union (EUR-Lex)Original
- BSI Ch. 2.2.2 Accessing private Repositories via MCP (Milanta, et al.)Ch. 2.2.2, p. 15Bundesamt für Sicherheit in der Informationstechnik (BSI)Original
- BSI Ch. 2.2.3 How Hackers Can Weaponize Code Agents (Karliner, 2025)Ch. 2.2.3, p. 16Bundesamt für Sicherheit in der Informationstechnik (BSI)Original
- BSI R28 Indirect Prompt Injections (Text)Ch. 4, R28, p. 33Bundesamt für Sicherheit in der Informationstechnik (BSI)Original
- CoSAI Insecure Integrated Component Insecure Integrated ComponentRisk Map, risk entryCoalition for Secure AI (CoSAI, OASIS Open Project)Original
- CoSAI Prompt Injection Prompt InjectionRisk Map, risk entryCoalition for Secure AI (CoSAI, OASIS Open Project)Original
- CoSAI Tool Source Provenance Tool Source ProvenanceRisk Map, risk entryCoalition for Secure AI (CoSAI, OASIS Open Project)Original
- OWASP AI Exchange 2.2.2 Indirect prompt injection2_threats_through_use.md, section 2.2.2 Indirect prompt injectionOWASP Foundation (OWASP AI Exchange)Original
- MIT AI Risk Repository 2.2 AI system security vulnerabilities and attacksDomain Taxonomy, subdomain 2.2MIT FutureTech (MIT AI Risk Initiative)Original
- ETSI EN 304 223 5.2.2 (Principle 6) Secure the infrastructureClause 5.2.2, p. 12European Telecommunications Standards Institute (ETSI), TC SAIOriginal
Related threats (7)
How the catalogue relates this threat to others, with the reason.
-
Enables
Compromised Infrastructure and Software Dependencies in the Supply Chain
With stolen publishing rights, manipulated package versions reach all consumers.
-
Enables
Abuse of Agent Identities and Machine Credentials
Compromised coding agents read developer secrets and publishing tokens.
-
Enabled by
Indirect Prompt Injection via External Content
Coding agents read issues, comments and project files and are remote-controlled through them.
-
Enabled by
Agent Goal Hijacking
Instructions in tickets, pull requests or code comments hijack the goal of a coding agent, which then carries them out with developer privileges and the pipeline secrets.
-
Enabled by
Malicious or Hijacked Agent Extensions (MCP Servers, Skills, Plugins)
AI extensions in the IDE and pipeline are a gateway for taking over coding agents.
-
See also
Insecure AI-Generated Code and Hallucinated Software Dependencies
Both concern coding agents, once as attack target and once as source of insecure code.
-
See also
Attacks on AI Frameworks, Middleware and Model Gateways
Coding agents install and update frameworks and thereby enlarge the middleware attack surface.
EU AI Act obligations related to this threat
The obligations from the obligations compass whose articles the catalogue maps to this threat. Each leads to its entry with core, action step and evidence; whether it applies to you depends on role and risk class.
-
Achieve accuracy, robustness and cybersecurity
Art. 15, Art. 42(3), applies from Annex III: 2 December 2027; Annex I: 2 August 2028, amended by Reg. 2026/1744
Statutory roles: Provider, Product manufacturer. Classes: High-risk under Annex III, High-risk as a product or safety component.
New: where a high-risk system falls within the scope of Regulation (EU) 2024/2847 on horizontal cybersecurity requirements and meets its conditions, it is deemed compliant with the cybersecurity requirements of Art. 15. Duplicate evidence is therefore not required.
This reference is a review prompt. A threat match alone does not establish applicability.
All 62 obligations by role, risk class and deadline in the obligations compass
Terms on this page
Glossary terms that occur in this entry. Every link leads to the full explanation.
- Coding agent AI agent that reads, writes and runs code in the development environment and build pipeline.
Matching use cases
This list shows where to review this threat, rather than how high the risk is.
Particularly important for:
- Coding agentThe agent works with developer permissions in the repository and pipeline. A compromised extension or malicious package in its environment can then control it remotely and reach signing keys and release channels.
For 4 further use cases, relevance depends on the system design, for example whether it generates code or queries or calls other programs or interfaces. Show these use cases
Frequently asked questions
- What is Compromise of AI Coding Agents and Developer Tools?
- Coding agents and AI extensions in the development environment and build pipeline become an entry point themselves. They follow hidden instructions from tickets or code or are remote-controlled by malicious packages, with developer permissions.
- Which mitigations help against Compromise of AI Coding Agents and Developer Tools?
- The catalogue lists 7 mitigations, each with control type, effect and implementation level. First among them are “Run coding agents in the CI/CD pipeline without publishing secrets; publish only via short-lived OIDC tokens (trusted publishing)”; “Treat issue, pull request and comment text as untrusted data and never pass it to the agent as an instruction”; and “Allow agent modes without confirmation prompts only in isolated containers without credentials”.
- Which EU AI Act obligations does Compromise of AI Coding Agents and Developer Tools touch?
- The catalogue maps this threat to Art. 15(5) of the EU AI Act. In the obligations compass this leads to: Achieve accuracy, robustness and cybersecurity. Whether an obligation applies depends on role, risk class and deadline.
Assess this threat in your own system
The live demo contains all 79 threats of this catalogue, including the EU AI Act and GDPR assessment. The free single modules cover AI risk, the EU AI Act and GDPR. No sign-up; the assessment runs locally in your browser.
Cite this entry
For reports, policies or internal documents; the link leads directly to this entry.
“Compromise of AI Coding Agents and Developer Tools”. Versatile AI Risk Assessment, AI threat catalogue, as of November 2026. https://www.versatile-ai-risk-assessment.com/en/wissensbasis/threats/compromised-coding-agents/