Complete cybersecurity assessment, threat modeling, and hardening system. Use when conducting security audits, threat modeling, penetration testing, incident...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install afrexai-cybersecurity-engine或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install afrexai-cybersecurity-engine⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/afrexai-cybersecurity-engine/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: afrexai-cybersecurity-engine description: Complete cybersecurity assessment, threat modeling, and hardening system. Use when conducting security audits, threat modeling, penetration testing, incident response, or building security programs from scratch. Works with any stack — zero external dependencies. metadata: {"openclaw":{"emoji":"🛡️","os":["linux","darwin","win32"]}} ---
Complete methodology for security assessment, threat modeling, vulnerability management, incident response, and security program design. No tools required — pure agent knowledge that works with any codebase, infrastructure, or organization.
Run through these three tiers:
Tier 1 — Critical (fix today):
Tier 2 — High (fix this week):
Tier 3 — Medium (fix this sprint):
Score: Count failures. 0-2 = solid. 3-5 = needs work. 6+ = stop shipping features, fix security.
assessment:
name: "[Project/Org Name] Security Assessment"
date: "YYYY-MM-DD"
assessor: "[Agent/Person]"
scope:
applications:
- name: "[App Name]"
type: "web|api|mobile|desktop|iot"
tech_stack: "[languages, frameworks, DBs]"
hosting: "cloud|on-prem|hybrid"
cloud_provider: "aws|gcp|azure|other"
internet_facing: true|false
handles_pii: true|false
handles_payments: true|false
handles_phi: true|false # health data
infrastructure:
- servers: "[count, OS types]"
containers: true|false
orchestration: "k8s|ecs|nomad|none"
cdn: "[provider or none]"
dns: "[provider]"
third_parties:
- name: "[service]"
data_shared: "[what data]"
criticality: "high|medium|low"
compliance_requirements:
- "SOC 2|ISO 27001|GDPR|HIPAA|PCI DSS|SOX|none"
previous_incidents:
- date: "YYYY-MM-DD"
type: "[breach|vuln|misconfiguration]"
severity: "critical|high|medium|low"
resolution: "[what was done]"
risk_tolerance: "conservative|moderate|aggressive"
For each application, draw the data flow:
[User] → [CDN/WAF] → [Load Balancer] → [Web Server] → [App Server] → [Database]
↘ [Cache]
↘ [Message Queue] → [Worker]
↘ [Third-party API]
↘ [Object Storage]
Identify trust boundaries — where privilege level changes:
For EACH component crossing a trust boundary:
| Threat | Question | Example Attack | |--------|----------|----------------| | Spoofing | Can an attacker pretend to be someone else? | Stolen JWT, session hijacking, credential stuffing | | Tampering | Can data be modified in transit or at rest? | Man-in-the-middle, SQL injection, parameter manipulation | | Repudiation | Can someone deny they did something? | Missing audit logs, unsigned transactions | | Information Disclosure | Can sensitive data leak? | Error messages, API over-fetching, side channels | | Denial of Service | Can the service be overwhelmed? | DDoS, resource exhaustion, regex DoS | | Elevation of Privilege | Can someone gain unauthorized access? | IDOR, broken access control, privilege escalation |
threats:
- id: "T-001"
component: "[affected component]"
category: "S|T|R|I|D|E"
description: "[specific attack scenario]"
attacker_profile: "external-unauthenticated|external-authenticated|internal|insider"
likelihood: 1-5 # 1=rare, 5=almost certain
impact: 1-5 # 1=negligible, 5=catastrophic
risk_score: 0 # likelihood × impact
existing_controls: "[what's already in place]"
residual_risk: "accept|mitigate|transfer|avoid"
mitigation: "[specific fix]"
priority: "P0|P1|P2|P3"
owner: "[person/team]"
status: "open|in-progress|mitigated|accepted"
Test checklist:
* with credentials)?Fix patterns:
# Authorization check pattern (every endpoint)
1. Authenticate → verify identity
2. Authorize → verify permission for THIS resource
3. Validate → verify input is within allowed bounds
4. Execute → perform the action
5. Audit → log who did what
# IDOR prevention
- NEVER use sequential IDs in URLs — use UUIDs
- ALWAYS verify resource ownership server-side
- Use middleware that auto-checks resource.owner === request.user
Decision tree:
Need to store passwords?
→ bcrypt (cost 12+) or Argon2id
→ NEVER: MD5, SHA1, SHA256 without salt
Need to encrypt data at rest?
→ AES-256-GCM (authenticated encryption)
→ NEVER: ECB mode, DES, RC4
Need to encrypt in transit?
→ TLS 1.2+ (prefer 1.3)
→ HSTS with includeSubDomains
→ Certificate pinning for mobile apps
Need to generate random values?
→ crypto.randomBytes() / secrets.token_bytes()
→ NEVER: Math.random(), random.random()
Need to sign/verify?
→ HMAC-SHA256 for symmetric
→ Ed25519 or RSA-PSS (2048+ bits) for asymmetric
→ NEVER: RSA PKCS#1 v1.5 for new systems
SQL Injection prevention:
# ALWAYS use parameterized queries
✅ db.query("SELECT * FROM users WHERE id = $1", [userId])
❌ db.query("SELECT * FROM users WHERE id = " + userId)
# Test payloads (for YOUR code, during testing):
' OR '1'='1
'; DROP TABLE users;--
' UNION SELECT password FROM users--
1; WAITFOR DELAY '0:0:5'--
...
安装 Cybersecurity Engine 后,可以对 AI 说这些话来触发它
Help me get started with Cybersecurity Engine
Explains what Cybersecurity Engine does, walks through the setup, and runs a quick demo based on your current project
Use Cybersecurity Engine to complete cybersecurity assessment, threat modeling, and hardening s...
Invokes Cybersecurity Engine with the right parameters and returns the result directly in the conversation
What can I do with Cybersecurity Engine in my developer & devops workflow?
Lists the top use cases for Cybersecurity Engine, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/afrexai-cybersecurity-engine/ 目录(个人级,所有项目可用),或 .claude/skills/afrexai-cybersecurity-engine/(项目级)。重启 AI 客户端后,用 /afrexai-cybersecurity-engine 主动调用,或让 AI 根据上下文自动发现并使用。
Cybersecurity Engine 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Cybersecurity Engine 可免费安装使用。请查阅仓库了解许可证信息。
Complete cybersecurity assessment, threat modeling, and hardening system. Use when conducting security audits, threat modeling, penetration testing, incident...
Cybersecurity Engine 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Cybersecurity Engine
Identifies repetitive steps in your workflow and sets up Cybersecurity Engine to handle them automatically