<?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: R.D. Hodges / TGE SC.</title>
    <description>The latest articles on DEV Community by R.D. Hodges / TGE SC. (@skip606).</description>
    <link>https://dev.to/skip606</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%2F4285464%2Ffe148548-6a31-41b3-9c44-6662965e70a3.jpg</url>
      <title>DEV Community: R.D. Hodges / TGE SC.</title>
      <link>https://dev.to/skip606</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/skip606"/>
    <language>en</language>
    <item>
      <title>I leaked an API key in my own test repo. My scanner caught it.</title>
      <dc:creator>R.D. Hodges / TGE SC.</dc:creator>
      <pubDate>Sat, 05 Dec 2026 21:35:58 +0000</pubDate>
      <link>https://dev.to/skip606/i-leaked-an-api-key-in-my-own-test-repo-my-scanner-caught-it-4ggl</link>
      <guid>https://dev.to/skip606/i-leaked-an-api-key-in-my-own-test-repo-my-scanner-caught-it-4ggl</guid>
      <description>&lt;p&gt;I'm a senior cybersecurity analyst, and I still almost shipped a live Stripe key in a test repo. Not because I'm careless — because secret leaks don't come from carelessness. They come from speed. You paste a key into a config to test something, commit, push, and the key is public before your coffee cools.&lt;/p&gt;

&lt;p&gt;That's why I built SecretDex, and why I just released a free Lite version you can try in about a minute.&lt;/p&gt;

&lt;h2&gt;
  
  
  The test I ran on myself
&lt;/h2&gt;

&lt;p&gt;I planted three fake-but-realistic secrets in a throwaway repo — an AWS access key, a Stripe live secret, and a GitHub token — then ran the scanner:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;All three were caught as CRITICAL findings&lt;/li&gt;
&lt;li&gt;Every value was &lt;strong&gt;masked&lt;/strong&gt; in the report (you see enough to identify the key, never the full secret)&lt;/li&gt;
&lt;li&gt;The full version exited with code 1 under &lt;code&gt;--fail-on HIGH&lt;/code&gt;, which is what makes it work as a pre-commit hook or CI gate: the commit simply doesn't happen&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last part is the whole point. A report you read after the push is archaeology. A hook that blocks the commit is prevention.&lt;/p&gt;

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

&lt;p&gt;Three layers, tuned to keep false positives low:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Pattern matching&lt;/strong&gt; for known credential shapes (AWS, Stripe, GitHub, and other common providers)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entropy analysis&lt;/strong&gt; to catch high-randomness strings that don't match a known pattern&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context rules&lt;/strong&gt; — a 40-character hex string next to the word "example" is treated differently from one assigned to &lt;code&gt;STRIPE_SECRET_KEY&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No single layer is trustworthy alone. Patterns miss novel formats, entropy flags hashes and UUIDs, context can be gamed. Together they cover each other's blind spots.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why offline?
&lt;/h2&gt;

&lt;p&gt;Most secret scanners want an account, a cloud upload, or a subscription. Think about that for a second: to check whether you've leaked credentials, you upload your codebase to someone else's server.&lt;/p&gt;

&lt;p&gt;SecretDex makes &lt;strong&gt;zero network calls&lt;/strong&gt;. No account, no telemetry, no phone-home license check — it works on an air-gapped machine, which matters for the defense and healthcare environments I come from. License validation is local and cryptographic, not a server round-trip.&lt;/p&gt;

&lt;p&gt;The build is deliberately boring: Python standard library only, no dependency tree to audit, one file you can read end to end if you want to verify there's no phone-home code. I think a security tool should be auditable by the people who rely on it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try the free version
&lt;/h2&gt;

&lt;p&gt;SecretDex Lite is free: scans up to 25 files, shows the first 5 findings, console output. It's the same detection engine — the full version ($29 one-time, 3 machines) adds unlimited scans, HTML reports, git-history scanning, and the pre-commit hook.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/skip606/SecretDex-Lite" rel="noopener noreferrer"&gt;https://github.com/skip606/SecretDex-Lite&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Download: &lt;a href="https://ko-fi.com/s/4e6819648d" rel="noopener noreferrer"&gt;https://ko-fi.com/s/4e6819648d&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'm a Navy veteran (BM3) building these tools solo in West Virginia — local-first, pay-once, no subscriptions. If you run Lite against your own repo and it flags something weird, or misses something it shouldn't, I genuinely want to hear about it. False-positive tuning is where scanners live or die, and real-world reports beat my test repos every time.&lt;/p&gt;

</description>
      <category>security</category>
      <category>devtools</category>
      <category>python</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
