{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/oc-security-hardener",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=oc-security-hardener",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "_meta.json",
      "scripts/hardener.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/oc-security-hardener",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Security Hardener",
        "body": "Audit your OpenClaw configuration and apply security best practices automatically."
      },
      {
        "title": "Quick Start",
        "body": "# Full security audit (read-only, no changes)\npython scripts/hardener.py audit\n\n# Audit a specific config file\npython scripts/hardener.py audit --config /path/to/openclaw.json\n\n# Audit with JSON output\npython scripts/hardener.py audit -f json\n\n# Auto-fix issues (creates backup first)\npython scripts/hardener.py fix\n\n# Fix specific issues only\npython scripts/hardener.py fix --only gateway,permissions\n\n# Scan for exposed credentials in config\npython scripts/hardener.py scan-secrets\n\n# Generate a security report\npython scripts/hardener.py report -o security-report.md\n\n# Check file permissions\npython scripts/hardener.py check-perms"
      },
      {
        "title": "Commands",
        "body": "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"
      },
      {
        "title": "Security Checks",
        "body": "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)"
      },
      {
        "title": "Scoring",
        "body": "The audit produces a security score from 0-100:\n\n90-100: Excellent — production-ready\n70-89: Good — minor improvements recommended\n50-69: Fair — several issues to address\n0-49: Poor — critical issues require immediate attention"
      },
      {
        "title": "Example Output",
        "body": "╔══════════════════════════════════════════════════╗\n║  OPENCLAW SECURITY AUDIT                         ║\n╠══════════════════════════════════════════════════╣\n║  Score: 75/100 (Good)                            ║\n║                                                  ║\n║  ✅ Gateway bound to loopback                    ║\n║  ✅ No exposed API keys in config                ║\n║  ⚠️  exec sandbox mode: unrestricted             ║\n║  ⚠️  agentToAgent allow: * (too permissive)      ║\n║  ❌ File permissions too open (644 → should be 600) ║\n║  ✅ Heartbeat configured                         ║\n║  ✅ Session reset policy active                   ║\n║  ⚠️  No context pruning configured               ║\n╚══════════════════════════════════════════════════╝"
      }
    ],
    "body": "Security Hardener\n\nAudit your OpenClaw configuration and apply security best practices automatically.\n\nQuick Start\n# Full security audit (read-only, no changes)\npython scripts/hardener.py audit\n\n# Audit a specific config file\npython scripts/hardener.py audit --config /path/to/openclaw.json\n\n# Audit with JSON output\npython scripts/hardener.py audit -f json\n\n# Auto-fix issues (creates backup first)\npython scripts/hardener.py fix\n\n# Fix specific issues only\npython scripts/hardener.py fix --only gateway,permissions\n\n# Scan for exposed credentials in config\npython scripts/hardener.py scan-secrets\n\n# Generate a security report\npython scripts/hardener.py report -o security-report.md\n\n# Check file permissions\npython scripts/hardener.py check-perms\n\nCommands\nCommand\tArgs\tDescription\naudit\t[--config PATH] [-f FORMAT]\tFull security audit (read-only)\nfix\t[--config PATH] [--only CHECKS]\tAuto-fix issues (with backup)\nscan-secrets\t[--config PATH]\tScan for exposed API keys/tokens\nreport\t[-o FILE]\tGenerate detailed security report\ncheck-perms\t[--config-dir PATH]\tCheck file permissions\nSecurity Checks\nCheck\tSeverity\tDescription\ngateway-bind\tCRITICAL\tGateway not bound to loopback\nexposed-keys\tCRITICAL\tAPI keys in config instead of .env\ninsecure-auth\tHIGH\tallowInsecureAuth or dangerouslyDisableDeviceAuth enabled\nexec-sandbox\tHIGH\texec sandbox mode not set to restricted\nfile-perms\tHIGH\tConfig files readable by others (not 600)\nagent-allow-all\tMEDIUM\tagentToAgent.allow: [\"*\"] is overly permissive\nno-heartbeat\tMEDIUM\tNo heartbeat configured (can't detect outages)\nno-session-reset\tMEDIUM\tNo session reset policy (memory leak risk)\nno-pruning\tLOW\tNo context pruning (cost and performance impact)\nno-memory-flush\tLOW\tMemory flush disabled (context loss on pruning)\nScoring\n\nThe audit produces a security score from 0-100:\n\n90-100: Excellent — production-ready\n70-89: Good — minor improvements recommended\n50-69: Fair — several issues to address\n0-49: Poor — critical issues require immediate attention\nExample Output\n╔══════════════════════════════════════════════════╗\n║  OPENCLAW SECURITY AUDIT                         ║\n╠══════════════════════════════════════════════════╣\n║  Score: 75/100 (Good)                            ║\n║                                                  ║\n║  ✅ Gateway bound to loopback                    ║\n║  ✅ No exposed API keys in config                ║\n║  ⚠️  exec sandbox mode: unrestricted             ║\n║  ⚠️  agentToAgent allow: * (too permissive)      ║\n║  ❌ File permissions too open (644 → should be 600) ║\n║  ✅ Heartbeat configured                         ║\n║  ✅ Session reset policy active                   ║\n║  ⚠️  No context pruning configured               ║\n╚══════════════════════════════════════════════════╝"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/mariusfit/oc-security-hardener",
    "publisherUrl": "https://clawhub.ai/mariusfit/oc-security-hardener",
    "owner": "mariusfit",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}