# Send Security Hardener to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "oc-security-hardener",
    "name": "Security Hardener",
    "source": "tencent",
    "type": "skill",
    "category": "安全合规",
    "sourceUrl": "https://clawhub.ai/mariusfit/oc-security-hardener",
    "canonicalUrl": "https://clawhub.ai/mariusfit/oc-security-hardener",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/oc-security-hardener",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=oc-security-hardener",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "_meta.json",
      "scripts/hardener.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/oc-security-hardener"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/oc-security-hardener",
    "downloadUrl": "https://openagent3.xyz/downloads/oc-security-hardener",
    "agentUrl": "https://openagent3.xyz/skills/oc-security-hardener/agent",
    "manifestUrl": "https://openagent3.xyz/skills/oc-security-hardener/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/oc-security-hardener/agent.md"
  }
}
```
## Documentation

### Security Hardener

Audit your OpenClaw configuration and apply security best practices automatically.

### Quick Start

# Full security audit (read-only, no changes)
python scripts/hardener.py audit

# Audit a specific config file
python scripts/hardener.py audit --config /path/to/openclaw.json

# Audit with JSON output
python scripts/hardener.py audit -f json

# Auto-fix issues (creates backup first)
python scripts/hardener.py fix

# Fix specific issues only
python scripts/hardener.py fix --only gateway,permissions

# Scan for exposed credentials in config
python scripts/hardener.py scan-secrets

# Generate a security report
python scripts/hardener.py report -o security-report.md

# Check file permissions
python scripts/hardener.py check-perms

### Commands

CommandArgsDescriptionaudit[--config PATH] [-f FORMAT]Full security audit (read-only)fix[--config PATH] [--only CHECKS]Auto-fix issues (with backup)scan-secrets[--config PATH]Scan for exposed API keys/tokensreport[-o FILE]Generate detailed security reportcheck-perms[--config-dir PATH]Check file permissions

### Security Checks

CheckSeverityDescriptiongateway-bindCRITICALGateway not bound to loopbackexposed-keysCRITICALAPI keys in config instead of .envinsecure-authHIGHallowInsecureAuth or dangerouslyDisableDeviceAuth enabledexec-sandboxHIGHexec sandbox mode not set to restrictedfile-permsHIGHConfig files readable by others (not 600)agent-allow-allMEDIUMagentToAgent.allow: ["*"] is overly permissiveno-heartbeatMEDIUMNo heartbeat configured (can't detect outages)no-session-resetMEDIUMNo session reset policy (memory leak risk)no-pruningLOWNo context pruning (cost and performance impact)no-memory-flushLOWMemory flush disabled (context loss on pruning)

### Scoring

The audit produces a security score from 0-100:

90-100: Excellent — production-ready
70-89: Good — minor improvements recommended
50-69: Fair — several issues to address
0-49: Poor — critical issues require immediate attention

### Example Output

╔══════════════════════════════════════════════════╗
║  OPENCLAW SECURITY AUDIT                         ║
╠══════════════════════════════════════════════════╣
║  Score: 75/100 (Good)                            ║
║                                                  ║
║  ✅ Gateway bound to loopback                    ║
║  ✅ No exposed API keys in config                ║
║  ⚠️  exec sandbox mode: unrestricted             ║
║  ⚠️  agentToAgent allow: * (too permissive)      ║
║  ❌ File permissions too open (644 → should be 600) ║
║  ✅ Heartbeat configured                         ║
║  ✅ Session reset policy active                   ║
║  ⚠️  No context pruning configured               ║
╚══════════════════════════════════════════════════╝
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: mariusfit
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-23T16:43:11.935Z
- Expires at: 2026-04-30T16:43:11.935Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/oc-security-hardener)
- [Send to Agent page](https://openagent3.xyz/skills/oc-security-hardener/agent)
- [JSON manifest](https://openagent3.xyz/skills/oc-security-hardener/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/oc-security-hardener/agent.md)
- [Download page](https://openagent3.xyz/downloads/oc-security-hardener)