Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Podcasts & Audio BriefingsIBM Technology: Are AI labs ignoring cybersecurity experts?(23.09.2026 um 12:00 Uhr)
AI & KI NachrichtenIBM Technology: You Can't Keep Powerful AI Secret for Long🤖(23.09.2026 um 18:00 Uhr)
Sicherheitslücken (CVE)Security Weekly - A CRA Resource: Two People Can’t Do Everything(24.09.2026 um 16:00 Uhr)
AI & KI NachrichtenLiveOverflow: They Hacked OpenAI! #shorts(24.09.2026 um 12:00 Uhr)
Podcasts & Audio BriefingsSecurity-Insider: Klein anfangen ist der Schlüssel! #podcast #cybersecurity(21.09.2026 um 08:00 Uhr)
Podcasts & Audio BriefingsSecurity-Insider: Die Zukunft der digitalen Welt! #podcast #cybersecurity(22.09.2026 um 08:00 Uhr)
Reverse EngineeringGitHub Release: icsharpcode/ILSpy v11.1 (23.09.2026)(23.09.2026 um 08:43 Uhr)
Podcasts & Audio BriefingsIBM Technology: Are AI labs ignoring cybersecurity experts?(23.09.2026 um 12:00 Uhr)
AI & KI NachrichtenIBM Technology: You Can't Keep Powerful AI Secret for Long🤖(23.09.2026 um 18:00 Uhr)
Sicherheitslücken (CVE)Security Weekly - A CRA Resource: Two People Can’t Do Everything(24.09.2026 um 16:00 Uhr)
AI & KI NachrichtenLiveOverflow: They Hacked OpenAI! #shorts(24.09.2026 um 12:00 Uhr)
Podcasts & Audio BriefingsSecurity-Insider: Klein anfangen ist der Schlüssel! #podcast #cybersecurity(21.09.2026 um 08:00 Uhr)
Podcasts & Audio BriefingsSecurity-Insider: Die Zukunft der digitalen Welt! #podcast #cybersecurity(22.09.2026 um 08:00 Uhr)
Reverse EngineeringGitHub Release: icsharpcode/ILSpy v11.1 (23.09.2026)(23.09.2026 um 08:43 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

A lightweight secrets scanner that catches exposed keys before they reach GitHub

Hi, I’ve been experimenting with DevSecOps tools lately, and noticed that most secret scanners only alert you after you’ve already pushed to GitHub — when the damage is done. So I decided to build a different kind of scanner. Something fas…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Hi,

I’ve been experimenting with DevSecOps tools lately, and noticed that

most secret scanners only alert you after you’ve already pushed to GitHub — when the damage is done.



So I decided to build a different kind of scanner.

Something fast, lightweight, and developer-first — that runs locally before you even commit code.



The Problem



Every year, thousands of API keys and credentials get accidentally committed to public repos.

Even with GitHub’s built-in secret scanning and tools like GitGuardian, leaks still happen because:



Developers forget to run scans before pushing.



Most scanners are CI-only (post-commit).



Setup is overcomplicated for solo devs and small teams.



I wanted a local-first tool that fits naturally into a workflow — no cloud sync, no telemetry, no “trust us” backend.



The Solution: Secrets Scanner



Secrets Scanner is a simple Python + FastAPI tool that:



Scans repos for hardcoded secrets, keys, and tokens.



Runs as a pre-commit hook locally (python -m app.cli --staged).



Works as a CLI or self-hosted web app.



Integrates with CI pipelines for an extra safety layer.



Sends optional alerts to Slack when secrets are detected.



Everything runs on your machine or your server — no data leaves your environment.



Quick Demo



Local use:



python -m app.cli --staged



If a secret is found, it blocks your commit with a clear message:



Secret found in .env (STRIPE_SECRET_KEY)



Otherwise:



No secrets found.



You can also deploy the web version (I used Render):



docker build -t secrets-scanner .

docker run -p 8000:8000 --env-file .env secrets-scanner



Then visit:



https://yourdomain.com/ui



to scan any repo (public or private, via OAuth).



Prevent Leaks with Pre-Commit



To integrate with Git hooks:



macOS/Linux



echo '#!/usr/bin/env bash

set -e

python -m app.cli --staged' > .git/hooks/pre-commit

chmod +x .git/hooks/pre-commit



Windows (PowerShell)



echo 'python -m app.cli --staged

if ($LASTEXITCODE -ne 0) { exit 1 }' > .git/hooks/pre-commit.ps1



Now, every time you run git commit, your secrets get scanned automatically.



Why Local-First Matters



There’s a big trust gap in third-party scanning tools.

By keeping everything local and open source, you stay in control of your code.



No API calls, no logging, no vendor lock-in.

You can even host the full service yourself if you want to integrate with a team Slack or private CI setup.



Tech Stack



FastAPI for backend



Python CLI for pre-commit and local scans



httpx for async GitHub API calls



Slack webhooks for alerts



Dockerized for easy self-hosting



Try It Yourself



GitHub: https://github.com/AMOSFinds/secrets-scanner



Live demo: https://secrets-scanner-jlw2.onrender.com/ui or if you want to find out more, visit the homepage: https://secrets-scanner-jlw2.onrender.com



If you’re into DevSecOps or pre-commit automation, I’d love feedback — especially from anyone who’s used GitGuardian or similar SAST tools.

CTI Threat Relationship Graph4 Knoten / 3 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
SOC Incident Playbook: Remote Code Execution (RCE) Defense
title: Detect Exploitation - A lightweight secrets scanner that catches exposed keys before they reach GitHub
id: b72c25b2-e383-4d24-a84d-84a2ac4b77ec
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
  - attack.t1059
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "A lightweight secrets scanner " ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich A lightweight secrets scanner that catch.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten A lightweight secrets scanner that catches exposed keys before they reach GitHub

Thematisch verwandte Begriffe: lightweight, secrets, scanner, that · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-97360 | HFS2 version 2.4.0 and earlier contains an unauthenticated arbitrary fil…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick