Skip to content
Cyvra·Indexed by this site · Originally published· Tools →

Practical guide to securing AI agents: prompt injection, authorization, runtime limits and MCP

Securing AI agents: prompt injection, authorisation, runtime limits and MCP

AI summary

Cyvra releases a practical guide to securing AI agents, covering the principles of direct, indirect and memory/context poisoning prompt injection and the corresponding technical controls. The guide holds that input filtering and classifiers cannot reliably stop a determined attacker, and that effective constraints are architectural, including placing authorization checks outside the model at the API or execution layer, validating parameters with strict schemas, runtime limits (number of tool calls per run, rate and transaction limits, outbound allowlists, sandbox isolation, short-lived credentials, kill switch), and bringing MCP servers into the software review process, checking provenance, token handling and confused deputy risks. The guide also provides an agent testing checklist, recommending tests proportionate to risk, covering injection, permission boundaries, memory poisoning, log integrity and rollback.

Read originalcyvra.co.uk