<?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: Jaskarn Singh</title>
    <description>The latest articles on DEV Community by Jaskarn Singh (@jaskarn_singh).</description>
    <link>https://dev.to/jaskarn_singh</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%2F2136825%2F61d622a8-484e-44e9-af02-bab1134474a9.jpg</url>
      <title>DEV Community: Jaskarn Singh</title>
      <link>https://dev.to/jaskarn_singh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jaskarn_singh"/>
    <language>en</language>
    <item>
      <title>Making LLM security verdicts verifiable: the evidence gate pattern</title>
      <dc:creator>Jaskarn Singh</dc:creator>
      <pubDate>Fri, 03 Jul 2026 20:01:15 +0000</pubDate>
      <link>https://dev.to/jaskarn_singh/making-llm-security-verdicts-verifiable-the-evidence-gate-pattern-3afp</link>
      <guid>https://dev.to/jaskarn_singh/making-llm-security-verdicts-verifiable-the-evidence-gate-pattern-3afp</guid>
      <description>&lt;p&gt;Every "AI security analyst" I tried had the same flaw: a correct verdict and a confident-but-wrong one are indistinguishable on screen. In security that's not a UX nit — it's the whole problem. So I built USAP around a single rule, and this post is about that rule and three things that fell out of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The evidence gate
&lt;/h2&gt;

&lt;p&gt;USAP's output contract is 11 typed JSON fields. The uncompromising one is &lt;code&gt;evidence_references&lt;/code&gt;: every verdict must carry at least one source that &lt;em&gt;resolves&lt;/em&gt;. Four accepted forms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;mcp:&amp;lt;logical&amp;gt;:&amp;lt;tool&amp;gt;:&amp;lt;call_id&amp;gt;&lt;/code&gt; — evidence fetched live from a connected MCP&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;https://...&lt;/code&gt; — a canonical external source (CVE, EPSS feed, MITRE)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;s3://...&lt;/code&gt; — an operator artifact&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;local://&amp;lt;repo-path&amp;gt;&lt;/code&gt; — an in-repo standard, for advisory verdicts (the path must exist)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A source like &lt;code&gt;"scanner"&lt;/code&gt; or &lt;code&gt;"the SIEM showed it"&lt;/code&gt; is rejected at the contract boundary. That one check removes most hand-wavy output, because the model can't satisfy the contract without pointing at something real.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fallout 1: connectors have to be abstract
&lt;/h2&gt;

&lt;p&gt;If a verdict cites &lt;code&gt;mcp:siem:search&lt;/code&gt;, that can't hard-code Splunk — not everyone runs Splunk. So agents declare &lt;em&gt;logical&lt;/em&gt; capabilities and a registry resolves them to whatever the operator connected (Splunk, Elastic, Sentinel). If nothing implements a capability, the agent degrades gracefully and marks that axis UNKNOWN rather than inventing telemetry.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fallout 2: numbers can't be narrated
&lt;/h2&gt;

&lt;p&gt;Once you demand resolvable evidence, narrated numbers feel wrong too. CVSS is computed from the published vector. EPSS is pulled live from the FIRST feed. Confidence comes from a written rubric. If a number can't be computed, the tool returns "qualitative" instead of fabricating one — and the contract rejects a &lt;code&gt;cvss_score&lt;/code&gt; that disagrees with its cited vector.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fallout 3: you can't grade yourself
&lt;/h2&gt;

&lt;p&gt;A system that enforces evidence shouldn't grade itself against its own answer key. USAP ships a held-out corpus of real public incidents (Log4Shell, xz, Capital One, MOVEit) plus benign false-positive traps, and a stdlib harness that reports precision, recall, FPR, and MTTD.&lt;/p&gt;

&lt;p&gt;USAP is open-source (Apache-2.0), stdlib-only, and runs as an MCP server or as paste-in system prompts in any model. Every example in the repo is a real command you can re-run. I'd value feedback on the gate design.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/jaskaranhundal/usap-skills" rel="noopener noreferrer"&gt;https://github.com/jaskaranhundal/usap-skills&lt;/a&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>llm</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
