Tech Studies

91,965 research papers, searchable by meaning as well as exact wording. So “steering vectors” also surfaces work on “activation steering.”

Papers
91,965
Semantically indexed
91,965
Subject areas
145
Authors
199,823
Newest paper
25 Nov

46 results for “code generation”

Matched on wording only, meaning-matching is unavailable right now

21

Securing AI-Generated Code: A Just-in-Time Vulnerability Detection and Remediation Pipeline

17 Aug · Mikhail Surikov · arXiv:2608.16187

AI-assisted development tools generate vulnerable code at significant rates, yet few automated mechanisms exist to detect, enrich, fix, and verify security issues at development velocity, particularly ones that ground remediation in real-world threat context. This paper presents an automated security evaluation pipeline that generates Python code from LLMSecEval prompts, scans for vulnerabilities using CodeQL and…

Georgia Institute of Technology Master's final practicum project. Code: https://github.com/Droidsurikov/securing-ai-generated-code Cryptography & security Artificial intelligence Software engineering Matched by wording
22

MACGen: Toward Functionally Correct and Secure Code Generation via Multi-Agent Collaboration

26 Aug · Miseon Yu, Jaehoon Choi, Younghan Lee +1 · arXiv:2608.25457

Despite their strong ability to generate code, large language models often fail to produce secure code, as their outputs frequently contain security vulnerabilities. Secure code generation is inherently challenging because it requires solving a multi-objective problem: functional correctness and security. Existing approaches address this challenge by injecting external security knowledge or by using agentic feedback…

23

JevVibe: Efficient Classification-Guided Secure Code Generation

28 Sept · Arshak Rezvani, Sasha Behrouzi, Ahmad-Reza Sadeghi · arXiv:2609.34963

Large language models can generate functionally correct code that still contains security weaknesses, motivating repair pipelines that first diagnose a weakness type before deciding how to fix it. The Common Weakness Enumeration (CWE) provides a standardized vocabulary for such diagnoses, but asking an autoregressive language model to generate a CWE label and extracting it from the response raises questions about…

24

CloakFEM: Agentic FEM Code Generation for Red-Teaming Computational Resource Exhaustion

3 Nov · Li Zheng, Simin Chen · arXiv:2611.04356

Finite element method (FEM) solvers are foundational to scientific and engineering simulation, yet their susceptibility to \emph{efficiency attacks} remains largely unexplored. An adversary can craft syntactically valid and runnable FEM programs that complete successfully while forcing excessive computational work, enabling computational denial-of-service (DoS) attacks. Finding such inputs is challenging because FEM…

25

A.S.E 2.0: Understanding How Repository Context Impacts the Security of LLM-Generated Code

4 Nov · Jiongchi Yu, Keke Lian, Junqing Wang +5 · arXiv:2611.06294

Large language model (LLM) coding assistants and agents construct a repository context before generating code. For security-sensitive code, this context decides whether the model sees the project's safeguards (e.g., authorization checks) or insecure code to imitate. However, context construction is designed almost exclusively for functional correctness, and secure-code benchmarks treat the context as fixed, so how…

26

SecureCode: A Production-Grade Multi-Turn Dataset for Training Security-Aware Code Generation Models

20 Dec · Scott Thornton · arXiv:2512.18542

