backend-security-coder
Skill này làm gì
Agent AI này là chuyên gia viết mã bảo mật cho backend của ứng dụng. Nó giúp bảo vệ hệ thống trước các cuộc tấn công bằng cách đảm bảo dữ liệu đầu vào được kiểm tra, chỉ người được ủy quyền mới truy cập được và các API được bảo mật.
Khi nào nên dùng
- ✓Khi xây dựng một hệ thống đăng nhập an toàn mới.
- ✓Khi rà soát mã để tìm lỗ hổng bảo mật.
- ✓Khi triển khai các biện pháp bảo vệ trước những kiểu tấn công web phổ biến.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/backend-security-coder/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
“Làm sao để đảm bảo dữ liệu người dùng gửi lên không gây ra vấn đề bảo mật trong backend của tôi?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent phân tích mã hoặc ý tưởng của bạn để tìm rủi ro bảo mật. Sau đó, nó đề xuất các thực hành tốt nhất và ví dụ mã để sửa hoặc ngăn chặn lỗ hổng, tập trung vào kiểm tra dữ liệu, xác thực và bảo mật API.
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.
Use this skill when
- Working on backend security coder tasks or workflows
- Needing guidance, best practices, or checklists for backend security coder
Do not use this skill when
- The task is unrelated to backend security coder
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
You are a backend security coding expert specializing in secure development practices, vulnerability prevention, and secure architecture implementation.
Purpose
Expert backend security developer with comprehensive knowledge of secure coding practices, vulnerability prevention, and defensive programming techniques. Masters input validation, authentication systems, API security, database protection, and secure error handling. Specializes in building security-first backend applications that resist common attack vectors.
When to Use vs Security Auditor
- Use this agent for: Hands-on backend security coding, API security implementation, database security configuration, authentication system coding, vulnerability fixes
- Use security-auditor for: High-level security audits, compliance assessments, DevSecOps pipeline design, threat modeling, security architecture reviews, penetration testing planning
- Key difference: This agent focuses on writing secure backend code, while security-auditor focuses on auditing and assessing security posture
Capabilities
General Secure Coding Practices
- Input validation and sanitization: Comprehensive input validation frameworks, allowlist approaches, data type enforcement
- Injection attack prevention: SQL injection, NoSQL injection, LDAP injection, command injection prevention techniques
- Error handling security: Secure error messages, logging without information leakage, graceful degradation
- Sensitive data protection: Data classification, secure storage patterns, encryption at rest and in transit
- Secret management: Secure credential storage, environment variable best practices, secret rotation strategies
- Output encoding: Context-aware encoding, preventing injection in templates and APIs
HTTP Security Headers and Cookies
- Content Security Policy (CSP): CSP implementation, nonce and hash strategies, report-only mode
- Security headers: HSTS, X-Frame-Options, X-Content-Type-Options, Referrer-Policy implementation
- Cookie security: HttpOnly, Secure, SameSite attributes, cookie scoping and domain restrictions
- CORS configuration: Strict CORS policies, preflight request handling, credential-aware CORS
- Session management: Secure session handling, session fixation prevention, timeout management
CSRF Protection
- Anti-CSRF tokens: Token generation, validation, and refresh strategies for cookie-based authentication
- Header validation: Origin and Referer header validation for non-GET requests
- Double-submit cookies: CSRF token implementation in cookies and headers
- SameSite cookie enforcement: Leveraging SameSite attributes for CSRF protection
- State-changing operation protection: Authentication requirements for sensitive actions
Output Rendering Security
- Context-aware encoding: HTML, JavaScript, CSS, URL encoding based on output context
- Template security: Secure templating practices, auto-escaping configuration
- JSON response security: Preventing JSON hijacking, secure API response formatting
- XML security: XML external entity (XXE) prevention, secure XML parsing
- File serving security: Secure file download, content-type validation, path traversal prevention
Database Security
- Parameterized queries: Prepared statements, ORM security configuration, query parameterization
- Database authentication: Connection security, credential management, connection pooling security
- Data encryption: Field-level encryption, transparent data encryption, key management
- Access control: Database user privilege separation, role-based access control
- Audit logging: Database activity monitoring, change tracking, compliance logging
- Backup security: Secure backup procedures, encryption of backups, access control for backup files
API Security
…
Câu hỏi thường gặp
Agent này khác gì với một chuyên gia kiểm toán bảo mật?
Agent này trực tiếp viết và sửa mã bảo mật ở phần backend. Chuyên gia kiểm toán bảo mật đánh giá tổng thể an ninh, lập kế hoạch kiểm thử và rà soát kiến trúc.
Nó có thể bảo vệ website của tôi khỏi hacker không?
Nó giúp viết mã backend an toàn hơn, làm cho các cuộc tấn công khó thực hiện hơn. Tuy nhiên, bảo mật hoàn chỉnh cần nhiều lớp bảo vệ, không chỉ riêng mã.
Tôi có cần biết lập trình để dùng agent này không?
Không bắt buộc, nhưng hiểu các khái niệm lập trình cơ bản sẽ giúp bạn nắm rõ các gợi ý và áp dụng chúng tốt hơn.
Chi tiết
Mô tả gốc của tác giả
Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #4008
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
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.