Token导航 LogoToken导航TokenDH.com
研究检索执行命令clawhub未标认证来源可访问clear审计提醒

crusty-security严酷的安全

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

20,667

周安装

828

GitHub Stars

公开资料未说明

下载量

6,690
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:crusty-security(严酷的安全)
来源仓库:https://github.com/silentcool/crusty-security
安装命令:
openclaw skills install crusty-security
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install crusty-security

简介

扫描文件与技能中的恶意软件迹象并监控系统行为异常。

  • 适用于安全防护、威胁检测与主机审计任务。crusty-security 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 提供安全配置建议与风险项清单便于后续处置。
  • 安装命令:openclaw skills install crusty-security
  • 不能替代专业安全工具,仅作辅助参考使用。

SKILL.md

name
crusty-security
version
1.3.0
description
>
homepage
https://crustysecurity.com
metadata
{"openclaw":{"requires":{"bins":["bash","python3"]}}}

Crusty Security — Security & Threat Scanning

Overview

Crusty Security protects OpenClaw agents against real threats: malware in downloaded files, compromised skills from ClawHub, data exfiltration, prompt injection payloads, and host-level compromise. It uses ClamAV for file scanning and AI-agent-specific static analysis.

Threat model: The agent itself is the attack surface. Prompt injection can lead to code execution. Malicious skills run with agent privileges. Crusty Security protects both the host AND the agent's integrity.

Quick Reference

TaskCommand
Install ClamAVbash scripts/install_clamav.sh
Scan a filebash scripts/scan_file.sh /path/to/file
Scan a directorybash scripts/scan_file.sh -r /path/to/dir
Audit a skillbash scripts/audit_skill.sh /path/to/skill/
Host security auditbash scripts/host_audit.sh
Monitor agent integritybash scripts/monitor_agent.sh
Generate security reportbash scripts/generate_report.sh

All scripts output JSON. All scripts support --help. All paths are relative to this skill directory.

Setup (First Run)

Run bash setup.sh — that's it. This will:

  1. Install ClamAV if missing
  2. Configure freshclam (macOS Homebrew fix)
  3. Send initial heartbeat to dashboard (if CRUSTY_API_KEY set)
  4. Run initial host audit + workspace scan (populates dashboard immediately)
  5. Check which scheduled scans need to be created

⚠️ IMPORTANT — After setup.sh, you MUST create the cron jobs below using the OpenClaw cron tool. Setup.sh handles the bash-level installation, but cron jobs require agent-level tools. Do this immediately after first install — don't wait for the user to ask.

Required Cron Jobs (create on first install)

Check what's missing: bash scripts/check_crons.sh

Use the OpenClaw cron tool (cron add) to create these. Replace {SKILL_DIR} with the actual path to this skill directory and {WORKSPACE} with the workspace path (usually /data/workspace).

NameSchedulesessionTargetPayload
crusty-daily-scancron 0 3 * * *main / systemEventRun Crusty Security daily scan: bash {SKILL_DIR}/scripts/scan_file.sh --incremental -r {WORKSPACE} && bash {SKILL_DIR}/scripts/monitor_agent.sh
crusty-weekly-fullcron 0 3 * * 0main / systemEventRun Crusty Security weekly scan: bash {SKILL_DIR}/scripts/scan_file.sh -r {WORKSPACE} && bash {SKILL_DIR}/scripts/host_audit.sh && bash {SKILL_DIR}/scripts/generate_report.sh --output /tmp/crusty_logs/weekly_report.md
crusty-monthly-deepcron 0 4 1 * *main / systemEventRun Crusty Security monthly deep audit: bash {SKILL_DIR}/scripts/host_audit.sh --deep

Dashboard Cron Jobs (only if CRUSTY_API_KEY is set)

NameSchedulesessionTargetPayload
crusty-heartbeatevery 300000ms (5 min)main / systemEventCrusty Security heartbeat: Run bash {SKILL_DIR}/scripts/dashboard.sh heartbeat
crusty-clawhub-syncevery 43200000ms (12h)isolated / agentTurnRun ClawHub security sync: python3 {SKILL_DIR}/scripts/clawhub_sync.py --push. Report any critical or high severity findings.

