<?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: 6to90</title>
    <description>The latest articles on DEV Community by 6to90 (@6to90).</description>
    <link>https://dev.to/6to90</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%2F4273726%2F412c34fb-8360-4da1-a68e-bb61de732761.jpg</url>
      <title>DEV Community: 6to90</title>
      <link>https://dev.to/6to90</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/6to90"/>
    <language>en</language>
    <item>
      <title>I built 4 pre-launch CLIs, and my own scanner failed open</title>
      <dc:creator>6to90</dc:creator>
      <pubDate>Mon, 30 Nov 2026 08:51:49 +0000</pubDate>
      <link>https://dev.to/6to90/i-built-4-pre-launch-clis-and-my-own-scanner-failed-open-2f9e</link>
      <guid>https://dev.to/6to90/i-built-4-pre-launch-clis-and-my-own-scanner-failed-open-2f9e</guid>
      <description>&lt;p&gt;Shipping with AI-assisted coding is a cheat code, right up until launch day. Then you notice there is no CSP, your &lt;code&gt;.env.example&lt;/code&gt; is stale, and some GPL package is chilling 3 levels deep in &lt;code&gt;node_modules&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;So I wrote 4 tiny CLIs. Zero deps, one command each:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;launchcheck: grades your site (security headers, TLS, SEO, broken links, speed) &lt;a href="https://github.com/6to90/launchcheck" rel="noopener noreferrer"&gt;https://github.com/6to90/launchcheck&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;secretscan: finds leaked keys, masks the output, has a &lt;code&gt;--staged&lt;/code&gt; pre-commit mode &lt;a href="https://github.com/6to90/secretscan" rel="noopener noreferrer"&gt;https://github.com/6to90/secretscan&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;envcheck: env vars your code reads that &lt;code&gt;.env.example&lt;/code&gt; forgot &lt;a href="https://github.com/6to90/envcheck" rel="noopener noreferrer"&gt;https://github.com/6to90/envcheck&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;licensecheck: sorts every license in &lt;code&gt;node_modules&lt;/code&gt;, GPL included &lt;a href="https://github.com/6to90/licensecheck" rel="noopener noreferrer"&gt;https://github.com/6to90/licensecheck&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx github:6to90/launchcheck yoursite.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  I ran em on my own prod app. Not a flex.
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;launchcheck: 80/100. No CSP (-15), no &lt;code&gt;og:image&lt;/code&gt; (-5).&lt;/li&gt;
&lt;li&gt;envcheck: 16 env vars used in code but missing from &lt;code&gt;.env.example&lt;/code&gt;. Anyone cloning my repo was cooked.&lt;/li&gt;
&lt;li&gt;licensecheck: 1,197 packages, 0 strong copyleft, 7 weak copyleft, 2 source-available (FSL) I actually need to read.&lt;/li&gt;
&lt;li&gt;secretscan: 7 hits, nothing scary. A local dev DB URL in a gitignored &lt;code&gt;.env.local&lt;/code&gt; plus fake hosts in test files. No real prod keys. Phew.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Plot twist: my secret scanner failed open
&lt;/h2&gt;

&lt;p&gt;Automated security reviews flagged bugs in my own code. Every. Single. One. Was real. Worst offender: run through &lt;code&gt;npx&lt;/code&gt;, secretscan scanned nothing and exited &lt;code&gt;0&lt;/code&gt;. Full "all clear" on a folder stuffed with keys. 💀&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// before: false when launched through a symlink (exactly how npx runs bins)&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;meta&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="sb"&gt;`file://${process.argv[1]}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// after&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;realpathSync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;argv&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="nf"&gt;fileURLToPath&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;import&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;meta&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nf"&gt;run&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My tests passed because I only ever ran &lt;code&gt;node secretscan.mjs&lt;/code&gt; directly. Classic.&lt;/p&gt;

&lt;p&gt;More L is from the same pass:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;UNLICENSED&lt;/code&gt; (proprietary) matched the &lt;code&gt;UNLICENSE&lt;/code&gt; (public domain) prefix, so closed code got labeled permissive&lt;/li&gt;
&lt;li&gt;nested &lt;code&gt;node_modules&lt;/code&gt; and busted &lt;code&gt;package.json&lt;/code&gt; files got skipped silently&lt;/li&gt;
&lt;li&gt;one unreadable file crashed the entire scan&lt;/li&gt;
&lt;li&gt;envcheck said "none" for &lt;code&gt;const { A } = process.env&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;New rules: if a tool cannot check something, it says so (exit code 2), never "clean". Match whole identifiers, not prefixes. Test the real entry path.&lt;/p&gt;

&lt;p&gt;All MIT, Node 18+, CI on 18/20/22. Regex-based, so not a replacement for gitleaks or a pen test.&lt;/p&gt;

&lt;p&gt;Your turn: what score does your site get? Drop it below, I wanna see the worst one 👇 And what check should I add next? Most-requested gets built first.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>security</category>
      <category>node</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
