Services · 15 ways across one gap

All services

Work · proof, not promises

All case studies

Insights · street talk, written down

Magazine

Company · AI in production since 2011

About Voidgap

AI agents,
on a short leash.

An agent does not only answer, it acts. Permissions, approvals, logs, evals, injection defences, incidents, the AI Act and the works council, in the order you need them.

As of
September 2026
Covers
OWASP Top 10 (2025, agentic 2026) · AI Act · GDPR · NIS2 · BetrVG
Reading time
about 14 minutes · 11 chapters
Sources
12 linked
Legal review
to decide

01

In one minute

A chatbot that is wrong writes a wrong sentence. An agent that is wrong sends the email, books the refund or deletes the record. The controls are old ideas from security and operations: least privilege, four-eyes approval, audit logs, tests, a kill switch. What is new is that the input can give orders. Text in an email, a web page or a PDF can steer the agent, so every permission you grant is one an attacker can try to borrow.

Top risk, LLM apps
LLM01 · Prompt InjectionFirst on the OWASP Top 10 for LLM Applications 2025.1
The agent risk
LLM06 · Excessive AgencyToo much functionality, too many permissions, too much autonomy.2
Agentic Top 10
ASI01 · Agent Goal HijackOWASP Top 10 for Agentic Applications, published 9 December 2025.3
Works council
§ 87 (1) Nr. 6 BetrVGCo-determination over technical means that can monitor behaviour or performance.4
AI Act
Classified by useThere is no separate class for agents. What the agent does decides.5
Fastest clock
24 hoursNIS2 early warning, for essential and important entities.6

02

What makes an agent different

An agent is a model that calls tools in a loop: it reads, decides, calls an API, reads the result and decides again, until it thinks the job is done. Three properties matter for safety. It can act, through tools. It picks the next step itself, which is autonomy. And it reads content you do not control, which is input.

OWASP calls the failure mode Excessive Agency and traces it to three root causes: excessive functionality, excessive permissions and excessive autonomy. Every control in this guide shrinks one of the three.2

  1. Read
    Search the knowledge base, read a ticketAllowed, logged
  2. Draft
    Write a reply, fill in a form, propose a bookingA human sends it
  3. Act, reversible
    Set a ticket status, create a draft orderAllowed within limits, logged, undo tested
  4. Act, external or financial
    Email a customer, issue a refundApproval per action, or above a threshold
  5. Act, irreversible
    Delete data, change permissions, signNot for the agent. A person does it.
Our default ladder. The blocks show how much an error can spread. Move a row to a lighter gate only when your evals justify it.

03

Permissions and allow-lists

  • Give every agent its own identity. No shared service accounts, no borrowed admin tokens. Then the log says which agent did what, and you can revoke one without stopping all. OWASP lists this as Identity & Privilege Abuse (ASI03).3
  • Deny by default. Allow-list the tools and, inside each tool, the operations and parameter ranges: “read orders of the current customer”, not “SQL access”.
  • Act with the user’s rights, not more. Where an agent works for a person, it sees only what that person may see. OWASP’s mitigation for Excessive Agency: execute extensions in the user’s context.2
  • Keep secrets out of the context. Credentials live in the tool layer, never in prompts, memory or retrieved documents.
  • Set budgets. Limits per task on steps, tool calls, money and tokens, with a hard stop. Runaway loops are Unbounded Consumption (LLM10).1
  • Treat tool servers like dependencies. MCP servers and plug-ins are pinned, reviewed and given least privilege (Agentic Supply Chain Vulnerabilities, ASI04).

04

Human approval gates

An approval gate is only as good as the person and the screen behind it.

  • Gate by consequence, not by confidence. The model’s own certainty is not a control. Gate what is external, financial, irreversible or about people.
  • Show the effect, not the reasoning. The exact email, the amount, the record before and after.
  • Make rejection cheap. One click, with a reason, and every rejection goes into the eval set.
  • Watch for rubber-stamping. If approvals take two seconds and never fail, the gate is decoration. OWASP lists Human-Agent Trust Exploitation (ASI09): agents that talk people into approving.3
  • The approver needs competence and authority. For high-risk systems the AI Act asks exactly that of human oversight (Art. 14, Art. 26(2)).7

