<?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: Kevin Sanjaya</title>
    <description>The latest articles on DEV Community by Kevin Sanjaya (@augustkevinsanjaya).</description>
    <link>https://dev.to/augustkevinsanjaya</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%2F4189666%2F60986e49-25a7-40c0-98af-944c695ed0fb.jpg</url>
      <title>DEV Community: Kevin Sanjaya</title>
      <link>https://dev.to/augustkevinsanjaya</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/augustkevinsanjaya"/>
    <language>en</language>
    <item>
      <title>My scanner's README is tested in CI: 19 claims, PASS/FAIL, build breaks if one stops being true</title>
      <dc:creator>Kevin Sanjaya</dc:creator>
      <pubDate>Sat, 17 Oct 2026 00:29:05 +0000</pubDate>
      <link>https://dev.to/augustkevinsanjaya/my-scanners-readme-is-tested-in-ci-19-claims-passfail-build-breaks-if-one-stops-being-true-769</link>
      <guid>https://dev.to/augustkevinsanjaya/my-scanners-readme-is-tested-in-ci-19-claims-passfail-build-breaks-if-one-stops-being-true-769</guid>
      <description>&lt;p&gt;Every security tool README makes claims. "Detects SQL injection." "Finds&lt;br&gt;
hidden parameters." Some of those claims were true the day they were&lt;br&gt;
written. A few of them are still true today. Nobody checks.&lt;/p&gt;

&lt;p&gt;We got tired of that, so Summit (our web security CLI) does something a&lt;br&gt;
bit odd: the README is part of the test suite.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;There is a deliberately vulnerable app in examples/vuln_app.py. It binds&lt;br&gt;
to 127.0.0.1 only, seeds 16 families of vulnerabilities (SQLi, XSS, SSTI,&lt;br&gt;
command injection, CRLF, an IDOR admin panel, a hidden debug parameter,&lt;br&gt;
an exposed .env, ...), and -- importantly -- seeds one perfectly healthy&lt;br&gt;
outbound link to example.com as a negative control.&lt;/p&gt;

&lt;p&gt;Then examples/evidence.py runs the real tool against that app and checks&lt;br&gt;
each README claim with measured numbers:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[PASS] full scan: 16 seeded check families detected, zero false positives
       53 findings in 22.9s (344 requests), missing=none,
       control link flagged=no
[PASS] WAF bypass: naive filter blocks, tampered payload lands decoded
[PASS] OS command injection: marker executed and echoed by the server
...
evidence summary: 19/19 claims verified
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;CI runs this on every push. A healthy link getting flagged, or a seeded&lt;br&gt;
SQLi going undetected, fails the build.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why not just unit tests?
&lt;/h2&gt;

&lt;p&gt;Unit tests assert the engine. The evidence runner asserts the &lt;em&gt;promise&lt;/em&gt;.&lt;br&gt;
When I add a check and forget to mention it, or "improve" a check until&lt;br&gt;
it only works on the unit test's fixture, the README evidence turns red.&lt;br&gt;
Docs rot is a build failure, not a slow leak.&lt;/p&gt;

&lt;h2&gt;
  
  
  The confirmation rules are the interesting part
&lt;/h2&gt;

&lt;p&gt;The hard part of a scanner is not firing payloads -- it is deciding when&lt;br&gt;
a finding is real:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Boolean SQLi: AND 1=1 must match the untouched baseline, AND 1=2 must
differ. Pages that vary per request stay quiet.&lt;/li&gt;
&lt;li&gt;Command injection: an exec marker compared against a control marker.
A server that merely reflects shows both; one that executes shows the
exec marker more often. Only that asymmetry reports.&lt;/li&gt;
&lt;li&gt;Sensitive files: confirmed by content signature (APP_KEY=...), never by
status code alone. A soft-404 page that returns 200 is not an .env.&lt;/li&gt;
&lt;li&gt;WAF bypass: reported only when the tampered payload lands &lt;em&gt;decoded&lt;/em&gt; in
the response. A 200 with a still-encoded payload is not a bypass.&lt;/li&gt;
&lt;li&gt;Every finding carries a confidence label: confirmed (observed fact) or
potential (heuristic). CVE banner matches stay potential because
banners are trivially spoofed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it without pointing anything at a real site
&lt;/h2&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git clone https://github.com/pennacle-security/summit.git &amp;amp;&amp;amp; cd summit
pip install -e .
python examples/vuln_app.py          # terminal 1
summit scan http://127.0.0.1:8765    # terminal 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;MIT, Python 3.10+. The demo app is yours to break.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this approach breaks down
&lt;/h2&gt;

&lt;p&gt;Honest list: checks that depend on external services are flaky in CI&lt;br&gt;
(we cap and degrade instead of failing); time-based checks are&lt;br&gt;
nondeterministic so we verify calibration instead of raw delay; and the&lt;br&gt;
evidence runner only proves the demo app is detected -- your target is&lt;br&gt;
different. It bounds the lies, it does not eliminate them.&lt;/p&gt;

&lt;p&gt;What would you add to a "docs are tests" runner for a security tool?&lt;/p&gt;

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