agentsclimarketplace

Java security check

Skill ducpm2303/claude-java-plugins/plugins/java-quality/skills/java-security-check

Java developer toolkit for Claude Code — skills, agents, hooks, and coding standards for Java 8+ projects

Install
npx -y skills add ducpm2303/claude-java-plugins --skill java-security-check

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 17 stars17 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

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

3.0 KB, 653 tokens by cl100k_base, as published. Nobody here has run it

/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

Gives 0 of the 12 instructions most quality gates skills give in 653 tokens

Counted across 1,195 of the 2,094 authors here whose files we hold, read 2026-08-07

  • read the output and check the exit codein 54 of 1195, across 14 files
  • verify requirements using a line-by-line checklistin 53 of 1195, across 12 files
  • identify the verification command proving the claimin 51 of 1195, across 12 files
  • run the full verification commandin 50 of 1195, across 11 files
  • verify output confirms the claimin 49 of 1195, across 12 files
  • check version control diff after agent delegationin 46 of 1195, across 6 files
  • state claim with evidencein 44 of 1195, across 4 files
  • run the test suitein 33 of 1195, across 26 files
  • keep state in memory by defaultin 27 of 1195, across 6 files
  • make prototype runnable with one commandin 26 of 1195, across 5 files
  • produce a verification reportin 25 of 1195, across 14 files
  • detect the package manager from lockfilesin 24 of 1195, across 5 files

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.