一键导入
audit-security
Quick security audit checking for hardcoded secrets, SSRF vectors, injection points, dependency issues, and missing security headers
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Quick security audit checking for hardcoded secrets, SSRF vectors, injection points, dependency issues, and missing security headers
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Answer questions about kite spots, weather forecasts, and live wind conditions from varun.surf by fetching its public LLM-friendly Markdown endpoints (llms.txt). Use when the user asks about a specific kite spot, current wind conditions, hourly/daily forecasts, or wants to compare spots/countries covered by varun.surf.
Stage and commit current changes with a well-crafted commit message following project conventions
Explain data flows, features, and code paths in the varun.surf application with visual diagrams and step-by-step breakdowns
Verify architecture health including layer violations, circular dependencies, package structure, and design pattern compliance
Find concurrency issues including race conditions, deadlocks, unsafe shared state, and improper synchronization
Analyze Gradle dependencies for outdated versions, known CVEs, unnecessary transitive dependencies, and version conflicts
基于 SOC 职业分类
| name | audit-security |
| description | Quick security audit checking for hardcoded secrets, SSRF vectors, injection points, dependency issues, and missing security headers |
Perform a focused security audit on the codebase, checking for common vulnerabilities and security misconfigurations.
Run through each security check systematically and report all findings.
Search for potential secrets in the codebase:
# Patterns to search for
API_KEY, api_key, apiKey, ApiKey
PASSWORD, password, Password, passwd
SECRET, secret, Secret
TOKEN, token, Token
CREDENTIAL, credential, Credential
PRIVATE_KEY, private_key, privateKey
AUTH, auth (in assignment context)
Bearer, Basic (hardcoded auth headers)
Using Grep tool, search for these patterns in:
src/main/java/**/*.javasrc/main/resources/*.ymlsrc/main/resources/*.properties*.env* files (except .env.example)docker-compose*.ymlExclude:
src/test/**)${...}, System.getenv())Identify potential Server-Side Request Forgery vulnerabilities:
Search for:
new URL(), URI.create(), HttpRequest.newBuilder()Check:
In this project, examine:
GoogleMapsService.java - URL unshorteningForecastService.java - Windguru API callsSearch for potential injection vulnerabilities:
Command Injection:
Runtime.exec(), ProcessBuilder
String concatenation with external input
SQL Injection (if applicable):
String query = "SELECT * FROM " + userInput
Statement.execute() with concatenated strings
Log Injection:
log.info("User: " + userInput) // without sanitization
XSS in responses:
Returning user input in HTML without encoding
Check for:
Analyze build.gradle for:
Version Issues:
Key dependencies to check:
spring-boot-starter-* (current: 3.5.x)
okhttp (current: 4.12.x)
gson
spring-ai-*
playwright (for E2E)
Recommend:
./gradlew dependencyUpdates if availableCheck for missing security headers in responses:
Required headers:
X-Content-Type-Options: nosniffX-Frame-Options: DENY or SAMEORIGINX-XSS-Protection: 1; mode=blockStrict-Transport-Security (HSTS)Content-Security-PolicyReferrer-PolicyCheck locations:
nginx.conf (if applicable)NettyConfig.java or similarAuthentication/Authorization:
Sensitive Data Exposure:
CORS Configuration:
*)?## Security Audit Report
### Summary
| Category | Issues Found | Severity |
|----------|--------------|----------|
| Hardcoded Secrets | X | Critical/None |
| SSRF Vectors | X | High/Medium/None |
| Injection Points | X | Critical/None |
| Dependencies | X | High/Medium/Low |
| Security Headers | X | Medium/None |
### Critical Issues (Immediate Action Required)
#### [Issue Title]
**File**: `path/to/file.java:line`
**Type**: [Hardcoded Secret / Injection / etc.]
**Risk**: [What could happen if exploited]
**Evidence**:
```java
// problematic code
Remediation: [How to fix]
...
...
## Execution Steps
1. **Secrets scan**: Use `Grep` to search for secret patterns across the codebase
2. **SSRF analysis**: Read HTTP client code and URL handling logic
3. **Injection check**: Search for string concatenation patterns in sensitive contexts
4. **Dependency review**: Read `build.gradle` and check versions
5. **Headers check**: Examine security configuration and filters
6. **Compile report**: Organize findings by severity
## Notes
- Focus on actionable findings, not theoretical risks
- Distinguish between actual secrets and configuration placeholders
- Consider the context (e.g., test data vs production code)
- For dependencies, note that patch versions usually don't have CVEs
- This is a quick audit; recommend periodic deep security reviews