<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Enforra</title>
    <description>The latest articles on DEV Community by Enforra (@enforra).</description>
    <link>https://dev.to/enforra</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3944883%2F2c9796df-e70c-4a5c-bc34-912fa03f86f3.png</url>
      <title>DEV Community: Enforra</title>
      <link>https://dev.to/enforra</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/enforra"/>
    <language>en</language>
    <item>
      <title>System prompts are not a security boundary for AI agents</title>
      <dc:creator>Enforra</dc:creator>
      <pubDate>Thu, 21 May 2026 22:05:35 +0000</pubDate>
      <link>https://dev.to/enforra/system-prompts-are-not-a-security-boundary-for-ai-agents-2n8</link>
      <guid>https://dev.to/enforra/system-prompts-are-not-a-security-boundary-for-ai-agents-2n8</guid>
      <description>&lt;p&gt;AI agents are moving from generating text to taking actions.&lt;/p&gt;

&lt;p&gt;They can run commands, send emails, issue refunds, update records, call internal tools, and touch production workflows.&lt;/p&gt;

&lt;p&gt;That changes the security model.&lt;/p&gt;

&lt;p&gt;A system prompt can guide an agent, but it should not be the thing that enforces policy.&lt;/p&gt;

&lt;p&gt;If an action has a real side effect, there should be a control point before that action happens.&lt;/p&gt;

&lt;p&gt;The problem&lt;/p&gt;

&lt;p&gt;When an agent calls a tool, the important event is not the text the model generated.&lt;/p&gt;

&lt;p&gt;The important event is the tool call.&lt;/p&gt;

&lt;p&gt;That is where something real can happen.&lt;/p&gt;

&lt;p&gt;A model can be manipulated.&lt;br&gt;
A model can hallucinate.&lt;br&gt;
A user can ask for something risky.&lt;br&gt;
A prompt can be ignored or misunderstood.&lt;/p&gt;

&lt;p&gt;So the question should not only be:&lt;/p&gt;

&lt;p&gt;Did the model intend to do this?&lt;/p&gt;

&lt;p&gt;It should also be:&lt;/p&gt;

&lt;p&gt;Should this action be allowed under company policy?&lt;/p&gt;

&lt;p&gt;A simple example&lt;/p&gt;

&lt;p&gt;Imagine a support agent that can issue refunds.&lt;/p&gt;

&lt;p&gt;A prompt might say:&lt;/p&gt;

&lt;p&gt;Only issue refunds when appropriate.&lt;/p&gt;

&lt;p&gt;That is useful guidance, but it is not enforcement.&lt;/p&gt;

&lt;p&gt;A better pattern is to check the action before the refund tool executes.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;Refund under $100: allow&lt;br&gt;
Refund between $100 and $500: require approval&lt;br&gt;
Refund over $500: block&lt;/p&gt;

&lt;p&gt;Now the rule is not just hidden inside the prompt.&lt;/p&gt;

&lt;p&gt;It is enforced before the tool callback runs.&lt;/p&gt;

&lt;p&gt;What Enforra does&lt;/p&gt;

&lt;p&gt;I’m building Enforra as an open source SDK for AI agent runtime control.&lt;/p&gt;

&lt;p&gt;It sits before your tool callbacks and returns a decision before anything executes:&lt;/p&gt;

&lt;p&gt;allow&lt;br&gt;
block&lt;br&gt;
require_approval&lt;br&gt;
log_only&lt;/p&gt;

&lt;p&gt;The application still owns the actual tool execution.&lt;/p&gt;

&lt;p&gt;Enforra does not run your tools remotely.&lt;/p&gt;

&lt;p&gt;It gives your app a policy decision before the callback is called.&lt;/p&gt;

&lt;p&gt;Why this matters&lt;/p&gt;

&lt;p&gt;As agents move into production, teams need more than prompt instructions and logs after the fact.&lt;/p&gt;

&lt;p&gt;They need clear policy checks around actions that matter.&lt;/p&gt;

&lt;p&gt;That becomes important when agents can touch money, customer data, internal systems, production infrastructure, or business workflows.&lt;/p&gt;

&lt;p&gt;The goal is not to make agents less useful.&lt;/p&gt;

&lt;p&gt;The goal is to make sure useful agents have a clear control point before they do something risky.&lt;/p&gt;

&lt;p&gt;Open source&lt;/p&gt;

&lt;p&gt;The initial Enforra SDK is here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/enforra/enforra" rel="noopener noreferrer"&gt;https://github.com/enforra/enforra&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>opensource</category>
      <category>agents</category>
    </item>
  </channel>
</rss>
