security-practices
掌握安全开发、OWASP 前 10 大风险、测试和合规性。在构建安全系统、进行安全审查或实施最佳实践时使用。
📖 中文导读:掌握安全开发、OWASP 前 10 大风险、测试和合规性。在构建安全系统、进行安全审查或实施最佳实践时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: security-practices description: Master secure development, OWASP top 10, testing, and compliance. Use when building secure systems, conducting security reviews, or implementing best practices. sasmp_version: "1.3.0" bonded_agent: 06-security-qa-practices bond_type: PRIMARY_BOND
Security, QA & Best Practices Skill
Quick Start - Secure Authentication
import bcrypt from 'bcrypt';
import jwt from 'jsonwebtoken';
// Hash password
const password = 'user_password';
const hash = await bcrypt.hash(password, 10);
// Verify password
const isValid = await bcrypt.compare(password, hash);
// Issue JWT
const token = jwt.sign(
{ userId: 1, email: 'user@example.com' },
process.env.JWT_SECRET,
{ expiresIn: '24h', algorithm: 'HS256' }
);
// Verify JWT
const decoded = jwt.verify(token, process.env.JWT_SECRET);
Core Technologies
Security Tools
- Burp Suite
- OWASP ZAP
- Snort/Suricata
- Nmap
Testing Frameworks
- Selenium / Cypress
- Jest / pytest
- JMeter / Gatling
- Postman / Insomnia
Code Quality
- SonarQube
- ESLint / Prettier
- Pylint / Black
Best Practices
- OWASP Top 10 - Know and prevent vulnerabilities
- Secure Coding - Input validation, parameterized queries
- Testing - Unit, integration, and E2E tests
- Code Review - Peer review process
- Monitoring - Continuous security monitoring
- Compliance - GDPR, HIPAA, PCI-DSS
- Incident Response - Clear procedures
- Documentation - Security policies