<?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: YG</title>
    <description>The latest articles on DEV Community by YG (@yg_vigil_ai).</description>
    <link>https://dev.to/yg_vigil_ai</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%2F4272267%2Fdc90b496-4628-411a-b3ed-3bbe63971d08.jpg</url>
      <title>DEV Community: YG</title>
      <link>https://dev.to/yg_vigil_ai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yg_vigil_ai"/>
    <language>en</language>
    <item>
      <title>Building a Sub-15ms Runtime Firewall for AI Agents: What I Learned When Standard Guardrails Failed</title>
      <dc:creator>YG</dc:creator>
      <pubDate>Sun, 29 Nov 2026 18:40:16 +0000</pubDate>
      <link>https://dev.to/yg_vigil_ai/building-a-sub-15ms-runtime-firewall-for-ai-agents-what-i-learned-when-standard-guardrails-failed-4a1d</link>
      <guid>https://dev.to/yg_vigil_ai/building-a-sub-15ms-runtime-firewall-for-ai-agents-what-i-learned-when-standard-guardrails-failed-4a1d</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqrnblzk498jcs1lzgz3r.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqrnblzk498jcs1lzgz3r.jpg" alt=" " width="799" height="368"&gt;&lt;/a&gt;What were you building, and why?&lt;br&gt;
