微算力 · API 导航与自营网关
API 接入 EN
未登录登录
⚔️

千轮深度审计 · 合规级安全审查

Ralph Ultra Security Audit · v2.0.0
专业技能 安全 S 级 作者 dorukardahan 公开目录收录
1.3k 下载 0 安装 4.5k 收藏 13 浏览

简介

Ralph Ultra 是一款面向关键场景的极致深度安全审计技能,通过 1000 轮迭代覆盖 OWASP、供应链、业务逻辑及合规全维度,适合发布前审查与合规审计。

原始描述

Deep-dive security audit with 1,000 iterations (~4-8 hours). Use when user says 'deep security audit', 'ralph ultra', 'compliance audit prep', 'thorough secu...

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/ralph-ultra-security-audit/
其它 Agent解压到它自己的 skills 目录,目录名用 ralph-ultra-security-audit

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

Ralph Ultra 深度评估报告

Ralph Ultra 是一款专为高风险场景设计的极致深度安全审计技能,采用 1000 轮迭代机制(耗时约 4-8 小时),通过 8 大阶段系统化覆盖现代软件安全的全攻击面。其核心设计理念是"深度优先于广度"——每轮迭代仅执行单一深度检查,而非快速扫描表面问题。

核心用法与执行机制

技能采用严格的 STATE-PHASE-MIND-ACTION-VERIFY-REPORT-SAVE 循环引擎,确保审计的可追溯性与质量。每 50 轮自动保存进度至 .ralph-report.md,支持断点续传。8 个专家人格(Persona)在对应阶段激活,包括网络安全老兵、代码审计渗透测试师、容器安全专家等,形成多维度的攻击视角。

审计范围横跨:侦察与攻击面映射(1-100)、OWASP Top 10 深度挖掘(101-250)、认证与密钥管理(251-400)、基础设施与容器(401-550)、代码质量与业务逻辑(551-700)、供应链安全(701-850)、合规与文档(851-950)、以及最终验证与渗透测试模拟(951-1000)。

显著优点

  1. 极致深度:1000 轮迭代远超常规安全扫描工具的覆盖面,支持对复杂业务逻辑漏洞(如竞态条件、工作流绕过)的深度挖掘
  2. 合规就绪:内置 GDPR、数据保留、审计追踪等合规检查,直接输出审计就绪文档
  3. 红队思维:每轮强制应用攻击者视角,结合 CVSS 评分与漏洞利用证明(PoC)
  4. 弹性执行:支持 --focus 参数限定特定阶段,--resume 断点续传,适应大型代码库

潜在局限与风险

  • 时间成本:4-8 小时的执行时长对敏捷迭代节奏构成挑战,需严格限定使用场景
  • 误报可能:虽然设置了 NEEDS_REVIEW 降级机制,但 1000 轮的深度检查仍可能产生大量需人工复核的发现
  • 依赖代码可访问性:部分检查(如数据库约束验证、密钥历史扫描)需要完整的仓库权限与运行时环境
  • 专家门槛:输出包含 CVSS 评分、漏洞利用场景等专业技术内容,需要具备安全背景的人员解读

适用人群

  • 发布前的关键版本审查(如金融、医疗、政府系统)
  • 合规审计准备(SOC 2、ISO 27001、PCI-DSS 前置检查)
  • 安全事件后的根因调查与系统性修复验证
  • 渗透测试后的二次深度审查,或作为传统渗透测试的补充手段

常规风险提示

建议在隔离环境或代码克隆中执行;密钥扫描阶段可能触发安全监控告警,需提前协调;对于生产环境的直接扫描,应评估业务中断风险。非关键场景建议优先使用轻量级安全扫描技能。

技能正文


name: ralph-ultra description: "Deep-dive security audit with 1,000 iterations (~4-8 hours). Use when user says 'deep security audit', 'ralph ultra', 'compliance audit prep', 'thorough security review', 'before major release', or 'security incident investigation'. Covers OWASP deep dive, supply chain, compliance, business logic, 4 expert personas." metadata: { "openclaw": { "emoji": "⚔️" }, "author": "dorukardahan", "version": "2.0.0", "category": "security", "tags": ["security", "audit", "deep-dive", "compliance", "owasp"] }

Ralph Ultra — 1,000 Iterations (~4-8 hours)

Deep-dive security audit with thorough coverage across all attack vectors.

For severity/triage guidance: {baseDir}/references/severity-guide.md For expert persona descriptions: {baseDir}/references/personas.md

Instructions

Execution Engine

YOU MUST follow this loop for EVERY iteration:

  1. STATE: Read current iteration (start: 1)
  2. PHASE: Determine phase from iteration number
  3. MIND: Activate appropriate expert persona for phase
  4. ACTION: Perform ONE check from current phase
  5. VERIFY: Before FAIL — read actual code, check libraries, check DB constraints, check environment. If inconclusive: NEEDS_REVIEW.
  6. REPORT: Output iteration result
  7. SAVE: Every 50 iterations, update .ralph-report.md
  8. INCREMENT: iteration + 1
  9. CONTINUE: IF iteration <= 1000 GOTO Step 1
  10. FINAL: Generate comprehensive report

Critical rules:

  • ONE check per iteration — deep, not wide
  • ALWAYS show [ULTRA-X/1000]
  • NEVER skip iterations
  • CRITICAL findings: immediately flag
  • Apply Red Team mindset to EVERY check

Per-Iteration Output

