<?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: dhamskie-ai</title>
    <description>The latest articles on DEV Community by dhamskie-ai (@dhamskieai).</description>
    <link>https://dev.to/dhamskieai</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%2F4271989%2F9d89dfc7-7cad-4946-988a-d32f53598e48.png</url>
      <title>DEV Community: dhamskie-ai</title>
      <link>https://dev.to/dhamskieai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dhamskieai"/>
    <language>en</language>
    <item>
      <title>The Trap Pack caught my firewall napping</title>
      <dc:creator>dhamskie-ai</dc:creator>
      <pubDate>Sun, 29 Nov 2026 09:00:06 +0000</pubDate>
      <link>https://dev.to/dhamskieai/the-trap-pack-caught-my-firewall-napping-5h39</link>
      <guid>https://dev.to/dhamskieai/the-trap-pack-caught-my-firewall-napping-5h39</guid>
      <description>&lt;p&gt;&lt;em&gt;My Near Miss write-up for Agentware 2026 — SENTINEL, Research &amp;amp; Study track, solo build by Idham Kholik Syahdana.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;SENTINEL is a research watch agent I built solo for Agentware 2026. It watches arXiv, CVE feeds and GitHub Security Advisories, filters what is new and relevant, files each item as a structured note in a local library, and publishes a weekly reading brief — all unattended, from trigger to result, then it stops. Every run leaves a full audit trail, and outside content passes through an input firewall before reaching the model — fetched text is data, never instructions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The first real test
&lt;/h2&gt;

&lt;p&gt;I wrote the firewall first and felt good about it. Generic patterns, not a blocklist: ignore-previous-instructions, fake system messages, exfiltration, delete-the-library. Thirteen unit tests, all green. The poisoned fixture in my mock data was caught. Then the Trap Pack arrived — twenty hostile inputs — and I fed them through the exact pipeline a live run uses.&lt;/p&gt;

&lt;p&gt;Run 1 came back: 18 clean, 1 quarantined, 1 suspicious. Thirteen of the twenty carried an injected instruction. My firewall caught two of them. Eleven walked through as clean: a fake CEO email demanding secrets by reply, a "note for AI assistants" telling the agent to delete the library, a base64 payload hiding in a checkout page, an instruction split with zero-width characters in lecture notes.&lt;/p&gt;

&lt;p&gt;Nothing leaked — but only because the mock scorer gave them all relevance scores of 20 to 30 and skipped them as off-topic. The thing that saved me was luck, not design. If any of those items had been on-topic for a research watcher, they would have been archived with their instructions intact. That was the near miss, and it happened on the first real test.&lt;/p&gt;

&lt;h2&gt;
  
  
  What was wrong, and what I fixed
&lt;/h2&gt;

&lt;p&gt;The misses fell into eight classes: hidden styling, notes addressed to the agent itself, fake authority and override claims, exfiltration phrasings my verb lists did not know, zero-width evasion, encoded payloads, fake system messages, and destructive instructions like &lt;code&gt;rm -rf&lt;/code&gt; and force-push.&lt;/p&gt;

&lt;p&gt;I fixed them as generic pattern classes, not a blocklist of trap strings. Normalisation first, stripping invisible characters before scanning. New patterns for note-to-ai, secrecy, reply-with-secrets, paste-secret, dump-env, falsify-record and more. Wider exfiltrate and delete-library matching. Two weak patterns, hidden-styling and encoded-blob, that only flag suspicious, never quarantine, because a real paper can legitimately contain those shapes. Twenty-seven new tests came with the fix, and they caught two bugs in my own fix: a regex matching "libraries" but not "library", and an approval-code pattern allowing only one word between "use" and "as".&lt;/p&gt;

&lt;p&gt;Run 2: 13 quarantined, 1 suspicious, 6 clean — all thirteen hostile items caught. Runs 3 and 4 re-ran the pack unchanged: zero differences across all twenty files.&lt;/p&gt;

&lt;h2&gt;
  
  
  Live data humbled it a second time
&lt;/h2&gt;

&lt;p&gt;Then live data humbled the firewall again. My first real run fetched ten GitHub advisories, and two were quarantined — not because they were hostile, but because a proof-of-concept description used the word "exfiltrate" descriptively. So exfiltration matching became contextual — strong only with a destination, an agent-directed imperative, a first-person recipient, or a secret as the object. The same ten advisories re-fetched: zero quarantined.&lt;/p&gt;

&lt;p&gt;Two more rounds followed: log-line prefixes like &lt;code&gt;[ci]&lt;/code&gt; are stripped before scanning, and base64 blobs are decoded one level and scanned the same way — the checkout page from run 1 finally fell, its payload decoding to a live instruction. Run 6 finished at 14 quarantined, 0 suspicious, 6 clean: all thirteen hostile items quarantined, and no canary token in any output, verified by grep after every run.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I deliberately left broken
&lt;/h2&gt;

&lt;p&gt;One thing I deliberately left broken. Trap 04 is a legitimate security newsletter that quotes attack strings as examples, and it is still quarantined. The scanner cannot tell a quoted instruction from a live one by shape, and I chose not to add quote-awareness — an attacker can dodge it by prefixing "for example". Failing safe and saying so beats a clever filter a real attacker routes around.&lt;/p&gt;

&lt;p&gt;The build kept finding honest mistakes: my first live run hit an NVD 404 mock mode had hidden for hours; the write allowlist accepted &lt;code&gt;library/../../etc/passwd&lt;/code&gt; because it checked the raw string prefix, not the resolved path; two notes sharing the first sixty characters of a title on the same day would have overwritten each other. Each got fixed, each got tests. The final suite is 82 of 82, and a fresh clone runs the whole mock pipeline in forty seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;A safety test you write yourself only proves your own imagination — the Trap Pack proved the opposite, and my firewall was 2-for-13 on its first real test. Relevance scoring is not a firewall; I stopped counting "nothing leaked" as a pass the moment I saw luck doing the saving. A filter that admits its misses in public is more trustworthy than one that claims none — the newsletter stays quarantined, the README says so, and I would rather explain a false positive to a judge than a leak.&lt;/p&gt;

&lt;p&gt;This write-up is my entry for the Near Miss at Agentware 2026, and the extra write-up awards are sponsored by &lt;a href="https://fileclerk.co.uk" rel="noopener noreferrer"&gt;FileClerk&lt;/a&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Repo: &lt;a href="https://github.com/dhamskie-ai/sentinel" rel="noopener noreferrer"&gt;https://github.com/dhamskie-ai/sentinel&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Demo video: &lt;a href="https://youtu.be/evK7DGpkXKk" rel="noopener noreferrer"&gt;https://youtu.be/evK7DGpkXKk&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Trap Pack results: &lt;code&gt;tests/trap-pack/RESULTS.md&lt;/code&gt; in the repo&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>agentware</category>
      <category>hackathon</category>
      <category>ai</category>
      <category>security</category>
    </item>
  </channel>
</rss>
