mlsanityData to 14 Oct 2026

Investigating Security Implications of Automatically Generated Code on the Software Supply Chain

arXiv 2509.20277 ↗First posted 24 Sep 2025cs.CR cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

In recent years, various software supply chain (SSC) attacks have posed significant risks to the global community. Severe consequences may arise if developers integrate insecure code snippets that are vulnerable to SSC attacks into their products. Particularly, code generation techniques, such as large language models (LLMs), have been widely utilized in the developer community. However, LLMs are known to suffer from inherent issues when generating code, including fabrication, misinformation, and reliance on outdated training data, all of which can result in serious software supply chain threats. In this paper, we investigate the security threats to the SSC that arise from these inherent issues. We examine three categories of threats, including eleven potential SSC-related threats, related to external components in source code, and continuous integration configuration files. We find some threats in LLM-generated code could enable attackers to hijack software and workflows, while some others might cause potential hidden threats that compromise the security of the software over time. To understand these security impacts and severity, we design a tool, SSCGuard, to generate 439,138 prompts based on SSC-related questions collected online, and analyze the responses of four popular LLMs from GPT and Llama. Our results show that all identified SSC-related threats persistently exist. To mitigate these risks, we propose a novel prompt-based defense mechanism, namely Chain-of-Confirmation, to reduce fabrication, and a middleware-based defense that informs users of various SSC threats.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 28 of its 73 references that are in the map. First posted on arXiv 24 Sep 2025.

Builds on

28 of 73 references.

References · 28

  1. 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
  2. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
  3. 2023Prompt Injection attack against LLM-integrated Applicationscited by 605
  4. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 489
  5. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
  6. 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
  7. 2023Chain-of-Verification Reduces Hallucination in Large Language Modelscited by 324
  8. 2020You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completioncited by 131
  9. 2024Beyond Functional Correctness: Exploring Hallucinations in LLM-Generated Codecited by 107
  10. 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 93
  11. 2022Lost at C: A User Study on the Security Implications of Large Language Model Code Assistantscited by 91
  12. 2023Refining ChatGPT-Generated Code: Characterizing and Mitigating Code Quality Issuescited by 79
16 more
  1. 2023Can ChatGPT replace StackOverflow? A Study on Robustness and Reliability of Large Language Model Code Generationcited by 73
  2. 2023Evaluating the Code Quality of AI-Assisted Code Generation Tools: An Empirical Study on GitHub Copilot, Amazon CodeWhisperer, and ChatGPTcited by 71
  3. 2024We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMscited by 65
  4. 2023TrojanPuzzle: Covertly Poisoning Code-Suggestion Modelscited by 60
  5. 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 60
  6. 2022Taxonomy of Attacks on Open-Source Software Supply Chainscited by 58
  7. 2023No Need to Lift a Finger Anymore? Assessing the Quality of Code Generation by ChatGPTcited by 47
  8. 2023Large Language Models and Simple, Stupid Bugscited by 45
  9. 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 40
  10. 2017An Empirical Comparison of Dependency Network Evolution in Seven Software Packaging Ecosystemscited by 20
  11. 2021What are Weak Links in the npm Supply Chain?cited by 16
  12. 2017Stack Overflow Considered Harmful? The Impact of Copy&Paste on Android Application Securitycited by 12
  13. 2024On the effectiveness of Large Language Models for GitHub Workflowscited by 5
  14. 2022Do Software Security Practices Yield Fewer Vulnerabilities?cited by 4
  15. 2018Thou Shalt Not Depend on Me: Analysing the Use of Outdated JavaScript Libraries on the Webcited by 2
  16. 2017What's in a Name? Understanding Profile Name Reuse on Twittercited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.