Versatile AI Risk Assessment
Software development and IT security

Coding agent

Also known as: AI coding agent

The agent takes on complete programming tasks, works in the code repository and terminal, executes commands itself and submits changes for review.

Explore the interactive model

Export handout

A concise PDF covering how the system works, its data flows and points to investigate, ready to share.

The explanations and measures describe the typical system design. Extensive personal changes add an appendix.

Understand the use case

What defines this use case?

Goldman Sachs is trialling such an agent; according to the manufacturer, Nubank used one to complete a major code migration.

This page describes a typical system design. Actual data flows and permissions depend on your implementation.

System design
Agent with tool access
Ability to act
Can act within applications
Fields of use
financial services
Also known as
AI coding agent, programming agent, software agent

How it works, step by step

System design and data flows

  1. Input data

    The task arrives as a ticket or message; the agent also reads the repository, documentation and, if needed, websites.

    Tickets, external code, dependencies and websites the agent reads can come from outsiders. Code repositories, test data and logs can contain personal information.

  2. Processing

    A language model plans steps, edits files, runs commands and tests, and adapts its approach to the results.

    The model plans project changes, reads relevant files and calls approved development tools. Results from tests or other calls provide context for the next step. A successfully executed tool action must be distinguished from a substantively correct and approved change.

  3. Results

    The completed changes are provided as a branch or pull request with a description.

    A generated result is newly worded or created. To assess it, the instruction and context on which it is based must remain identifiable.

  4. Use and impact

    Commands affect the development environment while work is underway. After review and merge, the change enters the shipped software.

    Write or execution permissions allow the system to change a state within an application. Model responses, tool calls and changes actually executed must therefore be considered separately.

Explore the system design: Select a component to see its task, incoming and outgoing data, and role in the use case. The guided walkthrough explains each phase. Then use Yes, Uncertain and No to represent your specific system variant.

How the system is built

16 review first25 clarify9 baseline threats

InputProcessingResultImpact Externalaccess 04 Input 21 Third-partycontent 10 AI model 60 Providerservice 11 Documentcollection 01 Memory 01 Training andfeedback 02 OtherAI agents 00 Tools andinterfaces 32 Result 312 Business appor equipment 00 person 00 Affectedperson 00 AI serviceswithout approval 01 Externalaccess 04 Input 21 Third-partycontent 10 AI model 60 Providerservice 11 Documentcollection 01 Memory 01 Training andfeedback 02 OtherAI agents 00 Tools andinterfaces 32 Result 312 Business appor equipment 00 person 00 Affectedperson 00 AI serviceswithout approval 01
  • Present
  • Depends on your system
  • Absent
  • Review first
  • To clarify

In this system design: 16 to review first, 25 to clarify, 9 baseline threats.

Architecture as a list

How it differs from similar use cases

  • Coding assistant

    Only suggests code for developers to review and accept themselves

  • AI agent

    Completes tasks in office applications and business systems rather than source code

Data and information

Input data and information sources

Tickets, external code, dependencies and websites the agent reads can come from outsiders. Code repositories, test data and logs can contain personal information.

Processing and operating environment

Agents use a provider's language model.

Storage and further use

Many agents search code repositories and documentation for relevant material. Some agents store notes about projects and earlier tasks and consult them later.

Results and data sharing

The agent calls the terminal, version control, package managers and testing tools. The agent edits files, creates branches and opens pull requests.

Using a provider does not automatically determine where processing takes place. Storage location, subcontractors, deletion periods and use for training must be checked for the specific deployment.

Assess risks and determine measures

From understanding the system to analysing risks

  1. Define the system boundary

    Record data, participants, interfaces and permissions. Resolve uncertain characteristics in the model.

  2. Investigate threats

    Relate review candidates to actual data flows: what could happen, and who would be affected?

  3. Assess risk

    Assess impacts and likelihood in the deployment context. The number of review candidates is not a risk score.

  4. Provide evidence of measures

    Select appropriate controls, assign responsibilities and define effectiveness checks. Document residual risks and approvals.

Key threats in the application context

  • 4 particularly important
  • 12 typical
  • 25 depending on the system
  • 9 for every AI system

A total of 50 threats from the threat catalogue may be relevant to this use case.

Priority review points

  1. Prompt Injection: Indirect

    A ticket, README file or website contains hidden instructions. The agent executes them with its permissions, for example deleting files or reading credentials.

  2. Excessive Agency

    Permission to write to the main branch, production access credentials or cloud accounts lets mistakes cause damage beyond development. An unreviewed merge can send a change straight into production.

  3. Insecure Tool Design

    Unrestricted terminal access lets the agent execute any command available to the signed-in user. Without isolation and an allowlist of commands, a mistake is difficult to contain.

  4. Exfiltration from ML Application

    The agent can open network connections and execute commands. An injected instruction can make it send source code or secrets to an external address.

12 further review candidates in the typical design