05

Logging

If it is not in the log, the agent did not do it, as far as your auditor knows. Log per step:

  • input and its source
  • retrieved context, with document IDs
  • every tool call: name, parameters, result, duration
  • approvals: who, when, what they saw
  • model and prompt version
  • cost and tokens
  • final outcome

Logs of an agent that works for people are personal data, and they can show what an employee did and how fast. That is a GDPR question (purpose, access, retention) and, in Germany, a works council question. Decide both before the first log line is written. Deployers of high-risk systems keep the automatically generated logs for at least six months (Art. 26(6)).78

Keep a change log next to the run log: every prompt, tool and model change, dated, with who approved it. This website keeps one in public, the Ship Log.

06

Evals

Test the agent like software, because it is software whose behaviour changes when a prompt, a model version or a tool changes.

  1. 01
    Real cases

    Build the set from real cases, with the expected outcome and the expected tool calls, not only the final text.

  2. 02
    Score the path

    Right tool, right parameters, no extra actions. An agent that gets the answer right while touching three systems it did not need is failing.

  3. 03
    Adversarial cases

    Injected instructions in emails and documents, requests to exceed permissions, loops.

  4. 04
    A gate

    Run the set on every change, with a threshold the business owner agreed to. Below the threshold, it does not ship.

  5. 05
    Keep watching

    Sample real runs in production, and feed every rejected approval and every incident back into the set.

07

Prompt injection and tool misuse

Prompt injection is first on the OWASP list for LLM applications (LLM01:2025). Direct injection comes from the user. Indirect injection hides in content the agent reads: a web page, an email, a PDF, a calendar invite, a code comment. Against an agent the goal is not a rude answer but an action: forward the inbox, change the bank details, open the pull request. OWASP’s agentic list calls these Agent Goal Hijack (ASI01) and Tool Misuse (ASI02).13

No filter stops all of it. Design so that a successful injection has little to steer:

  • Separate instructions from data. What the agent reads is data, never a command, and is marked as such in the context.
  • Break the dangerous combination. Access to private data, exposure to untrusted content and a way to send data out should not meet in one agent without a gate.
  • Validate before the tool. Types, ranges, allowed recipients and domains. Unchecked output flowing into a tool is Improper Output Handling (LLM05).
  • Protect memory. What an agent stores for later can be poisoned today and fire next week (Memory & Context Poisoning, ASI06).
  • Contain code. If the agent writes or runs code, sandbox it without network access or secrets (Unexpected Code Execution, ASI05).
  • Red-team it. Before launch and after every major change, with the injection cases kept in the eval set.

OWASP Top 10 for LLM Applications 20251

  1. LLM01Prompt Injection
  2. LLM02Sensitive Information Disclosure
  3. LLM03Supply Chain
  4. LLM04Data and Model Poisoning
  5. LLM05Improper Output Handling
  6. LLM06Excessive Agency
  7. LLM07System Prompt Leakage
  8. LLM08Vector and Embedding Weaknesses
  9. LLM09Misinformation
  10. LLM10Unbounded Consumption

OWASP Top 10 for Agentic Applications for 20263

  1. ASI01Agent Goal Hijack
  2. ASI02Tool Misuse
  3. ASI03Identity & Privilege Abuse
  4. ASI04Agentic Supply Chain Vulnerabilities
  5. ASI05Unexpected Code Execution
  6. ASI06Memory & Context Poisoning
  7. ASI07Insecure Inter-Agent Communication
  8. ASI08Cascading Failures
  9. ASI09Human-Agent Trust Exploitation
  10. ASI10Rogue Agents

Highlighted: the entries this guide addresses directly. Names as published by OWASP.

08

Incident handling

