<?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: Umme Nizba</title>
    <description>The latest articles on DEV Community by Umme Nizba (@nizba06).</description>
    <link>https://dev.to/nizba06</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4032795%2F1e15cff6-a65b-4eb7-b4fc-2e25c9192628.png</url>
      <title>DEV Community: Umme Nizba</title>
      <link>https://dev.to/nizba06</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nizba06"/>
    <language>en</language>
    <item>
      <title>AgentGuard 1.1: An Open-Source Firewall for Inter-Agent AI Messages</title>
      <dc:creator>Umme Nizba</dc:creator>
      <pubDate>Mon, 27 Jul 2026 22:34:06 +0000</pubDate>
      <link>https://dev.to/nizba06/agentguard-11-an-open-source-firewall-for-inter-agent-ai-messages-29el</link>
      <guid>https://dev.to/nizba06/agentguard-11-an-open-source-firewall-for-inter-agent-ai-messages-29el</guid>
      <description>&lt;p&gt;I used to think the scary part of AI agents was the model hallucinating.&lt;/p&gt;

&lt;p&gt;It isn’t.&lt;/p&gt;

&lt;p&gt;The scary part is when your system looks &lt;em&gt;fine&lt;/em&gt; — green logs, clean outputs, a polite writer agent producing a report — and somewhere in the middle, one message quietly changed the mission.&lt;/p&gt;

&lt;p&gt;Not because a user typed something evil.&lt;/p&gt;

&lt;p&gt;Because a researcher agent fetched a page. Because a tool returned poisoned text. Because the next agent trusted its teammate the way we trust people we work with every day.&lt;/p&gt;

&lt;p&gt;That trust is beautiful in teams.&lt;/p&gt;

&lt;p&gt;In multi-agent systems, it is also the hole.&lt;/p&gt;




&lt;h2&gt;
  
  
  If you have built agents, you already know this feeling
&lt;/h2&gt;

&lt;p&gt;You wire orchestrator → researcher → writer.&lt;br&gt;&lt;br&gt;
You watch them hand work to each other.&lt;br&gt;&lt;br&gt;
It feels like collaboration.&lt;/p&gt;

&lt;p&gt;Then one day it clicks: &lt;strong&gt;nobody is standing between them.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We put guardrails on the front door — user → model.&lt;br&gt;&lt;br&gt;
We leave the hallway between agents unlocked.&lt;/p&gt;

&lt;p&gt;I looked for an open-source tool that treated &lt;em&gt;those&lt;/em&gt; messages as untrusted. Not a chatbot filter. Not another “be careful with prompts” blog. Something in the path that says: &lt;em&gt;this hop is not safe until we prove it.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I didn’t find it.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;AgentGuard&lt;/strong&gt; — open source. A firewall for the conversations agents have with each other.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;inter-agent-guard   &lt;span class="c"&gt;# import as agentguard&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If that unlocked-hallway unease is familiar — stay. This is for you.&lt;/p&gt;




&lt;h2&gt;
  
  
  See the attack, then the block
&lt;/h2&gt;

&lt;p&gt;Two commands. Same pipeline. Different ending:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/nizba06/agentguard.git
&lt;span class="nb"&gt;cd &lt;/span&gt;agentguard
pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s2"&gt;".[all]"&lt;/span&gt;
python scripts/download_release_model.py   &lt;span class="c"&gt;# ~164 MB INT8 — needed for the secured demo&lt;/span&gt;

python examples/vulnerable_pipeline/pipeline.py
&lt;span class="c"&gt;# → ATTACK SUCCEEDED&lt;/span&gt;

python examples/secured_pipeline/pipeline.py
&lt;span class="c"&gt;# → ATTACK BLOCKED&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;First run: gut punch.&lt;br&gt;&lt;br&gt;
Second run: relief.&lt;/p&gt;

&lt;p&gt;Same pipeline. Different outcome. That’s the point.&lt;/p&gt;


