← 返回
安全合规 中文

Ralph Ultra Security Audit

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...
深度安全审计,含1000次迭代(约4-8小时)。当用户提及“深度安全审计”、“ralph ultra”、“合规审计准备”、“彻底安全...”时使用。
dorukardahan
安全合规 clawhub v3.0.0 1 版本 99826.1 Key: 无需
★ 0
Stars
📥 1,148
下载
💾 13
安装
1
版本
#latest

概述

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

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

References

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

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

Full persona descriptions in references/personas.md.

Phase Structure (1,000 Iterations)

PhaseIterationsFocus Area
-------------------------------
11-100Reconnaissance & Attack Surface
2101-250OWASP Top 10 Deep Dive
3251-400Authentication & Secrets
4401-550Infrastructure & Containers
5551-700Code Quality & Business Logic
6701-850Supply Chain & Dependencies
7851-950Compliance & Documentation
8951-1000Final 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)

IterOWASPFocus
--------------------
101-120A01Broken Access Control (IDOR, CORS, path traversal)
121-140A02Cryptographic Failures (algorithms, keys, TLS)
141-170A03Injection (SQL, Command, XSS, Template, Log)
171-185A04Insecure Design (missing controls, business logic)
186-200A05Security Misconfiguration (debug, errors, headers)
201-215A06Vulnerable Components (dependency audit)
216-230A07Auth Failures (credential stuffing, sessions)
231-240A08Integrity Failures (deserialization, CI/CD)
241-245A09Logging Failures
246-250A10SSRF

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

ParamDefaultOptions
-------------------------
--iterations10001-2000
--focusallrecon, owasp, auth, infra, code, supply-chain, compliance, all
--phaseall1-8
--resumeContinue 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

版本历史

共 1 个版本

  • v3.0.0 当前
    2026-03-29 07:48 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,598
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,212 📥 266,315
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,709