Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Linux Tipps & HardeningSecurity: Ausführen beliebiger Kommandos in perl-Dancer2 (Fedora)(29.09.2026 um 07:43 Uhr)
•
Linux Tipps & HardeningSecurity: Denial of Service in perl-HTML-FormFu (Fedora)(29.09.2026 um 07:46 Uhr)
••
Linux Tipps & HardeningSecurity: Zwei Probleme in NetworkManager-l2tp (Fedora)(29.09.2026 um 07:46 Uhr)
••
Sicherheitslücken (CVE)CVE-2026-77144 | TYPO3 Events 2 Plugin up to 10.2.11 permission(29.09.2026 um 06:21 Uhr)
•
Sicherheitslücken (CVE)CVE-2026-21753 | HCL Hive 1.0 unmaintained third party components(29.09.2026 um 06:21 Uhr)
••
Sicherheitslücken (CVE)CVE-2026-75038 | ilya-zlobintsev LACT up to 0.10.0 symlink(29.09.2026 um 06:21 Uhr)
••
Linux Tipps & HardeningSecurity: Ausführen beliebiger Kommandos in perl-Dancer2 (Fedora)(29.09.2026 um 07:43 Uhr)
•
Linux Tipps & HardeningSecurity: Denial of Service in perl-HTML-FormFu (Fedora)(29.09.2026 um 07:46 Uhr)
••
Linux Tipps & HardeningSecurity: Zwei Probleme in NetworkManager-l2tp (Fedora)(29.09.2026 um 07:46 Uhr)
••
Sicherheitslücken (CVE)CVE-2026-77144 | TYPO3 Events 2 Plugin up to 10.2.11 permission(29.09.2026 um 06:21 Uhr)
•
Sicherheitslücken (CVE)CVE-2026-21753 | HCL Hive 1.0 unmaintained third party components(29.09.2026 um 06:21 Uhr)
••
Sicherheitslücken (CVE)CVE-2026-75038 | ilya-zlobintsev LACT up to 0.10.0 symlink(29.09.2026 um 06:21 Uhr)
••
Intelligence View
⚡ tsecurity.de Intelligence

I built security guardrails for Claude Code after it almost leaked my credentials.

Claude Code is powerful. It has full access to your file system, your shell, and everything in between. That's also what makes it dangerous. The problem nobody is talking about When you run Claude Code, you're giving an AI…

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

Claude Code is powerful. It has full access to your file system,

your shell, and everything in between.



That's also what makes it dangerous.





The problem nobody is talking about



When you run Claude Code, you're giving an AI agent the ability to:




  • Read your .env files and credentials

  • Run rm -rf on your project directory

  • Execute git push --force without asking


  • curl your files to external servers

  • Install packages from untrusted sources

  • Access your SSH keys, AWS credentials, database configs



None of this requires the AI to be malicious. One hallucination,

one misunderstood instruction, one edge case — and your secrets

are in a log file somewhere.



I discovered this while running AI coding agents on production

intelligence pipelines. Credential leaks aren't theoretical in

that environment. I needed something deterministic, not advisory.



So I built AgentGuard.





How it works — three enforcement layers



The core insight is defense-in-depth. No single layer is enough.



Layer 1 — Behavioral rules (CLAUDE.md)



18 security rules Claude Code reads at session start. Covers

sensitive files, credentials, SQL safety, XSS, PII, and scope

boundaries. Advisory only — the AI might still attempt violations,

which is why we need layers 2 and 3.



Layer 2 — Permission denials (settings.json)



70+ hard deny rules built into Claude Code's permission system.

Blocks file access and command execution at the platform level

before anything else runs. The AI cannot override these.



Layer 3 — Hook scripts (deterministic enforcement)



8 bash scripts that intercept every single tool call. They inspect

the command or file path using regex pattern matching and block

with exit code 2 if it matches a dangerous pattern. Full incident

logging to ~/.claude/guardrail-blocks.log.



Even if the AI ignores the behavioral rules, the deterministic

layers will block prohibited actions.





What gets blocked








































Category Examples
Sensitive files
.env, credentials, SSL certs, SSH keys, cloud configs
Dangerous commands
rm -rf, sudo, chmod 777, DROP TABLE, pipe-to-shell
Git operations All git commands — agent writes them as text, you run them
Data exfiltration
curl/wget uploads, base64 of secrets, netcat channels
Untrusted packages
pip/npm from git URLs, custom registries
Environment escape
ssh, docker run/exec, terraform apply/destroy
PII in code SSNs, credit card numbers, Korean RRNs




Why not just use Claude Code's built-in permissions?



The built-in permission system (Layer 2) is part of what we use —

but it's glob-pattern only, no context awareness.



The hook scripts add what the permission system can't do:

context-aware regex inspection. So we can block base64 .env

but allow base64 image.png. That contextual blocking is what

the native deny rules miss.





Install in 2 minutes





git clone https://github.com/opsight-intelligence/agentguard
cd agentguard
./install.sh





Restart Claude Code. That's it.



Prerequisites: jq must be installed.




  • macOS: brew install jq

  • Ubuntu/Debian: sudo apt install jq





Verify it's working





./verify.sh





Checks all hooks are present, unmodified, executable, and

registered correctly.





88 automated tests



Every hook has both blocked and allowed test cases:




./test.sh






Because security tooling without tests is just hope.






What's next



The community edition (free, Apache 2.0) covers the developer

workstation. The Pro tier adds CI/CD agents that run on every

Pull Request — scanning, auto-fixing, and blocking merges when

critical issues are found.



Built by Opsight Intelligence.



Repo: github.com/opsight-intelligence/agentguard



Questions, issues, feedback welcome — open an issue or

comment below.

2. Cyber Threat Intelligence & Forensik

CTI Threat Relationship Graph3 Knoten / 2 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I built security guardrails for Claude Code after it almost leaked my credentials.

Thematisch verwandte Begriffe: built, security, guardrails, Claude · 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 ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-102367 | mall4j through 4.0 contains an insufficient session expiration vulnerab…
Advisory →
tsecurity.de Icon
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