Skip to content
Back to skills

Jvm Antipatterns

ASecurity

Forbidden JVM (Java/Kotlin) patterns — JDBC injection, insecure deserialization, weak random, trust-all TLS, Jackson misconfiguration.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 21, 2026
ai-agentsrustjavakotlinsql

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned October 21, 2026

npx -y skills add emgiezet/aisdlc --skill jvm-antipatterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jvm Antipatterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Jvm Antipatterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/emgiezet-jvm-antipatterns/badge)](https://www.skillsdirectory.com/skills/emgiezet-jvm-antipatterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: jvm-antipatterns
description: Forbidden JVM (Java/Kotlin) patterns — JDBC injection, insecure deserialization, weak random, trust-all TLS, Jackson misconfiguration.
paths: ["**/*.java","**/*.kt","**/*.kts"]
user-invocable: false
---

# JVM (Java / Kotlin) anti-patterns — do not write these

Checks run automatically after each edit. Findings reference the IDs below.

## Blockers
- AP-JVM-SEC-001 — Use `PreparedStatement` with `?` placeholders; never concatenate user data into SQL strings.
- AP-JVM-SEC-002 — Avoid `ObjectInputStream` on external data; use JSON/Protobuf or a deserialization filter.
- AP-JVM-SEC-003 — Use `ProcessBuilder(List.of("prog", arg1, arg2))` with separate args; never exec a string with user data.
- AP-JVM-SEC-004 — Use `SecureRandom` for tokens and session IDs; `java.util.Random` is for simulations only.
- AP-JVM-SEC-005 — Never implement a no-op TrustManager; use the default TrustManagerFactory with a valid KeyStore.
- AP-JVM-SEC-006 — Never call `enableDefaultTyping`; use a registered subtype safelist with `@JsonSubTypes`.

## Errors
- AP-JVM-PERF-001 — Use `JOIN FETCH` or an entity graph to eager-load associations; avoid lazy access in loops.
- AP-JVM-MAINT-001 — Catch the specific exception; log with context and rethrow or handle; never swallow silently.
- AP-JVM-MAINT-002 — Throw typed exceptions from library code; never call `System.exit` outside `main`.

Details for any ID: `reference/<ID>.md`

Files in this skill

  • SKILL.md1.4 KB
  • reference/AP-JVM-MAINT-001.md772 B
  • reference/AP-JVM-MAINT-002.md701 B
  • reference/AP-JVM-PERF-001.md716 B
  • reference/AP-JVM-SEC-001.md903 B
  • reference/AP-JVM-SEC-002.md865 B
  • reference/AP-JVM-SEC-003.md729 B
  • reference/AP-JVM-SEC-004.md751 B
  • reference/AP-JVM-SEC-005.md829 B
  • reference/AP-JVM-SEC-006.md767 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.