<?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: Khaled Hani</title>
    <description>The latest articles on DEV Community by Khaled Hani (@muslimkh09).</description>
    <link>https://dev.to/muslimkh09</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%2F4005995%2F9a10ea3b-1153-4a7d-ac24-4bc2f25aae37.jpg</url>
      <title>DEV Community: Khaled Hani</title>
      <link>https://dev.to/muslimkh09</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/muslimkh09"/>
    <language>en</language>
    <item>
      <title>I built Sentinel: A blazing fast, regex-free secret scanner in Go 🛡️</title>
      <dc:creator>Khaled Hani</dc:creator>
      <pubDate>Sun, 28 Jun 2026 02:55:34 +0000</pubDate>
      <link>https://dev.to/muslimkh09/i-built-sentinel-a-blazing-fast-regex-free-secret-scanner-in-go-3amm</link>
      <guid>https://dev.to/muslimkh09/i-built-sentinel-a-blazing-fast-regex-free-secret-scanner-in-go-3amm</guid>
      <description>&lt;p&gt;If you’ve ever used standard secret scanners (like Gitleaks or TruffleHog) in a heavy CI/CD pipeline, you’ve probably hit the "Catastrophic Backtracking" wall. A massive minified JS file slips in, the regex engine chokes, and your pipeline freezes.&lt;/p&gt;

&lt;p&gt;I got extremely frustrated with the performance bottlenecks and false positives, so I decided to rewrite the architecture from scratch.&lt;/p&gt;

&lt;p&gt;Meet &lt;strong&gt;&lt;a href="https://github.com/sentinel-cli/sentinel" rel="noopener noreferrer"&gt;Sentinel&lt;/a&gt;&lt;/strong&gt;, an enterprise-grade, ultra-fast pre-commit scanner written in Go.&lt;/p&gt;

&lt;h3&gt;
  
  
  🔥 How it’s different:
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Aho-Corasick Engine:&lt;/strong&gt; Instead of relying purely on Regex, the core engine uses an Aho-Corasick automaton. It scans massive payloads in strict &lt;code&gt;O(n)&lt;/code&gt; linear time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pre-Decoding Layer:&lt;/strong&gt; It detects Base64 strings in-memory, decodes them dynamically, and feeds them back into the entropy pipeline to catch nested K8s/GCP keys.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blob Aggregation:&lt;/strong&gt; Multi-line certs (like JKS or PEM) are aggregated into a single &lt;code&gt;CRITICAL&lt;/code&gt; alert instead of blasting you with 50 lines of fragmented noise.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;100% Silent:&lt;/strong&gt; Zero "skipping binary file" logs. It acts as a true silent guardian—natively using &lt;code&gt;git ls-files&lt;/code&gt; for traversal.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  📊 The Doomsday Benchmark
&lt;/h3&gt;

&lt;p&gt;I built a "Doomsday Payload" (15MB of compressed minified strings mixed with 100+ structural baits like &lt;code&gt;UPPER_SNAKE_CASE&lt;/code&gt; constants). &lt;br&gt;
&lt;strong&gt;Result:&lt;/strong&gt; Sentinel ripped through it in ~1.5s with a flawless 100% signal-to-noise ratio.&lt;/p&gt;

&lt;p&gt;It is fully open-source under the AGPL-3.0 license. I'd love for the community to try it out, read the code, and give me some harsh feedback!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Repo:&lt;/strong&gt; &lt;a href="https://github.com/sentinel-cli/sentinel" rel="noopener noreferrer"&gt;https://github.com/sentinel-cli/sentinel&lt;/a&gt;&lt;/p&gt;

</description>
      <category>go</category>
      <category>performance</category>
      <category>security</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
