Chuyển đến nội dung
Skillpedia
Bảo mật33k · #8518

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/davila7/claude-code-templates/blob/main/.claude-plugin/skills/owasp-security/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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

  1. OWASP Top 10 (2021)
  2. OWASP ASVS 5.0
  3. OWASP MASVS v2.1.0
  4. OWASP API Security Top 10
  5. OWASP Kubernetes Top 10
  6. 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".

repo: davila7/claude-code-templates

Độ 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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự