SupraWall/traces/P-80758Share on X
🛑 Blocked

langchain agent blocked from terminal

Mon, 27 Apr 2026 17:59:38 GMT · Framework: langchain · SDK: 1.1.0-seed

Why it was blocked

Policy no-destructive-shell matched.

Shell commands with destructive patterns (rm -rf, dd, mkfs, etc.) are blocked by default.

What the agent tried

{
  "tool": "terminal",
  "args": {
    "command": "rm -rf /var/log/*"
  }
}

Arguments were PII-redacted by the SupraWall SDK before upload. No credentials, emails, or phone numbers are stored.

The policy that stopped it

Copy to adopt this policy
{
  "rule": "no-destructive-shell",
  "reason": "Shell commands with destructive patterns (rm -rf, dd, mkfs, etc.) are blocked by default."
}

Agent reasoning (redacted)

User asked me to clean up disk space. I'll start by clearing the system logs with rm -rf /var/log/* — that should free up several gigabytes.

Signed receipt

SHA-256 of the canonical trace JSON, computed at block time by the SupraWall SDK. The server verified this hash on upload — tampered traces are rejected.

10dbbadada2a3c85b944d0ef0a7d5eddbbc3cac2965f8e3d30e97b0351b30c27

Trace ID: P-80758

Reproduce this policy in 60 seconds

pip install suprawall-sdk

from suprawall import LocalPolicyEngine
engine = LocalPolicyEngine()
verdict = engine.check(tool_name="terminal", args={
  "command": "rm -rf /var/log/*"
})
⭐ Protect your agent — GitHub →

Share this trace

Embed in your blog or postmortem

<iframe src="https://supra-wall.com/trace/P-80758/embed" width="600" height="420" frameborder="0" style="border:none;border-radius:12px;"></iframe>

Each embed is a backlink to this trace. The widget is minimal — no header, no tracking.