认证输入与应用防护实现
原名:secure-code-guardian
核对密码处理、权限、参数化查询和安全响应,形成可测试的改动。
中文 Skills 技能说明
业务接口涉及登录、用户输入或敏感资料时,可让应用安全工程师与开发岗位员工协作。提供角色、数据、接口和现有机制,技能整理认证、限流、CSP、校验及防护,交付改动草稿与正反例测试。技能名称不是安全认证,也不保证完全阻止漏洞;不能仅加请求头就宣称系统安全。桌面端只测自有授权环境,密钥不进入代码或日志;令牌签发、权限变更和生产部署先审核,保留失败场景与回退。
上游能力依据
上游原始适用说明:Use when implementing authentication/authorization, securing user input, or preventing OWASP Top 10 vulnerabilities — including custom security implementations such as hashing passwords with bcrypt/argon2, sanitizing SQL queries with parameterized statements, configuring CORS/CSP headers, validating input with Zod, and setting up JWT tokens. Invoke for authentication, authorization, input validation, encryption, OWASP Top 10 prevention, secure session management, and security hardening. For pre-built OAuth/SSO integrations or standalone security audits, consider a more specialized skill.
上游 SKILL.md 主要章节(保留原文标题):
- Core Workflow
- Validation Checkpoints
- Reference Guide
- Constraints
- MUST DO
- MUST NOT DO
- Code Examples
- Password Hashing (bcrypt)
- Parameterized SQL Query (Node.js / pg)
- Input Validation with Zod
使用边界
先确认授权范围、资产边界和证据来源。输出用于防御性检查与人工决策,不自动执行攻击、绕过或破坏性操作。
作者、翻译与许可证
- 原作者
- Jeffallan 与 claude-skills contributors
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/Jeffallan/claude-skills/tree/1be15d8064f88fc25216442406d40add8fd23b53/skills/secure-code-guardian
适用范围
平台:linux、macos、windows;标签:安全与合规、认证输入与应用防护实现、开源技能
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。