Security Guardian

👤 1999azzar 📦 v1.1.0 ⭐ 4.1 ⬇️ 2.5K 下载
🔒 IT运维与安全 免费

📖 技能介绍


name: security-guardian description: Automated security auditing for OpenClaw projects. Scans for hardcoded secrets (API keys, tokens) and container vulnerabilities (CVEs) using Trivy. Provides structured reports to help maintain a clean and secure codebase. metadata: {"openclaw":{"requires":{"skills":["mema-vault"]}}}


Security Guardian

System for automated security auditing and credential protection.

Core Workflows

1. Secret Scanning

Scan specific project directories for hardcoded credentials. - Tool: scripts/scan_secrets.py - Usage: python3 $WORKSPACE/skills/security-guardian/scripts/scan_secrets.py <path_to_project> - Workflow: 1. Execute scan on a specific project or directory. 2. If findings are reported (exit code 1): - Review the file and line number. - Transition: Move the secret to a secure vault (e.g., using the mema-vault skill). - Redact: Replace the plaintext secret in the source code with an environment variable or a vault lookup call.

2. Container Vulnerability Scan

Analyze Docker images for vulnerabilities prior to deployment. - Tool: scripts/scan_container.sh - Usage: bash $WORKSPACE/skills/security-guardian/scripts/scan_container.sh <image_name> - Logic: Identify HIGH and CRITICAL severities. Recommend base image updates or security patches.

Security Guardrails

  • Scope Limitation: Avoid scanning system-level directories. Focus only on relevant project workspaces.
  • Credential Isolation: Hardcoded secrets are considered a high-severity finding.
  • Dependencies: Container scanning requires trivy to be installed on the host system.

Integration

  • Vaulting: This skill identifies leaks. Remediation should be performed using a dedicated credential manager like mema-vault.

    小葱技能站7w4.net每天更新,海量AI技能等你发现。

🤖 AI 评测

这个 Skill 质量较好,文档清晰、使用方便,能有效帮助检测代码中的密钥泄露和容器漏洞。优点是安全防护意识强,有防误扫机制,支持多种常见密钥类型检测。不足之处是容器扫描功能较简单,依赖外部工具安装,且缺少自动化测试覆盖。整体适合对安全性有一定要求的项目使用。

📊 多维度评分

适应性4.1
规范性4
有效性4.2
可靠性4.2
可信度4.3

📁 包含文件 (4 个)

📄 SKILL.md 1.8 KB
📄 _meta.json 136 B
📄 scripts/scan_container.sh 390 B
📄 scripts/scan_secrets.py 2.5 KB