r/blueteamsec • u/digicat • 13h ago
r/blueteamsec • u/CyberLynxHack • 1h ago
secure by design/default (doing it right) How do you safely sandbox LLM-driven security tools? Here is the 5-layer argv + DNS pinning architecture I built for my solo project
Hey everyone,
For the past few months, I’ve been solo-developing a desktop security auditing orchestrator in Python/PyQt6. One of the hardest engineering problems wasn't getting the LLM to suggest recon steps—it was making sure a hallucinating model can never execute arbitrary shell commands, drift out of scope, or leak API keys.
Instead of passing strings to \`subprocess\` with \`shell=True\` or trusting the model's own risk labels, I ended up building a deterministic enforcement gateway with five strict rules:
- \*\*Zero Raw Shell Access (\`argv\`-only execution):\*\* Every proposed command is tokenized at the lexer level. Pipes (\`|\`), redirects (\`>\`, \`<\`), chaining (\`&&\`, \`;\`), substitutions, and wrappers like \`bash -c\` or \`sudo\` are rejected before execution. Binaries are resolved and pinned against a hardcoded trusted system \`PATH\`.
- \*\*Independent Risk Classification:\*\* A standalone parser inspects the actual \`argv\` flags and categorizes actions into \`SAFE\`, \`INTRUSIVE\`, \`EXPLOITATION\`, or \`DESTRUCTIVE\` (always blocked). Even if the LLM labels an aggressive scan as "safe," it cannot downgrade the verdict.
- \*\*Fail-Closed Scope & DNS Pinning:\*\* Targets (IPv4/IPv6, CIDR, URLs, wildcards) are normalized and checked against an explicit allowlist. Domains are resolved right before execution to block internal/private SSRF ranges, and resolved IPs are pinned directly into \`argv\` for scanners to prevent DNS rebinding (TOCTOU).
- \*\*Environment & Secret Isolation:\*\* Child processes inherit only a minimal allowlist of environment variables (stripping API keys), local file reads/writes are locked to an isolated artifacts directory, and tokens/credentials are automatically redacted from terminal logs, reports, and the \`stdout/stderr\` feedback loop sent back to the model.
- \*\*Artifact Verification & Signed Snapshots:\*\* Exit code \`0\` isn't trusted on its own—the engine verifies output file existence, size, and freshness timestamps before parsing findings into HMAC-SHA256 signed session files.
For those building autonomous agents or security automation: what edge cases or bypass vectors would you test against a gateway like this? Always looking to harden the architecture further.
r/blueteamsec • u/This_Country_6693 • 8h ago
alert! alert! (might happen) Ringotel compromise?
Another day, another compromise https://ringotelshell.statuspage.io/
r/blueteamsec • u/digicat • 18h ago
tradecraft (how we defend) nano: Lightweight open-core SIEM in Rust, Clickhouse for logs, Postgres for state.
github.comr/blueteamsec • u/jnazario • 9h ago
malware analysis (like butterfly collections) Exposing the Gmail “Zero-Day” Behind Remus Stealer’s Email Interception Feature
gendigital.comr/blueteamsec • u/jnazario • 11h ago
intelligence (threat actor activity) From Phishing Email to Azalea Agent: Uncovering a Multi-Stage Attack on Ukrainian Government Bodies
seqrite.comr/blueteamsec • u/digicat • 20h ago
tradecraft (how we defend) OpenAI and Cisco introduce Shirudo
openai.comr/blueteamsec • u/jnazario • 12h ago
intelligence (threat actor activity) Threat Researcher’s Notebook: SSO Vishing Campaign Associated with Emerging “Inception” Extortion Group
reversinglabs.comr/blueteamsec • u/jnazario • 12h ago
intelligence (threat actor activity) Former ShinyHunters-affiliated cluster O-UNC-053 moves to new INCEPTION leak site
okta.comr/blueteamsec • u/jnazario • 11h ago
tradecraft (how we defend) The Call Comes First: Doppel Social Engineering Intelligence Feed
doppel.comr/blueteamsec • u/jnazario • 11h ago
intelligence (threat actor activity) OXLoader abuses DLL hijacking to distribute different malware families
malwarebytes.comr/blueteamsec • u/jnazario • 11h ago
intelligence (threat actor activity) Dark Side of the PhaaS: The Backend Services Powering Stolen Device Unlocks
infoblox.comr/blueteamsec • u/GonzoZH • 13h ago
research|capability (we need to defend against) GraphPreConsentExplorer Update
Hi blueteamers,
I’ve released an update to GraphPreConsentExplorer, sharing it here in case it’s useful for your Entra ID research / assessments.
The update includes:
- Refreshed pre-consented permissions and updated redirect URLs to get them working again (MS changed quite a bit). Currently it contains 359 (ab)-usable first-party clients with pre-consented permissions on the Graph API.
- Ready-to-use roadtx commands that can be copied directly from the tool.
- Improved UI performance, search, and export functionality.
Feel free to share feedback or suggestions, ignore or downvote it.
r/blueteamsec • u/digicat • 13h ago
highlevel summary|strategy (maybe technical) Familiar weaknesses, exploited faster: defending against agentic cyber attacks
ncsc.gov.ukr/blueteamsec • u/digicat • 1d ago
intelligence (threat actor activity) NSA Warns About Potential Malware Hijacking CAC-Enabled Computers > U.S. Department of War > Defense Department News
war.govr/blueteamsec • u/digicat • 1d ago
low level tools|techniques|knowledge (work aids) ida-ttd: IDA Pro plugin that turns Microsoft TTD and Sogen time-travel recordings into an IDA debugger session
github.comr/blueteamsec • u/Pretty_Curve_303 • 1d ago
vulnerability (attack surface) Three Characters, No Conditions: An M365 Session-Theft Intrusion That Moved at Machine Speed. Was AI Behind It?
reco.air/blueteamsec • u/digicat • 1d ago
tradecraft (how we defend) What's next: Windows endpoint security platform and driver quality
techcommunity.microsoft.comr/blueteamsec • u/digicat • 1d ago
intelligence (threat actor activity) BADBOX 3.0 Hides the Largest Ad Fraud Operation Ever Disclosed Inside Infected TV Boxes
humansecurity.comr/blueteamsec • u/digicat • 2d ago
discovery (how we find bad stuff) agentic-attack-detections: Detection rules and IOCs for AI agent attack frameworks: ARTEX, Cairn, PentAGI, HexStrike, CyberStrikeAI, Strix, Hermes Agent, Agent Zero. KQL hunts for Microsoft Sentinel and Defender XDR, Sigma, Suricata, Zeek, YARA, Splunk, Elastic, STIX 2.1.
github.comr/blueteamsec • u/digicat • 1d ago
malware analysis (like butterfly collections) MMD-073-2026 - Linux/EasyShell, a new Rust RAT implant and beacon aims Linux and MacOS
blog.malwaremustdie.orgr/blueteamsec • u/digicat • 1d ago
highlevel summary|strategy (maybe technical) Държавата прекъсна най-продължителната известна кибершпионска операция срещу българската администрация - The state interrupted the longest known cyberespionage operation against the Bulgarian administration
midt.gov.bgr/blueteamsec • u/digicat • 2d ago