Pith. sign in

REVIEW 2 cited by

Inducing Vulnerable Code Generation in LLM Coding Assistants

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2504.15867 v1 pith:OQCEHH2Q submitted 2025-04-22 cs.SE

classification cs.SE
keywords attackcodellmsreal-worldassistantscodingeffectiveexternal
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Due to insufficient domain knowledge, LLM coding assistants often reference related solutions from the Internet to address programming problems. However, incorporating external information into LLMs' code generation process introduces new security risks. In this paper, we reveal a real-world threat, named HACKODE, where attackers exploit referenced external information to embed attack sequences, causing LLMs to produce code with vulnerabilities such as buffer overflows and incomplete validations. We designed a prototype of the attack, which generates effective attack sequences for potential diverse inputs with various user queries and prompt templates. Through the evaluation on two general LLMs and two code LLMs, we demonstrate that the attack is effective, achieving an 84.29% success rate. Additionally, on a real-world application, HACKODE achieves 75.92% ASR, demonstrating its real-world impact.

Discussion (0). Sign in to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. WildCode Revisited: A Comprehensive Empirical Study on the Security of LLM-Generated Code

    cs.CR 2025-12 conditional novelty 6.0 of 10

    Using real ChatGPT conversation logs, code generated by the model is frequently insecure and users rarely request security-related code.

  2. Scam2Prompt: A Scalable Framework for Auditing Malicious Scam Endpoints in Production LLMs

    cs.CR 2025-09 unverdicted novelty 6.0 of 10

    Scam2Prompt is a framework that converts scam-site intents into developer-style prompts and measures how often production LLMs generate malicious code, finding rates from 4.24% to 47.3% across eleven models and showin...

Pith tools