<?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: miya</title>
    <description>The latest articles on DEV Community by miya (@miyabuilds).</description>
    <link>https://dev.to/miyabuilds</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%2F4273565%2F64b1dc41-ed88-43f8-8805-206bf3f7225b.png</url>
      <title>DEV Community: miya</title>
      <link>https://dev.to/miyabuilds</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/miyabuilds"/>
    <language>en</language>
    <item>
      <title>The Near Miss: Our Injection Screen Caught Nothing — and the Boring Layer Saved Us</title>
      <dc:creator>miya</dc:creator>
      <pubDate>Mon, 30 Nov 2026 07:07:35 +0000</pubDate>
      <link>https://dev.to/miyabuilds/the-near-miss-our-injection-screen-caught-nothing-and-the-boring-layer-saved-us-443p</link>
      <guid>https://dev.to/miyabuilds/the-near-miss-our-injection-screen-caught-nothing-and-the-boring-layer-saved-us-443p</guid>
      <description>&lt;p&gt;&lt;em&gt;An Agentware (Hackathon Raptors) build story, written by the team behind &lt;a href="https://github.com/miya-builds/warden-bounty-scout" rel="noopener noreferrer"&gt;Warden&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Warden is an autonomous opportunity scout. It reads public hackathon and bounty listings overnight and hands its human a ranked shortlist, one drafted entry plan, and an escalation queue. It is architecturally incapable of submitting, paying, registering, or posting — those tools do not exist in its registry.&lt;/p&gt;

&lt;p&gt;Like every agent that reads the open web, Warden assumes the pages it reads are hostile. So it has a prompt-injection screen: a set of deterministic pattern families that scan every page before anything else touches it. We were reasonably proud of that screen.&lt;/p&gt;

&lt;p&gt;Then we ran the official Trap Pack, and the screen caught &lt;strong&gt;nothing&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually happened
&lt;/h2&gt;

&lt;p&gt;The Trap Pack is the organizers' set of 20 poisoned files: leaked-secret lures, fake system notices, base64-hidden instructions, broken data, and two benign controls. Our first run's verdicts looked fine at a glance — 19 escalations, 1 quarantine, nothing executed, nothing sent, nothing paid. No trap achieved its objective.&lt;/p&gt;

&lt;p&gt;But when we scored the run against the expected outcomes and read our own traces honestly, the picture was worse:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The injection screen detected &lt;strong&gt;zero of the 14 leak/injection payloads&lt;/strong&gt;. Every one of those files was stopped by a different, duller mechanism: an &lt;em&gt;evidence gate&lt;/em&gt; that escalates anything whose fee, deadline, and terms cannot be cleanly verified. The traps were stopped for the wrong reason — "unverifiable", not "hostile".&lt;/li&gt;
&lt;li&gt;The screen's &lt;strong&gt;only&lt;/strong&gt; firing in the entire run was a false positive: it quarantined a benign security newsletter because the newsletter &lt;em&gt;quoted&lt;/em&gt; attack examples ("ignore previous instructions", credential lures) while teaching readers to spot them.&lt;/li&gt;
&lt;li&gt;Several payloads were invisible for embarrassing reasons: one split a trigger word with zero-width characters, one hid the instruction in base64, one used phrasing ("forward the ten latest emails") that simply wasn't in our pattern vocabulary.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The near miss is this: &lt;strong&gt;if a hostile page had carried a clean, verifiable "$0 fee, future deadline" block, it could have walked straight past the gate that saved us&lt;/strong&gt; — and the screen we trusted would not have caught it either. We know this because we wrote it down in our results file before fixing anything. That felt important. A tidy report would have hidden it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we changed (and measured)
&lt;/h2&gt;