AI coding assistants produce vulnerable code in 45\% of security-relevant scenarios~\cite{veracode2025}, yet no public training dataset teaches both traditional web security and AI/ML-specific defenses in a format suitable for instruction tuning. We present SecureCode, a production-grade dataset of 2,185 multi-turn security training examples spanning two domains: web application security (1,435 examples covering the…

Dataset available at https://huggingface.co/datasets/scthornton/securecode. Code and validation tools at https://github.com/scthornton/securecode Cryptography & security Artificial intelligence Language & NLP Matched by wording
27

HogVul: Black-box Adversarial Code Generation Framework Against LM-based Vulnerability Detectors

9 Jan · Jingxiao Yang, Ping He, Tianyu Du +2 · arXiv:2601.05587

Recent advances in software vulnerability detection have been driven by Language Model (LM)-based approaches. However, these models remain vulnerable to adversarial attacks that exploit lexical and syntax perturbations, allowing critical flaws to evade detection. Existing black-box attacks on LM-based vulnerability detectors primarily rely on isolated perturbation strategies, limiting their ability to efficiently…

28

HardSecBench: Benchmarking the Security Awareness of LLMs for Hardware Code Generation

20 Jan · Qirui Chen, Jingxian Shuai, Shuangwu Chen +8 · arXiv:2601.13864

Large language models (LLMs) are increasingly used for hardware and firmware code generation, but existing studies primarily evaluate functional correctness while largely overlooking security. However, LLM-generated code that appears functionally sound may embed security flaws which could induce catastrophic damages after deployment. This critical research gap motivates us to design a benchmark for assessing…

29

Secure Code Generation via Online Reinforcement Learning with Vulnerability Reward Model

7 Feb · Tianyi Wu, Mingzhe Du, Yue Liu +4 · arXiv:2602.07422

Large language models (LLMs) are increasingly used in software development, yet their tendency to generate insecure code remains a major barrier to real-world deployment. Existing secure code alignment methods often suffer from a functionality--security paradox, improving security at the cost of substantial utility degradation. We propose SecCoderX, an online reinforcement learning framework for…

30

ESAA-Security: An Event-Sourced, Verifiable Architecture for Agent-Assisted Security Audits of AI-Generated Code

6 Mar · Elzo Brito dos Santos Filho · arXiv:2603.06365

AI-assisted software generation has increased development speed, but it has also amplified a persistent engineering problem: systems that are functionally correct may still be structurally insecure. In practice, prompt-based security review with large language models often suffers from uneven coverage, weak reproducibility, unsupported findings, and the absence of an immutable audit trail. The ESAA architecture…

Open-source implementation available at: https://github.com/elzobrito/ESAA-Security Cryptography & security Artificial intelligence Matched by wording
31

Detecting Data Poisoning in Code Generation LLMs via Black-Box, Vulnerability-Oriented Scanning

17 Mar · Shenao Yan, Shan Jin, Shimaa Ahmed +4 · arXiv:2603.17174

Code generation large language models (LLMs) are increasingly integrated into modern software development workflows. Recent work has shown that these models are vulnerable to backdoor and poisoning attacks that induce the generation of insecure code, yet effective defenses remain limited. Existing scanning approaches rely on token-level generation consistency to invert attack targets, which is ineffective for source…

32

VibeGuard: A Security Gate Framework for AI-Generated Code

1 Apr · Ying Xie · arXiv:2604.01052

"Vibe coding," in which developers delegate code generation to AI assistants and accept the output with little manual review, has gained rapid adoption in production settings. On March 31, 2026, Anthropic's Claude Code CLI shipped a 59.8 MB source map file in its npm package, exposing roughly 512,000 lines of proprietary TypeScript. The tool had itself been largely vibe-coded, and the leak traced to a misconfigured…

33

From Theory to Practice: Code Generation Using LLMs for CAPEC and CWE Frameworks

2 Apr · Murtuza Shahzad, Joseph Wilson, Ibrahim Al Azher +2 · arXiv:2604.02548

The increasing complexity and volume of software systems have heightened the importance of identifying and mitigating security vulnerabilities. The existing software vulnerability datasets frequently fall short in providing comprehensive, detailed code snippets explicitly linked to specific vulnerability descriptions, reducing their utility for advanced research and hindering efforts to develop a deeper…

34

SecPI: Secure Code Generation with Reasoning Models via Security Reasoning Internalization

4 Apr · Hao Wang, Niels Mündler, Mark Vero +3 · arXiv:2604.03587

Reasoning language models (RLMs) are increasingly used in programming. Yet, even state-of-the-art RLMs frequently introduce critical security vulnerabilities in generated code. Prior training-based approaches for secure code generation face a critical limitation that prevents their direct application to RLMs: they rely on costly, manually curated security datasets covering only a limited set of vulnerabilities. At…

35

Broken by Default: A Formal Verification Study of Security Vulnerabilities in AI-Generated Code

7 Apr · Dominik Blain, Maxime Noiseux · arXiv:2604.05292

AI coding assistants are now used to generate production code in security-sensitive domains, yet the exploitability of their outputs remains unquantified. We address this gap with Broken by Default: a formal verification study of 3,500 code artifacts generated by seven widely-deployed LLMs across 500 security-critical prompts (five CWE categories, 100 prompts each). Each artifact is subjected to the Z3 SMT solver…

36

DeepGuard: Secure Code Generation via Multi-Layer Semantic Aggregation

10 Apr · Li Huang, Zhongxin Liu, Yifan Wu +6 · arXiv:2604.09089

Large Language Models (LLMs) for code generation can replicate insecure patterns from their training data. To mitigate this, a common strategy for security hardening is to fine-tune models using supervision derived from the final transformer layer. However, this design may suffer from a final-layer bottleneck: vulnerability-discriminative cues can be distributed across layers and become less detectable near the…

37

Real Package, Wrong Controller: Static Auditing of Vendor--Protocol Mismatches in LLM-Generated PLC Code

24 Nov · S M Zia Ur Rashid, Sazidul Islam Hira, Suman Rath · arXiv:2611.33227

Language models can generate Python that drives industrial protocols on programmable logic controllers, yet existing code-grounding checks ask whether an imported package or symbol exists rather than whether it suits the declared industrial target. We define \emph{metadata-conditioned, import-level vendor--protocol incompatibility} and build \textsc{Proteus-OT}, a label-free static verifier over a version-pinned…

38

A Mixture of Linear Corrections Generates Secure Code

13 Jul · Weichen Yu, Ravi Mangal, Terry Zhuo +2 · arXiv:2507.09508

Large language models (LLMs) have become proficient at sophisticated code-generation tasks, yet remain ineffective at reliably detecting or avoiding code vulnerabilities. Does this deficiency stem from insufficient learning about code vulnerabilities, or is it merely a result of ineffective prompting? Using representation engineering techniques, we investigate whether LLMs internally encode the concepts necessary to…

39

NOIR: Privacy-Preserving Generation of Code with Open-Source LLMs

22 Jan · Khoa Nguyen, Khiem Ton, NhatHai Phan +6 · arXiv:2601.16354

Although boosting software development performance, large language model (LLM)-powered code generation introduces intellectual property and data security risks rooted in the fact that a service provider (cloud) observes a client's prompts and generated code, which can be proprietary in commercial systems. To mitigate this problem, we propose NOIR, the first framework to protect the client's prompts and generated…

To appear at Usenix Security Symposium 2026 Cryptography & security Artificial intelligence Matched by wording
40

Learning to Generate Secure Code via Token-Level Rewards

26 Feb · Jiazheng Quan, Xiaodong Li, Bin Wang +5 · arXiv:2602.23407

Large language models (LLMs) have demonstrated strong capabilities in code generation, yet they remain prone to producing security vulnerabilities. Existing approaches commonly suffer from two key limitations: the scarcity of high-quality security data and coarse-grained reinforcement learning reward signals. To address these challenges, we propose Vul2Safe, a new secure code generation framework that leverages LLM…