Check cron list first — skip any that already exist (match by name prefix crusty-).

See references/setup.md for detailed configuration.

Dashboard Connection

If your human has configured CRUSTY_API_KEY, the skill sends scan results to the Crusty Security dashboard (crustysecurity.com):

  • Heartbeats are sent every 5 minutes automatically — keeps the dashboard showing agent status
  • Scan results are pushed when you add --push to scan commands
  • ClawHub sync sends skill inventory with python3 scripts/clawhub_sync.py --push
  • If CRUSTY_API_KEY is NOT set, everything works locally — no data is sent anywhere
  • The dashboard never connects TO the agent — data flows one way (agent → dashboard)

Scanning Workflows

File Scanning

Triggers: "scan this file", "is this safe", "check this download", "virus scan"

  1. Run bash scripts/scan_file.sh <path> for ClamAV local scan
  2. Report results:

- ✅ Clean — "No threats detected. Scanned with ClamAV, signatures from [date]." - ⚠️ Suspicious — "Low-confidence detection by ClamAV. Recommend quarantine for review." - 🚨 Malicious — "Threat detected: [name]. Recommend quarantine. Options: quarantine, delete, or ignore."

For directories:

bash scripts/scan_file.sh -r /data/workspace      # Full recursive scan
bash scripts/scan_file.sh -r --incremental /data/workspace  # Skip unchanged files

Quarantine workflow:

bash scripts/scan_file.sh --quarantine /path/to/file   # Move to quarantine
# Quarantine location: $CRUSTY_QUARANTINE (default: /tmp/crusty_quarantine)
# Manifest: /tmp/crusty_quarantine/manifest.json

Important notes:

  • ClamAV prefers clamdscan (daemon) when available, falls back to clamscan
  • Max file size default: 200M (configurable via CRUSTY_MAX_FILE_SIZE)
  • Encrypted archives: flagged as "unscanned" — cannot inspect contents
  • Large archives: ClamAV handles zip, rar, 7z, tar, gz natively

Skill Auditing (Supply Chain Security)

Triggers: "audit this skill", "is this skill safe", "check skill security", "scan skill"

bash scripts/audit_skill.sh /path/to/skill/directory/

What it checks:

  • 🔴 Critical: curl/wget piped to shell, reverse shell patterns, crypto mining indicators
  • 🟠 High: eval/exec with dynamic input, base64 decode patterns, data exfiltration endpoints (webhook.site, ngrok, etc.), credential harvesting, binary executables, agent config modification
  • 🟡 Medium: hidden files, system file access, hardcoded IPs, obfuscated code, persistence mechanisms (cron, systemd)
  • 🔵 Low/Info: large skill size, credential references in docs

Output: Risk score (low/medium/high/critical) + detailed findings with evidence.