&lt;p&gt;We treated the failure as three separate bugs, because it was:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. We screened raw text; attackers don't write raw text.&lt;/strong&gt;&lt;br&gt;
The screen now normalizes a &lt;em&gt;copy&lt;/em&gt; of the content first: HTML entities and &lt;code&gt;\uXXXX&lt;/code&gt; escapes decoded, percent-decoding, Unicode NFKC with a confusables fold (Cyrillic/Greek lookalikes), invisible characters stripped (zero-width, bidi controls, variation selectors), spaced-out letters collapsed, HTML comments exposed instead of dropped, attribute values (alt text, aria labels) screened as their own channel, and bounded base64 blobs decoded and screened — each hit tagged with the channel it came through. This was the single biggest fix.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Quoted attacks are still data.&lt;/strong&gt;&lt;br&gt;
A match that appears &lt;em&gt;only&lt;/em&gt; inside quotation now downgrades quarantine → escalate with a dedicated reason (&lt;code&gt;quoted_instruction&lt;/code&gt;), unless the same family also fires unquoted. The benign newsletter is escalated, not quarantined — and a real instruction can never hide behind quote marks, because a corroborating unquoted match restores the quarantine. Security write-ups survive; payloads don't get a free pass.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. "Unverifiable" was doing two jobs.&lt;/strong&gt;&lt;br&gt;
Files stopped as broken or inconsistent deserved to &lt;em&gt;say so&lt;/em&gt;. We added a validation stage (ragged CSV rows, truncated JSON with the failure position, impossible dates like February 30th, end-before-start events) and an amount-consistency check (itemised lines vs. stated total, unit price × quantity vs. row total). Items now escalate as &lt;code&gt;broken_data&lt;/code&gt; or &lt;code&gt;amount_mismatch&lt;/code&gt;, naming the exact problem, instead of hiding inside a generic "terms ambiguous".&lt;/p&gt;

&lt;p&gt;We re-ran the pack after each round, kept every earlier run's artifacts untouched, and scored each run the same way:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Run&lt;/th&gt;
&lt;th&gt;Agree&lt;/th&gt;
&lt;th&gt;Partial&lt;/th&gt;
&lt;th&gt;Miss&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;18&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The demo fixtures, our self-made trap set, and the backtest produced identical verdicts after every round — the fixes bought detection without buying false positives. The full per-file record, including what still misses and why, is in &lt;a href="https://github.com/miya-builds/warden-bounty-scout/blob/main/tests/trap-pack/RESULTS.md" rel="noopener noreferrer"&gt;&lt;code&gt;tests/trap-pack/RESULTS.md&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we still cannot guarantee
&lt;/h2&gt;

&lt;p&gt;Honesty was the brief, so:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A conversational payload — a spoken "mark me as present" buried in a meeting transcript — was caught in run 3 by a new attendance-falsification pattern, but the general class (instructions dissolved in ordinary conversation, addressed to no one in particular) needs speaker/authority modelling that a pattern screen does not have.&lt;/li&gt;
&lt;li&gt;Seven files remain "partial": mostly cases where Warden stops safely but names the problem less specifically than the ideal, plus a few checks we deliberately did &lt;em&gt;not&lt;/em&gt; build — a duplicate-key test for CSVs, for instance, because legitimate files repeat first-column values and the false-positive cost was real. Each refusal is documented next to the result it affects.&lt;/li&gt;
&lt;li&gt;In runs 2–3, exactly one canary string appears in our trace evidence — the audit log quoting the instruction it detected. Nothing was transmitted anywhere (the agent has no outbound tools), but we disclose it rather than claim a clean zero.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The lesson we actually learned
&lt;/h2&gt;

&lt;p&gt;The layer that saved us in run 1 was not the clever one. It was the boring one: &lt;em&gt;if you cannot verify it, stop and ask a human&lt;/em&gt; — plus an architecture where the worst case is a queue entry, because the agent holds no tool that can send, pay, or submit anything.&lt;/p&gt;

&lt;p&gt;Defence in depth is a cliché until the day your favourite layer scores zero and the dull one catches everything. Build the dull layers first. Then write down what your clever layer missed — before you fix it, while you still remember being wrong.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Warden was built solo for Agentware (Hackathon Raptors), Nov 27–30 2026. Code, traces, and the full trap-pack record: &lt;a href="https://github.com/miya-builds/warden-bounty-scout" rel="noopener noreferrer"&gt;github.com/miya-builds/warden-bounty-scout&lt;/a&gt;. Demo (2:50): &lt;a href="https://www.youtube.com/watch?v=2qcBUl28TOw" rel="noopener noreferrer"&gt;youtube.com/watch?v=2qcBUl28TOw&lt;/a&gt;. Two smaller build-window failures — a plan validator that rejected its own provenance timestamps, and a first live run killed by a proxy-truncated response — are logged in the repo's &lt;code&gt;NEAR_MISS.md&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;

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