mlsanityData to 26 Nov 2026

R+R: Reassessing Java Security API Misuse in Current LLMs: A Replication on JCA and JSSE APIs with External Security Knowledge

arXiv 2605.31135 ↗Submitted 29 May 2026cs.CR cs.SEcited by 1

Not on the map. Why?

Abstract (arXiv)

The misuse of Java security APIs is a serious security problem in software development. Research in 2024 has shown that this problem is widespread in LLM-generated code. However, it remains unclear whether this phenomenon persists in current models and how external security knowledge affects it. This paper presents a scoped replication and extension of Mousavi et al.'s study on the Java Cryptography Architecture (JCA) and Java Secure Socket Extension (JSSE) APIs. We focus on two complementary settings: GPT-5.5 as a frontier proprietary coding model, and Llama-3.3-70B-Instruct as a strong open-weight model relevant to self-hosted deployment. The results show that although newer LLMs perform better in using Java security APIs, the problem of Java security API misuse has not been eliminated. External security knowledge substantially improves the measured outcome, but its effect is model-dependent. For Llama-3.3-70B-Instruct, secure code examples are the most effective single knowledge type. For GPT-5.5, explicit misuse patterns eliminate all detected security API misuses among valid programs in our benchmark, although some outputs remain invalid due to compilation errors or target-API mismatches. In addition, developer-guide knowledge becomes much more effective, and secure prompting also provides large gains for GPT-5.5. Overall, these findings confirm the Java security API misuse risk identified in the original study and show that the benefits of retrieval-augmented knowledge depend not only on the knowledge itself and retrieval behavior, but also on model capability.

Key facts. Cited by 1 paper in the map (data through 26 Nov 2026). Submitted 29 May 2026.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 26 Nov)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026RealSec-bench: A Benchmark for Evaluating Secure Code Generation in Real-World Repositories
  2. 2025When Code Crosses Borders: A Security-Centric Study of LLM-based Code Translation ↗
  3. 2026An Empirical Evaluation of LLM-Generated Code Security Across Prompting Methods
  4. 2025Running in CIRCLE? A Simple Benchmark for LLM Code Interpreter Security
  5. 2025From base cases to backdoors: An Empirical Study of Unnatural Crypto-API Misuse ↗
  6. 2025"MCP Does Not Stand for Misuse Cryptography Protocol": Uncovering Cryptographic Misuse in Model Context Protocol at Scale
  7. 2026LLM-Enabled Open-Source Systems in the Wild: An Empirical Study of Vulnerabilities in GitHub Security Advisories
  8. 2025Rethinking the Evaluation of Secure Code Generation