by PolicyForge (LX AI)

Last updated: 2026-09-16

AI Agent Security Checklist 2026

Agents that can call tools and read secrets are no longer demos - they are production systems. This checklist is the pre-deployment gate we use at LX AI before any agent touches real data. It maps to the OWASP Top 10 for LLM Applications (2025) and the EU AI Act (Regulation (EU) 2024/1689).

1. Inventory every prompt and tool

What to capture

How to store the inventory

Why this matters

Without a complete list you cannot apply any of the later controls. Missing a tool means you cannot enforce its allow‑list. Missing a data source means you cannot assess its sensitivity. Treat the inventory as the single source of truth for every subsequent security check.

2. Guard against prompt injection

Defensive layers

  1. Treat all external input as untrusted – email bodies, web scrapes, tool outputs
  2. Strip or escape any text that looks like an instruction (e.g., strings starting with “Ignore”, “Override”, “System”)
  3. Require tools to return strictly structured data (JSON with a known schema) and reject anything that does not conform
  4. Maintain a deterministic allow‑list of actions that may affect secrets or money; any action not on the list is blocked
  5. Log the raw input and the sanitized version side‑by‑side for later review

Practical checklist

Table: Example allow‑list for a finance‑assistant agent

Action Allowed? Reason
Read account balance Yes Read‑only, low risk
Transfer funds No Requires human approval
Export transaction CSV Yes File stored in encrypted bucket
Update user profile No Modifies personal data

Link to OWASP guidance

See also the OWASP LLM01 page for the underlying threat model: OWASP LLM01 – Prompt Injection

3. Stop secret leakage

Where secrets must live

Pre‑deploy scanning steps

Post‑deploy hygiene

Credential‑hygiene reference

For additional guidance on keeping CI pipelines clean, see the OWASP CICD‑SEC‑06 page: Insufficient Credential Hygiene

4. Require human oversight for high‑risk actions

Defining high‑risk

Implementation pattern

EU AI Act link

Article 14 of the EU AI Act requires human oversight for high‑risk AI systems; the pattern above satisfies that requirement by making the oversight explicit, traceable, and enforceable.

5. Log every run with a runId

What to log

Storage and querying

Why a stable identifier matters

Without a stable runId you cannot correlate a bad output with the exact input and policy version that produced it. This breaks the ability to reproduce issues, to prove compliance, and to improve the system over time.

6. Set a fair‑use cost guard

Limits to enforce

Enforcement mechanism

Link to OWASP LLM10

Unbounded consumption is captured in OWASP LLM10; the guard turns a potential runaway bill into a predictable, observable failure mode.

7. What this is NOT

This checklist is not a guarantee that an agent will never be compromised. It does not promise 100 % protection against every possible attack. It does not replace the need for threat modeling, penetration testing, or continuous monitoring. Treat it as a baseline gate; additional controls may be required depending on your specific risk profile.

References

Frequently asked questions

What is policy-as-code?

Compliance rules expressed as code, reviewed and tested like software.

Which frameworks?

GDPR, EU AI Act, and custom internal controls out of the box.

How are policies tested?

Each rule ships with test cases; CI runs them on change.

Is it a DLP?

No - it governs policy logic, not data loss prevention.

Can non-engineers edit?

Pro includes a template editor; changes still go through review.

How is versioning handled?

Git-backed; each ruleset has a version for audit.

References

Want a fast, self-serve read on your own agent? Try PolicyForge