Over the past few months, I’ve been building Vigil (&lt;a href="https://vigiltrism.ai" rel="noopener noreferrer"&gt;https://vigiltrism.ai&lt;/a&gt;), an independent runtime control plane and security guardrail system for production AI agents.&lt;/p&gt;

&lt;p&gt;My background wasn't in traditional enterprise cybersecurity—I came into this from complex project management and hands-on building. While watching developers rapidly connect LLMs to external tools, databases, and protocols like Anthropic's MCP (Model Context Protocol), I noticed a massive blind spot. Everyone was focused on making agents smarter and giving them more autonomy, but almost nobody was securing the actual execution layer. If an agent can read incoming emails or scrape the web and also has permission to execute code or query internal APIs, a single hidden instruction inside an untrusted document can hijack the entire workflow. I wanted to build an "airbag" that sits right before tool execution and stops malicious payloads in real time.&lt;/p&gt;

&lt;p&gt;What did you expect to happen?&lt;br&gt;
Honestly, I thought the hardest part would simply be writing good detection patterns. My initial assumption was that if I compiled a comprehensive list of known prompt injection phrases, blocked obvious jailbreak keywords, and wrapped the LLM calls in a clean REST API, the security problem would be mostly solved. I also assumed that developers would happily route their agent traffic through an external cloud proxy as long as the dashboard looked good and the detection rates were high.&lt;/p&gt;

&lt;p&gt;The moment you realized something was off&lt;br&gt;
Two harsh realities hit me back-to-back during testing and early feedback.&lt;/p&gt;

&lt;p&gt;First, I realized how trivially easy it was to bypass static text filters. Using basic character encoding, multilingual obfuscation, or subtle indirect prompt injections buried inside a simulated RAG document, I was able to trick an agent into calling sensitive tools without triggering a single static rule.&lt;/p&gt;

&lt;p&gt;Second, when I tried solving that by putting a second "LLM-as-a-judge" in front of every tool call to evaluate intent, the latency spiked by 400ms to 800ms per step. In a multi-step agent loop, that completely ruined the user experience. On top of that, talking to engineering leads made it clear that enterprise teams will never send raw, sensitive internal prompts to a brand-new external SaaS proxy. They needed data sovereignty.&lt;/p&gt;

&lt;p&gt;Everything you tried (including what didn't work)&lt;br&gt;
Pure Regex &amp;amp; Keyword Blocking (Didn't work): Too brittle. Legitimate user prompts got blocked (high false positives), while slightly creative adversarial payloads slipped right through.&lt;/p&gt;

&lt;p&gt;Heavy LLM-Only Guardrails (Didn't work): Accurate, but far too slow and expensive to run on every single agent thought and tool call.&lt;/p&gt;

&lt;p&gt;Two-Layer Tiered Architecture (What finally worked): I re-engineered the pipeline into a deterministic first layer (pattern, encoding, structural, and multilingual checks) paired with an optional, opt-in AI-assisted check. By optimizing the deterministic engine, I got enforcement latency down to under 15ms.&lt;/p&gt;

&lt;p&gt;Fail-Closed &amp;amp; BYOC Design: Instead of forcing traffic through a third-party server, I structured the system so it can deploy directly inside a customer's own VPC (Bring Your Own Cloud) with outbound-only telemetry, strict tool allowlists, argument inspection, and a hard "Fail-Closed" rule—meaning if anything times out or looks ambiguous, execution halts immediately before any damage is done.&lt;/p&gt;

&lt;p&gt;Who did you ask for help?&lt;br&gt;
As a solo builder, I leaned heavily on open-source security benchmarks (like the OWASP Top 10 for LLMs), public adversarial datasets, and developer communities on Reddit and GitHub. Whenever I hit architectural bottlenecks around latency or container isolation, breaking the problem down with AI coding assistants and studying how high-throughput API gateways handle pre-execution hooks helped me bridge the gap between prototype code and production resilience.&lt;/p&gt;

&lt;p&gt;Where things stand now&lt;br&gt;
The core runtime engine is live, mapped to OWASP LLM01 through LLM08, and supports frameworks like LangChain, CrewAI, AutoGen, and Anthropic MCP. To make the project useful to other builders right away—even if they aren't ready to integrate a full control plane—I opened up two free resources on the site: an in-browser prompt and agent config scanner (&lt;a href="https://vigiltrism.ai/scan" rel="noopener noreferrer"&gt;https://vigiltrism.ai/scan&lt;/a&gt;) and a public prompt injection benchmark page (&lt;a href="https://vigiltrism.ai/benchmarks" rel="noopener noreferrer"&gt;https://vigiltrism.ai/benchmarks&lt;/a&gt;) so anyone can test their own setups and verify detection vs. false-positive trade-offs transparently.&lt;/p&gt;

&lt;p&gt;Anything else you want our guests to weigh in on?&lt;br&gt;
For developers building agentic workflows today: where do you draw the line between giving an AI agent enough autonomy to be genuinely useful versus locking down its tool permissions with strict deterministic guardrails? And at what latency threshold do you feel security checks start hurting the usability of an AI product?&lt;/p&gt;

</description>
      <category>codenewbiestory</category>
      <category>ai</category>
      <category>buildinpublic</category>
      <category>security</category>
    </item>
    <item>
      <title>Securing Anthropic MCP and AI Agents at Runtime: Moving Beyond Static Regex (OWASP LLM01 &amp; LLM06)</title>
      <dc:creator>YG</dc:creator>
      <pubDate>Sun, 29 Nov 2026 15:36:16 +0000</pubDate>
      <link>https://dev.to/yg_vigil_ai/securing-anthropic-mcp-and-ai-agents-at-runtime-moving-beyond-static-regex-owasp-llm01-llm06-2jle</link>
      <guid>https://dev.to/yg_vigil_ai/securing-anthropic-mcp-and-ai-agents-at-runtime-moving-beyond-static-regex-owasp-llm01-llm06-2jle</guid>
      <description>&lt;p&gt;When moving AI agents from local prototypes to production, static prompt engineering and traditional regex filters break down immediately. If your agent ingests untrusted data (via RAG, emails, or web scraping) and has access to external tools via Anthropic MCP (Model Context Protocol), LangChain, or CrewAI, a single indirect prompt injection (OWASP LLM01) can hijack tool execution and lead to excessive agency (LLM06) or PII leakage (LLM02).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2ia2hrs56oxjzn1belh0.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2ia2hrs56oxjzn1belh0.jpg" alt=" " width="800" height="397"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://vigiltrism.ai/guides/llm-guardrails" rel="noopener noreferrer"&gt;https://vigiltrism.ai/guides/llm-guardrails&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Why Runtime Control Planes Matter&lt;br&gt;
Traditional Web Application Firewalls (WAFs) inspect HTTP traffic, not semantic intent or tool call arguments. To secure production agents without breaking agentic loops, security enforcement needs to happen deterministically right before tool execution:&lt;/p&gt;

&lt;p&gt;Two-Layer Detection: Combining always-on deterministic rules (pattern, encoding, and multilingual checks) with optional AI-assisted classification keeps runtime overhead strictly under 15ms.&lt;/p&gt;

&lt;p&gt;Tool Allowlists &amp;amp; Argument Validation: Even if a model is tricked into calling a sensitive tool, strict runtime parameter validation and per-agent token budgets prevent unauthorized actions.&lt;/p&gt;

&lt;p&gt;Fail-Closed Architecture &amp;amp; Kill Switch: If a runtime check times out or detects an anomaly, execution halts immediately before any external API or database is touched.&lt;/p&gt;

&lt;p&gt;In-VPC / BYOC Deployment: Sensitive enterprise prompts and execution traces never have to leave your cloud environment.&lt;/p&gt;

&lt;p&gt;Test Your Agent &amp;amp; Benchmark Detection&lt;br&gt;
We built Vigil (&lt;a href="https://vigiltrism.ai" rel="noopener noreferrer"&gt;https://vigiltrism.ai&lt;/a&gt;) as an independent AI TRiSM runtime control plane designed specifically for these production bottlenecks.&lt;/p&gt;

&lt;p&gt;Test your setup right now: You can paste a prompt or agent configuration into our free in-browser scanner to check for injection vulnerabilities: &lt;a href="https://vigiltrism.ai/scan" rel="noopener noreferrer"&gt;https://vigiltrism.ai/scan&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Verify the numbers: Inspect our public detection rates and false-positive benchmarks: &lt;a href="https://vigiltrism.ai/benchmarks" rel="noopener noreferrer"&gt;https://vigiltrism.ai/benchmarks&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Integrate via Python/TypeScript: Check out the SDK documentation for wrapping your existing agent loops: &lt;a href="https://vigiltrism.ai/guides/python-sdk" rel="noopener noreferrer"&gt;https://vigiltrism.ai/guides/python-sdk&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How are you currently isolating tool execution in your MCP servers? Drop your architecture patterns in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>llm</category>
      <category>mcp</category>
    </item>
  </channel>
</rss>
