← スキル一覧に戻る

security-scanner
by lexicalninja
A collection of Cursor subagents and Claude skills to help build things together
⭐ 0🍴 0📅 2026年1月16日
SKILL.md
name: security-scanner description: Scans code for security vulnerabilities including SQL injection, XSS, hardcoded secrets, insecure authentication, and missing input validation. Returns structured security issue reports with file paths, line numbers, and remediation steps.
Security Scanner Skill
Instructions
- Scan code for security vulnerabilities
- Check for SQL injection risks
- Check for XSS vulnerabilities
- Look for hardcoded secrets/credentials
- Verify authentication/authorization security
- Check input validation and sanitization
- Review dependency security
- Return structured security reports with:
- File path and line numbers
- Vulnerability type and severity
- Current vulnerable code
- Suggested secure fix
- Reason and impact
- Priority (Must-Fix for critical, Should-Fix for high)
Examples
Input: Hardcoded API key in source code Output:
### SEC-001
- **File**: `config.js`
- **Lines**: 12
- **Priority**: Must-Fix
- **Issue**: Hardcoded API key exposed in source code
- **Current Code**:
```javascript
const API_KEY = "sk_live_1234567890abcdef";
- Suggested Fix:
const API_KEY = process.env.API_KEY; if (!API_KEY) { throw new Error("API_KEY environment variable not set"); } - Reason: Hardcoded secrets can be exposed in version control and compromise security
## Security Issues to Detect
- **SQL Injection**: Unparameterized database queries
- **XSS Vulnerabilities**: Unsanitized user input in HTML
- **Hardcoded Secrets**: API keys, passwords, tokens in code
- **Insecure Authentication**: Weak password requirements, missing 2FA
- **Missing Input Validation**: Unvalidated user input
- **Insecure Dependencies**: Outdated packages with known vulnerabilities
- **CSRF Vulnerabilities**: Missing CSRF tokens
- **Insecure File Uploads**: Unvalidated file types/sizes
- **Path Traversal**: Unvalidated file paths
- **Insecure Random**: Weak random number generation
- **Information Disclosure**: Error messages exposing sensitive data
- **Missing HTTPS**: Insecure communication protocols
## Priority Guidelines
- **Must-Fix**: Critical vulnerabilities (SQL injection, XSS, exposed secrets)
- **Should-Fix**: High-risk vulnerabilities (missing validation, insecure auth)
- **Nice-to-Have**: Medium-risk issues (dependency updates, minor improvements)
スコア
総合スコア
55/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です