Versatile AI Risk Assessment

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.

As of: November 2026 Catalogue version 2026.11.15.2 7 mitigations 18 verified references

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
    1. Remove publishing secrets from all agent jobs.
    2. Switch publishing to trusted publishing with short-lived OIDC tokens.
    3. 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
    1. Check workflows for direct embedding of external text in agent prompts.
    2. Pass external text as marked data and reduce agent rights for those runs.
    3. 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
    1. Define a policy on permitted agent modes per environment.
    2. Provide preconfigured isolated containers without credentials.
    3. 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
    1. Maintain an allowlist of AI extensions with assessment criteria.
    2. Pin versions and disable automatic updates.
    3. 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
    1. Identify agent configurations and hooks and put them under version control.
    2. Require owner approval for changes.
    3. 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
    1. Log agent actions, secret access and network connections in the pipeline.
    2. Define expected behaviour per job and alert on deviations.
    3. 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
    1. Define responsibilities and steps for withdrawal, rotation and notification.
    2. Keep the list of secrets reachable by agents up to date.
    3. 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.

How the catalogue relates this threat to others, with the reason.

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/

← Back to the full catalogue