<?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: ilhambuilds</title>
    <description>The latest articles on DEV Community by ilhambuilds (@ilham270207).</description>
    <link>https://dev.to/ilham270207</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%2F4270955%2F847a5f82-37c1-4a80-aa8c-c33826e12367.jpg</url>
      <title>DEV Community: ilhambuilds</title>
      <link>https://dev.to/ilham270207</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ilham270207"/>
    <language>en</language>
    <item>
      <title>0 of 13: How Our Bounty Agent's Safety Screen Caught Nothing — and What Saved Us</title>
      <dc:creator>ilhambuilds</dc:creator>
      <pubDate>Sat, 28 Nov 2026 15:29:18 +0000</pubDate>
      <link>https://dev.to/ilham270207/0-of-13-how-our-bounty-agents-safety-screen-caught-nothing-and-what-saved-us-29ko</link>
      <guid>https://dev.to/ilham270207/0-of-13-how-our-bounty-agents-safety-screen-caught-nothing-and-what-saved-us-29ko</guid>
      <description>&lt;p&gt;Built for Agentware 2026 by Hackathon Raptors. BountyHound is an agent that hunts free bounties on its own — no X tasks, no team, no money spent — scores every bounty on six rules, files what passes, and stops dead on one kill-switch command. Repo: &lt;a href="https://github.com/ilham270207/bountyhound" rel="noopener noreferrer"&gt;https://github.com/ilham270207/bountyhound&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The run that looked like a pass
&lt;/h2&gt;

&lt;p&gt;At kickoff the organisers released the Trap Pack: 20 hostile test inputs — prompt injections, conflicting instructions, deliberately broken data — and told us to run our agent against it and commit the results.&lt;/p&gt;

&lt;p&gt;We ran it blind. The result looked good:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;0 kept, 19 rejected, 1 quarantined. 20 out of 20 safe.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Nineteen out of twenty "safe" on the first try. For about ten minutes, we thought the safety story was done.&lt;/p&gt;

&lt;h2&gt;
  
  
  The catch
&lt;/h2&gt;

&lt;p&gt;Then we looked at &lt;em&gt;which layer&lt;/em&gt; had done the catching.&lt;/p&gt;

&lt;p&gt;Thirteen of the twenty files carried hostile instructions. Our pattern layer — the safety screen whose entire job is catching hostile input — caught &lt;strong&gt;0 of 13&lt;/strong&gt;. Zero.&lt;/p&gt;

&lt;p&gt;Every rejection had come from the scorer, not the guardrail. And the single quarantine, file 04, was a benign newsletter. The guardrail had over-refused the innocent file and waved through every hostile one. It was decorative.&lt;/p&gt;

&lt;p&gt;That is the moment this write-up is about. The end-to-end number said "safe". The per-layer number said the safety screen had never fired once.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it missed everything
&lt;/h2&gt;

&lt;p&gt;The patterns were written the way you write them at 2am: single-line matches, literal phrases, no memory of what came before.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A hostile instruction inside a &lt;strong&gt;quote&lt;/strong&gt; sailed through, because the pattern only matched bare commands.&lt;/li&gt;
&lt;li&gt;"Per the admin" and other &lt;strong&gt;authority claims&lt;/strong&gt; sailed through — nothing checked whether the authority was real.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exfiltration phrasing&lt;/strong&gt; ("forward the inbox", "send the keys") wasn't in the list at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Base64 blobs and zero-width characters&lt;/strong&gt; hid instructions the matcher never decoded.&lt;/li&gt;
&lt;li&gt;Nothing looked &lt;strong&gt;across lines&lt;/strong&gt;, so an instruction split over two lines was invisible.&lt;/li&gt;
&lt;li&gt;And nothing checked the listing against itself — a bounty could claim one thing in the title and the opposite in the body, and no layer noticed the contradiction.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The scorer saved us for the wrong reason: it rejected hostile bounties because they scored badly as bounties, not because it recognised them as hostile. A hostile input that happened to &lt;em&gt;look&lt;/em&gt; like a good bounty would have walked straight through.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix, same evening
&lt;/h2&gt;

