security-shield

Blocks dangerous operations and redacts API keys from AI tool outputs.

55|12|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/Yapie0/safe-openclaw --skill security-shield-yapie0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-shield
Source: https://github.com/Yapie0/safe-openclaw/tree/main/extensions/security-shield/skills/security-shield
Command: npx skills add https://github.com/Yapie0/safe-openclaw --skill security-shield-yapie0

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Security Shield monitors all tool calls for dangerous commands and secret leaks, preventing harmful actions and protecting sensitive data.

Core Features & Use Cases

  • Block dangerous operations (rm -rf, reverse shells, crypto mining) from tool execution.
  • Redact API keys and tokens from outputs before they reach the LLM or user.
  • Maintain an audit log at ~/.openclaw/security-audit.jsonl for compliance and review.
  • Configure and tune enforcement and leakage-detection settings for different environments.

Quick Start

Enable the Security Shield plugin and start enforcing safety rules across tool calls in your workspace.

Frequently Asked Questions about security-shield

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I block dangerous commands from AI tool execution?

To block dangerous commands during AI tool execution, apply a safety layer that monitors inputs and enforces a deny or warn policy on operations like rm -rf and reverse shells. This prevents harmful actions in real-time.

How does secret redaction work for API keys in tool output?

Secret redaction for API keys works by monitoring outputs from tool invocations and stripping sensitive tokens before they reach the LLM or user. This ensures API keys and tokens are filtered across commands, scripts, and network requests.

How do I audit and log blocked commands and secret leaks?

To audit blocked commands and secret leaks, log security events to a JSONL file at ~/.openclaw/security-audit.jsonl. This maintains a consistent compliance record across all interactive sessions and automated workflows.

Can I configure policy enforcement and leakage detection for different environments?

Yes, you can configure and tune enforcement and leakage-detection settings for different environments. The safety layer allows you to adjust deny and warn rules applied across commands, scripts, and network requests per workspace.

Does command blocking work across automated workflows and interactive sessions?

Yes, command blocking works across both interactive sessions and automated workflows. The safety layer monitors all tool invocations consistently, ensuring real-time protection whether commands originate from user input or automated scripts.