<?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: Hetaireia</title>
    <description>The latest articles on DEV Community by Hetaireia (@janissary).</description>
    <link>https://dev.to/janissary</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%2F4181472%2Fb340fa4f-fd8c-4774-be07-3bb845d5ed05.png</url>
      <title>DEV Community: Hetaireia</title>
      <link>https://dev.to/janissary</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/janissary"/>
    <language>en</language>
    <item>
      <title>We refuse to emit a finding from a single response</title>
      <dc:creator>Hetaireia</dc:creator>
      <pubDate>Tue, 13 Oct 2026 08:21:28 +0000</pubDate>
      <link>https://dev.to/janissary/we-refuse-to-emit-a-finding-from-a-single-response-3bld</link>
      <guid>https://dev.to/janissary/we-refuse-to-emit-a-finding-from-a-single-response-3bld</guid>
      <description>&lt;p&gt;Every DAST tool I've used has the same failure mode, and it isn't detection.&lt;br&gt;
It's trust.&lt;/p&gt;

&lt;p&gt;You run a scan. You get 200 findings. You triage 30. You discover 22 are&lt;br&gt;
noise. You stop reading findings. The tool that was supposed to save you&lt;br&gt;
time now costs you time, and the next time you run it you skim.&lt;/p&gt;

&lt;p&gt;I built JANISSARY around one rule: &lt;strong&gt;a finding that isn't a difference is a&lt;br&gt;
guess.&lt;/strong&gt; Here's what that means in practice, why it's harder than it sounds,&lt;br&gt;
and what we gave up to ship it.&lt;/p&gt;


&lt;h2&gt;
  
  
  What "differential" actually requires
&lt;/h2&gt;

&lt;p&gt;A finding should never be emitted from a single response. That sounds like a&lt;br&gt;
one-line policy. It's actually four engineering problems stacked on top of&lt;br&gt;
each other.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First, you need a baseline you can trust.&lt;/strong&gt; Before probing, JANISSARY&lt;br&gt;
sends N benign requests to the same endpoint, same parameter, same headers.&lt;br&gt;
If the baseline isn't stable — if the response time varies by more than a&lt;br&gt;
threshold, if the body length jumps between runs — the tool refuses to&lt;br&gt;
engage the timing gates and tells you so:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[q] baseline is static - timing gates disabled
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's not a bug, it's the tool being honest. A flaky baseline produces&lt;br&gt;
flaky deltas, and flaky deltas produce false positives. Better to run&lt;br&gt;
fewer gates than to run wrong ones.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Second, you need a probe that produces a &lt;em&gt;reproducible&lt;/em&gt; delta.&lt;/strong&gt; Firing&lt;br&gt;
a payload and seeing the response change isn't enough. The change has to be&lt;br&gt;
consistent, tied to the payload, and not explained by normal variance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Third, you need to distinguish a delta from a WAF block.&lt;/strong&gt; Cloudflare&lt;br&gt;
returns a 403 with a challenge page — that's not an SQL injection, that's&lt;br&gt;
Cloudflare doing its job. JANISSARY's pacer watches for those signatures&lt;br&gt;
and feeds them into the differential gate so a block doesn't get reported&lt;br&gt;
as a vulnerability.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fourth, you need to normalise time-varying responses.&lt;/strong&gt; CSRF tokens,&lt;br&gt;
nonces, timestamps, session IDs, dynamic ad copy — the response body&lt;br&gt;
changes constantly for reasons that have nothing to do with your payload.&lt;br&gt;
Comparison has to strip those out or the gate fires on everything.&lt;/p&gt;

&lt;p&gt;Each of those is a separate subsystem. Together, they produce output that&lt;br&gt;
looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  Findings:
    F-001  CRITICAL sqli:sql_injection  (param=q)
           - [sql_single_quote] db_error: SQLITE error signature matched
           - [sql_single_quote] status_change: Baseline 200 -&amp;gt; Payload 500
           - [sql_or_1eq1]      length_anomaly: Response 3.2x baseline
           - [sql_union_null]   status_change: Baseline 200 -&amp;gt; Payload 500
           - [sql_union_null]   length_anomaly: Response 8.3x baseline
           - [sql_sleep_mysql]  status_change: Baseline 200 -&amp;gt; Payload 500
           - [sql_sleep_pg]     status_change: Baseline 200 -&amp;gt; Payload 500
           - [sql_sleep_pg]     length_anomaly: Response 4.7x baseline

    F-002  LOW      sqli:reflection  (param=q)
           - [sql_single_quote] payload_reflected: Payload reflected (raw)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Eleven signals. &lt;strong&gt;One bug.&lt;/strong&gt; Every piece of evidence for &lt;code&gt;F-001&lt;/code&gt; points at&lt;br&gt;