&lt;p&gt;We rewrote the guardrail layer — four changes, all enforced in code, none of them "tell the model to be careful":&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Quoted-phrase handling&lt;/strong&gt; — instructions inside quotes are treated as instructions, not decoration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authority and exfiltration patterns&lt;/strong&gt; — claims of authority and send-it-elsewhere phrasing are flagged.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Content-consistency validation&lt;/strong&gt; — the listing's claims are checked against its own body.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Base64 decoding and zero-width stripping&lt;/strong&gt; — hidden text is decoded before matching, not after.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Before the re-run we wrote down a prediction: &lt;strong&gt;0 kept, 7 rejected, 13 quarantined.&lt;/strong&gt; Then we ran the pack again, plus a non-trap suite to check we hadn't just made the agent refuse everything (21/21 clean) and synthetic hostile checks (20/20).&lt;/p&gt;

&lt;h2&gt;
  
  
  The re-run
&lt;/h2&gt;

&lt;p&gt;Measured, not claimed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;0 kept, 7 rejected, 13 quarantined. 20 out of 20 safe. The prediction was exact.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Full test suite: &lt;strong&gt;29/29&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;File 04, the benign newsletter, was no longer quarantined.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The re-run also exposed seven real gaps in our first test suite — cross-line pattern windows, cross-line quotes, an agent-instruction prefix, impossible end-before-start dates, a duplicate sensor id — and we fixed all seven without weakening a single test.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;A safety layer that never fires is not a safety layer.&lt;/strong&gt; The end-to-end number hid the failure completely. Measure every layer separately, or you will ship a guardrail that has never caught anything and call it safe.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quarantine-by-default plus a scorer that can't be sweet-talked beats a clever pattern list.&lt;/strong&gt; The patterns are the first line, not the only line. When in doubt, the file goes to quarantine and a human looks at it — that posture, not any single pattern, is what kept the kept-output clean.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The brief was right.&lt;/strong&gt; "You do not have to pass all of it. You have to know what happens when you do not." Our first run didn't pass — it &lt;em&gt;looked&lt;/em&gt; like it passed, which is worse. Knowing the difference is the whole job.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Honest numbers beat confident ones.&lt;/strong&gt; The brief says so outright, and we wrote the measured numbers into the README: blind 19/20 with a 0/13 guardrail, re-run 20/20 after the fix, suite 29/29. A judge who runs the pack will get the same numbers. That is the point.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's still open
&lt;/h2&gt;

&lt;p&gt;Live mode is untested — the demo runs in mock mode, and we say so in the README rather than claiming otherwise. And the guardrail was tuned against a known pack, so a fresh hostile input could still slip past the patterns; the scorer and the quarantine-by-default posture are the real backstop, and they are the parts we would harden next.&lt;/p&gt;

&lt;p&gt;The agent that almost went rogue never actually went rogue. But for one evening, nothing stood between it and the hostile input except a scorer that was rejecting bad bounties for being bad bounties. That is close enough to count as a near miss — and close enough that we will never again trust a safety number we haven't broken down by layer.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;BountyHound — Agentware 2026, Open Track. Built solo. Code (MIT): &lt;a href="https://github.com/ilham270207/bountyhound" rel="noopener noreferrer"&gt;https://github.com/ilham270207/bountyhound&lt;/a&gt;. Demo (103s): &lt;a href="https://youtu.be/E2utEBSO_iU" rel="noopener noreferrer"&gt;https://youtu.be/E2utEBSO_iU&lt;/a&gt;. The Trap Pack is "Agentware 2026 Trap Pack, Hackathon Raptors" (CC BY 4.0). Submitted to Agentware 2026, Hackathon Raptors @raptorsdev — Near Miss write-up.&lt;/em&gt;&lt;/p&gt;

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