OpenClaw Security Audit and Hardening for Openclaw

A comprehensive security auditing tool designed to scan OpenClaw configurations for risks and apply guided hardening fixes.

shanggqm
v1.1.0
Mar 31, 2026
1
801
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install guomeiqing-security-audit

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install guomeiqing-security-audit using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is OpenClaw Security Audit and Hardening?

The OpenClaw Security Hardening skill is an expert-level security auditor for your AI agent environment. It systematically analyzes configuration files to identify vulnerabilities in direct messaging policies, gateway exposure, and tool permissions. By evaluating seven critical security vectors, it provides a transparent risk score and actionable remediation paths to protect your system from unauthorized access and prompt injection attacks.

This skill ensures that Openclaw Skills users can maintain high productivity without sacrificing system integrity. It offers three distinct hardening levels—Basic, Standard, and Strict—allowing developers to balance ease of use with robust defense mechanisms tailored to their specific deployment environment, whether local or public-facing.

OpenClaw Security Audit and Hardening Use Cases

  • Periodic security health checks for AI agent configurations.
  • Hardening a new OpenClaw installation before connecting to public channels.
  • Restricting tool permissions to follow the principle of least privilege.
  • Auditing file system permissions for sensitive configuration files containing API keys.
  • Mitigating risks of prompt injection by verifying model security levels.

How OpenClaw Security Audit and Hardening Works

  1. The skill reads the central configuration file usually located at ~/.openclaw/openclaw.json and checks file system metadata.
  2. It performs a 7-point audit covering DM policies, gateway auth, group chat safety, tool profiles, sandbox modes, file permissions, and model robustness.
  3. A detailed security report is generated, assigning a score out of 100 based on PASS, WARN, or FAIL status for each category.
  4. Users are presented with three hardening options (Basic, Standard, Strict) based on their specific risk tolerance.
  5. Upon user confirmation, the skill backs up the configuration and applies precise edits to the JSON file.
  6. The service is restarted, and a final validation scan is performed to compare the security posture before and after hardening.

OpenClaw Security Audit and Hardening Setup

To initialize the security audit within your environment, ensure you have the Openclaw Skills framework installed and use the following commands:

# Trigger a security scan
openclaw security check

# Or use the audit command
openclaw security audit

Ensure the skill has read/write access to your .openclaw directory to perform file permission checks and configuration updates.

OpenClaw Security Audit and Hardening Data Schema & Taxonomy

The skill interacts primarily with the standard OpenClaw configuration schema. It classifies data according to the following logic:

Feature JSON Path Security Goal
DM Policy channels.*.dmPolicy Restrict unauthorized private interactions.
Gateway Bind gateway.bind Prevent external network exposure.
Tool Profiles agents.list[].tools.profile Enforce least privilege for execution tools.
Sandbox agents.defaults.sandbox Isolate execution environments.
Permissions stat -c '%a' Secure API keys and sensitive credentials.

OpenClaw Security Audit and Hardening Advanced Features

  • Multi-level hardening strategies (Basic to Strict) to match different deployment needs.
  • Automated configuration backup system before any hardening execution.
  • JSON integrity validation using Node.js after configuration edits.
  • Contextual risk assessment linking DM policies with tool execution permissions.
  • Support for multi-language triggers including Chinese and English security commands.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*