RiskyPy: Toward Model-Calibrated Prompt Generation for Joint Security and Functionality Evaluation of LLM-Generated Code
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 26 of its 38 references that are in the map. Submitted 29 Oct 2026.
Builds on
26 of 38 references.
References · 26
- 2025Qwen3 Technical Reportcited by 10,000
- 2021Evaluating Large Language Models Trained on Codecited by 8,938
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,872
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 446
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 424
- 2026DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compressioncited by 221
- 2022Do Users Write More Insecure Code with AI Assistants?cited by 202
- 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 156
- 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Taskscited by 88
- 2022Mapping global dynamics of benchmark creation and saturation in artificial intelligencecited by 75
- 2024Instruction Tuning for Secure Code Generationcited by 75
- 2025CWEval: Outcome-driven Evaluation on Functionality and Security of LLM Code Generationcited by 71
14 more
- 2023LLMSecEval: A Dataset of Natural Language Prompts for Security Evaluationscited by 67
- 2023CodeLMSec Benchmark: Systematically Evaluating and Finding Security Vulnerabilities in Black-Box Code Language Modelscited by 60
- 2025Seed-Coder: Let the Code Model Curate Data for Itselfcited by 59
- 2025BaxBench: Can LLMs Generate Correct and Secure Backends?cited by 48
- 2023Security Weaknesses of Copilot-Generated Code in GitHub Projects: An Empirical Studycited by 43
- 2024Constrained Decoding for Secure Code Generationcited by 42
- 2024Toward Secure Code Generation: Bridging Correctness and Security via Task-Adaptive Vulnerability Modeling and Execution-Based Benchmarkingcited by 32
- 2025Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Taskscited by 30
- 2024ProSec: Fortifying Code LLMs with Proactive Security Alignmentcited by 29
- 2025Rethinking the Evaluation of Secure Code Generationcited by 13
- 2026Secure Code Generation via Online Reinforcement Learning with Vulnerability Reward Modelcited by 9
- 2025ASTRA: Autonomous Spatial-Temporal Red-teaming for AI Software Assistantscited by 7
- 2026How Secure is Secure Code Generation? Adversarial Prompts Put LLM Defenses to the Testcited by 7
- 2025AutoBaxBuilder: Bootstrapping Code Security Benchmarkingcited by 6
Built on by
Not cited yet.