security-audit
Skill này làm gì
Skill này hướng dẫn agent review bảo mật cho mã, kiểm tra các điểm yếu phổ biến như xử lý đầu vào kém và đường dẫn file không an toàn. Phù hợp với lập trình viên muốn kiểm tra bảo mật trước khi phát hành các tính năng liên quan đến đăng nhập, thanh toán hoặc dữ liệu người dùng.
Khi nào nên dùng
- ✓Khi bạn đang xây dựng tính năng xác thực hoặc phân quyền.
- ✓Khi mã của bạn xử lý thanh toán, dữ liệu cá nhân hoặc tải file lên.
- ✓Khi bạn thêm một endpoint API mới hoặc kết nối với dịch vụ bên ngoài.
Liên kết skill
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/security-audit/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
“Quét bảo mật thư mục API của tôi và liệt kê mọi vấn đề về kiểm tra đầu vào hoặc injection.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy các kiểm tra bảo mật trên mã, tìm các mẫu như đầu vào không an toàn, path traversal và rủi ro injection, rồi báo cáo những gì nó tìm thấy.
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 Audit Skill
Purpose
Comprehensive security scanning and vulnerability detection. Includes input validation, path traversal prevention, CVE detection, and secure coding pattern enforcement.
When to Trigger
- authentication implementation
- authorization logic
- payment processing
- user data handling
- API endpoint creation
- file upload handling
- database queries
- external API integration
When to Skip
- read-only operations on public data
- internal development tooling
- static documentation
- styling changes
Commands
Full Security Scan
Run comprehensive security analysis on the codebase
npx @claude-flow/cli security scan --depth full
Example:
npx @claude-flow/cli security scan --depth full --output security-report.json
Input Validation Check
Check for input validation issues
npx @claude-flow/cli security scan --check input-validation
Example:
npx @claude-flow/cli security scan --check input-validation --path ./src/api
Path Traversal Check
Check for path traversal vulnerabilities
npx @claude-flow/cli security scan --check path-traversal
SQL Injection Check
Check for SQL injection vulnerabilities
npx @claude-flow/cli security scan --check sql-injection
XSS Check
Check for cross-site scripting vulnerabilities
npx @claude-flow/cli security scan --check xss
CVE Scan
Scan dependencies for known CVEs
npx @claude-flow/cli security cve --scan
Example:
npx @claude-flow/cli security cve --scan --severity high
Security Audit Report
Generate full security audit report
npx @claude-flow/cli security audit --report
Example:
npx @claude-flow/cli security audit --report --format markdown --output SECURITY.md
Threat Modeling
Run threat modeling analysis
npx @claude-flow/cli security threats --analyze
Validate Secrets
Check for hardcoded secrets
npx @claude-flow/cli security validate --check secrets
Scripts
| Script | Path | Description |
|---|---|---|
security-scan |
.agents/scripts/security-scan.sh |
Run full security scan pipeline |
cve-remediate |
.agents/scripts/cve-remediate.sh |
Auto-remediate known CVEs |
References
| Document | Path | Description |
|---|---|---|
Security Checklist |
docs/security-checklist.md |
Security review checklist |
OWASP Guide |
docs/owasp-top10.md |
OWASP Top 10 mitigation guide |
Best Practices
- Check memory for existing patterns before starting
- Use hierarchical topology for coordination
- Store successful patterns after completion
- Document any new learnings
Câu hỏi thường gặp
Nó có thay thế được kiểm toán bảo mật chuyên nghiệp không?
Không. Nó giúp phát hiện các vấn đề phổ biến, nhưng với hệ thống nhạy cảm vẫn nên có một đợt review chuyên biệt.
Nó có chỉ kiểm tra một thư mục không?
Có. Skill hỗ trợ tùy chọn đường dẫn, nên bạn có thể quét một thư mục cụ thể.
Nó có sửa lỗi giúp tôi không?
Skill tập trung vào phát hiện vấn đề, nên bạn quyết định sửa gì và cần xem lại các thay đổi.
Chi tiết
Mô tả gốc của tác giả
Comprehensive security scanning and vulnerability detection. Includes input validation, path traversal prevention, CVE detection, and secure coding pattern enforcement. Use when: authentication implementation, authorization logic, payment processing, user data handling, API endpoint creation, file upload handling, database queries, external API integration. Skip when: read-only operations on public data, internal development tooling, static documentation, styling changes.
repo: ruvnet/ruflo
Độ phổ biến
- Sao GitHub
- 81k
- Vị trí xếp hạng
- #1537
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-adaptive-coordinator
81kGiúp agent của bạn chia và cân bằng lại một nhóm agent AI khi khối lượng công việc thay đổi, chọn bố cục phù hợp với tác vụ.
agent-agent
81kDạy agent của bạn biến một mục tiêu lớn thành kế hoạch hành động có thứ tự, và lập lại kế hoạch khi điều kiện thay đổi.
agent-agentic-payments
81kGiúp agent của bạn quản lý ủy quyền chi tiêu cho mua sắm bằng AI, với hạn mức chi, khung thời gian, quy tắc người bán và phê duyệt có chữ ký.
agent-analyze-code-quality
81kGiúp agent của bạn rà soát chất lượng mã, tìm code smell, nợ kỹ thuật và gợi ý tái cấu trúc mà không thay đổi các file.
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.