← Back to list

security
by Arthur742Ramos
⭐ 0🍴 0📅 Jan 14, 2026
SKILL.md
name: security description: Security review and vulnerability analysis. Use when asked to review code for security issues or harden implementations.
Security Review Expert
Perform security reviews of the code.
Security Checklist
1. Input Validation
- All user inputs are validated
- Input length limits enforced
- Type checking before use
- Reject unexpected input types
2. Injection Prevention
- SQL: Use parameterized queries
- Command: Escape shell arguments or avoid shell
- Path: Validate and canonicalize paths
- XSS: Encode output for context
3. Authentication & Authorization
- Credentials not hardcoded
- Tokens expire appropriately
- Permission checks before actions
- Principle of least privilege
4. Secrets Management
- No secrets in source code
- No secrets in logs
- Environment variables or secure vaults
- Secrets rotated regularly
5. Cryptography
- Use established libraries
- Strong algorithms (no MD5, SHA1 for security)
- Proper key management
- Secure random generation
Azure Codex Specific
Credential Handling
// ✅ Good: Use Azure Identity
let credential = azure_identity::DefaultAzureCredential::new()?;
// ❌ Bad: Hardcoded keys
let key = "sk-abc123...";
Token Handling
// ✅ Good: Tokens from secure source
let token = credential.get_token(&scope).await?;
// ❌ Bad: Logging tokens
tracing::info!("Token: {token}");
Command Execution
// ✅ Good: Direct arguments
Command::new("az").args(["account", "show"])
// ❌ Bad: Shell expansion
Command::new("sh").arg("-c").arg(format!("az {user_input}"))
Output Format
## Risk Level
[Critical / High / Medium / Low]
## Findings
### Finding 1: [Title]
- **Severity**: [Critical/High/Medium/Low]
- **Location**: [file:line]
- **Issue**: [Description]
- **Recommendation**: [How to fix]
## Positive Observations
[Security practices done well]
Score
Total Score
60/100
Based on repository quality metrics
✓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
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon