compliance-checker
檢查程式碼安全性合規性
開發人員需要驗證其程式碼是否符合安全和法規標準。此技能可根據 OWASP Top 10、PCI-DSS、HIPAA、GDPR 及其他框架檢查程式碼,並提供可操作的合規報告。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“compliance-checker”。 Check this code for SQL injection vulnerabilities: const query = `SELECT * FROM users WHERE email = '${email}'`;
预期结果:
- CRITICAL: SQL Injection Vulnerability Detected
- The code uses string interpolation to build SQL queries, allowing attackers to manipulate input.
- Fix: Use parameterized queries instead.
- Compliant code: const query = 'SELECT * FROM users WHERE email = ?'; db.query(query, [email]);
正在使用“compliance-checker”。 Check this Node.js code for cryptographic compliance: const cipher = crypto.createCipher('des', 'password');
预期结果:
- HIGH: Weak Cryptographic Algorithm Detected
- DES is deprecated and provides insufficient security for modern applications.
- Fix: Use AES-256-GCM or similar strong encryption algorithm.
- Compliant code: const cipher = crypto.createCipheriv('aes-256-gcm', key, iv);
安全审计
安全Pure prompt-based skill containing security compliance guidance with educational code examples. The static scanner flagged patterns in code comments that intentionally demonstrate security violations - this is the skill's core purpose. No actual executable code, network calls, filesystem access, or credential handling exists. All flagged patterns are false positives from educational content.
风险因素
⚙️ 外部命令 (91)
⚡ 包含脚本 (2)
📁 文件系统访问 (2)
🔑 环境变量 (4)
质量评分
你能构建什么
發布前安全性審查
在部署到生產環境之前,驗證程式碼是否符合安全標準。
合規審計支援
準備法規合規審計和認證的證據和清單。
CI/CD 安全閘道
將安全性合規檢查整合到開發工作流程和管線中。
试试这些提示
Check this code for security compliance issues related to OWASP Top 10: [paste code here]
Validate this code for [PCI-DSS|HIPAA|GDPR|SOC 2] compliance. List any violations and required fixes.
Generate a comprehensive compliance report for this codebase against OWASP Top 10, HIPAA, and GDPR standards.
Analyze these compliance violations and provide step-by-step remediation guidance with code examples.
最佳实践
- 提供完整的程式碼片段,包括函數上下文,以確保準確分析
- 指定與您的使用案例相關的合規框架
- 在套用修復之前,先審閱產生的報告以了解上下文
避免
- 提交不完整的程式碼片段而沒有適當的上下文
- 期望此技能自動修復您程式碼庫中的漏洞
- 將合規檢查取代滲透測試