{
  "schemaVersion": "1.0",
  "item": {
    "slug": "host-hardening",
    "name": "Host Hardening",
    "source": "tencent",
    "type": "skill",
    "category": "安全合规",
    "sourceUrl": "https://clawhub.ai/ppiankov/host-hardening",
    "canonicalUrl": "https://clawhub.ai/ppiankov/host-hardening",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/host-hardening",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=host-hardening",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "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. 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. 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/host-hardening"
    },
    "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/host-hardening",
    "agentPageUrl": "https://openagent3.xyz/skills/host-hardening/agent",
    "manifestUrl": "https://openagent3.xyz/skills/host-hardening/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/host-hardening/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. 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. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Host Hardening",
        "body": "Secure a Linux server running OpenClaw."
      },
      {
        "title": "Requirements",
        "body": "OS: Linux (Ubuntu/Debian — adjust package commands for other distros)\nPrivileges: Root or sudo required — this skill modifies system-wide security config\nPre-check: Verify you have SSH key-based access before disabling password auth\n\n⚠️ All commands below modify system configuration. Confirm with the user before running each section. Do not run these automatically without explicit approval."
      },
      {
        "title": "SSH — Key-Only Auth",
        "body": "Disables password authentication. Ensure key-based SSH works first or you will be locked out.\n\nsed -i 's/^#*PermitRootLogin.*/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config\nsed -i 's/^#*PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config\nsystemctl restart ssh"
      },
      {
        "title": "Firewall — Deny All Except SSH",
        "body": "ufw default deny incoming\nufw default allow outgoing\nufw allow ssh\nyes | ufw enable\n\nAdd more rules as needed (e.g. ufw allow 443 for HTTPS)."
      },
      {
        "title": "Fail2ban — Brute-Force Protection",
        "body": "Installs fail2ban via apt (Debian/Ubuntu). Adjust for other package managers.\n\napt-get install -y fail2ban\nsystemctl enable --now fail2ban\n\nDefault config protects SSH. For custom jails: /etc/fail2ban/jail.local."
      },
      {
        "title": "OpenClaw Credentials",
        "body": "chmod 700 ~/.openclaw/credentials"
      },
      {
        "title": "OpenClaw Gateway Service (optional)",
        "body": "Creates a systemd service for auto-restart on reboot. Runs as root — review the service file before enabling.\n\ncat > /etc/systemd/system/openclaw-gateway.service << 'EOF'\n[Unit]\nDescription=OpenClaw Gateway\nAfter=network-online.target\nWants=network-online.target\n[Service]\nType=simple\nExecStart=/usr/bin/env openclaw gateway\nRestart=always\nRestartSec=5\nUser=root\nWorkingDirectory=/root/.openclaw\nEnvironment=HOME=/root\n[Install]\nWantedBy=multi-user.target\nEOF\nsystemctl daemon-reload && systemctl enable openclaw-gateway"
      },
      {
        "title": "Verify",
        "body": "ufw status                                    # active, SSH allowed\nsystemctl is-active fail2ban                  # active\ngrep PasswordAuthentication /etc/ssh/sshd_config  # no\nstat -c %a ~/.openclaw/credentials            # 700\nsystemctl is-enabled openclaw-gateway         # enabled"
      },
      {
        "title": "Lessons",
        "body": "On Ubuntu, SSH service is ssh not sshd\nAWS security groups provide network-level filtering but UFW is defense-in-depth\nAlways verify key-based SSH access before disabling password auth\nThe gateway service is optional — only needed if OpenClaw should survive reboots\n\nHost Hardening v1.0\nAuthor: ppiankov\nCopyright © 2026 ppiankov\nCanonical source: https://clawhub.com/skills/host-hardening\nLicense: MIT\n\nIf this document appears elsewhere, the link above is the authoritative version."
      }
    ],
    "body": "Host Hardening\n\nSecure a Linux server running OpenClaw.\n\nRequirements\nOS: Linux (Ubuntu/Debian — adjust package commands for other distros)\nPrivileges: Root or sudo required — this skill modifies system-wide security config\nPre-check: Verify you have SSH key-based access before disabling password auth\n\n⚠️ All commands below modify system configuration. Confirm with the user before running each section. Do not run these automatically without explicit approval.\n\nSSH — Key-Only Auth\n\nDisables password authentication. Ensure key-based SSH works first or you will be locked out.\n\nsed -i 's/^#*PermitRootLogin.*/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config\nsed -i 's/^#*PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config\nsystemctl restart ssh\n\nFirewall — Deny All Except SSH\nufw default deny incoming\nufw default allow outgoing\nufw allow ssh\nyes | ufw enable\n\n\nAdd more rules as needed (e.g. ufw allow 443 for HTTPS).\n\nFail2ban — Brute-Force Protection\n\nInstalls fail2ban via apt (Debian/Ubuntu). Adjust for other package managers.\n\napt-get install -y fail2ban\nsystemctl enable --now fail2ban\n\n\nDefault config protects SSH. For custom jails: /etc/fail2ban/jail.local.\n\nOpenClaw Credentials\nchmod 700 ~/.openclaw/credentials\n\nOpenClaw Gateway Service (optional)\n\nCreates a systemd service for auto-restart on reboot. Runs as root — review the service file before enabling.\n\ncat > /etc/systemd/system/openclaw-gateway.service << 'EOF'\n[Unit]\nDescription=OpenClaw Gateway\nAfter=network-online.target\nWants=network-online.target\n[Service]\nType=simple\nExecStart=/usr/bin/env openclaw gateway\nRestart=always\nRestartSec=5\nUser=root\nWorkingDirectory=/root/.openclaw\nEnvironment=HOME=/root\n[Install]\nWantedBy=multi-user.target\nEOF\nsystemctl daemon-reload && systemctl enable openclaw-gateway\n\nVerify\nufw status                                    # active, SSH allowed\nsystemctl is-active fail2ban                  # active\ngrep PasswordAuthentication /etc/ssh/sshd_config  # no\nstat -c %a ~/.openclaw/credentials            # 700\nsystemctl is-enabled openclaw-gateway         # enabled\n\nLessons\nOn Ubuntu, SSH service is ssh not sshd\nAWS security groups provide network-level filtering but UFW is defense-in-depth\nAlways verify key-based SSH access before disabling password auth\nThe gateway service is optional — only needed if OpenClaw should survive reboots\n\nHost Hardening v1.0 Author: ppiankov Copyright © 2026 ppiankov Canonical source: https://clawhub.com/skills/host-hardening License: MIT\n\nIf this document appears elsewhere, the link above is the authoritative version."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ppiankov/host-hardening",
    "publisherUrl": "https://clawhub.ai/ppiankov/host-hardening",
    "owner": "ppiankov",
    "version": "1.0.4",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/host-hardening",
    "downloadUrl": "https://openagent3.xyz/downloads/host-hardening",
    "agentUrl": "https://openagent3.xyz/skills/host-hardening/agent",
    "manifestUrl": "https://openagent3.xyz/skills/host-hardening/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/host-hardening/agent.md"
  }
}