<?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: etu</title>
    <description>The latest articles on DEV Community by etu (@etu).</description>
    <link>https://dev.to/etu</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%2F4284627%2Ff0a3cfb5-0fc0-4e09-ab57-6b1e7f6b8601.jpg</url>
      <title>DEV Community: etu</title>
      <link>https://dev.to/etu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/etu"/>
    <language>en</language>
    <item>
      <title>EgressGuard - default-deny egress proxy for AI agents and MCP servers</title>
      <dc:creator>etu</dc:creator>
      <pubDate>Sat, 05 Dec 2026 11:48:08 +0000</pubDate>
      <link>https://dev.to/etu/egressguard-default-deny-egress-proxy-for-ai-agents-and-mcp-servers-13el</link>
      <guid>https://dev.to/etu/egressguard-default-deny-egress-proxy-for-ai-agents-and-mcp-servers-13el</guid>
      <description>&lt;p&gt;&lt;strong&gt;I built EgressGuard because an AI agent that can run code can also send your data or your API keys anywhere. It's a self-hosted proxy that sits between an untrusted sandbox and the internet.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Demo (30s): &lt;a href="https://e-z.tools/s30kvnry.gif" rel="noopener noreferrer"&gt;https://e-z.tools/s30kvnry.gif&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How it works:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Per-agent allowlist: exact + wildcard domains, ports, methods. CONNECT with MITM so the policy sees the request.&lt;/li&gt;
&lt;li&gt;Credential brokering: the sandbox only holds EGRESS_PHC_ placeholders. The real secret is substituted at egress, and only for one exact binding (agent + host + path + method). Off-binding gives a 403 and no substitution.&lt;/li&gt;
&lt;li&gt;Anti-SSRF: literal IPs refused, private/loopback/link-local/CGNAT ranges filtered, redirects and not followed.&lt;/li&gt;
&lt;li&gt;Hot reload (SIGHUP, file watch, admin API) with validate-then-swap.&lt;/li&gt;
&lt;li&gt;Embedded dashboard, CSV/JSON export, and exfiltration heuristics (burst, large upload, upload ratio, suspicious destination).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What CI checks end-to-end (9 verdicts, compose job): 403 with no rule, 200 on an allowed destination, 403 for a placeholder sent off-binding, 401 on a bound host with a fake secret substituted, CA key unreadable from the sandbox, admin unreachable from the sandbox, direct egress blocked, Host/Origin guard, CSV consistent with verdicts.&lt;/p&gt;

&lt;p&gt;Limits, up front: v0.1, not audited, not for production. No response-body DLP or redaction, the sandbox token can be spoofed from the inside (per-sandbox mTLS is on the backlog), the audit is in memory, and it is single-node.&lt;/p&gt;

&lt;p&gt;Similar ideas exist (OneCLI, Infisical Agent Vault, nilbox). What I tried to do differently is bind each secret to a single destination and show the proof in the audit log.&lt;/p&gt;

&lt;p&gt;I'd most like feedback on the threat model: what bypasses am i missing?&lt;/p&gt;

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

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