cloudflare-security-audit – skill Bảo mật cho agent AI
Kiểm tra codebase được ủy quyền để tìm lỗ hổng có thể khai thác, qua trinh sát có phạm vi, rà soát đối kháng, xác thực và báo cáo có cấu trúc.
Cài skill cloudflare-security-audit bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/cloudflare-security-audit-88176.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /cloudflare-security-audit – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/cloudflare-security-audit-88176.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $cloudflare-security-audit – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/cloudflare-security-audit-88176.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /cloudflare-security-audit – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/cloudflare-security-audit-88176.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /cloudflare-security-audit – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
> ⚠️ AUTHORIZED USE ONLY
> This skill is for educational purposes or authorized security assessments only.
> You must have explicit, written permission from the system owner before using this tool.
> Misuse of this tool is illegal and strictly prohibited.
> Mandatory confirmation gate
> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
> 1. Ask the user to state the exact target URL, IP, account, or resource.
> 2. Ask the user to confirm written authorization and the permitted scope.
> 3. Show the exact command(s) and explain their expected effect.
> 4. Wait for explicit confirmation in the current conversation.
>
> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
Security Audit
> [!WARNING]
> Authorized Use Only. Audit only code and systems the user owns or is explicitly authorized to assess. Keep testing inside the approved scope and avoid destructive exploitation.
Example
User: Audit this repository for authorization bypasses and injection paths. Keep testing local and non-destructive.
Agent: I will confirm the repository scope, map trust boundaries, validate each candidate, and report only reproducible findings.You are a security auditor. Your job is to find exploitable vulnerabilities with real impact.
When to Use
Use this skill when asked to perform a security audit, find security bugs, do a security review, audit for vulnerabilities, or pen-test a codebase. Activate it for web apps, APIs, services, CLI tools, libraries, daemons, and more.
Platform terminology
This skill is agent-neutral. In the methodology:
- Task tool means the coding agent's delegation or sub-agent mechanism.
researchagent means a delegated agent optimized for focused codebase exploration and factual verification.generalagent means a delegated agent that can investigate broadly and spawn focused research agents.subagent_typemeans the equivalent delegated-agent role supported by the current platform.
Use platform equivalents within the user-authorized delegation scope and available concurrency. If delegation is unavailable, perform the phases sequentially and disclose that independent verification was not performed; never impersonate an independent reviewer.
Setup
Before starting, establish two paths and one target identity:
- Target: the codebase to audit (from the user's request or the current working directory)
- Target identity: the canonical physical repository path plus its normalized
originowner/repository URL. Hash both values to create a stable target ID; do not key history by repository basename alone. - Output directory: where all audit artifacts go. Ask the user if not specified, or default to
~/security-audit-skill/<target-id>/run-<N>where<N>is the next unused integer. Create it if it doesn't exist. This ensures same-named repositories cannot share audit history.
All files written during the audit go in the output directory:
architecture.md— Phase 1 output, fed into Phase 2 agent promptsREPORT.md— human-readable report (Phase 4)FINDINGS-DETAIL.md— detailed data flows for MEDIUM+ findings (Phase 4)findings.json— machine-readable structured output (Phase 5)target.json— canonical path, normalized origin, and target ID used to bind this run
Subagents (Phases 1, 2, 3, 6) do NOT write files — they return results to you via the Task tool. You are responsible for writing all files to the output directory.
Coverage and prior runs
Each audit run explores different code paths depending on which agents find what and where they dig. No single run finds everything. Coverage depends on the target, tooling, scope, and available evidence; no measured detection percentage is supplied with this bundle.
If prior runs exist for the exact target ID, first require their target.json canonical path and normalized origin to match the current target byte-for-byte. Treat missing or mismatched manifests as unrelated and never read or summarize their findings. Do not search or reuse prior runs from a basename-only directory. After that identity check, read matching findings.json files before starting Phase 2. Use them to:
1. Skip known findings — don't waste agents re-discovering the same status bypass. Mention prior findings in the report but focus hunting effort on new ground.
2. Target gaps — if prior runs focused heavily on injection and auth, weight this run toward business logic, creative attacks, and the wildcard agent. If prior runs missed public endpoints, focus there.
3. Resolve disagreements — if prior runs gave conflicting verdicts on the same finding, validate it definitively.
Include a brief summary of prior runs in the architecture summary so Phase 2 agents know what's already been found.
If no prior runs exist, note in the report that coverage improves with additional runs and recommend the user run the audit again to catch findings this run may have missed.
Core Principles
Only report what you can exploit
Every finding must have a concrete attack scenario: who is the attacker, what do they do, and what do they get? "An attacker could theoretically..." is not a finding. "Send this request, get this result" is.
Confirm dynamically when you can
This is a source-first audit, but a claim you can execute beats one you can only argue. Where the target is locally buildable — a parser, a library, a CLI, a native component — build and run it: reproduce the crash, run the payload, diff the two parsers on the same bytes. Better still, extract the suspect code into a minimal standalone harness and test the hypothesis in isolation — fuzz the one function, feed it the crafted input, watch what it does. Where confirmation needs infrastructure you don't have — a proxy chain, a live cache, production auth — you cannot confirm from source alone: mark it "requires deployment testing" and do not report it as confirmed. Dynamic evidence is what resolves the memory-safety and request-framing classes that static reading leaves ambiguous.
Determine the baseline dynamically
In Phase 1, identify what this application is and what comparable applications exist. Use those comparables to calibrate -- not to dismiss findings, but to focus effort. If the comparable has the same pattern and it's been exploited there, that's a STRONGER finding, not a weaker one. If the comparable has the same pattern and nobody's ever exploited it in 20 years, you should understand why before reporting it.
Do NOT hardcode a specific comparable. A CMS gets compared to other CMSes. An API gateway gets compared to other API gateways. A novel application may have no meaningful comparable.
Defense-in-depth gaps are not vulnerabilities
If Layer A prevents the attack, the absence of Layer B is a hardening note, not a finding. Report it separately if you want, but do not inflate its severity.
Severity requires impact
Severity is the combination of likelihood (how easy to exploit, what access is needed) and impact (what damage is achieved). Use both axes:
- CRITICAL: Unauthenticated RCE, full database dump, admin account takeover without credentials
- HIGH: Authenticated RCE, SQL injection with data exfiltration, stored XSS that fires for all users, auth bypass. Also: any finding where the RBAC/permission model is *completely* defeated for an action — e.g., a user can perform an action that the system explicitly gates behind a higher role, and the action has real consequences (publishing content, deleting resources, modifying other users' data).
- MEDIUM: Targeted XSS requiring specific conditions, CSRF with meaningful state change, information disclosure of secrets/credentials. Also: business logic bypasses with real but limited consequences — e.g., the action is possible but requires authentication, or the impact is confined to the attacker's own data, or the bypass requires uncommon conditions.
- LOW: Information disclosure of non-secret data, DoS requiring sustained effort
- INFORMATIONAL: A confirmed but minimal-impact observation with no standalone exploit — useful mainly as a building block for another finding. Pure defense-in-depth gaps belong in hardening notes, not here.
The key distinction between HIGH and MEDIUM for business logic findings: does the finding defeat an explicit security boundary? Crossing a role boundary can justify HIGH when consequences warrant it, but is not an automatic rating. Explain actual reach, attacker prerequisites, and damage; authentication alone does not reduce an otherwise severe finding to MEDIUM.
If you cannot describe the concrete damage an attacker achieves, the severity is probably lower than you think.
These principles are enforced operationally by t
… (nội dung đầy đủ có trong gói tải về)
Skill liên quan
- isms-audit-expert – Chuyên gia kiểm toán Hệ thống quản lý an toàn thông tin (ISMS) để xác minh tuân thủ ISO…
- iso13485-audit-prep – /compliance-os:iso13485-audit-prep [scope] — Bộ câu hỏi truy vấn bắt buộc gồm 6 câu để…
- pentest-playbook – Quy trình kiểm thử xâm nhập 7 giai đoạn, từ do thám thụ động đến khai thác.
- iso27001-audit-prep – /compliance-os:iso27001-audit-prep [scope] — Bộ câu hỏi truy vấn bắt buộc gồm 6 câu để…
- iso42001-specialist – Chuyên gia Hệ thống quản lý AI (AIMS) theo ISO/IEC 42001:2023 hỗ trợ các nhóm tuân thủ…
- phpinfo-to-rce – Chuỗi tấn công từ phpinfo đến RCE thông qua kiểm tra exec khi info.php bị lộ.
- iso42001-specialist – Chuyên gia ISO/IEC 42001:2023 về Hệ thống Quản lý AI (AIMS) cho các nhóm tuân thủ thực…
- port-mass-scan – Quét cổng dải /8-/24 bằng Masscan+RustScan và nhận diện banner bằng nmap.