Assume it will misfire. Decide beforehand who can stop it, how, and who gets told.

  • A kill switch. One control that stops all runs and revokes the agent’s credentials, reachable by someone on call.
  • A runbook. Symptoms, first steps, who decides, who informs whom.
  • Undo. For every reversible action a tested way back. For every irreversible one, a reason why the agent may do it at all.
  • Evidence first. Preserve the logs of the run before anyone fixes anything.
  • Close the loop. Write it up, add the case to the evals, change one control.
  1. NIS2 early warningArt. 23(4)(a) NIS224 hours · to the CSIRT or authority
  2. AI Act: critical infrastructure or widespreadArt. 73(3)2 days · high-risk providers
  3. GDPR personal data breachArt. 33 GDPR72 hours · to the supervisory authority
  4. NIS2 incident notificationArt. 23(4)(b) NIS272 hours
  5. AI Act: death of a personArt. 73(4)10 days · high-risk providers
  6. AI Act: other serious incidentsArt. 73(2)15 days · high-risk providers
  7. NIS2 final reportArt. 23(4)(d) NIS2one month after the notification
Linear axis in days from the moment you become aware. Each clock has its own trigger and recipient; one incident can start several.689

The AI Act clocks bind providers of high-risk systems, from 2 December 2027 for Annex III. Deployers of high-risk systems who find a risk or a serious incident inform the provider and the authority (Art. 26(5)). GDPR applies when personal data is involved, NIS2 when you are an essential or important entity.97

09

AI Act touchpoints

  • Classify the use, not the agent. An agent that drafts marketing copy is minimal risk. One that ranks applicants, or allocates tasks to workers based on their behaviour, is high-risk under Annex III, from 2 December 2027.5
  • If it talks to people, it says it is an AI. Art. 50(1), since 2 August 2026.
  • If you build it, you may be its provider. Offering it under your name, or putting it into service for your own use, makes you the provider of the AI system. The model vendor stays the provider of the model.
  • The people who work with it need AI literacy measures. Guide 02
  • If it decides about people alone, GDPR speaks too. Art. 22 GDPR: no decisions based solely on automated processing with legal or similarly significant effects, with narrow exceptions.8

10

The works council

§ 87 (1) Nr. 6 BetrVG gives the works council co-determination over the introduction and use of technical devices designed to monitor the behaviour or performance of employees. The Federal Labour Court reads “designed” as “objectively suitable”: what the employer intends does not matter.410

An agent that logs who asked it what, who approved which action and how long it took is suitable almost by definition. Expect co-determination and plan for a works agreement. The Hamburg Labour Court held in January 2024 that letting staff use ChatGPT through their own private accounts did not trigger it: ChatGPT was not installed on company systems, and the employer had no access to the data the vendor collected (ArbG Hamburg, 24 BVGa 1/24). An agent on your infrastructure, writing your logs, is the opposite case.11

Two more rules help. The employer informs the works council in time about planned work procedures, including the use of AI (§ 90 (1) Nr. 3 BetrVG). When the works council has to assess AI, bringing in an expert counts as necessary (§ 80 (3) BetrVG). Under the AI Act, employers deploying a high-risk system at work also inform workers’ representatives and the affected workers before use (Art. 26(7)).127

What goes into the works agreement

  1. 01
    Purpose and scope

    Per agent: what it does, for whom, with which tools.

  2. 02
    Logs

    What is logged, who may see it, for how long.

  3. 03
    No hidden evaluation

    Whether, and exactly when, agent logs may be used to assess individuals.

  4. 04
    New agents

    A framework agreement with an annex per agent, so the tenth agent does not need a new negotiation.

  5. 05
    Training and contact

    Who is trained, and whom employees can ask.

11

Readiness check

Seventeen controls in eight groups. Ten are marked “must”: without them, keep the agent to reading and drafting. Tick what is in place today, not what is planned.

01 / 08Scope
02 / 08Permissions
03 / 08Approvals
04 / 08Logging
05 / 08Evals
06 / 08Security
07 / 08Incidents
08 / 08People and law

Agents in production

Give it
a leash.

We build agents with the gates, logs and evals in from day one, and we test the ones you already run.