Manuscript Offprint
arXiv:2610.40735RiskyPy: Toward Model-Calibrated Prompt Generation for Joint Security and Functionality Evaluation of LLM-Generated Code
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Zacharie Chenail-Larcher¹,* DANIELE LUNghi²,*
Melissa Tessa² QUENTIN STIÉVENART³
Jacques Klein² TEGAWENDÉ F. BISSYANDɲ
Florent Avellaneda³ NAOUEL MOHA¹
¹École de technologie supérieure, Montréal, Québec, Canada
²University of Luxembourg, Luxembourg, Luxembourg
³Université du Québec à Montréal, Montréal, Québec, Canada
*The first two authors contributed equally to this work and share first authorship.
Abstract—Evaluating approaches that improve the security of LLM code generation requires datasets that jointly assess security and functionality and remain adapted to the capabilities of the models being studied. However, existing benchmarks are costly to produce and are generally not calibrated to a chosen range of model capabilities. We introduce RiskyPy, an automated pipeline that generates security-oriented code-generation datasets calibrated to model proficiency using functionality and vulnerability canaries. We instantiate RiskyPy for Python using domains covering 18 CWEs from the 2025 CWE Top 25, producing 101 prompts. Experiments on Qwen3-4B and Seed-Coder-8B show that the generated tasks remain functionally accessible, with 57–72% of prompts yielding functional code, while only 5–10% of generations are free of Bandit findings, leaving room for joint evaluation of security and functionality of security improvement approaches.
Index Terms—Secure Code Generation, LLM Evaluation, Automated Benchmark Generation
I. INTRODUCTION
Large Language Models (LLMs) show strong aptitude in code generation [1]–[3]. Increasingly, they can handle complex tasks and produce functional code, i.e., code that completes the required task without errors. However, their implementations are not always secure and may include vulnerabilities [4]–[6]. To address this issue, it is essential to develop approaches to protect against vulnerabilities.
Evaluating these approaches requires benchmarks that jointly assess the security and functionality of generated code. Otherwise, an approach may improve security by breaking the implementation [7], [8]. Tasks where LLMs produce functional but insecure code are particularly useful, as they allow us to verify that approaches improve security while preserving functionality. Moreover, since such approaches are often evaluated across models of different strengths [9], [10], datasets should remain functionally accessible to weaker models while still exposing insecure implementations from stronger ones.
Creating such datasets remains difficult. Fixed benchmarks may eventually saturate [11] and producing new datasets is
costly. Writing tasks manually is time-consuming [12], [13], expanding expert-authored coding tasks still requires manual work [14], and mining repositories is limited by available vulnerabilities and risks data leakage [15], [16]. Furthermore, several datasets are derived from the same underlying coding tasks, potentially limiting their diversity [17], [18].
Existing dataset construction methods also rarely calibrate tasks to model capabilities, and use only frontier models to identify prompts (coding tasks expressed in natural language) that lead to vulnerable code [19] or validate the tasks [20]. To the best of our knowledge, none specifically selects tasks that weaker models can implement functionally while stronger models still tend toward insecure implementations. This is particularly relevant for research, as white-box approaches require open weights and larger models may be computationally inaccessible. For example, Qwen2.5 7B produces functional code for only about 5% of tasks in the subset of AutoBaxBench marked by the authors as Easy [20]. This highlights the need for an automated approach to generate security-oriented code generation datasets calibrated to a chosen range of model capabilities.
In this paper, we introduce RiskyPy, a configurable pipeline for automatically generating security-oriented code-generation benchmarks. RiskyPy (i) combines security-sensitive programming domains to generate realistic coding tasks without explicitly requesting insecure implementations, (ii) uses canary models to assess whether these tasks can be implemented functionally while eliciting potentially insecure code, and (iii) selects tasks based on these assessments to construct datasets tailored to a chosen range of model capabilities
As a proof of concept, we instantiate RiskyPy for single-file Python tasks, using programming domains covering 18 CWEs from the 2025 CWE Top 25 [21], and use Ministral 3B and GPT-4o-mini as canaries. This produces a dataset of 101 prompts designed for evaluating security-improvement approaches. We evaluate the dataset on Qwen3-4B and Seed-Coder-8B to assess its functional accessibility and ability to elicit insecure implementations.
In this paper, our contributions are fourfold:
-
RiskyPy, an automated pipeline for generating security-oriented code generation tasks calibrated to a chosen range of model capabilities.
-
A new dataset of 101 code tasks for joint security-functionality evaluation of code generation.
-
An evaluation of the generated dataset on two small code-generation models.
-
A manual validation study assessing prompt quality and the reliability of the functionality judge.
Several works automatically generate security-sensitive coding tasks for model alignment [24], [25] or adaptive redeaming [26]. Others construct evaluation datasets from vulnerable code [19], expand manually validated coding tasks [14], or generate tasks with functionality and security tests [27]. These approaches automate construction, but do not target a chosen range of model capabilities.
AutoBaxBuilder [20] is the closest existing work. It automatically generates backend tasks, functional tests, and exploits to construct AutoBaxBench. However, its difficulty levels reflect endpoint counts rather than model capabilities: Qwen2.5 7B produces functional code for only about 5% of Easy tasks. This limits its suitability for evaluating defenses on smaller models. RiskyPy instead combines risky domains in self-contained Python tasks and uses canary generations to target tasks that weaker models can solve.
III. THE RISKYPY PIPELINE
A. Design and Domain Selection
RiskyPy is an automated, reusable pipeline that combines multiple programming domains to generate diverse, realistic prompts likely to elicit vulnerable implementations, applying LLM-as-judge checks and canary generations to ensure prompts remain realistic, solvable, and risk-exposing. Changing domains, models, analyzers, or filtering criteria yields new datasets targeting other languages and vulnerability classes. For this prototype, we selected Python and derived 12 risky domains from the CWE Top 25 [28]: subprocess/shell execution, file I/O with user input, database access with dynamic queries, serialization, network requests, authentication and authorization, XML/config parsing, cryptography, HTML/template rendering, dynamic code evaluation, logging and error handling, and resource allocation. Each domain is
mapped to the Top 25 weaknesses that realistically affect Python code in that context (e.g., CWE-78 and CWE-77 for shell execution) without explicitly enforcing them. The full mapping is in the replication package [29].
B. Generation Pipeline
The automatic pipeline follows three main stages: (i) domain combination, (ii) per-combination prompt generation, and (iii) prompt deduplication. It builds all unique domain combinations, applies the prompt generation workflow to each, and removes duplicate or near-duplicate prompts.
-
Domain Combination: The pipeline takes the predefined list of risky domains as input and builds all unique combinations of one, two, and three domains. With 12 domains, this yields 298 unique combinations and, before filtering and deduplication, up to 298 generated prompts.
-
Prompt Generation: The per-combination workflow has four steps: (i) initial prompt generation, (ii) realism and consistency checking, (iii) functionality canary validation, and (iv) vulnerability canary validation. It uses LLM-as-judge mechanisms to ensure prompts remain realistic, coherent, and aligned with constraints, and canary generations to test if a prompt elicits expected behavior without explicitly forcing it.
Step 1: Initial prompt generation. Input: A domain combination. Output: An initial Python code generation prompt. Procedure: We infer deepseek-v4.1-flash-20260910 [30] (from here on DeepSeek) with low reasoning effort to generate a unique Python prompt involving the selected domains. The model produces a focused, single-file task without mentioning security or unsafe behavior.
Step 2: Realism and consistency check. Input: The initial Python code generation prompt. Output: A confirmed, potentially corrected Python code generation prompt. Procedure: We infer DeepSeek with low reasoning effort to judge whether the prompt is realistic and coherent as a single-file Python task, and whether it is mechanism-neutral, i.e., it may require a risky activity but does not prescribe, forbid, or imply the mechanism that implements it (e.g., a specific library or function). If rejected, the same model adjusts it using the judge's reason and re-judges, allowing up to three consecutive adjustments; prompts still rejected after the third are dropped.
Step 3: Functionality canary. Input: A coherent and realistic Python code generation prompt. Output: A validated, potentially simplified Python code generation prompt. Procedure: We use mistralai/minstral-3b-2512 [31] at temperature 0 as a small-model canary. DeepSeek evaluates the generated code for functionality with high reasoning effort. If non-functional, the prompt is simplified and retried up to three consecutive times; persistent failures are dropped. This step filters out prompts too difficult for small code-generation models.
Step 4: Vulnerability canary. Input: A prompt validated by the functionality canary. Output: A validated prompt and vulnerability findings. Procedure: We use gpt-4o-mini-2024-07-18 [32] at temperature 0 as a vulnerability canary. Code that does not parse causes the prompt to be dropped. We analyze
TABLE I
TARGETED REWRITES (RISKYPY) VS. GOAL-LESS REPHRASING (REPHRASE-ONLY) OVER 298 DOMAIN COMBINATIONS. Rewrite: COMBINATIONS WHOSE PROMPT REACHES THE DATASET / COMBINATIONS WHERE THE CHECK'S REWRITE WAS APPLIED. Dropped: COMBINATIONS DROPPED BY EACH CHECK OR BY THE GLOBAL REWRITE LIMIT; THE REMAINING 6 WERE REMOVED AS NEAR-DUPLICATES OR FAILED WITH AN API ERROR.
| Check | RiskyPy | Rephrase-only | ||
|---|---|---|---|---|
| Rewrite | Dropped | Rewrite | Dropped | |
| Quality | 15/70 | 1 | 2/64 | 26 |
| Functionality | 64/257 | 169 | 35/245 | 194 |
| Vulnerability | 4/28 | 12 | 0/10 | 10 |
| Global limit (9 rewrites) | - | 9 | - | 1 |
| Kept prompts (rate) | 101 (33.9%) | 61 (20.5%) | ||
| Cost / prompt (USD) | 0.050 | 0.070 | ||
the code with Bandit [33] and Semgrep [34]; if at least one vulnerability is found, the prompt is kept. Otherwise, DeepSeek reframes it to encourage risky implementation choices without explicit security indications, up to three consecutive times; if no vulnerability is still detected, the prompt is dropped.
Every rewrite (adjustment, simplification, or reframing) sends the prompt back to Step 2, so a kept prompt passes all checks in its final form, and both canary generations and the findings refer to that same prompt. A global limit of nine rewrites per combination bounds the process. Prompts that pass all four steps are added to the corpus. After the workflow is applied to every domain combination, we obtain a preliminary version of the dataset, before deduplication.
- Prompt Deduplication: To ensure that the final prompts are unique and varied, we remove duplicate and semantically near-duplicate prompts using semantic embeddings. We embed each accepted prompt with text-embedding-3-small [35], using 1536 dimensions, and compute cosine similarity between prompts. If two prompts have a cosine similarity above 0.8, the prompt from the later domain combination is removed.
C. Generated Dataset
Of the 298 combinations, 105 pass every check, 191 are dropped, and 2 fail with an API error. Removing 4 near-duplicates leaves 101 prompts. Of these, 32 pass without any rewrite, and only 4 require risky reframing. Each prompt is released with its domains, CWE mapping, rewrite history, both canary generations, and analyzer findings.
Four mapped weaknesses (CWE-78, -20, -89, -502) account for 61% of the findings, and most others are close relatives of mapped ones (e.g., CWE-611 in XML parsing, CWE-95 in dynamic evaluation, CWE-400 from network requests without timeouts). Logic-dependent weaknesses such as CWE-862 and CWE-352 never appear, likely because generic analyzer rules cannot detect them in a standalone script (Section V).
IV. PRELIMINARY EVIDENCE
a) Setup: We generate code for every RiskyPy prompt with two small open models that were not used during construction, Qwen3-4B-Instruct-2507 [36] and Seed-Coder-8B-Instruct [37], with greedy decoding. Each generation receives a functionality verdict from gpt-5.1-2025-11-13 (medium reasoning effort) [38] and two security verdicts from Bandit and Semgrep. Besides plain generation (Baseline), we evaluate two defenses: Bandit-Refine, a conditional defense that asks the model to repair its code only when Bandit reports findings, and Self-Feedback, where the model always reviews its own code for security problems and rewrites it. For comparison, we also run the Baseline on the 176 prompts whose last failed check is the functionality canary (the 169 of Table I plus 7 that hit the global rewrite limit there). Figure 1 reports all results with 95% Wilson intervals.
b) Flagged-but-functional code dominates: Both models produce functional code for the majority of RiskyPy prompts (57.4% and 72.3%), but rarely code without findings: only 9.9% and 5.0% of generations are Bandit-secure, and at most 21.8% are both functional and Semgrep-secure. Most generations (54.5% and 70.3%) are functional but Bandit-flagged, which is RiskyPy's desired behavior.
c) The filters select solvable, risk-inducing prompts: On the dropped prompts, functionality falls to 20.4% and 40.9%: the functionality canary removes prompts that are too hard for small models, even though the evaluated models differ from the canary. The kept prompts are also more risk-inducing, as Bandit-secure generations rise from 9.9% and 5.0% on RiskyPy to 29.6% and 27.3% on the dropped prompts. Broken code does not explain this gap: among functional generations only (hatched bars), Bandit-secure code is 5.2% and 2.7% on RiskyPy against 19.4% and 30.6% on the dropped prompts (for Qwen3 the intervals overlap, as only 36 of its generations on the dropped prompts are functional). Semgrep separates the two sets less clearly. The four prompts still clean after three reframings point in the same direction (75–100% Bandit-secure generations). Still, they are too few for the result to be significant, and we leave this confirmation to future work.
d) Defenses trade functionality for security: Measuring both verdicts on the same generations exposes each defense's cost. Bandit-Refine raises Bandit-secure code to 52.5% and 59.4%, but functionality roughly halves (29.7% and 37.6%). Since Bandit drives the repair, Semgrep provides an independent check and confirms the gain (79.2% and 83.2% Semgrep-secure, from 32.7% and 34.6%). The net effect is still positive: functional and Bandit-secure code grows from 3.0% and 2.0% to 17.8% and 25.7%. Self-Feedback improves security less and loses more functionality (14.8% and 22.8%), so its functional and Semgrep-secure rates fall below the Baseline (7.9% and 11.9% against 19.8% and 21.8%).
e) Targeted rewrites' effectiveness: To test whether targeted rewrites matter, we replace each rewrite with a goal-less rephrasing request. Rephrasing loses most at the quality check (26 drops against 1) and at the functionality check (194 against 169), where simplification keeps 64 of 257 prompts against 35 of 245. Overall, the rephrase-only pipeline keeps 61 prompts instead of 101, at a higher per-prompt cost (Table I), showing the usefulness of targeting rewriting.

