<?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: BLIQ_kr</title>
    <description>The latest articles on DEV Community by BLIQ_kr (@bliq_kr).</description>
    <link>https://dev.to/bliq_kr</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%2F3989482%2Ff0d52cc9-b538-4e2d-b17e-ca201b707e23.png</url>
      <title>DEV Community: BLIQ_kr</title>
      <link>https://dev.to/bliq_kr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bliq_kr"/>
    <language>en</language>
    <item>
      <title>The API keys you almost shipped to prod — and the free scanner I built to catch them</title>
      <dc:creator>BLIQ_kr</dc:creator>
      <pubDate>Wed, 17 Jun 2026 16:56:39 +0000</pubDate>
      <link>https://dev.to/bliq_kr/the-api-keys-you-almost-shipped-to-prod-and-the-free-scanner-i-built-to-catch-them-4737</link>
      <guid>https://dev.to/bliq_kr/the-api-keys-you-almost-shipped-to-prod-and-the-free-scanner-i-built-to-catch-them-4737</guid>
      <description>&lt;p&gt;I'm a solo maker shipping small apps, often with AI writing most of the code. The thing that kept me up at night: right before launch it's &lt;em&gt;really&lt;/em&gt; easy to leave a live API key or an obvious vulnerability sitting in the codebase — especially when you didn't hand-write every line and you're moving fast.&lt;/p&gt;

&lt;p&gt;So I built a small tool to catch that before it goes public. It's called &lt;strong&gt;presec&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;You paste your code (or drop a zip), and it runs two passes on the server:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Regex rules&lt;/strong&gt; scan for exposed secrets — AWS, Stripe &lt;code&gt;sk_live_&lt;/code&gt;, OpenAI / Anthropic keys, Google, GitHub tokens, private keys, hardcoded passwords, committed &lt;code&gt;.env&lt;/code&gt; files, etc. Public-intent keys like Stripe &lt;code&gt;pk_&lt;/code&gt; or a Supabase &lt;code&gt;anon&lt;/code&gt; JWT get classified as &lt;em&gt;false positives&lt;/em&gt; so the tool doesn't cry wolf.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Selected snippets&lt;/strong&gt; go to an LLM to flag critical vulnerabilities and return the &lt;strong&gt;top 3 prioritized fixes&lt;/strong&gt; with code.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You get one report: risk summary → exposed secrets (masked) → critical vulns → top 3 fixes. ~1 minute, free, no login.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;It's an &lt;strong&gt;assistive check, not a full security audit&lt;/strong&gt; — I'm clear about that in the tool itself. It's for catching the obvious, embarrassing stuff before strangers see it.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The leaks it keeps catching
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Admin / service-role keys in the repo.&lt;/strong&gt; A Supabase &lt;code&gt;service_role&lt;/code&gt; key (anything that bypasses row-level security) in your code is game over — whoever has it owns your DB.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The classic committed &lt;code&gt;.env&lt;/code&gt;.&lt;/strong&gt; It's &lt;code&gt;.gitignore&lt;/code&gt;d… except that one time it wasn't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hardcoded &lt;code&gt;password=&lt;/code&gt; / &lt;code&gt;secret=&lt;/code&gt;&lt;/strong&gt; left over from "I'll fix it later."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Public vs secret confusion&lt;/strong&gt; — people panic over a &lt;code&gt;pk_&lt;/code&gt; (it's fine, it's public) while a real &lt;code&gt;sk_live_&lt;/code&gt; sits two lines down.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Funny aside: when I scanned presec's &lt;em&gt;own&lt;/em&gt; repo, it flagged the example &lt;code&gt;-----BEGIN PRIVATE KEY-----&lt;/code&gt; string in my README as a critical leak. So example patterns in docs are a false-positive category I still need to handle. Dogfooding works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stack
&lt;/h2&gt;

&lt;p&gt;Next.js (App Router) + Tailwind + Supabase. The LLM call is server-side only (keys never touch the client), secrets are masked before storage, and results expire on a short TTL.&lt;/p&gt;

&lt;h2&gt;
  
  
  I'd love your take
&lt;/h2&gt;

&lt;p&gt;I'm trying to figure out whether this is actually useful to other people or just to anxious me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Try it: &lt;a href="https://presec.vercel.app" rel="noopener noreferrer"&gt;https://presec.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;30-second feedback: &lt;a href="https://tally.so/r/44G5kY" rel="noopener noreferrer"&gt;https://tally.so/r/44G5kY&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Does this solve a real pain for you? Would you pay for it (and if so, how much)? And — what's the most embarrassing thing you've &lt;em&gt;almost&lt;/em&gt; shipped? 🙂&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>security</category>
      <category>webdev</category>
      <category>buildinpublic</category>
    </item>
  </channel>
</rss>
