Metraipolis › archive › dc_9e895af53d41

Detecting Contaminated Code-Generation Prompt Batches via Influence Functions — arXiv:2608.14303

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.14303
License (as archived)
CC0-1.0
Archived
2026-10-19T02:30:38.148Z
SHA-256 of the archived text
6d119af0b3d2a5d97a67bf5ee2070b7bfbb4f387a5543a4f4c5ff19812ee2bc5
Stable URL of this page
https://metraipolis.com/documento/dc_9e895af53d41

How to cite

Detecting Contaminated Code-Generation Prompt Batches via Influence Functions — arXiv:2608.14303 — arXiv (en), https://arxiv.org/abs/2608.14303 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_9e895af53d41 (Metraipolis archive dc_9e895af53d41, sha256 6d119af0b3d2a5d97a67bf5ee2070b7bfbb4f387a5543a4f4c5ff19812ee2bc5)
BibTeX
@misc{dc9e895af53d41,
  title = {Detecting Contaminated Code-Generation Prompt Batches via Influence Functions — arXiv:2608.14303},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.14303},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_9e895af53d41; sha256 6d119af0b3d2a5d97a67bf5ee2070b7bfbb4f387a5543a4f4c5ff19812ee2bc5},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.14303. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Large language models (LLMs) are increasingly used for code generation, yet they remain vulnerable to prompts that elicit insecure implementations. Existing defenses typically rely on predefined threat models or known vulnerability patterns, limiting their effectiveness against novel attacks. We propose CodeSIFT, a threat-model-agnostic detection method that leverages influence functions to identify batches of prompts that induce anomalous model behavior. Rather than detecting specific vulnerabilities, CodeSIFT measures the parameter-space influence of generated code and uses a statistical test to determine whether a candidate prompt set deviates from a benign reference distribution. To evaluate our approach, we introduce two benchmark datasets covering a variety of vulnerabilities. We evaluate CodeSIFT on three open-weight code LLMs ranging from 3B to 7B parameters, achieving AUROC scores of up to 0.98 at moderate-to-high injection rates, while maintaining well-calibrated false positive rates and substantially outperforming static analysis baselines. These results suggest that influence-function-based detection is a promising direction for identifying malicious code-generation prompts without requiring prior knowledge of the underlying attack class.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-17 in cs.LG).
Categorie arXiv: Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2608.14303 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-19T02:26:17.802Z dalla pagina https://arxiv.org/catchup/cs.LG/2026-08-17?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).