Xpersona
L

Linux Security Guardian

CLAWHUB · Unverified

Autonomous multi-client Linux server security management via SSH MCP. Runs full audit at 1 AM IST nightly via cron. Iterates over all clients and their serve... Skill: Linux Security Guardian Owner: cyber-bye Summary: Autonomous multi-client Linux server security management via SSH MCP. Runs full audit at 1 AM IST nightly via cron. Iterates over all clients and their serve... Tags: latest:1.6.0 Version history: v1.6.0 | 2026-07-14T10:06:54.523Z | user v1.6.0 — 8 new audit modules (19-26), 5 enhanced modules, backup-restore hook - New: 19-cis-scoring (CIS benchmark alignment

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s176ths3s2f0frn4xsrfq480h584nvaj:linux-security-guardian
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-cyber-bye-linux-security-guardian/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

155,638 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: linux-security-guardian
description: Autonomous multi-client Linux server security management via SSH MCP. Runs full audit at 1 AM IST nightly via cron. Iterates over all clients and their server fleets. Covers system hardening, CVE scanning (CISA KEV + OSV.dev + NVD API), user auditing, SSH config (incl. weak ciphers/MACs/Kex), firewall rules, running services, file permissions, log analysis, SSL certs, kernel parameters (incl. BPF restrictions), Docker daemon security defaults (userns-remap, no-new-privileges, seccomp), fail2ban auto-install, unattended-upgrades auto-enable, CIS benchmark scoring, systemd sandbox analysis, AppArmor/SELinux audit, and swap encryption check. Non-breaking actions auto-applied. Critical patches and network/firewall changes require owner confirmation. Report sent per-server and per-client via email plugin/skill (not bundled). All owner-specific config lives in core-extra/config/ — no hardcoded names, domains, or emails.
version: 1.6.0
metadata: {"openclaw": {"emoji": "🛡️", "requires": {"bins": ["bash","python3","ss","iptables","systemctl","grep","awk","sed","find","curl"], "mcp": ["ssh_conn","ssh_exec"]}}}
---

# Linux Security Guardian

## ⚡ SSH MCP — REQUIRED DEPENDENCY

> **SSH MCP is a hard dependency. The agent MUST have SSH MCP tools available to operate.**
> No local/legacy fallback. All operations go through SSH MCP.

### Prerequisite

```yaml
# SSH MCP server must be running and accessible
dependency: ssh_mcp
status: required    # if unavailable → ABORT, alert owner
```

### Server Profile Config

Each target server needs a saved connection in SSH MCP database. Configure in `SERVER_PROFILE.md`:

```yaml
ssh_mcp:
  connection_id: "<id-name-or-alias-from-ssh-conn-list>"   # Saved connection ID, Name, or Alias
  # OR inline config:
  # host: "<server-ip>"
  # port: 22
  # username: "<user>"
  # key_path: "</path/to/key>"
```

### Audit Modules

All 26 modules execute commands via SSH MCP. Each module file lists commands that get wrapped with `ssh_exec(op="run", sessionId, command)`:

```
module command → ssh_exec(op="run", sessionId, command="module command")
              → ssh_exec(op="logs", commandId=cmdId)
              → parse output
```

### CVE Scan

The external CVE scan runs locally (on the guardian host) using curl to CISA KEV, OSV.dev, and NVD API.
Usage requires `--client` and `--server` to write results to per-server paths:

```bash
bash cve/cve-scan.sh --client "client-1" --server "server-01"

# Writes results to:
#   cve/<client>/<server>/scan-results/YYYY-MM-DD.md
#   cve/<client>/<server>/advisories/<CVE-ID>.md
```

Steps:
```bash
# 1. SSH MCP: ssh_exec(op="run", sessionId, command="dpkg-query -W ...") → save locally
# 2. Read from cve/<client>/<server>/scan-results/installed-packages.txt
# 3. curl CISA KEV → filter Linux entries → write advisories
# 4. curl POST OSV.dev batch → match packages → write advisories
# 5. curl NVD API (optional) → cross-check → write advisories
```

---

_meta.json

{
  "ownerId": "kn79djxt41q03wtr3nth5h8y8184mgcm",
  "slug": "linux-security-guardian",
  "version": "1.6.0",
  "publishedAt": 1784023614523
}

AGENT.md

---
name: linux-security-guardian-agent
description: Behavioral rules for linux-security-guardian. Multi-client, SSH MCP hard dependency, safe-first actions, mandatory confirmations for critical changes, complete audit coverage.
---

# Agent Rules — Linux Security Guardian

## THE PRIME RULE — SAFE FIRST

When in doubt about whether an action is safe: DON'T DO IT.
Log it. Alert owner. Wait for explicit approval.
A delayed fix is always better than an accidental outage.

---

## Rule 1 — SSH MCP Hard Dependency

SSH MCP is a hard dependency. The agent MUST have SSH MCP tools available to operate.

```yaml
required_tools: [ssh_conn, ssh_exec]
version: v2  # 13 tools: ssh_conn, ssh_exec, ssh_bulk_exec, ssh_bulk_audit, ssh_client, etc.
```

If SSH MCP tools are unavailable → ABORT audit, alert owner: "SSH MCP not available".
No local/legacy fallback. All operations go through SSH MCP.

---

## Rule 2 — Multi-Client Audit Flow

SERVER_PROFILE.md contains one or more `## Client:` sections.
The audit MUST iterate over ALL clients and ALL servers:

```
for each client in SERVER_PROFILE.md:
  for each server in client.server_fleet:
    ssh_conn → test/save connection if needed
    ssh_exec(op="open", connectionId) → sessionId
    Run all 26 modules via ssh_exec(op="run", sessionId, ...)
    Compile per-server findings → audit/results/<client>/<server>/<severity>/
    Compile per-server report → reports/<client>/<server>/daily/YYYY-MM-DD.md
    ssh_exec(op="close", sessionId)
  Compile per-client summary
Append master report
Send via default email account
```

---

## Rule 3 — Email Account Selection

- **Default account**: Used for ALL outgoing reports and alerts.
- **Admin account**: Personal account. NEVER use for automated reports.
- Rule: Always use default account. Never specify `--account admin`.
- Check available accounts: `himalaya account list` (identify default vs admin).
- If no email plugin available → log to AUDIT_LOG.md, report is on disk. Non-fatal.

---

## Rule 4 — Read SERVER_PROFILE.md Before Every Audit

Load SERVER_PROFILE.md at audit start.
Parse each `## Client:` section. Extract server fleet table.
Expected ports, services, users, SUID list — all per-server from this file.
Deviation from profile = finding.
Profile not filled = abort audit, alert owner.

---

## Rule 5 — Auto-Actions Whitelist Only

Agent can ONLY auto-execute actions listed in SERVER_PROFILE.md under `Auto-Actions Allowed`.
Anything not explicitly whitelisted → queue for confirmation.
No exceptions. Owner preference > agent judgment.

Auto-action execution:
1. Run pre-action safety check (hooks/pre-action.md)
2. Execute action via SSH MCP
3. Verify result (hooks/post-action.md)
4. Log to actions/<client>/<server>/auto-done/
5. Include in email report

---

## Rule 6 — Confirmation Queue Protocol

When action requires confirmation:
1. Generate unique ID: `ACT-YYYYMMDD-NNN`
2. Write to actions/<client>/<server>/pending-confirm/<id>-<slug>.md
3. Include in email repor

AUDIT_LOG.md

# Audit Log
*Append-only. One entry per audit run.*
---

audit/modules/01-system.md

# Module 01 — System Info

## Commands
```bash
uname -r                           # kernel version
uname -a                           # full kernel info
lsb_release -a 2>/dev/null        # OS info
cat /etc/os-release                # OS info fallback
uptime -p                          # uptime
last reboot | head -5              # reboot history
df -h                              # disk usage
free -h                            # memory
nproc                              # CPU count
cat /proc/cpuinfo | grep "model name" | head -1
timedatectl                        # NTP sync status
```

## Checks & Findings

### OS EOL Check
- Ubuntu 20.04 LTS → EOL April 2025 → if still running: HIGH finding
- Ubuntu 22.04 LTS → EOL April 2027 → OK
- Ubuntu 24.04 LTS → EOL April 2029 → OK
- Debian 11 → EOL June 2026 → OK
- Debian 10 → EOL June 2024 → HIGH if still running

### Kernel Version Check
- Compare against latest stable for the distro
- More than 2 major versions behind → HIGH
- Security patch available → MEDIUM

### NTP Sync
- timedatectl | grep "NTP service: active" → PASS
- NTP not synced → MEDIUM (time drift breaks certs/logs)

### Disk Usage
- < 80% → PASS
- 80-85% → LOW
- 85-95% → WARNING
- > 95% → CRITICAL (auto-alert)

### Last Reboot
- No reboot in > 90 days with kernel updates pending → MEDIUM
- Server rebooted unexpectedly (not matching known maintenance) → HIGH

## Output Format
```
[PASS/FINDING] 01-system: <check> | <result>
```

Sponsored

Ads related to Linux Security Guardian and adjacent AI workflows.