security-review
Skill này làm gì
Skill này hướng dẫn agent kiểm tra bảo mật của mã, một module hoặc một tính năng. Skill tìm những điểm yếu mà kẻ tấn công thực sự có thể lợi dụng, và giải thích cách sửa từng điểm.
Khi nào nên dùng
- ✓Khi bạn yêu cầu rà soát bảo mật mã mới trước khi đưa lên môi trường thật.
- ✓Khi bạn nghi ngờ một tính năng có thể cho người dùng xem hoặc thay đổi dữ liệu mà họ không được phép.
- ✓Khi bạn muốn kiểm tra mật khẩu, khóa hoặc lệnh không an toàn bị lộ trong một dự án.
Liên kết skill
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/security-review/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể kiểm tra tính năng đăng nhập của tôi xem có lỗ hổng bảo mật không, và cho tôi biết cách sửa mọi thứ rủi ro?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent xác định nơi dữ liệu đầu vào từ bên ngoài đi vào mã và nơi nó có thể gây hại. Sau đó nó theo dõi dữ liệu đó từng bước và chỉ báo cáo các vấn đề nó chỉ ra được, kèm tệp và cách sửa.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Security Review
Produce findings a reviewer can verify, not a vibes pass. Every finding names the file, the reachable path that makes it real, and the fix.
Scope the review first
- What is under review: a diff, a module, a plugin bundle, a network surface. Say the boundary out loud before reading.
- Trust boundaries: where untrusted input enters (HTTP handlers, MCP tool args, file parsers, CLI flags, env vars, rendered content) and where authority is exercised (fs writes, network egress, process spawn, credential reads, signing).
- Prerequisites: a checked-out tree and the project's own test runner. Ask for credentials only if a live path genuinely needs them; never read secrets from the environment or keychain yourself.
Procedure
- Map entry points and sinks.
rgfor the handlers, deserializers, and exec/fs/net calls in scope. Follow data from entry to sink before judging it. - Authn/authz. Every mutating or sensitive handler checks identity and object-level authorization. Look for checks that exist on one path but not its sibling, and for checks done on the client only.
- Injection. Command lines, SQL, template eval, shell expansion, path joins under user influence, and markup that will render later — including generated HTML/markdown that carries repo content into a browser surface.
- Secrets.
rgfor token/key/secret patterns andgit log -pthe diff for credentials. Also check what gets logged or embedded in receipts, exports, or error messages. - Dependencies. Run the project's audit gate if it exists
(
cargo audit,npm audit,osv-scanner) — report versions and CVEs, not "deps look old". - Denial and abuse paths. Unbounded reads/allocations, missing timeouts on network calls, resource leaks in error paths, retry storms.
- Verify a finding before reporting it. Trace the real call path or write a minimal proof. A finding that "looks suspicious" but has no reachable path is a note, not a finding.
Findings format
For each: severity (exploitability × impact), file:line, the reachable path, a one-paragraph explanation, and the fix. Order by severity. Then a short "checked and clean" list naming what was audited and cleared — the scope statement means something only if the clear list is honest.
Recovery and limits
- If you cannot prove reachability, downgrade the claim and say what evidence is missing.
- Do not claim a formal audit, certification, or absence of vulnerabilities. This review finds defects; it does not prove none exist.
- Never fix-and-stay-quiet on a security finding in someone else's in-flight code — report it first.
Completion criteria
- Every entry point in scope was traced to its sinks.
- Findings carry file:line + reachability + fix; the clear list names what was actually checked.
- Severity ordering is defensible by exploitability, not by how loudly the code smells.
Câu hỏi thường gặp
Có giống rà soát mã thông thường không?
Không. Skill tập trung vào các điểm yếu có thể bị khai thác, không phải chất lượng chung, phong cách hay độ gọn của mã.
Agent có đọc mật khẩu hoặc khóa của tôi không?
Skill nói agent không tự đọc bí mật từ môi trường hay keychain, và chỉ hỏi thông tin xác thực khi một bài kiểm tra trực tiếp thật sự cần.
Mỗi phát hiện có kèm cách sửa không?
Có. Mỗi phát hiện nêu tên tệp, đường đi khiến nó thành rủi ro thật, và cách sửa được đề xuất.
Chi tiết
Mô tả gốc của tác giả
Review a change, module, or surface for exploitable defects — trust boundaries, authn/authz, injection, secret exposure, filesystem and network reach, dependency risk. Use when the user asks for a security review, audit, or vulnerability check of concrete code. Not for general code review, lint, or compliance paperwork.
repo: codewhale-hq/Codewhale
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6552
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
best-of-n
41kGiúp agent của bạn đưa ra nhiều câu trả lời độc lập cho một vấn đề khó, chấm chúng theo cùng một tiêu chí, và chỉ áp dụng phương án vượt qua kiểm tra.
dataviz
41kGiúp agent của bạn chọn biểu đồ hoặc bảng điều khiển phù hợp với dữ liệu, có nhãn rõ ràng, ghi chú nguồn và kiểm tra trục cùng giá trị bị thiếu.
debug
41kGiúp agent của bạn tìm nguyên nhân thật của một lỗi bằng cách tái hiện, thu hẹp phạm vi, và chỉ sửa khi bạn đồng ý, thay vì đoán mò.
delegate
41kDạy agent của bạn chia một tác vụ lớn thành các trợ lý song song có trọng tâm, đồng thời giữ việc lập kế hoạch, tích hợp và kiểm tra cuối trong tay mình.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.