Exploit databaseDownload repository ZIP
GH-df4287dd088456f5efecb954017187bd
adibirzu/openclaw-security-monitor
Sources for CVE-2026-25253
7 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files63
adibirzu/openclaw-security-monitorRevision 9ac66fa576db
- ↑..Parent directory
- _common.sh
- check-01-c2-ips.sh
- check-02-amos-stealer.sh
- check-03-reverse-shells.sh
- check-04-exfil-endpoints.sh
- check-05-crypto-wallet.sh
- check-06-curl-pipe.sh
- check-07-file-perms.sh
- check-08-skill-integrity.sh
- check-09-skillmd-inject.sh
- check-10-memory-poison.sh
- check-11-base64-obfusc.sh
- check-12-binary-dl.sh
- check-13-gateway-config.sh
- check-14-websocket-sec.sh
- check-15-malicious-pub.sh
- check-16-env-leakage.sh
- check-17-dm-policy.sh
- check-18-tool-policy.sh
- check-19-sandbox-config.sh
- check-20-mdns-exposure.sh
- check-21-exec-guardrails.sh
- check-22-persistence.sh
- check-23-plugin-audit.sh
- check-24-log-redaction.sh
- check-25-proxy-bypass.sh
- check-26-exec-approvals.sh
- check-27-docker-sec.sh
- check-28-nodejs-cve.sh
- check-29-plaintext-creds.sh
- check-30-vscode-trojans.sh
- check-31-internet-expose.sh
- check-32-privilege-escalation.sh
- check-33-clawjacked.sh
- check-34-ssrf.sh
- check-35-safebins.sh
- check-36-workspace-plugin-discovery.sh
- check-37-symlink-traversal.sh
- check-38-sandbox-escape.sh
- check-39-shell-env-rce.sh
- check-40-vnc-observer-auth.sh
- check-41-device-identity-spoofing.sh
- check-42-browser-traversal.sh
- check-43-shell-expansion.sh
- check-44-approval-inject.sh
- check-45-sandbox-bridge.sh
- check-46-webhook-dos.sh
- check-47-tar-traversal.sh
- check-48-fetch-dos.sh
- check-49-agent-act.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
scripts/remediate/check-18-tool-policy.sh
Shell · 2,280 bytes#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
source "$SCRIPT_DIR/_common.sh"
log "Check 18: Set tools.deny, restrict elevated access"
# Check if openclaw CLI is available
if ! command -v openclaw &>/dev/null; then
log "openclaw CLI not found - skipping check"
finish
fi
# Check tools.deny configuration
tools_deny=$(openclaw config get "tools.deny" 2>/dev/null)
if [[ -z "$tools_deny" ]] || [[ "$tools_deny" == "null" ]] || [[ "$tools_deny" == "[]" ]]; then
log "WARNING: tools.deny is empty or not set"
if confirm "Set tools.deny to [\"exec\",\"process\"]?"; then
if $DRY_RUN; then
log "[DRY-RUN] Would set tools.deny to [\"exec\",\"process\"]"
FIXED=$((FIXED + 1))
else
if openclaw config set "tools.deny" '["exec","process"]' --json; then
log "SUCCESS: Set tools.deny to [\"exec\",\"process\"]"
FIXED=$((FIXED + 1))
else
log "ERROR: Failed to set tools.deny"
FAILED=$((FAILED + 1))
fi
fi
fi
fi
# Check tools.elevated configuration
elevated_enabled=$(openclaw config get "tools.elevated.enabled" 2>/dev/null)
elevated_allow_from=$(openclaw config get "tools.elevated.allowFrom" 2>/dev/null)
elevated_require_approval=$(openclaw config get "tools.elevated.requireApproval" 2>/dev/null)
if [[ "$elevated_enabled" == "true" ]]; then
if [[ "$elevated_allow_from" == *"*"* ]]; then
log "WARNING: tools.elevated.enabled=true with wildcard allowFrom"
if confirm "Set tools.elevated.requireApproval to true?"; then
if $DRY_RUN; then
log "[DRY-RUN] Would set tools.elevated.requireApproval to true"
FIXED=$((FIXED + 1))
else
if openclaw config set "tools.elevated.requireApproval" "true"; then
log "SUCCESS: Set tools.elevated.requireApproval to true"
FIXED=$((FIXED + 1))
else
log "ERROR: Failed to set requireApproval"
FAILED=$((FAILED + 1))
fi
fi
fi
guidance "Consider restricting tools.elevated.allowFrom to specific user IDs instead of wildcards"
fi
fi
finish