360 Secure SkillHub
360 安全技能中心

security-maintainer

面向 Windows、macOS、Linux 与 WSL 的安全维护技能:只读收集主机与项目依赖清单,关联 OSV、CISA KEV、EPSS、NVD、MSRC 等漏洞源,并检查本地 AI 服务与 MCP 配置;默认 ask 模式要求先出带 SHA-256 指纹的计划并经确认后才执行更新,随后验证修补结果。

alexar69-pixel
alexar69-pixel
热度 33.16
最近更新 2026-10-16 14:26:32
分类:安全依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / 自动化脚本 / 报告撰写 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add alexar69-pixel/security-maintainer
Metadata
name
security-maintainer
description
Universal security maintenance skill for Windows, macOS, and Linux/WSL. Audits host and environment software, correlates with vulnerability feeds (OSV, CISA KEV, VulnCheck KEV, FIRST EPSS, NIST NVD, MSRC), audits AI & Agent security (OWASP LLM Top 10, prompt injections, unauthenticated local LLM services, MCP tool poisoning, API key exposure), and executes cryptographic-hash approved updates with post-remediation verification.
user-invocable
true
metadata
{"version":"1.2.5","license":"Apache-2.0","author":"OpenClaw Community","category":"security-and-maintenance","default_locale":"en","supported_locales":["en","es"],"environments":["windows-host","macos","linux","wsl"],"tags":["security","vulnerability-management","ai-security","llm-defense","owasp-llm","prompt-injection","mcp-security","cve","cisa-kev","vulncheck-kev","epss","nvd","msrc","patch-management","winget","homebrew","apt","wsl"]}
approval-policy
{"default-mode":"ask","require-plan-hash":true,"allow-auto-mode":false}
permissions
{"allowed-tools":["read_file","run_command"],"scope":{"read-only":["system-inventory","vulnerability-feeds","local-project-manifests","network-listening-ports","ai-agent-configs"],"execution":["authorized-package-managers"],"blocked":["silent-privilege-escalation","unauthorized-reboots","system-modification-without-plan-hash"]}}
triggers
["security-maintainer: audit system software and vulnerabilities","security-maintainer: search for pending security updates","security-maintainer: audit ai agent security and local llm services","security-maintainer: generate security remediation plan","security-maintainer: apply approved security plan","security-maintainer: verify status of security patches","security-maintainer: audita el software del sistema y vulnerabilidades","security-maintainer: busca actualizaciones de seguridad pendientes","security-maintainer: audita la seguridad de agentes de IA y servidores locales","security-maintainer: genera un plan de remediación para vulnerabilidades","security-maintainer: aplica el plan de seguridad aprobado","security-maintainer: verifica el estado de las correcciones de seguridad"]

Security Maintainer for OpenClaw

Universal OpenClaw skill engineered to audit software and dependencies across Windows, macOS, Linux distributions, and WSL environments. It correlates installed packages with authoritative vulnerability feeds (OSV.dev, CISA KEV, VulnCheck KEV, FIRST EPSS, NIST NVD, MSRC, and Linux security trackers), inspects unauthenticated local AI services and agent configurations, and executes cryptographically authorized remediations with strict post-installation verification.

[!NOTE] Language & Locale Support: This skill documentation and CLI interface are standardized in English as the universal primary language. Users can invoke actions using canonical English or Spanish triggers with identical deterministic behavior.

Core Security Rules

  • Strict Default ask Mode: System modifications are never applied without first generating a numbered, cryptographically hashed (SHA-256) plan.
  • Bound and Expiring Approvals: Approval is strictly bound to the exact SHA-256 fingerprint of the proposed actions and expires after 30 minutes. If the host state changes, a new plan must be generated.
  • Zero Silent Privilege Escalation: If an update requires elevated Administrator privileges on Windows or root rights in WSL/Linux and these are not pre-authorized, the action is marked as BLOCKED_PERMISSIONS with clear manual guidance.
  • Safe Advisory Handling: Remote CVE, USN, and advisory content is treated strictly as untrusted metadata. No remote script or command extracted from feeds is ever evaluated or executed.
  • Strict Finding Classification:
    • General Update Available (no active CVE).
    • Official Security Patch (resolves known CVEs/GHSA).
    • Configuration Hardening (does not modify binaries).
    • Vulnerability Without Fix (unpatched or EOL software).
    • Unsupported / End-of-Life component.
  • Reboots Disabled by Default: System reboots are never performed without explicit confirmation.
  • No Destructive Operations: The skill never uninstalls packages or deletes project directories.

Operating Modes

  1. audit (Read-Only):

    • Collects host inventory across Windows (WinGet, Registry, Windows Update), macOS (Homebrew, MAS), and Linux/WSL (apt, dpkg, apk, dnf, rpm).
    • Cross-references packages against OSV.dev and KEV feeds.
    • Inspects network-listening AI services (Ollama, LM Studio) and local MCP configs when --ai-defense or --all is set.
    • Generates structured Markdown and JSON reports without modifying the environment.
  2. ask (Default Guided Mode):

    • Executes audit phase and computes a deterministic action plan.
    • Generates a UUIDv4 plan ID and SHA-256 hash. Waits for explicit operator confirmation.
  3. auto (Pre-Authorized Policy):

    • Applies pre-approved actions only if explicitly configured in persistent policy (default_config.yaml).

Primary CLI Commands

# 1. Complete read-only audit
python3 -m security_maintainer.cli audit --all

# 2. Generate remediation plan (ask mode)
python3 -m security_maintainer.cli plan --environment all

# 3. Apply approved plan with verified fingerprint
python3 -m security_maintainer.cli apply --plan-id <ID> --plan-hash <HASH>

# 4. Verify post-remediation effective versions
python3 -m security_maintainer.cli verify --environment all --plan-id <ID>

# 5. Display latest report
python3 -m security_maintainer.cli report

OpenClaw Invocation Workflow

Users invoke the skill using explicit canonical triggers:

  1. security-maintainer: audit system software and vulnerabilities:
    • Executes read-only audit and presents structured coverage and vulnerability findings.
  2. security-maintainer: audit ai agent security and local llm services:
    • Inspects AI configuration files, prompts for injection patterns, and verifies unauthenticated local LLM endpoints.
  3. security-maintainer: generate security remediation plan:
    • Constructs a numbered plan, prints the SHA-256 fingerprint, and waits for user approval.
  4. security-maintainer: apply approved security plan:
    • Requires --plan-id and --plan-hash to verify cryptographic integrity before executing updates.
  5. security-maintainer: verify status of security patches:
    • Inspects effective installed package versions and validates that vulnerabilities are resolved.