config-hardener

config-hardener is a skill for Claude Code, Codex from UseAI-pro/openclaw-skills-security. It costs 32 tokens per session (1,150 once invoked), scanned A, original, MIT.

A security auditor for OpenClaw configuration files, gateway settings, sandbox rules, and permission policies.

In plain words
What is it for?
Use it to review or harden an OpenClaw setup, including authentication, HTTPS, rate limits, allowed origins, mDNS, AGENTS.md permissions, and forbidden paths.
Why use it?
It identifies risky defaults and overly broad access that could expose files, credentials, network services, or system controls.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions AGENTS.md; built for openclaw.

Good fit Use it to review or harden an OpenClaw setup, including authentication, HTTPS, rate limits, allowed origins, mDNS, AGENTS.md permissions, and forbidden paths.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/useai-pro/openclaw-skills-security/config-hardener
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add UseAI-pro/openclaw-skills-security --skill config-hardener
Clone the repo
git clone --depth 1 https://github.com/UseAI-pro/openclaw-skills-security

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for config-hardener

README.md
[![agentmods](https://agentmods.dev/badge/skills/useai-pro/openclaw-skills-security/config-hardener/github.svg)](https://agentmods.dev/skills/useai-pro/openclaw-skills-security/config-hardener)
Your own site
<a href="https://agentmods.dev/skills/useai-pro/openclaw-skills-security/config-hardener"><img src="https://agentmods.dev/badge/skills/useai-pro/openclaw-skills-security/config-hardener/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for config-hardener

Your own site · 80×15
<a href="https://agentmods.dev/skills/useai-pro/openclaw-skills-security/config-hardener"><img src="https://agentmods.dev/badge/skills/useai-pro/openclaw-skills-security/config-hardener.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,150 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk pass 11 Mar 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01150
Opus 5 $0.00016 $0.00575
Sonnet 5 $0.00006 $0.00230
Haiku 4.5 $0.00003 $0.00115

Measured 11d ago against content hash eacff18ba495, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

config-hardener scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Run commands as root/sudo ```

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/config-hardener/SKILL.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Config Hardener

You are an OpenClaw configuration security auditor. Analyze the user's OpenClaw setup and generate a hardened configuration that follows security best practices.

What to Audit

1. AGENTS.md

The AGENTS.md file defines what your agent can and cannot do. Check for:

Missing AGENTS.md (CRITICAL) Without AGENTS.md, OpenClaw runs with default permissions — this is the most common cause of security incidents.

Overly permissive rules:

<!-- BAD: allows everything -->
## Allowed
- All tools enabled
- No confirmation required

<!-- GOOD: principle of least privilege -->
## Allowed
- Read files in the current project directory
- Write files only in src/ and tests/

## Requires Confirmation
- Any shell command
- File writes outside src/

## Forbidden
- Reading ~/.ssh, ~/.aws, ~/.env outside project
- Network requests to unknown domains
- Modifying system files

2. Gateway Settings

Check the gateway configuration for:

  • Authentication enabled (not using default/no auth)
  • mDNS broadcasting disabled (prevents local network discovery)
  • HTTPS enabled for remote access
  • Rate limiting configured
  • Allowed origins restricted (no wildcard *)

3. Skill Permissions Policy

Check how skills are configured:

  • Default deny policy for new skills
  • Each skill has explicit permission overrides
  • No skill has all four permissions (fileRead + fileWrite + network + shell)
  • Audit log enabled for permission usage

4. Sandbox Configuration

  • Sandbox mode enabled for untrusted skills
  • Docker/container runtime available
  • Resource limits set (memory, CPU, pids)
  • Network isolation for sandbox containers

Hardened Configuration Generator

After auditing, generate a secure configuration:

AGENTS.md Template

# Security Policy

## Identity
You are a coding assistant working on [PROJECT_NAME].

## Allowed (no confirmation needed)
- Read files in the current project directory
- Write files in src/, tests/, docs/
- Run read-only git commands (git status, git log, git diff)

## Requires Confirmation
- Any shell command that modifies files
- Git commits and pushes
- Installing dependencies (npm install, pip install)
- File operations outside the project directory

## Forbidden (never do these)
- Read or access ~/.ssh, ~/.aws, ~/.gnupg, ~/.config/gh
- Read .env files outside the current project
- Make network requests to domains not in the project's dependencies
- Execute downloaded scripts
- Modify system configuration files
- Disable sandbox or security settings
- Run commands as root/sudo

Read the full file on GitHub · 161 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 161 lines · 32 tokens per session scan A eacff18ba495

Subscribe to this mod's changes

config-hardener is a skill published in the GitHub repository UseAI-pro/openclaw-skills-security (71 stars, last pushed 6mo ago), licensed MIT. It adds 32 tokens to every session and 1,150 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

security-guide

A security deployment guide for OpenClaw, with instructions in English and Chinese. It covers network exposure, container isolation, credentials, permissions, and audit logging.

jnMetaCode/shellward · 23 tokens

clawmoat

Real-time AI agent security scanner. Detects prompt injection, jailbreak attempts, credential/secret leaks, PII exposure, and dangerous tool calls. Activate when: (1) scanning inbound messages or tool outputs for prompt injection, (2) checking outbound content for credential leaks or PII, (3) auditing agent session…

darfaz/clawmoat · 107 tokens

trent-openclaw-security

Assess your Agent deployment against security risks using Trent.

trnt-ai/trent-openclaw-security-assessment · 16 tokens

prompt-guard

600+ pattern AI agent security defense covering prompt injection, supply chain injection, memory poisoning, action gate bypass, unicode steganography, and cascade amplification. Optional API for early-access and premium patterns. Tiered loading, hash cache, 11 SHIELD categories, 10 languages.

seojoonkim/prompt-guard · 61 tokens

secureclaw

Security hardening toolkit for OpenClaw. Run audits, apply fixes, scan skills, monitor costs and memory integrity.

adversa-ai/secureclaw · 28 tokens

secureclaw

Security skill for OpenClaw agents (7-framework aligned). 15 core rules + automated scripts covering OWASP ASI Top 10, MITRE ATLAS, CoSAI, CSA MAESTRO, and NIST AI 100-2. Use when the agent needs security auditing, credential protection, supply chain scanning, privacy checking, or incident response. By Adversa AI…

adversa-ai/secureclaw · 95 tokens