When to use:

  • Before installing any skill from ClawHub
  • When reviewing third-party skill contributions
  • Periodically on all installed skills: for d in /data/workspace/skills/*/; do bash scripts/audit_skill.sh "$d"; done

Host Security Audit

Triggers: "audit host", "security audit", "check host security"

bash scripts/host_audit.sh or bash scripts/host_audit.sh --deep

Checks:

  • Suspicious cron jobs (curl piping, base64, reverse shells)
  • Unexpected listening ports
  • Recently modified system files (deep mode)
  • SSH key audit (excessive keys, no-comment keys, root login)
  • Sensitive file permissions (world-writable /etc/passwd, etc.)
  • ClamAV signature freshness
  • openclaw security audit (if available)

Output: Posture score (0-100) + findings. Score deductions: critical (-25), high (-15), medium (-10), low (-5).

Agent Behavior Monitoring

Triggers: "check agent integrity", "monitor agent", "is the agent compromised"

bash scripts/monitor_agent.sh

What it checks:

  • Recent modifications to AGENTS.md, SOUL.md, MEMORY.md, TOOLS.md, USER.md
  • Memory file churn (>10 files modified = suspicious)
  • Unexpected cron jobs (anything not clawguard/freshclam/standard maintenance)
  • Suspicious outbound connections (IRC ports, backdoor ports, Tor)
  • Files created outside workspace (/tmp executables, home directory changes)
  • Suspicious processes (xmrig, nc -l, ncat, socat, chisel)
  • High CPU processes (>80% — potential miners)
  • Sensitive file exposure (.env files, world-readable SSH keys)

Output: Status (healthy / warnings_present / compromised_indicators) + findings.

Security Report Generation

Triggers: "security report", "threat report", "posture report"

bash scripts/generate_report.sh or bash scripts/generate_report.sh --days 30 --output report.md

Compiles all recent scan results into a markdown security posture report with:

  • Scan summary (total, clean, threats, errors)
  • Threat details with file paths and actions taken
  • Security posture score with emoji indicators
  • Recommendations (missing tools, scan schedules)

Automatic Scheduled Scanning

Cron jobs are defined in the Setup (First Run) section above. Create them immediately on first install using the OpenClaw cron tool.

To verify all crons are configured: bash scripts/check_crons.sh

False Positive Handling

ClamAV has moderate false positive rates. Strategy:

  1. Single ClamAV detection, known safe source → Likely false positive. Log and skip.
  2. ClamAV detection, unknown source → Quarantine and investigate.
  3. ClamAV detection + skill audit findings → Real threat. Quarantine immediately.

To handle a false positive:

  • Submit to ClamAV: https://www.clamav.net/reports/fp
  • Document in scan logs for future reference

Quarantine Procedures

Location: $CRUSTY_QUARANTINE (default: /tmp/crusty_quarantine) Manifest: manifest.json in quarantine directory tracks original paths and timestamps.

# View quarantined files
cat /tmp/crusty_quarantine/manifest.json | python3 -m json.tool

# Restore a false positive
mv /tmp/crusty_quarantine/<file> /original/path/

# Permanently delete
rm -rf /tmp/crusty_quarantine/*

Never use clamscan --remove. Always quarantine first, verify, then delete.

Offline Mode

Crusty Security works fully offline with reduced capability:

  • ✅ ClamAV scanning (local signatures)
  • ✅ Skill auditing (static analysis, no network needed)
  • ✅ Host auditing (local checks)
  • ✅ Agent monitoring (local checks)
  • ⚠️ ClamAV signatures may be stale (check freshness in host audit)

Resource-Constrained Environments (Raspberry Pi)

For hosts with <2GB RAM:

  • install_clamav.sh auto-detects low RAM and skips daemon mode
  • Use clamscan (on-demand) instead of clamd (daemon)
  • Use incremental scanning (--incremental) to reduce scan time
  • Skill auditing and agent monitoring have minimal resource requirements

For hosts with <1GB RAM:

  • Consider skipping ClamAV entirely
  • Use skill auditing + agent monitoring only
  • These tools are shell/Python with negligible memory usage

Environment Variables

VariableDefaultDescription
CRUSTY_API_KEY(none)Dashboard API key (cg_live_...)
CRUSTY_DASHBOARD_URLhttps://crustysecurity.comDashboard URL
CRUSTY_QUARANTINE/tmp/crusty_quarantineQuarantine directory
CRUSTY_LOG_DIR/tmp/crusty_logsScan log directory
CRUSTY_MAX_FILE_SIZE200MMax file size to scan
CRUSTY_WORKSPACEauto-detectedAgent workspace path
Backwards compat: CLAWGUARD_* env vars are still supported but deprecated. Use CRUSTY_* going forward.

Incident Response

When a real threat is confirmed, see references/remediation.md for the full checklist. Quick summary:

  1. Quarantine the file immediately
  2. Assess scope — was it executed? Did it modify other files?
  3. Check persistence — cron jobs, SSH keys, shell profiles, systemd services
  4. Check exfiltration — outbound connections, DNS queries, API key usage
  5. Rotate credentials if any were potentially exposed
  6. Full scanbash scripts/scan_file.sh -r /
  7. Document the incident

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

98.32%
按下载量换算6,578

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install crusty-security 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills