mlsanityData to 7 Oct 2026

SALLM: Security Assessment of Generated Code

arXiv 2311.00889 ↗First posted 1 Nov 2023cs.SE cs.AIcited by 35

Not on the map. Why?

Abstract (arXiv)

With the growing popularity of Large Language Models (LLMs) in software engineers' daily practices, it is important to ensure that the code generated by these tools is not only functionally correct but also free of vulnerabilities. Although LLMs can help developers to be more productive, prior empirical studies have shown that LLMs can generate insecure code. There are two contributing factors to the insecure code generation. First, existing datasets used to evaluate LLMs do not adequately represent genuine software engineering tasks sensitive to security. Instead, they are often based on competitive programming challenges or classroom-type coding tasks. In real-world applications, the code produced is integrated into larger codebases, introducing potential security risks. Second, existing evaluation metrics primarily focus on the functional correctness of the generated code while ignoring security considerations. Therefore, in this paper, we described SALLM, a framework to benchmark LLMs' abilities to generate secure code systematically. This framework has three major components: a novel dataset of security-centric Python prompts, configurable assessment techniques to evaluate the generated code, and novel metrics to evaluate the models' performance from the perspective of secure code generation.

Key facts. Cited by 35 papers in the map (data through 7 Oct 2026). Builds on 35 of its 78 references that are in the map. First posted on arXiv 1 Nov 2023.

Builds on

35 of 78 references.

References · 35

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2021Program Synthesis with Large Language Modelscited by 3,509
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  6. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  7. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  8. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  9. 2021Measuring Coding Challenge Competence With APPScited by 879
  10. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  11. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
  12. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
23 more
  1. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
  2. 2022The Stack: 3 TB of permissively licensed source codecited by 354
  3. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
  4. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
  5. 2022Do Users Write More Insecure Code with AI Assistants?cited by 186
  6. 2019SPoC: Search-based Pseudocode to Codecited by 176
  7. 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
  8. 2022GitHub Copilot AI pair programmer: Asset or Liability?cited by 150
  9. 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 124
  10. 2018Mapping Language to Code in Programmatic Contextcited by 104
  11. 2022Productivity Assessment of Neural Code Completioncited by 97
  12. 2020Code Prediction by Feeding Trees to Transformerscited by 70
  13. 2023LLMSecEval: A Dataset of Natural Language Prompts for Security Evaluationscited by 58
  14. 2020Deep Learning for Source Code Modeling and Generation: Models, Applications and Challengescited by 55
  15. 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
  16. 2023CodeLMSec Benchmark: Systematically Evaluating and Finding Security Vulnerabilities in Black-Box Code Language Modelscited by 52
  17. 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 49
  18. 2020Fast and Memory-Efficient Neural Code Completioncited by 38
  19. 2022Training and Evaluating a Jupyter Notebook Data Science Assistantcited by 31
  20. 2021Choose Your Programming Copilot: A Comparison of the Program Synthesis Performance of GitHub Copilot and Genetic Programmingcited by 24
  21. 2022M2TS: Multi-Scale Multi-Modal Approach Based on Transformer for Source Code Summarizationcited by 14
  22. 2023FRANC: A Lightweight Framework for High-Quality Code Generationcited by 14
  23. 2020Security Smells in Androidcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 2; 2024: 7; 2025: 13; 2026: 13.

35 papers.

Sort:

By area:

  1. 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
  2. 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 26
  3. 2025Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Taskscited by 18
  4. 2026A Framework for Formalizing LLM Agent Securitycited by 16
  5. 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 15
  6. 2024Just another copy and paste? Comparing the security vulnerabilities of ChatGPT generated code and StackOverflow answerscited by 12
  7. 2025A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Codecited by 12
  8. 2025Rethinking the Evaluation of Secure Code Generationcited by 10
  9. 2025SandboxEval: Towards Securing Test Environment for Untrusted Codecited by 10
  10. 2024From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Securitycited by 9
  11. 2025Hallucination by Code Generation LLMs: Taxonomy, Benchmarks, Mitigation, and Challengescited by 9
  12. 2024How Propense Are Large Language Models at Producing Code Smells? A Benchmarking Studycited by 6
23 more
  1. 2026Security in the Age of AI Teammates: An Empirical Study of Agentic Pull Requests on GitHubcited by 6
  2. 2024Code Hallucinationcited by 5
  3. 2025How Safe Are AI-Generated Patches? A Large-scale Study on Security Risks in LLM and Agentic Automated Program Repair on SWE-benchcited by 5
  4. 2024Automating REST API Postman Test Cases Using LLMcited by 4
  5. 2024Why does in-context learning fail sometimes? Evaluating in-context learning on open and closed questionscited by 2
  6. 2025Detecting LLM Fact-conflicting Hallucinations Enhanced by Temporal-logic-based Reasoningcited by 2
  7. 2025HFuzzer: Testing Large Language Models for Package Hallucinations via Phrase-based Fuzzingcited by 1
  8. 2025LLM-CSEC: Empirical Evaluation of Security in C/C++ Code Generated by Large Language Modelscited by 1
  9. 2026TOSSS: a CVE-based Software Security Benchmark for Large Language Modelscited by 1
  10. 2026Enhancing Reliability in LLM-Based Secure Code Generationcited by 1
  11. 2026SEVRA-BENCH: Social Engineering of Vulnerabilities in Review Agentscited by 1
  12. 2023Context Matters: Data-Efficient Augmentation of Large Language Models for Scientific Applicationscited by 0
  13. 2024Ocassionally Secure: A Comparative Analysis of Code Generation Assistantscited by 0
  14. 2025Designing Empirical Studies on LLM-Based Code Generation: Towards a Reference Frameworkcited by 0
  15. 2025Assessing the Software Security Comprehension of Large Language Modelscited by 0
  16. 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilerscited by 0
  17. 2026Inference-Time Safety For Code LLMs Via Retrieval-Augmented Revisioncited by 0
  18. 2026A Quasi-Experimental Developer Study of Security Training in LLM-Assisted Web Application Developmentcited by 0
  19. 2026SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forwardcited by 0
  20. 2026An Empirical Study of Security Calibration in Large Language Models for Codecited by 0
  21. 2026Plainbook: Data Science, in Plain Languagecited by 0
  22. 2026CS-Guard: Benchmarking LLM Guardrails for Code Generation Securitycited by 0
  23. 2026SecureVibe: Making Vibe Coding More Securecited by 0