╔══════════════════════════════════════════════════════════════════╗
║ [ULTRA-{N}/1000] Phase {P}: {phase_name}                        ║
║ Mind: {active_expert_persona}                                    ║
╠══════════════════════════════════════════════════════════════════╣
║ Check: {specific_check}                                          ║
║ Target: {file:line / endpoint / system}                          ║
╠══════════════════════════════════════════════════════════════════╣
║ Result: {PASS|FAIL|WARN|N/A}                                     ║
║ Confidence: {VERIFIED|LIKELY|PATTERN_MATCH|NEEDS_REVIEW}         ║
║ Severity: {CRITICAL|HIGH|MEDIUM|LOW|INFO}                        ║
║ CVSS: {score}                                                    ║
╠══════════════════════════════════════════════════════════════════╣
║ Finding: {detailed description}                                  ║
║ Exploit: {proof of concept or "N/A"}                             ║
║ Fix: {specific remediation}                                      ║
╠══════════════════════════════════════════════════════════════════╣
║ Progress: [████████████░░░░░░░░] {N/10}%                         ║
║ Phase: {current}/{8} | ETA: ~{time} remaining                    ║
╚══════════════════════════════════════════════════════════════════╝

Expert Personas

Phase Persona
1, 3, 7 Cybersecurity Veteran
2, 5 Code Auditor (Pentester)
4 Container Security Expert
6 Dependency Hunter
8 All Minds

Full persona descriptions in {baseDir}/references/personas.md.

Phase Structure (1,000 Iterations)

Phase Iterations Focus Area
1 1-100 Reconnaissance & Attack Surface
2 101-250 OWASP Top 10 Deep Dive
3 251-400 Authentication & Secrets
4 401-550 Infrastructure & Containers
5 551-700 Code Quality & Business Logic
6 701-850 Supply Chain & Dependencies
7 851-950 Compliance & Documentation
8 951-1000 Final Verification & Report

Phase 1: Reconnaissance (1-100)

  • 1-20: Platform sync — auto-detect stack, git sync, hash verification, environment drift
  • 21-50: Attack surface — endpoint enumeration, auth mapping, rate limits, exposed ports, WebSocket/SSE
  • 51-75: Hidden systems — undeclared services, cron jobs, orphan configs, Docker networks
  • 76-100: Environment & docs — variable audit, .env drift, documentation accuracy, scoring

Phase 2: OWASP Top 10 (101-250)

Iter OWASP Focus
101-120 A01 Broken Access Control (IDOR, CORS, path traversal)
121-140 A02 Cryptographic Failures (algorithms, keys, TLS)
141-170 A03 Injection (SQL, Command, XSS, Template, Log)
171-185 A04 Insecure Design (missing controls, business logic)
186-200 A05 Security Misconfiguration (debug, errors, headers)
201-215 A06 Vulnerable Components (dependency audit)
216-230 A07 Auth Failures (credential stuffing, sessions)
231-240 A08 Integrity Failures (deserialization, CI/CD)
241-245 A09 Logging Failures
246-250 A10 SSRF

Phase 3: Authentication & Secrets (251-400)

Pre-check: Determine library vs custom crypto before flagging.

  • 251-300: Secret detection (API keys, passwords, git history)
  • 301-340: JWT security (algorithm, claims, storage, revocation)
  • 341-365: OAuth 2.0 (PKCE, redirect URI, state, token exchange)
  • 366-385: Admin authentication (brute force, timing, lockout)
  • 386-400: Rate limiting (coverage, bypass)

Phase 4: Infrastructure (401-550)

  • 401-450: Container security (non-root, readonly, capabilities, limits)
  • 451-490: Network security (ports, firewall, isolation, egress)
  • 491-515: TLS/SSL (cert validity, ciphers, HSTS)
  • 516-535: SSH security (key auth, config hardening)
  • 536-550: Database security (SSL, permissions, backups)

Phase 5: Code Quality (551-700)

Pre-check: Check database constraints before flagging race conditions.

  • 551-590: Race conditions (TOCTOU, concurrent access, locks)
  • 591-630: Business logic (workflow bypass, state manipulation)
  • 631-660: Error handling (safe messages, fail-safe defaults)
  • 661-690: Resource management (connections, memory, DoS)
  • 691-700: Complexity attacks (ReDoS, JSON bombs)

Phase 6: Supply Chain (701-850)

  • 701-750: Dependency audit (CVEs, outdated, typosquatting)
  • 751-790: Third-party API security (keys, webhooks, rate limits)
  • 791-820: Container supply chain (base images, signatures)
  • 821-850: CI/CD security (secrets, permissions, pinned actions)

Phase 7: Compliance (851-950)

  • 851-885: Privacy compliance (GDPR, data retention, consent)
  • 886-915: Security documentation (incident response, policies)
  • 916-935: Operational security (access control, change mgmt)
  • 936-950: Audit trail (logging completeness, retention)

Phase 8: Final Verification (951-1000)

  • 951-970: Critical findings re-verification
  • 971-985: Penetration test simulation
  • 986-995: Security scorecard generation
  • 996-1000: Final report and summary

Auto-Detect (Iteration 1)

  1. git rev-parse --show-toplevel, git remote -v
  2. Stack: package.json, pyproject.toml, requirements.txt, go.mod, Cargo.toml
  3. Infra: Dockerfile, docker-compose.yml, k8s manifests, terraform
  4. CI/CD: .github/workflows, .gitlab-ci.yml, .circleci

Report File

On start: rename existing report. Auto-save every 50 iterations.

Parameters

Param Default Options
--iterations 1000 1-2000
--focus all recon, owasp, auth, infra, code, supply-chain, compliance, all
--phase all 1-8
--resume — Continue from checkpoint

Context Limit Protocol

Checkpoint to .ralph-report.md, output resume command, wait for new session.

When to Use

  • Before major release
  • Compliance audit preparation
  • Security incident investigation
  • Deep dive after /ralph-security flags issues

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

securityauditdeep-divecomplianceowasppenetration-testingsupply-chaininfrastructure

同类 Skill