<?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: lbcdsg</title>
    <description>The latest articles on DEV Community by lbcdsg (@3196973848).</description>
    <link>https://dev.to/3196973848</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%2F4052735%2F489a3358-875a-461a-90b8-0a2fd544e6ff.png</url>
      <title>DEV Community: lbcdsg</title>
      <link>https://dev.to/3196973848</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/3196973848"/>
    <language>en</language>
    <item>
      <title>I built a small open-source scanner for API-key mistakes in vibe-coded projects</title>
      <dc:creator>lbcdsg</dc:creator>
      <pubDate>Thu, 30 Jul 2026 05:15:06 +0000</pubDate>
      <link>https://dev.to/3196973848/i-built-a-small-open-source-scanner-for-api-key-mistakes-in-vibe-coded-projects-4cd0</link>
      <guid>https://dev.to/3196973848/i-built-a-small-open-source-scanner-for-api-key-mistakes-in-vibe-coded-projects-4cd0</guid>
      <description>&lt;p&gt;I started this project because vibe coding makes it possible to get an app&lt;br&gt;
working before a beginner has learned how secrets, frontend bundles, or Git&lt;br&gt;
history behave.&lt;/p&gt;

&lt;p&gt;A value being in &lt;code&gt;.env&lt;/code&gt; does not always mean it stays private. Variables such&lt;br&gt;
as &lt;code&gt;VITE_*&lt;/code&gt;, &lt;code&gt;NEXT_PUBLIC_*&lt;/code&gt;, and &lt;code&gt;REACT_APP_*&lt;/code&gt; can reach browser code. And if&lt;br&gt;
an API key was committed, deleting it from the current file does not remove it&lt;br&gt;
from Git history.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Wardrail&lt;/strong&gt;, a small open-source safety check:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx wardrail scan &lt;span class="nt"&gt;--history&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It scans the current project and a bounded part of Git history. It also checks&lt;br&gt;
MCP configuration and Agent instruction files for risky commands, credential&lt;br&gt;
access, and safety-bypass patterns.&lt;/p&gt;

&lt;p&gt;Wardrail runs locally by default. It does not upload source code and does not&lt;br&gt;
execute the project being scanned.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the current version includes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;wardrail@0.3.0&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;17 explainable static rules&lt;/li&gt;
&lt;li&gt;38 automated tests&lt;/li&gt;
&lt;li&gt;Terminal, JSON, and SARIF output&lt;/li&gt;
&lt;li&gt;Pre-commit and GitHub Code Scanning support&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why I think this matters for beginners
&lt;/h2&gt;

&lt;p&gt;AI coding tools can help someone ship a useful application very quickly. But&lt;br&gt;
speed can hide security assumptions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;.env&lt;/code&gt; is treated as automatically private&lt;/li&gt;
&lt;li&gt;Public frontend variables are mistaken for server-side secrets&lt;/li&gt;
&lt;li&gt;A deleted key is assumed to be gone from Git history&lt;/li&gt;
&lt;li&gt;A third-party MCP server or Agent Skill is trusted without reading its
commands&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Wardrail is meant to be an early warning before a push or release. It explains&lt;br&gt;
the matched evidence and suggests a fix instead of returning only a risk&lt;br&gt;
score.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest limitations
&lt;/h2&gt;

&lt;p&gt;This is still an early project, and I do not have external users to point to&lt;br&gt;
yet. It can produce false positives and miss risks. It is not a penetration&lt;br&gt;
test, and a clean report does not mean an application is secure.&lt;/p&gt;

&lt;p&gt;It does not currently test authentication, authorization, database policies,&lt;br&gt;
dependency vulnerabilities, deployment settings, or runtime behavior.&lt;br&gt;
Gitleaks and TruffleHog are still mature choices for broader secret discovery.&lt;/p&gt;

&lt;h2&gt;
  
  
  I am looking for the first real testers
&lt;/h2&gt;

&lt;p&gt;Repository and CLI demo:&lt;/p&gt;

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

&lt;p&gt;The feedback that would help most is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which rule was noisy or confusing?&lt;/li&gt;
&lt;li&gt;Which secret format or risky pattern did it miss?&lt;/li&gt;
&lt;li&gt;Was the suggested fix understandable to a beginner?&lt;/li&gt;
&lt;li&gt;Which MCP or Agent configuration should it support next?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Please share only a rule ID and a redacted example—never post a live&lt;br&gt;
credential. If a real key may have been exposed, revoke or rotate it first.&lt;/p&gt;

&lt;p&gt;Even a short report about what failed is more useful to me than a polite&lt;br&gt;
"looks cool."&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>security</category>
      <category>ai</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