Other relevant threats

  1. Backdoor ML Model

    Training data or an adopted base model can introduce hidden triggers for misbehaviour.

    Listed because of this characteristic

    • Uses another provider's model
  2. Sleepy Agent (Time/Event-Triggered Hidden Instructions)

    An instruction-following model can change behaviour at a particular time or event.

    Listed because of this characteristic

    • Performs natural language tasks
  3. Prompt Injection: Direct

    Users can override the system's working instructions through their inputs.

    Listed because of this characteristic

    • Performs natural language tasks
  4. Jailbreaks

    People requesting generated content may try to bypass intended limits.

    Listed because of this characteristic

    • Performs natural language tasks
  5. Meta Prompt Extraction

    Carefully crafted queries can reveal system instructions, which must therefore contain no secrets.

    Listed because of this characteristic

    • Performs natural language tasks
  6. Model Denial of Service

    Complex or high-volume inputs can exhaust model computing resources.

    Listed because of this characteristic

    • Generates its own text
  7. Privacy Attacks

    Targeted queries can recover some personal or protected training data from the model.

    Listed because of this characteristic

    • Processes confidential data
  8. Sensitive Information Disclosure

    Confidential content can appear in answers, supplied context or logs.

    Listed because of this characteristic

    • Processes confidential data
  9. Malicious Software

    Generated code can contain malicious functions or help develop them.

    Listed because of this characteristic

    • Generates code or queries
  10. Factual Inconsistencies (Hallucinations)

    Generated text can invent facts or distort them during rewriting.

    Listed because of this characteristic

    • Generates its own text
  11. Misalignment

    The target metric can improve while the underlying objective is missed.

    Listed because of this characteristic

    • Determines its own work steps
  12. Agentic AI / Autonomous Agents

    When a system plans and acts over several steps, an error can compound at each step.

    Listed because of this characteristic

    • Determines its own work steps

Up to 25 further threats may apply, depending on your system design. Nine threats need to be reviewed for every AI system.

System features and open questions

Each Yes adds further threats to your checklist, up to 25 in total. If you cannot yet answer a question, include its threats in your review.

How many threats a Yes adds
  • Added by this Yes
  • Also requires a Yes to another question

How you operate the system

  1. Available to people outside the organisation4 threats, plus 2 only in combination with other characteristics
  2. Accepts queries directly through an interface4 threats
  3. Accessible over a network1 threat, plus 1 only in combination with other characteristics
  4. Incurs costs with each query1 threat
  5. Shares computing resources with other customers or applications1 threat
  6. Used alongside unapproved AI services1 threat

How your system is built

Does the system search its own collection of documents or records for relevant content?

Many agents search code repositories and documentation for relevant material.

If yes, add

Does the system remember content from earlier conversations or tasks and reuse it later?

Some agents store notes about projects and earlier tasks and consult them later.

If yes, add

Does the system process several input types together, such as text with images or speech?

If yes, add

How you operate the system

These questions arise for almost every AI system.

Controls and implementation

Measures for the priority review areas are expanded. Each linked measure explains how to implement it.

Review priorityPrompt Injection: Indirect3 measures
Review priorityExcessive Agency3 measures
Review priorityInsecure Tool Design3 measures
Review priorityExfiltration from ML Application3 measures
Backdoor ML Model2 measures
Sleepy Agent (Time/Event-Triggered Hidden Instructions)3 measures
Prompt Injection: Direct3 measures
Jailbreaks2 measures
Meta Prompt Extraction2 measures
Model Denial of Service3 measures
Privacy Attacks3 measures
Sensitive Information Disclosure3 measures
Malicious Software3 measures
Factual Inconsistencies (Hallucinations)3 measures
Misalignment3 measures
Agentic AI / Autonomous Agents3 measures

Controls for the remaining threats are available on their pages in the threat catalogue.

AI Act provisions

When AI Act provisions apply
  1. Art. 4: AI literacy

    For every AI system Applies since 2 February 2025.

  2. Art. 53 para. 1 point b, Annex XII: Embedded general-purpose model

    Depending on use Review trigger since 2 August 2025.

Applies to every AI system

Art. 4: AI literacy

Applies if staff or appointed representatives operate or use AI systems.

Applies since 2 February 2025.

Obligations and details for Art. 4: AI literacy
Who bears the obligations
Provider, Deployer, Product manufacturer, Provider of a general-purpose AI model

Detailed obligations

May apply in particular uses

Art. 53 para. 1 point b, Annex XII: Embedded general-purpose model

Applies if a large language model or another third-party general-purpose model is incorporated into an agent you provide yourself.

Applies since 2 August 2025.

Obligations and details for Art. 53 para. 1 point b, Annex XII: Embedded general-purpose model
The general condition is
Applies if another provider's general-purpose AI model is incorporated, such as a large language model.
Points to consider
The model provider bears its obligations. It must give you the Annex XII information; use it for your own documentation.
Who bears the obligations
Provider of a general-purpose AI model

Detailed obligations

Classify your system with the quick checker All obligations in the obligations compass

Cross-cutting threats

Review these threats for every AI system, whatever its purpose.

Why these threats always belong on the checklist

Atypical system features

View 2 further questions

If any of these features does apply to your system, add the listed threats.

Sources

Related use cases

Also in the field of Software development and IT security

Updated: 30 September 2026. Review checklist rules version 0.3.2, threat catalogue version 2026.10.24.2. How these pages are structured