the same SQL injection, so JANISSARY groups them. &lt;code&gt;F-002&lt;/code&gt; is a different&lt;br&gt;
root cause — reflection — and stays separate.&lt;/p&gt;

&lt;p&gt;The first version of this scan reported nine findings. A reviewer looking&lt;br&gt;
at the summary saw &lt;code&gt;9 findings&lt;/code&gt; and moved on. Now they see &lt;code&gt;2 groups&lt;/code&gt; and&lt;br&gt;
read the one that matters.&lt;/p&gt;


&lt;h2&gt;
  
  
  What we gave up
&lt;/h2&gt;

&lt;p&gt;We gave up speed.&lt;/p&gt;

&lt;p&gt;A baseline-gated scan runs the target 3–5x more than a naive scanner. On a&lt;br&gt;
100-endpoint target, that's the difference between a 4-minute scan and a&lt;br&gt;
12-minute scan. We also gave up recall: when the baseline is unstable, we&lt;br&gt;
disable the gates and miss findings rather than flood the report with&lt;br&gt;
maybes.&lt;/p&gt;

&lt;p&gt;We think that's the right trade. Here's the number that convinced us:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;On two local vulnerable Flask endpoints (SQL injection and reflected&lt;br&gt;
XSS), JANISSARY emitted &lt;strong&gt;23 findings across 3 groups&lt;/strong&gt; — and the&lt;br&gt;
SQL-injection scan returned the &lt;em&gt;identical&lt;/em&gt; finding set across two&lt;br&gt;
back-to-back runs. A naive scan of the same endpoints produces 23&lt;br&gt;
signals with no grouping, so the same bug shows up as 11 separate&lt;br&gt;
findings, and triage starts at the wrong number.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That last word — &lt;em&gt;reproducible&lt;/em&gt; — is the one most DAST tools can't claim.&lt;br&gt;
Run the same scan twice and compare the output. If your tool's finding set&lt;br&gt;
changes between identical runs, it isn't gating on differences, and you're&lt;br&gt;
paying triage tax on every scan.&lt;/p&gt;


&lt;h2&gt;
  
  
  Does any of this hold at scale?
&lt;/h2&gt;

&lt;p&gt;The Flask demo is a demo. Here's a harder test: OWASP Benchmark, the&lt;br&gt;
standard open benchmark for DAST tools.&lt;/p&gt;

&lt;p&gt;It contains 2,740 test cases across SQL injection, XSS, command&lt;br&gt;
injection, path traversal, LDAP injection, XPath injection, weak&lt;br&gt;
randomness, trust-boundary violations, and secure-cookie flags. Each&lt;br&gt;
case is a servlet that either is or isn't vulnerable to a specific&lt;br&gt;
class. The scanner has to figure out which without source access.&lt;/p&gt;

&lt;p&gt;On the DAST-applicable subset — the corpus minus the crypto and hash&lt;br&gt;
cases that only a source-aware tool can observe — JANISSARY scores:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;F1        0.920
Precision 1.000
Recall    0.851
TP        984
FP        0
FN        172
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Eighteen of the DAST-applicable categories score F1 1.000. Six more&lt;br&gt;
score F1 0.95 or above. The weakest category is pathtraver, where the&lt;br&gt;
F1 range across four subcategories is 0.049 to 0.308 — and there's a&lt;br&gt;
separate write-up on why that's a property of the benchmark target,&lt;br&gt;
not of the scanner: &lt;a href="https://github.com/Hetaireia/janissary/blob/main/docs/pathtraver.md" rel="noopener noreferrer"&gt;&lt;code&gt;docs/pathtraver.md&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The number that matters most here is Precision 1.000.&lt;/strong&gt; Not a single&lt;br&gt;
false positive across the whole DAST-applicable corpus. That's the&lt;br&gt;
design claim — a finding that isn't a difference is a guess — turned&lt;br&gt;
into a measured outcome.&lt;/p&gt;

&lt;p&gt;A scanner that emits zero false positives on a corpus this size isn't&lt;br&gt;
"tuned." It's architected that way. Every oracle requires evidence of&lt;br&gt;
a specific kind: a real database error signature, a session sink echo&lt;br&gt;
of a per-scan random marker, a raw XSS payload past its trailing&lt;br&gt;
character, a paired differential on a file-existence oracle. Nothing&lt;br&gt;
fires on pattern match alone.&lt;/p&gt;

