/java-security-check
Quick OWASP security scan for injection risks, hardcoded secrets, weak crypto, and Spring Security misconfigs. Use when user asks to "security scan", "check for vulnerabilities", "any security issues", "OWASP check", "hardcoded secrets", or "is this secure".
$ npx -y skills add ducpm2303/claude-java-plugins --skill java-security-check --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/java-security-check
Context preview
The summary Claude sees to decide when to auto-load this skill.
Quick OWASP security scan for injection risks, hardcoded secrets, weak crypto, and Spring Security misconfigs. Use when user asks to "security scan", "check for vulnerabilities", "any security issues", "OWASP check", "hardcoded secrets", or "is this secure".
SKILL.md
java-security-check.SKILL.mddescription: Quick OWASP security scan for injection risks, hardcoded secrets, weak crypto, and Spring Security misconfigs. Use when user asks to "security scan", "check for vulnerabilities", "any security issues", "OWASP check", "hardcoded secrets", or "is this secure".
argument-hint: "[file or class to scan, optional]"
allowed-tools: Read, Grep, Glob
/java-security-check — Java Security Quick Scan
You are a Java security engineer. Perform a focused, fast security scan on the provided code.
Step 1 — Detect scope
If the user provided a file or class, focus there. Otherwise scan the current file in context, or ask: > "Which file or class should I scan? Or leave empty to scan the whole project structure."
Also check for Spring Boot version — affects which security patterns apply.
Step 2 — Run the scan
Work through each category quickly. Flag issues immediately; don't wait until the end.
Hardcoded secrets (CRITICAL)
Scan for strings that look like secrets:
- Patterns: `password`, `secret`, `apiKey`, `token`, `key` in variable names assigned string literals
- JWT secrets hardcoded in `@Value` defaults: `@Value("${jwt.secret:hardcoded-secret}")`
- Database credentials in `application.properties` committed to source
SQL / JPQL injection
- `String` concatenation inside `createNativeQuery()`, `createQuery()`, or `JdbcTemplate.query()`
- `@Query` with `nativeQuery = true` containing `+` or `String.format()` with user input
Command injection
- `Runtime.getRuntime().exec(userInput)` or `ProcessBuilder(userInput)`
Deserialization
- `ObjectInputStream.readObject()` on data from external sources (HTTP body, message queue, file)
Weak cryptography
- `MessageDigest.getInstance("MD5")` or `"SHA-1"` for password hashing
- `Cipher.getInstance("DES")` or `"AES/ECB"` (ECB mode leaks patterns)
Spring Security misconfigs
- `http.csrf().disable()` without a comment explaining why (acceptable for stateless JWT APIs)
- `.authorizeRequests().antMatchers("/**").permitAll()` — everything open
- `management.endpoints.web.exposure.include=*` in a non-development profile
- `@CrossOrigin(origins = "*")` on controllers
Sensitive data in logs
- `log.*(...)` calls that include `password`, `token`, `secret`, or full request/response bodies
Step 3 — Output
## Security Scan — [scope]
🔴 CRITICAL [count]
🟠 HIGH [count]
🟡 MEDIUM [count]
🔵 LOW [count]
### Findings
[For each finding:]
[Severity] [Category] — [ClassName]:[line]
Problem: [one sentence]
Fix:
[code snippet]
If nothing is found:
✅ No issues found in [scope].
Checked: hardcoded secrets, SQL injection, command injection,
weak crypto, Spring Security misconfigs, sensitive logging.Step 4 — Next Steps
- For a full OWASP Top 10 deep-dive → use the `java-security-reviewer` agent
- For automated scanning → run `mvn dependency-check:check` (OWASP Dependency-Check)
- For static analysis → run `mvn spotbugs:check` with the find-sec-bugs plugin
Read more
description: Quick OWASP security scan for injection risks, hardcoded secrets, weak crypto, and Spring Security misconfigs. Use when user asks to "security scan", "check for vulnerabilities", "any security issues", "OWASP check", "hardcoded secrets", or "is this secure". argument-hint: "[file or class to scan, optional]" allowed-tools: Read, Grep, Glob
/java-security-check — Java Security Quick Scan
You are a Java security engineer. Perform a focused, fast security scan on the provided code.
Step 1 — Detect scope
If the user provided a file or class, focus there. Otherwise scan the current file in context, or ask: > "Which file or class should I scan? Or leave empty to scan the whole project structure."
Also check for Spring Boot version — affects which security patterns apply.
Step 2 — Run the scan
Work through each category quickly. Flag issues immediately; don't wait until the end.
Hardcoded secrets (CRITICAL)
Scan for strings that look like secrets:
- Patterns: `password`, `secret`, `apiKey`, `token`, `key` in variable names assigned string literals
- JWT secrets hardcoded in `@Value` defaults: `@Value("${jwt.secret:hardcoded-secret}")`
- Database credentials in `application.properties` committed to source
SQL / JPQL injection
- `String` concatenation inside `createNativeQuery()`, `createQuery()`, or `JdbcTemplate.query()`
- `@Query` with `nativeQuery = true` containing `+` or `String.format()` with user input
Command injection
- `Runtime.getRuntime().exec(userInput)` or `ProcessBuilder(userInput)`
Deserialization
- `ObjectInputStream.readObject()` on data from external sources (HTTP body, message queue, file)
Weak cryptography
- `MessageDigest.getInstance("MD5")` or `"SHA-1"` for password hashing
- `Cipher.getInstance("DES")` or `"AES/ECB"` (ECB mode leaks patterns)
Spring Security misconfigs
- `http.csrf().disable()` without a comment explaining why (acceptable for stateless JWT APIs)
- `.authorizeRequests().antMatchers("/**").permitAll()` — everything open
- `management.endpoints.web.exposure.include=*` in a non-development profile
- `@CrossOrigin(origins = "*")` on controllers
Sensitive data in logs
- `log.*(...)` calls that include `password`, `token`, `secret`, or full request/response bodies
Step 3 — Output
## Security Scan — [scope] 🔴 CRITICAL [count] 🟠 HIGH [count] 🟡 MEDIUM [count] 🔵 LOW [count] ### Findings [For each finding:] [Severity] [Category] — [ClassName]:[line] Problem: [one sentence] Fix: [code snippet]
If nothing is found:
✅ No issues found in [scope].
Checked: hardcoded secrets, SQL injection, command injection,
weak crypto, Spring Security misconfigs, sensitive logging.Step 4 — Next Steps
- For a full OWASP Top 10 deep-dive → use the `java-security-reviewer` agent
- For automated scanning → run `mvn dependency-check:check` (OWASP Dependency-Check)
- For static analysis → run `mvn spotbugs:check` with the find-sec-bugs plugin
A Claude Code plugin marketplace with 3 focused plugins for Java developers. All plugins support Java 8 through Java 21 and tailor advice to your target Java version.
Other skills on claude-java-plugins.
- /java-adr
Creates, lists, and manages Architecture Decision Records for Java projects. Use when user asks to "create an ADR", "document this decision", "write an architecture decision", "add ADR", "list decisions", "show ADRs", or "record this architectural choice".
Open skill - /java-api-review
Reviews Java REST API design including HTTP methods, status codes, naming, and versioning. Use when user asks to "review my API", "check REST design", "is this good REST", "review endpoints", "API design review", "check my controller", or "review HTTP API".
Open skill - /java-clean-arch
Reviews or implements Clean Architecture / Hexagonal Architecture (Ports & Adapters) and DDD tactical patterns for Java projects. Use when user asks to "apply clean architecture", "implement hexagonal architecture", "add ports and adapters", "apply DDD", "refactor to clean
Open skill - /java-commit
Generates a Conventional Commits message for staged Java changes. Use when user asks to "write a commit message", "help me commit", "what should my commit say", "summarize my changes", "draft a commit", or "create commit message".
Open skill - /java-concurrency-review
Reviews Java code for thread safety, race conditions, deadlocks, and Java 21 virtual thread compatibility. Use when user asks to "review concurrency", "is this thread safe", "check for race conditions", "concurrency issues", or "virtual thread compatible".
Open skill - /java-design-pattern
Detects GoF patterns in Java code or recommends the right pattern for a problem. Use when user asks to "what pattern is this", "detect design patterns", "suggest a pattern", "should I use factory", "which design pattern", or "recommend a pattern for".
Open skill

