Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add makifbaysal/tasktrooper --skill jvm-security-pitfallsgit clone --depth 1 https://github.com/makifbaysal/tasktrooperWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/makifbaysal/tasktrooper/jvm-security-pitfalls)<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/jvm-security-pitfalls"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/jvm-security-pitfalls/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/jvm-security-pitfalls"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/jvm-security-pitfalls.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00061 | $0.01803 |
| Opus 5.5 | $0.00024 | $0.00721 |
| Sonnet 5.5 | $0.00012 | $0.00361 |
| Haiku 4.5 | $0.00006 | $0.00180 |
Grade A, and why
jvm-security-pitfalls scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
JVM Security Pitfalls (Java, Kotlin — Spring, Quarkus)
Overview
On the JVM the dangerous code is often configuration: a matcher order, a missing @EnableMethodSecurity, a Jackson typing setting, an Actuator exposure list. Read config and annotation diffs with the same care as handler code.
1. Spring Security Configuration (CWE-285, CWE-863)
requestMatchers(...)rules are evaluated in order; a broadpermitAll()placed above a narrowerhasRole("ADMIN")wins.- A security matcher and the MVC mapping must cover the same paths — check trailing slashes, path variables and alternate mappings of the same controller.
@PreAuthorize/@Secured/@RolesAlloweddo nothing without method security enabled (@EnableMethodSecurity); a new annotated method in a module that never enables it is unprotected.csrf { disable() }/.csrf().disable()while sessions use cookies → CSRF on every state change.
// ❌ the admin rule is never reached for /api/admin/**
http.authorizeHttpRequests {
it.requestMatchers("/api/**").permitAll()
it.requestMatchers("/api/admin/**").hasRole("ADMIN")
}
// ✅ most specific first, deny by default
http.authorizeHttpRequests {
it.requestMatchers("/api/admin/**").hasRole("ADMIN")
it.requestMatchers("/api/public/**").permitAll()
it.anyRequest().authenticated()
}
Quarkus: a resource method without @RolesAllowed/@Authenticated where its siblings have one; @PermitAll added; quarkus.http.auth.permission.<name>.policy=permit widened to a broader paths=; quarkus.security.jaxrs.deny-unannotated-endpoints turned off.
2. Queries (CWE-89)
// ❌ JPQL injection
em.createQuery("SELECT u FROM User u WHERE u.email = '" + email + "'", User.class);
// ✅
em.createQuery("SELECT u FROM User u WHERE u.email = :email", User.class).setParameter("email", email);
Also: createNativeQuery with concatenation; JdbcTemplate.query("… " + x); @Query built with string concatenation in a custom repository; Spring Data JpaSort.unsafe(userInput) (plain Sort.by validates property names — unsafe does not); Panache find("name = '" + n + "'") instead of find("name", n) or find("name = ?1", n).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 123 lines · 61 tokens per session scan A 7c50ff50c107
jvm-security-pitfalls is a skill published in the GitHub repository makifbaysal/tasktrooper (113 stars, last pushed yesterday), licensed Apache-2.0. It adds 61 tokens to every session and 1,803 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-09.
Other skills, from other repositories
github-pr-workflow
Prepare a GitHub pull request from a feature branch — branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.
agent-code-review-swarm
Agent skill for code-review-swarm - invoke with $agent-code-review-swarm.
agent-swarm-pr
Agent skill for swarm-pr - invoke with $agent-swarm-pr.
agent-reviewer
Agent skill for reviewer - invoke with $agent-reviewer.
agent-code-analyzer
Agent skill for code-analyzer - invoke with $agent-code-analyzer.
agent-pr-manager
Agent skill for pr-manager - invoke with $agent-pr-manager.