Fig. 1. Generations (%) of Qwen3-4B and Seed-Coder-8B on the RiskyPy prompts with and without defenses and compared with the dropped prompts. Hatched bars: secure among the functional generations. Error bars: 95% Wilson intervals.
f) LLM-as-judge functional verdicts track human judgment: We conducted a small human study on 30 prompt-code pairs sampled from the six evaluation runs on RiskyPy (both models, three approaches each), half of which the judge deemed functional. Three independent reviewers with over six years of Python experience labeled them using the judge's functionality definition (Table II). We report inter-annotator agreement via mean pairwise Cohen's and Krippendorff's , and judge-human agreement via mean per-annotator and the between the judge and the majority vote.
The reviewers applied the definition with very different strictness, judging from 3 to 24 of the 30 pairs as not functional, so inter-reviewer agreement is low. Each reviewer agreed more with the judge than with the others, and the majority vote matches the judge on 26 of 29 pairs (). In all three disagreements, the judge rejected code the majority accepted despite minor deviations from the specification. The judge is thus a conservative but consistent oracle.
The same reviewers graded 30 RiskyPy prompts for quality (0-10): the mean is 8.78 (SD 1.06) and no prompt averages below 7.67, a range too narrow for chance-corrected agreement to be informative (). The study is small and limited to two models and one corpus (Section V).
V. FUTURE PLANS
We plan three steps, each addressing a current limitation. Calibration across capability ranges. We will re-run the pipeline with different canary pairs and evaluate stronger models, to verify that the generated datasets shift with the chosen capability range.
Independent security verdicts. Bandit and Semgrep both select and validate the prompts, so the corpus may be biased toward what these two analyzers detect. Additionally, static
TABLE II
AGREEMENT AMONG ANNOTATORS AND WITH THE GPT-5.1 FUNCTIONAL JUDGE (TOP), AND PROMPT QUALITY GRADES (BOTTOM). ONE ANNOTATOR SKIPPED ONE PAIR, SO COMPARISONS INVOLVING THEM USE ; THE MAJORITY VOTE EXCLUDES ONE TIE.
| Comparison (Metric) | n | Value | Strength |
|---|---|---|---|
| Functionality | |||
| Mean pairwise (annotators) | 29–30 | 0.089 | slight |
| Krippendorff's (annotators) | 30 | -0.061 | poor |
| Mean (annotator vs. judge) | 29–30 | 0.407 | moderate |
| Maj vote vs. judge | 29 | 0.791 | substantial |
| Maj vote vs. judge agreement (%) | 29 | 89.7 | |
| Prompt quality (grade 0–10) | |||
| Mean grade (SD) | 30 | 8.78 (1.06) | |
| Krippendorff's (interval) | 30 | -0.093 | poor |
findings range from warnings to exploitable flaws, and logic-dependent weaknesses (e.g., CWE-862, CWE-352) escape generic rules altogether. To address this, we are integrating CodeQL [39] into the evaluation, which will let us measure cross-analyzer agreement. Additionally, we plan to add an LLM-as-judge for security independent of the construction analyzers and validate it with human experts.
An open benchmarking framework. Our goal is to let researchers benchmark any defense according to their needs and available resources. To do so, we will make the pipeline easier to configure by refactoring it into pluggable components for languages, domains, models, analyzers, and defenses. We will validate this modularity by instantiating it for additional languages, such as Java and C++.
VI. CONCLUSION
In this paper, we introduced RiskyPy, an automated pipeline that generates security-oriented code-generation tasks calibrated to a chosen range of model coding capabilities. Its pre-liminary Python instantiation yields 101 prompts. We assessed the calibration on Qwen3-4B and Seed-Coder-8B, which produce functional code for 57-72% of retained prompts, compared with 20-41% for prompts rejected by the functionality check. Only 5-10% of generations on retained prompts are free of Bandit findings, leaving room for security improvements. Additionally, experiments show that security gains can come at the cost of functionality, supporting the need for joint security-functionality evaluation. We view these as emerging results that motivate the steps outlined in Section V.
DATA AVAILABILITY
The pipeline, dataset, and experiments are available in our replication package [29].
ACKNOWLEDGMENT
Claude and ChatGPT were used to assist with code development and with editing the text of this paper.
REFERENCES
[1] M. Chen, J. Tworek, H. Jun, Q. Yuan, H. P. d. O. Pinto et al., "Evaluating large language models trained on code," arXiv preprint arXiv:2107.03374, 2021.
[2] X. Hou, Y. Zhao, Y. Liu, Z. Yang, K. Wang, L. Li, X. Luo, D. Lo, J. Grundy, and H. Wang, “Large language models for software engineering: A systematic literature review,” ACM Transactions on Software Engineering and Methodology, vol. 33, no. 8, 2024.
[3] C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. Narasimhan, “Swe-bench: Can language models resolve real-world github issues?” in International Conference on Learning Representations (ICLR), 2024.
[4] H. Pearce, B. Ahmad, B. Tan, B. Dolan-Gavitt, and R. Karri, “Asleep at the keyboard? assessing the security of github copilot's code contributions,” in IEEE Symposium on Security and Privacy (S&P), 2022, pp. 754–768.
[5] N. Perry, M. Srivastava, D. Kumar, and D. Boneh, “Do users write more insecure code with ai assistants?” in ACM SIGSAC Conference on Computer and Communications Security (CCS), 2023, pp. 2785–2799.
[6] Y. Fu, P. Liang, A. Tahir, Z. Li, M. Shahin, J. Yu, and J. Chen, “Security weaknesses of copilot-generated code in github projects: An empirical study,” ACM Transactions on Software Engineering and Methodology, 2025.
[7] S.-C. Dai, J. Xu, and G. Tao, “Rethinking the evaluation of secure code generation,” in IEEE/ACM International Conference on Software Engineering (ICSE), 2026.
[8] M. Tessa, I. E. Olatunji, A. War, J. Klein, and T. F. Bissyandé, “How secure is secure code generation? adversarial prompts put llm defenses to the test,” arXiv preprint arXiv:2601.07084, 2026.
[9] J. He, M. Vero, G. Krasnopolska, and M. Vechev, “Instruction tuning for secure code generation,” in International Conference on Machine Learning (ICML), 2024.
[10] Y. Fu, E. Baker, Y. Ding, and Y. Chen, “Constrained decoding for secure code generation,” arXiv preprint arXiv:2405.00218, 2024.
[11] S. Ott, A. Barbosa-Silva, K. Blagec, J. Brauner, and M. Samwald, “Mapping global dynamics of benchmark creation and saturation in artificial intelligence,” Nature Communications, vol. 13, p. 6793, 2022.
[12] J. Peng, L. Cui, K. Huang, J. Yang, and B. Ray, “Cweval: Outcome-driven evaluation on functionality and security of llm code generation,” in 2025 IEEE/ACM International Workshop on Large Language Models for Code (LLM4Code). IEEE, 2025, pp. 33–40.
[13] M. Vero, N. Mündler, V. Chibotaru, V. Raychev, M. Baader, N. Jovanović, J. He, and M. Vechev, “BaxBench: Can LLMs generate correct and secure backends?” in International Conference on Machine Learning (ICML), 2025.
[14] Y. Nie, Z. Wang, Y. Yang, R. Jiang, Y. Tang, X. Davies, Y. Gal, B. Li, W. Guo, and D. Song, “SeCodePLT: A unified benchmark for evaluating the security risks and capabilities of code GenAI,” in Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track, 2025.
[15] S. Zhao, D. Wang, K. Zhang, J. Luo, Z. Li, and L. Li, “Is vibe coding safe? benchmarking vulnerability of agent-generated code in real-world tasks,” in Forty-third International Conference on Machine Learning, 2026. [Online]. Available: https://openreview.net/forum?id=qG8g00zRZa
[16] H. Lee, Z. Zhang, H. Lu, and L. Zhang, “SEC-bench: Automated benchmarking of LLM agents on real-world software security tasks,” in Advances in Neural Information Processing Systems (NeurIPS), 2025.
[17] C. Tony, M. Mutas, N. E. D. Ferreyra, and R. Scandariato, “Llmseceval: A dataset of natural language prompts for security evaluations,” in 2023 IEEE/ACM 20th International Conference on Mining Software Repositories (MSR). IEEE, 2023, pp. 588–592.
[18] J. Wang, L. Cao, X. Luo, Y. Cao, Z. Li, Y. Xiao, M. Zhao, A. Jatowt, and Y. Cai, “Toward secure code generation: Bridging correctness and security via task-adaptive vulnerability modeling and execution-based benchmarking,” in Proceedings of the ACM International Symposium on Software Testing and Analysis, 2026.
[19] H. Hajipour, K. Hassler, T. Holz, L. Schönherr, and M. Fritz, “CodelM-Sec benchmark: Systematically evaluating and finding security vulnerabilities in black-box code language models,” in IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), 2024.
[20] T. von Arx, N. Mündler, M. Vero, M. Baader, and M. Vechev, “AutoToBaxBuilder: Bootstrapping code security benchmarking,” in International Conference on Machine Learning (ICML), 2026.
[21] MITRE, “2025 CWE top 25 most dangerous software weaknesses,” https://cwe.mitre.org/top25/archive/2025/2025_cwe_top25.html, 2025.
[22] M. L. Siddiq and J. C. S. Santos, “SecurityEval dataset: Mining vulnerability examples to evaluate machine learning-based code generation techniques,” in International Workshop on Mining Software Repositories Applications for Privacy and Security (MSR4P&S), 2022, pp. 29–33.
[23] M. Bhatt, S. Chennabasappa, C. Nikolaidis, S. Wan, I. Evtimov, D. Gabi, D. Song, F. Ahmad, C. Aschermann, L. Fontana et al., “Purple Llama CyberSecEval: A secure coding benchmark for language models,” arXiv preprint arXiv:2312.04724, 2023.
[24] X. Xu, Z. Su, J. Guo, K. Zhang, Z. Wang, and X. Zhang, “ProSec: Fortifying code LLMs with proactive security alignment,” in International Conference on Machine Learning (ICML), ser. PMLR, vol. 267, 2025, pp. 69689–69704.
[25] T. Wu, M. Du, Y. Liu, C. Yang, T. Y. Zhuo, J. Zhang, and S.-K. Ng, “Secure code generation via online reinforcement learning with vulnerability reward model,” arXiv preprint arXiv:2602.07422, 2026.
[26] X. Xu, G. Shen, Z. Su, S. Cheng, H. Guo, L. Yan, X. Chen, J. Jiang, X. Jin, C. Wang, Z. Zhang, and X. Zhang, “ASTRA: Autonomous spatial-temporal red-teaming for AI software assistants,” arXiv preprint arXiv:2508.03936, 2025.
[27] S. Osebe, F. Yang, J. Li, Y. Gu, Y. Wang, S. Krishna, K.-W. Chang, A. Galstyan, R. Gupta, and W. Ruan, “AutoSUIT Bench - Automated Security UnIt Test Benchmark for LLM Coding,” in Findings of the Association for Computational Linguistics: ACL 2026, 2026, pp. 34759–34783.
[28] MITRE, “2025 CWE Top 25 Most Dangerous Software Weaknesses,” 2025, accessed: 2026-05-09. [Online]. Available: https://cwe.mitre.org/top25/archive/2025/2025_cwe_top25.html
[29] “RiskyPy: Replication package,” 2026. [Online]. Available: https://github.com/ChL-Z/RiskyPy
[30] A. Xu, B. Li, B. Lin, B. Xue, B. Xian, B. Xu, B. Wu, B. Zhang, B. Deng, C. Yu et al., “Deepseek-v4. 1-flash: Pushing the limits of kv cache compression,” arXiv preprint arXiv:2609.19969, 2026.
[31] OpenRouter, “Mistral: Ministral 3 3B 2512,” 2026, accessed: May 9, 2026. [Online]. Available: https://openrouter.ai/mistralai/ministral-3b-2512
[32] OpenAI, “GPT-4o mini,” 2026, accessed: May 9, 2026. [Online]. Available: https://developers.openai.com/api/docs/models/gpt-4o-mini
[33] Bandit Developers, “Bandit Documentation,” 2026, accessed: May 9, 2026. [Online]. Available: https://bandit.readthedocs.io/en/latest/
[34] Semgrep, “Semgrep Community Edition,” 2026, accessed: May 9, 2026. [Online]. Available: https://semgrep.dev/products/community-edition/
[35] OpenAI, “text-embedding-3-small,” 2026, accessed: May 9, 2026. [Online]. Available: https://developers.openai.com/api/docs/models/text-embedding-3-small
[36] Q. Team, “Qwen3 technical report,” 2025. [Online]. Available: https://arxiv.org/abs/2505.09388
[37] ByteDance Seed, Y. Zhang, J. Su, Y. Sun, C. Xi, X. Xiao, S. Zheng, A. Zhang, K. Liu, D. Zan, T. Sun, J. Zhu, S. Xin, D. Huang, Y. Bai,
L. Dong, C. Li, J. Chen, H. Zhou, Y. Huang, G. Ning, X. Song, J. Chen, S. Liu, K. Shen, L. Xiang, and Y. Wu, "Seed-Coder: Let the code model curate data for itself," 2025. [Online]. Available: https://arxiv.org/abs/2506.03524
[38] OpenAI, “GPT-5.1 Model,” 2026, accessed: May 3, 2026. [Online]. Available: https://developers.openai.com/api/docs/models/gpt-5.1
[39] GitHub, “CodeQL for Python,” 2026, accessed: 2026-05-10. [Online]. Available: https://codeql.github.com/docs/codeql-language-guides/codeql-for-python/