&lt;p&gt;The 0.920 recall is the honest number. There are 172 cases JANISSARY&lt;br&gt;
doesn't catch. 123 are the pathtraver target-cap; the rest are&lt;br&gt;
scattered gaps across subcategories that we triage one at a time. The&lt;br&gt;
full breakdown, including the cases we miss, is in &lt;code&gt;BENCHMARK.md&lt;/code&gt;.&lt;br&gt;
The point of running a benchmark is to learn where the tool fails,&lt;br&gt;
not to have a number.&lt;/p&gt;

&lt;p&gt;The run is reproducible:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python benchmark/track_a/run_with_recovery.py       --target-base http://127.0.0.1:8080/benchmark       --cases-csv benchmark/track_a/_chunks/full_p0.csv       --tools-env benchmark/track_a/tools_env_default.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;Requires the OWASP Benchmark container; the script and the container&lt;br&gt;
image are in the repo.&lt;/p&gt;
&lt;h3&gt;
  
  
  How do other tools do?
&lt;/h3&gt;

&lt;p&gt;We ran Nuclei 3.11 and ZAP baseline against the same corpus (chunk 0,&lt;br&gt;
550 URLs). Neither is a direct competitor to JANISSARY — they answer&lt;br&gt;
different questions — but the comparison is instructive.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Benchmark TPs&lt;/th&gt;
&lt;th&gt;Benchmark FPs&lt;/th&gt;
&lt;th&gt;Findings on the corpus&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;JANISSARY&lt;/td&gt;
&lt;td&gt;984 / 1156&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;2914&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nuclei 3.11&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ZAP baseline&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;N/A&lt;/td&gt;
&lt;td&gt;27&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Nuclei's templates are keyed on known CVEs and version fingerprints.&lt;br&gt;
The benchmark uses neither. Its 0 findings aren't a failure — they're a&lt;br&gt;
measurement of scope. Nuclei is a vulnerability-discovery tool. The&lt;br&gt;
OWASP Benchmark is not a discovery target.&lt;/p&gt;

&lt;p&gt;ZAP baseline is passive-only: it spiders and reads. It found missing&lt;br&gt;
security headers, missing anti-CSRF tokens, CSP weaknesses, and error&lt;br&gt;
disclosures — all real signals about the benchmark's Tomcat setup,&lt;br&gt;
none of them the injection classes the benchmark scores. Active&lt;br&gt;
scanning (ZAP full) is the closer comparison, and its recall on&lt;br&gt;
synthetic injection cases is historically below 20%. JANISSARY's&lt;br&gt;
F1 0.920 is a specific outcome of the differential design, not a&lt;br&gt;
category-wide win for "scanners."&lt;/p&gt;

&lt;p&gt;The honest takeaway: &lt;strong&gt;these tools are complementary.&lt;/strong&gt; Run Nuclei&lt;br&gt;
for CVE coverage. Run ZAP for passive hygiene findings. Run JANISSARY&lt;br&gt;
for reproducible differential detection on the injection classes.&lt;br&gt;
They don't compete for the same triage slot.&lt;/p&gt;


&lt;h2&gt;
  
  
  What this means if you're evaluating DAST
&lt;/h2&gt;

&lt;p&gt;Ask your current tool one question: &lt;strong&gt;if I run this scan twice, do I get&lt;br&gt;
the same findings?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If the answer is no, differential gating isn't in it, and the tool is&lt;br&gt;
producing guesses. That's not a moral judgment — a guess is useful if&lt;br&gt;
you're hunting for leads. It's a problem if you're handing the output to a&lt;br&gt;
client, an auditor, or your own backlog and expecting it to be actionable&lt;br&gt;
without re-verification.&lt;/p&gt;

&lt;p&gt;JANISSARY is the precision tool in your toolbox. It won't find everything.&lt;br&gt;
It will only tell you what it can prove.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;janissary
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://github.com/Hetaireia/janissary" rel="noopener noreferrer"&gt;github.com/Hetaireia/janissary&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;JANISSARY is a dual-use security testing tool. Run it only against&lt;br&gt;
systems you own or have prior written permission to test. See the&lt;br&gt;
&lt;a href="https://github.com/Hetaireia/janissary/blob/main/LEGAL.md" rel="noopener noreferrer"&gt;Terms of Use&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>python</category>
      <category>opensource</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