&lt;h2&gt;
  
  
  Trust is earned — so here is the full picture
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What it does on every hop&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Inspect&lt;/strong&gt; — rules (+ optional ML): injection, hijack, poisoned tool returns
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Attest&lt;/strong&gt; — Ed25519 signatures so a message cannot be silently swapped
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Contain&lt;/strong&gt; — YAML capability manifests; powers can shrink downstream, never quietly grow
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Less “another AI package.” More the colleague who finally checks the handoff before anyone acts on it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why you can trust the story&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Holdout numbers, not vibes: &lt;strong&gt;99.4%&lt;/strong&gt; detection, &lt;strong&gt;0.0%&lt;/strong&gt; FPR (160 adversarial + 1,000 benign, INT8 ONNX). Indirect injection / MCP poisoning / propagation: &lt;strong&gt;100%&lt;/strong&gt;. Goal hijack: &lt;strong&gt;97.3%&lt;/strong&gt;.
&lt;/li&gt;
&lt;li&gt;You can verify the corpus yourself: &lt;a href="https://huggingface.co/datasets/Nizba/agentguard-benchmark-v1" rel="noopener noreferrer"&gt;agentguard-benchmark-v1&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why you should also trust the limits&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;CPU ML latency is still ~&lt;strong&gt;3.4 s P95&lt;/strong&gt;. That is above the original 15 ms design target. Use GPU, async inspection, or &lt;strong&gt;rules-only&lt;/strong&gt; on hot paths. &lt;/p&gt;

&lt;p&gt;Trust is connection that survives the fine print.&lt;/p&gt;


&lt;h2&gt;
  
  
  Adopt without fear — start small, stay human
&lt;/h2&gt;

&lt;p&gt;Belief dies when day one is painful. So the adoption path is gentle on purpose:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;agentguard&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;AgentGuard&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;CapabilityManifest&lt;/span&gt;

&lt;span class="n"&gt;guard&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;AgentGuard&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;risk_threshold&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.85&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;task_objective&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Analyse Q3 competitor pricing&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;require_ml_model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# start here — no giant model download
&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;guard&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;register_agent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;researcher&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;CapabilityManifest&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;from_yaml&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;manifests/researcher.yaml&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;secured&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;guard&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;wrap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;my_langgraph_graph&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;# LangChain 1.0 agents: AgentGuardMiddleware(guard) in create_agent(middleware=[...])
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Wrap one graph&lt;/strong&gt; with rules-only (or add &lt;code&gt;AgentGuardMiddleware&lt;/code&gt; for LangChain)
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monitor first&lt;/strong&gt; if production makes you nervous — log the hallway before you lock doors
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add the ONNX model later&lt;/strong&gt; when detection matters more than cold start:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python scripts/download_release_model.py  &lt;span class="c"&gt;# ~164 MB, optional upgrade&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You don’t need the full stack on day one.&lt;/p&gt;

&lt;h2&gt;
  
  
  You just need something standing between those agents.
&lt;/h2&gt;

&lt;h2&gt;
  
  
  What’s next
&lt;/h2&gt;

&lt;p&gt;If you are building multi-agent systems, you are not alone in that quiet worry.&lt;/p&gt;

&lt;p&gt;Maybe you ship at night as a solo builder.&lt;br&gt;&lt;br&gt;
Maybe your team just wired three agents and felt proud a little too fast.&lt;br&gt;&lt;br&gt;
Maybe a tool return already burned you in a way that “shouldn’t have mattered.”&lt;/p&gt;

&lt;p&gt;I built AgentGuard so we could stop pretending the hallway is safe.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If you want to go further:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Goal&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;See it work&lt;/td&gt;
&lt;td&gt;Run the two demos above&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Try it on your stack&lt;/td&gt;
&lt;td&gt;Wrap one real graph (or add &lt;code&gt;AgentGuardMiddleware&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Help improve it&lt;/td&gt;
&lt;td&gt;Open an issue with an attack we miss&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Stars help people find the repo. Issues and stories help it get better.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/nizba06/agentguard" rel="noopener noreferrer"&gt;https://github.com/nizba06/agentguard&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;PyPI: &lt;a href="https://pypi.org/project/inter-agent-guard/" rel="noopener noreferrer"&gt;https://pypi.org/project/inter-agent-guard/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Docs: &lt;a href="https://inter-agent-guard.readthedocs.io/" rel="noopener noreferrer"&gt;https://inter-agent-guard.readthedocs.io/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Demo: &lt;a href="https://github.com/nizba06/inter-agent-guard-demo" rel="noopener noreferrer"&gt;https://github.com/nizba06/inter-agent-guard-demo&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Personal open-source. Built because the gap bothered me enough to stay up for it.&lt;/p&gt;

&lt;p&gt;If the unlocked hallway bothers you too — star the repo, try a wrap, or open an issue.&lt;/p&gt;

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