<?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: DarkAxiom93</title>
    <description>The latest articles on DEV Community by DarkAxiom93 (@darkaxiom).</description>
    <link>https://dev.to/darkaxiom</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%2F4110981%2F0a99cd04-ab68-4cb4-8d60-802be8d0cb30.png</url>
      <title>DEV Community: DarkAxiom93</title>
      <link>https://dev.to/darkaxiom</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/darkaxiom"/>
    <language>en</language>
    <item>
      <title>Why command allowlists don't protect your AI coding agent</title>
      <dc:creator>DarkAxiom93</dc:creator>
      <pubDate>Sat, 05 Sep 2026 10:01:01 +0000</pubDate>
      <link>https://dev.to/darkaxiom/why-command-allowlists-dont-protect-your-ai-coding-agent-68i</link>
      <guid>https://dev.to/darkaxiom/why-command-allowlists-dont-protect-your-ai-coding-agent-68i</guid>
      <description>&lt;p&gt;AI coding agents run with your full permissions. The common way people try to&lt;br&gt;
make that safe is a command allowlist — approve &lt;code&gt;npm test&lt;/code&gt;, block dangerous&lt;br&gt;
commands. It feels reasonable. It doesn't work.&lt;/p&gt;

&lt;p&gt;The moment your allowlist includes anything that can run other code — a test&lt;br&gt;
runner, a build tool, a linter with plugins — argument inspection becomes&lt;br&gt;
theater. CVE-2026-22708 was exactly this: an allowlist bypass in Cursor via&lt;br&gt;
shell built-ins. And the recurring "rm -rf ~" incidents happen because the&lt;br&gt;
permission check didn't understand that ~ expands to your home directory.&lt;/p&gt;

&lt;p&gt;The problem is the abstraction: an allowlist names the &lt;em&gt;program&lt;/em&gt;, when what you&lt;br&gt;
care about is the &lt;em&gt;effect&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;That's the idea behind Restory, a tool I built. Instead of matching command&lt;br&gt;
strings, it classifies what a command actually does — does it read a secret&lt;br&gt;
file, exfiltrate to an external host, delete recursively, write outside the&lt;br&gt;
repo. It's a hook that sits between the agent and your machine.&lt;/p&gt;

&lt;p&gt;But here's the honest part: static analysis of shell can always be defeated&lt;br&gt;
(base64 + eval, nested bash -c). So the classifier isn't the security boundary&lt;br&gt;
— it's defense-in-depth. The other layer is session undo: a shadow git repo&lt;br&gt;
that restores your Git-visible working-tree changes to the session baseline. It&lt;br&gt;
recovers workspace state — not a safety net for confidentiality, since it can't&lt;br&gt;
reverse data that already left or a completed remote call.&lt;/p&gt;

&lt;p&gt;Defense-in-depth plus workspace recovery, not a perfect filter.&lt;/p&gt;

&lt;p&gt;It's local-only, MIT, works with Claude Code and Gemini CLI (experimental):&lt;br&gt;
pip install restory &amp;amp;&amp;amp; restory init&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/DarkAxiom93/Restory" rel="noopener noreferrer"&gt;https://github.com/DarkAxiom93/Restory&lt;/a&gt;&lt;br&gt;
I'd genuinely value scrutiny on the classifier and the bypass classes I haven't&lt;br&gt;
covered.&lt;/p&gt;

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