一键导入
backend-security-scan
Security validation for Java/TEJ/Spring backend code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Security validation for Java/TEJ/Spring backend code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate Sprint Stories from Master Story + sprint scope — ADO-ready PRD lift, UI/Figma, non-redundant sections
Generate Master Stories (feature-level) from PRD — for Sprint Stories use sprint-story-generator; for tech tasks use tech-task-generator
Understands natural English language queries and converts them to SDLC commands. Supports hybrid pattern matching + AI understanding. Asks for ADO work item if missing, shows non-closed items for quick selection. Works with any stage, any role.
One-command setup for AI-SDLC IDE Plugin. Installs dependencies, creates env, bootstraps .sdlc/, wires Claude Code commands, Cursor MCP, and validates everything.
Backend developer skill for Java 17, TEJ, RestExpress, Kafka, Gradle, PostgreSQL
Executive reporting - delegates to orchestrator/reporting/ for dashboards
| name | backend-security-scan |
| description | Security validation for Java/TEJ/Spring backend code |
| model | sonnet-4-6 |
| token_budget | {"input":6000,"output":2000} |
Performs comprehensive security analysis of Java/TEJ/Spring backend code to identify vulnerabilities, credential leaks, authentication gaps, and compliance issues.
Shared reference: security-scan-dimensions-reference.md — atomic split with secrets-detector and unified P0–P3 rubric.
These findings block deployment:
Scan locations:
"SELECT * FROM users WHERE id = " + userIdDetection patterns:
Prevents unauthorized access:
Check patterns:
Check patterns:
Prevents invalid/malicious data entry:
Detection:
Quality and maintainability issues:
Patterns:
log.debug("User logged in: " + username + " password: " + password)catch(Exception e) { return new ResponseEntity(e.getMessage()); }response.toString() where response contains sensitive dataSecret Keywords (always investigate):
SQL Patterns (check for injection):
String sql = "SELECT... followed by concatenation.createNativeQuery(" with concatenation@Query with "... WHERE ... = \" + variableAuth Patterns (verify protection):
@RequestMapping, @GetMapping, @PostMapping without @Secured or @PreAuthorize/admin/, /api/admin, /api/user/{id} endpointspermitAll(), permitAll, @CrossOriginValidation Patterns (verify constraints):
@Valid# Backend Security Scan Report
## P0: Critical (Must Fix Before Deployment)
### [Finding ID]: [Title]
- **File**: src/main/java/com/example/UserService.java:45
- **Severity**: P0 - Critical
- **Category**: Secrets Detection
- **Issue**: Hardcoded database password found
- **Code**:
```java
String password = "admin123";
@Value("${app.database.password}")
private String password;
...
...
...
## Implementation Guidance
### For security scanning:
1. Request backend codebase files (src/main/java, build files)
2. Identify all Java classes, properties, and configurations
3. Search each file against all security patterns
4. Document each finding with context, risk, and remediation
5. Prioritize by severity
### For authentication review:
- List all public endpoints (those without @Secured or @PreAuthorize)
- Verify role-based access is correct
- Check CORS and actuator exposure
- Document missing protections
### For dependency vulnerability check:
- Request build.gradle or pom.xml
- Identify known CVEs in dependencies
- Recommend version upgrades
- Document exposure if not upgraded
## Related Skills
- [backend-performance-profiling](../performance-profiling/SKILL.md) - Performance analysis
- [qa-orchestrator](../../qa/qa-orchestrator.md) - Full QA coordination