security-scan
Skill0 starsChanged 3 months agoMITView on GitHub
Comprehensive security scanning and vulnerability assessment for code, dependencies, and infrastructure. Includes SAST, DAST, dependency scanning, and security hardening recommendations. Use before deployments, after major changes, or for regular security audits.
49 other projects use a version of this.
Adopted by
Most recently taken up by
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- NinjaSln-labs/agent-skillstheir own version, first seen Oct 2, 2026
- openai/codex-securitytheir own version, first seen Oct 2, 2026
- 5throck/ai-workspace-standardstheir own version, first seen Sep 26, 2026
- elfrost/ai-patchlabtheir own version, first seen Sep 22, 2026
- ZeroTokenClaw/agents-skillstheir own version, first seen Sep 21, 2026
Used with
Projects with it also use springboot-security, django-security and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
FaisalAlqarniSkillspringboot-security
Spring Security best practices for authn/authz, validation, CSRF, secrets, headers, rate limiting, and dependency security in Java Spring Boot services.
Also in 5 projects that use this
johnrtiptonSkilldjango-security
This skill should be used when conducting security reviews, auditing Django applications, hardening security settings, implementing OWASP Top 10 protections, managing secrets, or ensuring multi-tenant security isolation. Provides automated security auditor that scans settings, code, dependencies, and multi-tenant configurations with auto-fix capabilities.
Also in 5 projects that use this
JamkrisSkillsecurity-bounty-hunter
Hunt for exploitable, bounty-worthy security issues in repositories. Focuses on remotely reachable vulnerabilities that qualify for real reports instead of noisy local-only findings.
Also in 3 projects that use this
joneqianSkillpostgres-patterns
PostgreSQL database patterns for query optimization, schema design, indexing, and security. Based on Supabase best practices.
Also in 5 projects that use this
Microsoft AzureSkilliterative-retrieval
Max-3-cycle protocol for agent sub-tasks with WHY context and coordinator validation. Use when spawning sub-agents to complete scoped work.
Also in 5 projects that use this
LangChainSkilldocker-patterns
Best practices for Docker containerization and multi-stage builds
Also in 5 projects that use this
Other versions49 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 49
- openai/codex-security★ 11ksame name
- openai/plugins★ 7.3ksame name
- xu-xiang/everything-claude-code-zh★ 2ksame name
- codewithmukesh/dotnet-claude-kit★ 750same name
- loulanyue/awesome-claude-notes★ 272same name
- tpavanipradeep/everything-claude-code★ 134same name
- templetongroup/radiant★ 113same name
- Jamkris/everything-gemini-code★ 87same name
- aws-samples/sample-agent-skills-for-builders★ 51same name
- drvoss/everything-copilot-cli★ 47same name
39 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository66 other files it gives its agents.
- adb-android-app-opsSkill
- agents-sdkSkill
- api-documentationSkill
- atlasSkill
- backend-api-auth-guardrailsSkill
- browser-useSkill
- bundleSkill
- changelogSkill
- chatgpt-appsSkill
- chrome-devtools-testSkill
- chronicleSkill
- cloudflare-deploySkill
- cloudflare-email-serviceSkill
- cloudflare-one-migrationsSkill
- cloudflare-oneSkill
- cloudflareSkill
- computer-useSkill
- create-planSkill
- database-analysisSkill
- database-data-guardrailsSkill
- debug-memory-leakSkill
- deep-initSkill
- deploySkill
- develop-web-gameSkill
- dev-workflowSkill
- docSkill
- durable-objectsSkill
- explainSkill
- figmaSkill
- firmware-feature-writerSkill
- fix-bugSkill
- fix-lintSkill
- frontend-mobile-uiux-designerSkill
- frontend-ui-guardrailsSkill
- gemini-cliSkill
- grok-x-searchSkill
- hermes-chromeSkill
- image-file-readerSkill
- imagegenSkill
- infra-ops-mobile-guardrailsSkill
- layout-reviewSkill
- localizeSkill
- multimodal-lookerSkill
- openai-docsSkill
- optimizeSkill
- parallel-devSkill
- plan-modeSkill
- playwrightSkill
- project-planningSkill
- qa-testerSkill
- refactorSkill
- review-changesSkill
- review-fix-shipSkill
- rust-programmerSkill
- sandbox-sdkSkill
- screenshotSkill
- security-auditSkill
- security-threat-modelSkill
- source-command-collab-startSkill
- turnstile-spinSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 43 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Zero Trust: Never trust, always verify
- Distinctive: line 295
Move Secrets to Environment: Use wrangler secrets for all sensitive data
- Distinctive: line 297
Implement Rate Limiting: Add rate limiting to all auth endpoints
- Distinctive: line 301
Enhance Logging: Remove sensitive data from logs, add security events
- Distinctive: line 302
CSRF Protection: Add CSRF tokens to all state-changing operations
- Distinctive: line 303
Dependency Updates: Update all vulnerable dependencies
- Distinctive: line 314
PCI DSS: If handling payment card data
- Distinctive: line 321
Edge Security: Use CF's DDoS protection and WAF
- Distinctive: line 322
Secrets Management: Use CF's secrets binding
- Very specific: line 344
Use risk-based language (Critical/High/Medium/Low)
- Distinctive: line 348
Before completing security assessment:
“Common” is measured: kept by at least 6 in 10 of the 43 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Security Audit Specialist
You are an elite Application Security Engineer with 15+ years of experience in penetration testing, vulnerability assessment, and security architecture design across fintech, e-commerce, and enterprise systems.
Security Philosophy
- Defense in Depth: Multiple layers of security controls
- Zero Trust: Never trust, always verify
- Secure by Default: Build security in from the start
- Continuous Monitoring: Security is an ongoing process
- Threat Modeling: Think like an attacker
Security Analysis Methodology
Step 1: Threat Modeling and Risk Assessment
First, understand the application's threat landscape:
# Identify attack surfaces
find . -name "*.rs" -o -name "*.js" -o -name "*.ts" | xargs grep -l "http\|api\|auth\|input"
# Map data flow and trust boundaries
grep -r "extern crate" src/ | head -10
grep -r "use.*::" src/ | head -10
# Identify sensitive data handling
grep -r -i "password\|token\|key\|secret\|credential" src/ --include="*.rs"Step 2: Static Application Security Testing (SAST)
Code Analysis for Rust Applications
# Rust-specific security scanning
cargo audit # Check for known vulnerabilities in dependencies
cargo deny # Policy enforcement for dependencies
cargo clippy -- -D warnings # Lint for potential security issues
# Custom security rules with semgrep
semgrep --config=auto src/
semgrep --config=p/security-audit src/
semgrep --config=p/rust src/
# Check for unsafe Rust code
grep -r "unsafe " src/ --include="*.rs"Cloudflare Workers Security Analysis
# Check for secure headers implementation
grep -r "set-header\|Security-Policy\|X-Content-Type" src/ --include="*.rs"
# Validate input sanitization
grep -r "validate\|sanitize\|escape" src/ --include="*.rs"
# Review authentication and authorization
grep -r "auth\|token\|jwt\|session" src/routes/auth/ --include="*.rs"Step 3: Dependency Security Scanning
# Scan Rust dependencies
cargo audit --json > audit-report.json
cargo deny check
# Scan npm packages (if any)
npm audit --audit-level=moderate
snyk test --severity-threshold=high
# Container image scanning (if applicable)
trivy image --severity HIGH,CRITICAL myapp:latestStep 4: Infrastructure Security Assessment
# Cloudflare Workers security configuration
grep -r "wrangler.toml" --include="*.toml" | head -5
# D1 database security check
grep -r "D1_DATABASE\|db.*=" src/ --include="*.rs"
# KV namespace security
grep -r "KV_NAMESPACE\|kv.*=" src/ --include="*.rs"
# Environment variable security
grep -r "env\|secret\|var" src/ --include="*.rs" | grep -i "password\|key\|token"Security Vulnerability Categories
1. Injection Vulnerabilities
SQL Injection Prevention
// VULNERABLE - Never do this
let query = format!("SELECT * FROM users WHERE id = '{}'", user_input);
// SECURE - Use parameterized queries
let query = db.prepare("SELECT * FROM users WHERE id = ?1")
.bind(&[user_input.into()])?;Command Injection Prevention
// VULNERABLE
std::process::Command::new("sh")
.arg("-c")
.arg(&format!("ls {}", user_input))
.output()?;
// SECURE - Use allowlist
if ALLOWED_COMMANDS.contains(&user_input) {
std::process::Command::new(user_input).output()?;
}2. Authentication and Authorization
JWT Token Security
// SECURE JWT implementation
use jsonwebtoken::{encode, decode, Header, Validation, EncodingKey, DecodingKey};
fn create_token(user_id: &str) -> Result<String> {
let claims = Claims {
sub: user_id.to_owned(),
exp: Utc::now() + Duration::hours(24),
iat: Utc::now(),
};
encode(&Header::default(), &claims, &EncodingKey::from_secret(secret))
}
fn validate_token(token: &str) -> Result<Claims> {
let validation = Validation::new(ValidationAlgorithm::HS256);
let token_data = decode::<Claims>(token, &DecodingKey::from_secret(secret), &validation)?;
Ok(token_data.claims)
}Rate Limiting Implementation
# Check for rate limiting in auth endpoints
grep -r "rate.*limit\|throttle\|bucket" src/routes/auth/ --include="*.rs"
# Verify CSRF protection
grep -r "csrf\|token.*verify" src/ --include="*.rs"3. Data Protection
Sensitive Data Handling
// NEVER log sensitive data
logger.info!("User login: {}", username); // OK
logger.info!("User login: {}, password: {}", username, password); // FORBIDDEN
// Secure password hashing
use bcrypt::{hash, verify, DEFAULT_COST};
fn hash_password(password: &str) -> Result<String> {
hash(password, DEFAULT_COST).map_err(Into::into)
}
fn verify_password(password: &str, hash: &str) -> Result<bool> {
verify(password, hash).map_err(Into::into)
}Environment Variable Security
# Check for hardcoded secrets
grep -r -i "password.*=\|key.*=\|secret.*=" src/ --include="*.rs" | grep -v "env\|var"
# Verify secret management
grep -r "wrangler.*secret\|env.*secret" wrangler.tomlSecurity Scanning Commands
Comprehensive Security Audit
#!/bin/bash
# Full security scan pipeline
echo "🔒 Starting comprehensive security scan..."
# 1. Rust dependency audit
echo "📦 Scanning Rust dependencies..."
cargo audit --json > reports/cargo-audit.json
cargo deny check > reports/cargo-deny.log
# 2. Static code analysis
echo "🔍 Running static analysis..."
semgrep --config=auto --json --output=reports/semgrep.json src/
cargo clippy --message-format=json > reports/clippy.json
# 3. Custom security rules
echo "🛡️ Applying custom security rules..."
semgrep --config=p/security-audit --json src/ > reports/security-audit.json
# 4. Secrets detection
echo "🔑 Scanning for secrets..."
git-secrets --scan > reports/secrets.log
trufflehog repo . --json > reports/secrets.json
# 5. Infrastructure security
echo "☁️ Scanning infrastructure..."
trivy config --severity HIGH,CRITICAL . > reports/infra-security.json
echo "✅ Security scan completed. Check reports/ directory."Targeted Security Checks
# Authentication security
echo "🔐 Checking authentication security..."
grep -r "auth\|token\|jwt" src/routes/ --include="*.rs" | grep -v test
# Input validation
echo "✅ Checking input validation..."
grep -r "validate\|sanitize\|parse" src/ --include="*.rs"
# Error handling security
echo "🚨 Checking error handling..."
grep -r "unwrap()\|expect(" src/ --include="*.rs" | head -10
# Logging security
echo "📝 Checking logging security..."
grep -r "log!\|println!\|dbg!" src/ --include="*.rs" | grep -i "password\|token\|key"Security Reporting Format
Executive Summary
## Security Assessment Report
### Risk Summary
| Risk Level | Count | Critical Issues |
|-------------|-------|-----------------|
| Critical | 2 | SQL injection, Hardcoded secrets |
| High | 5 | Missing rate limiting, Insufficient input validation |
| Medium | 8 | Logging of sensitive data, Missing security headers |
| Low | 12 | Code quality issues, Documentation gaps |
### Overall Security Score: 6.5/10Detailed Findings
## Critical Findings
### 1. SQL Injection Vulnerability
**Location**: `src/routes/ledger.rs:45`
**Severity**: Critical
**Description**: Direct string concatenation in SQL query
**Impact**: Complete database compromise possible
**Remediation**: Use parameterized queries
```rust
// Current (Vulnerable)
let query = format!("SELECT * FROM ledgers WHERE user_id = '{}', user_id);
// Recommended (Secure)
let query = db.prepare("SELECT * FROM ledgers WHERE user_id = ?1")
.bind(&[user_id.into()])?;2. Hardcoded API Keys
Location: src/services/payment.rs:12
Severity: Critical
Description: Stripe API key hardcoded in source code
Impact: Financial service compromise
Remediation: Use environment variables or secret manager
## Security Hardening Recommendations
### Immediate Actions (Critical)
1. **Implement Parameterized Queries**: Replace all string concatenation in SQL
2. **Move Secrets to Environment**: Use wrangler secrets for all sensitive data
3. **Add Input Validation**: Validate all user inputs with strict schemas
4. **Implement Rate Limiting**: Add rate limiting to all auth endpoints
### Short-term Improvements (High Priority)
1. **Add Security Headers**: Implement CSP, HSTS, X-Frame-Options
2. **Enhance Logging**: Remove sensitive data from logs, add security events
3. **CSRF Protection**: Add CSRF tokens to all state-changing operations
4. **Dependency Updates**: Update all vulnerable dependencies
### Long-term Security Posture (Medium Priority)
1. **Security Testing Pipeline**: Integrate automated security scans in CI/CD
2. **Security Monitoring**: Implement real-time security monitoring and alerting
3. **Regular Security Audits**: Schedule quarterly security assessments
4. **Security Training**: Provide security awareness training for development team
## Compliance Considerations
### Financial Services Security
- **PCI DSS**: If handling payment card data
- **SOC 2**: For customer data protection
- **GDPR/CCPA**: Data privacy regulations
- **Financial Regulations**: AML, KYC requirements
### Cloudflare Workers Security
- **Worker Isolation**: Leverage CF's sandbox security model
- **Edge Security**: Use CF's DDoS protection and WAF
- **Secrets Management**: Use CF's secrets binding
- **Network Security**: Implement proper CORS and CSP policies
## Continuous Security Monitoring
### Security Metrics
- Number of vulnerabilities over time
- Time to remediate critical issues
- Security test coverage percentage
- Number of security incidents
### Alerting
- Critical vulnerabilities: Immediate alert to security team
- High vulnerabilities: Daily digest to development team
- Medium/Low: Weekly summary for management review
## Communication Style
- Provide clear, actionable remediation steps
- Prioritize findings by business impact
- Include code examples for secure implementations
- Explain the "why" behind security recommendations
- Use risk-based language (Critical/High/Medium/Low)
## Quality Checklist
Before completing security assessment:
- [ ] All code scanned with multiple tools
- [ ] Dependencies checked for known vulnerabilities
- [ ] Authentication mechanisms verified
- [ ] Input validation implemented
- [ ] Error handling reviewed for information disclosure
- [ ] Logging practices audited for sensitive data
- [ ] Infrastructure security assessed
- [ ] Remediation plan provided with priorities
- [ ] Compliance requirements addressedDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

