owasp-security
Skill này làm gì
Skill này cho agent AI một bộ tham chiếu về các tiêu chuẩn bảo mật OWASP được dùng rộng rãi và các điểm yếu phổ biến cần kiểm tra. Skill dành cho lập trình viên thực hiện rà soát bảo mật, kiểm toán hoặc xây dựng tính năng an toàn.
Khi nào nên dùng
- ✓Khi lập trình viên muốn rà soát bảo mật cho ứng dụng web, API hoặc ứng dụng di động.
- ✓Khi xác thực, mã hóa hoặc kiểm soát truy cập đang được xây dựng và phải làm an toàn.
- ✓Khi một hệ thống AI hoặc agent cần được kiểm tra về prompt injection và các rủi ro tương tự.
Liên kết skill
https://github.com/davila7/claude-code-templates/blob/main/.claude-plugin/skills/owasp-security/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
“Rà soát code đăng nhập và kiểm soát truy cập của tôi về các vấn đề OWASP phổ biến.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill cung cấp cho agent hướng dẫn từ sáu tiêu chuẩn OWASP, gồm cách phát hiện từng điểm yếu và cách sửa. Sau đó agent áp dụng hướng dẫn đó cho code bạn chỉ định.
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.
Comprehensive OWASP Security Skills
A developer-focused security reference covering six OWASP standards for securing web applications, APIs, mobile apps, containers, and AI/LLM systems. Each section provides concise detection guidance, key requirements, and mitigation strategies.
Quick Navigation
- OWASP Top 10 (2021)
- OWASP ASVS 5.0
- OWASP MASVS v2.1.0
- OWASP API Security Top 10
- OWASP Kubernetes Top 10
- OWASP Agentic Applications 2026
Section 1: OWASP Top 10 (2021)
The OWASP Top 10 represents the most critical security risks in web applications.
A01: Broken Access Control
Detection: URLs with direct ID references (/user/1234/orders); client-side only enforcement; missing authorization checks.
Mitigation: Enforce server-side authorization for every sensitive operation; verify user ownership of resources; implement default-deny principle.
Example:
// INSECURE: No authorization check
app.get('/users/:id/orders', (req, res) => {
const orders = db.query('SELECT * FROM orders WHERE user_id = ?', req.params.id);
res.json(orders);
});
// SECURE: Authorization check
app.get('/users/:id/orders', (req, res) => {
if (req.user.id !== parseInt(req.params.id)) return res.status(403).json({error: 'Forbidden'});
const orders = db.query('SELECT * FROM orders WHERE user_id = ?', req.params.id);
res.json(orders);
});
Checklist: ☐ Authorization on server for all sensitive ops ☐ Default-deny policy ☐ No ID-based obscurity ☐ Whitelist allowed fields
A02: Cryptographic Failures
Detection: Sensitive data in plaintext; weak encryption (DES, ECB); missing TLS; hardcoded secrets in code. Mitigation: Always use HTTPS/TLS; encrypt data at rest with AES-256; store secrets in environment variables or vaults; mask sensitive logs. Example:
# INSECURE: API key in code
api_key = "sk-abc123xyz789"
# SECURE: From environment
import os
api_key = os.getenv("API_KEY")
if not api_key: raise ValueError("API_KEY not set")
Checklist: ☐ HTTPS enforced ☐ AES-256 encryption at rest ☐ No secrets in code ☐ Sensitive data masked in logs
A03: Injection (SQL, Command, NoSQL)
Detection: String concatenation in queries; exec, query, run with user input; no prepared statements.
Mitigation: Use parameterized queries; whitelist input; avoid string concatenation; use safe APIs (subprocess.run with list args).
Example:
# INSECURE: String concatenation
os.system("tar -czf " + filename + " /var/data")
# SECURE: List-based API
import subprocess
subprocess.run(["tar", "-czf", filename, "/var/data"], check=True)
Checklist: ☐ Parameterized queries only ☐ No string concat ☐ Whitelist input ☐ Safe subprocess calls
A04: Insecure Design
Detection: No threat modeling; missing security controls by design; no authentication/authorization from the start. Mitigation: Implement threat modeling early; design security in from the beginning; use established security libraries/patterns. Checklist: ☐ Threat modeling completed ☐ Security controls in design ☐ Auth/authz from start ☐ Security review in SDLC
A05: Security Misconfiguration
Detection: Debug mode enabled; default credentials; verbose error messages; missing security headers; exposed APIs. Mitigation: Disable debug mode; change defaults; hide version info; implement security headers (HSTS, CSP, X-Frame-Options). Example:
# INSECURE: Debug enabled in production
app.debug = True
# SECURE: Debug disabled
app.debug = False
app.config['HSTS_MAX_AGE'] = 31536000
Checklist: ☐ Debug disabled ☐ Defaults changed ☐ Security headers set ☐ No version disclosure
A06: Vulnerable & Outdated Components
Detection: Old versions in package.json/requirements.txt; unpatched frameworks; deprecated libraries.
Mitigation: Regularly audit dependencies with npm audit, pip safety, Snyk; remove unused packages; keep frameworks patched.
Checklist: ☐ Dependency audits regular ☐ No outdated versions ☐ Unused deps removed ☐ CI/CD security scanning
A07: Authentication Failures
Detection: Weak passwords; no MFA; predictable
Câu hỏi thường gặp
Nó bao gồm những tiêu chuẩn nào?
Nó gồm OWASP Top 10, ASVS, MASVS, API Security Top 10, Kubernetes Top 10 và hướng dẫn cho ứng dụng agent.
Skill có đảm bảo ứng dụng an toàn không?
Không. Đây là tài liệu tham chiếu để tìm và sửa vấn đề phổ biến, và không thay thế kiểm toán chuyên nghiệp.
Nó có giúp được các hệ thống AI không?
Có. Nó có hướng dẫn về prompt injection và rủi ro trong hệ thống LLM và agent.
Chi tiết
Mô tả gốc của tác giả
Comprehensive OWASP-aligned security guidance across six standards - Top 10 (2021) for web apps, ASVS 5.0, MASVS v2.1.0 for mobile, API Security Top 10 (2023), Kubernetes Top 10 (2022), and the Agentic Applications 2026 edition for AI/LLM. Use for security reviews, vulnerability audits, secure auth/crypto/access-control implementation, Kubernetes manifest hardening, and LLM/agent prompt-injection defense - including indirect requests like "is this login flow secure?", "review this endpoint", or "audit my pod spec".
Độ phổ biến
- Sao GitHub
- 33k
- Vị trí xếp hạng
- #8518
- 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-management
33kCho phép agent của bạn tạo, liệt kê, cho ngủ đông, đánh thức, đổi tên và xóa các agent AI bằng dòng lệnh AI Maestro, quản lý vòng đời của từng agent.
agent-messaging
33kCho phép agent của bạn gửi, nhận và trả lời tin nhắn có chữ ký giữa các agent AI, dùng Agent Messaging Protocol, chủ yếu trên máy của bạn.
docs-search
33kCho phép agent của bạn tìm trong tài liệu code được tạo tự động, như chữ ký hàm, định nghĩa lớp và chú thích, để kiểm tra API thật trước khi sửa code.
graph-query
33kCho phép agent của bạn truy vấn đồ thị phụ thuộc code để tìm các nơi gọi, thành phần liên quan và tác động của một thay đổi trước khi code được sửa.
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.