| Version | Supported |
|---|---|
1.4.x |
✅ |
0.4.x |
✅ |
<= 0.3.x |
❌ |
ShellMind Guard is designed to analyze untrusted or AI-generated codebases safely on developer workstations and CI runners:
- Static indexing and Guard-Set Lattice analysis operate 100% offline by default with zero telemetry.
- Dependency and lockfile auditing (
crates/smg-graph/src/deps.rs) uses an embedded deterministic advisory table plus the local SQLite advisory store offline; outbound OSV advisory sync occurs only when explicitly requested viasmg deps sync(shellmind-guard deps sync) or--online-osv. - Live dynamic audit subcommands (
tls,idor,templates,oob,sqli,dast,proxy,http-audit) are opt-in, enforce loopback/RFC1918 lab scope by default (unless--allow-remoteis explicitly passed), pin validated DNS socket addresses against rebinding, and unconditionally deny cloud metadata / link-local IMDS addresses (169.254.169.254,100.100.100.200,192.0.0.192,fe80::/10, etc.). - The optional AI patch prompt builder (
crates/smg-ai) is disabled by default and never transmits source code over the network unless explicitly invoked with--patchand an operator-configured provider.
When --boot-cmd is supplied to shellmind-guard scan, shellmind-guard replay, or shellmind-guard ui, ShellMind Guard executes the target server inside /usr/bin/bwrap (crates/smg-sandbox/src/bwrap.rs) with strict Linux namespace isolation:
- Namespace Unsharing:
--unshare-all(unsharesuser,ipc,pid,net,uts, andcgroupnamespaces). - Read-Only Root & Project Mounts: System libraries (
/usr,/lib,/lib64,/bin,/etc/alternatives) and the target project directory are mounted--ro-bind(read-only). Host credentials (~/.ssh,~/.aws,~/.config, host.envfiles outside the target directory) are never mounted inside the namespace. - Ephemeral Writable Overlays:
/tmpand runtime cache directories are backed by isolated in-memory--tmpfsmounts that vanish immediately on teardown. - Resource & Process-Group Containment: Child processes run in a dedicated process group (
process_group(0)) with--die-with-parent, optional virtual-memory ceilings via--sandbox-mem-mb(plus optional cgroup v2 limits via--cgroup-v2), and deterministicSIGKILLprocess-group reaping (kill(-pgid, SIGKILL)) onDroporSIGINT. - Fail-Closed Default: If
/usr/bin/bwrapis unavailable or unprivileged user namespaces are disabled by kernel policy, ShellMind Guard refuses to run--boot-cmdon the host unless the operator explicitly passes--unsafe-host-fallback.
If you discover a security issue in ShellMind Guard itself (for example, a sandbox escape in smg-sandbox, a parser memory-safety issue, or a command-injection vector in CLI/MCP argument handling):
- Do not open a public GitHub issue for exploitable vulnerabilities.
- Report the vulnerability privately via GitHub Security Advisories on
qira-dev/ShellMind-Guard. - Include a minimal reproduction (
shellmind-guardcommand, platform/uname -a, and sample input).
We aim to acknowledge reports within 48 hours and publish a verified fix and advisory within 7 days.