A Methodology for Analysing Coding Bugs for LLMs and SAST


Abstract

Large language models (LLMs) are increasingly used for code understanding, yet their practical effectiveness for vulnerability detection relative to Static Application Security Testing (SAST) remains insufficiently quantified. We present a controlled comparative study between GPT-4 (Advanced Data Analysis) and two SAST tools (SonarQube and Cloud Defence) on 32 curated security scenarios representing common coding pitfalls. Each scenario is scored with a binary detection rule, the two SAST outputs are aggregated using a logical OR baseline, and paired outcomes are evaluated using McNemar’s test for statistical significance. In our dataset, GPT-4 correctly detected 30 of 32 scenarios (93.75%), while the aggregated SAST baseline detected 11 of 32. The paired comparison shows a statistically significant difference in detection performance in favour of GPT-4. We also discuss security considerations and operational constraints for integrating LLM-enhanced vulnerability scanning into secure software development workflows.

1 Introduction↩︎

One of the most significant threats within cybersecurity is the application of zero-day threats. These tend to be caused by unforeseen vulnerabilities in code and which can open up significant weaknesses within our society. For example, Heartbleed [1] was one significant example of this, and where the OpenSSL software package allowed an adversary to capture part of the running memory on a server, and which could reveal passwords and cryptographic keys. And, so, while many developers are diligent in their approach, there are still many cases of code being released without a strong focus on cybersecurity testing. A well-defined trait is that software developers often have an eye for usability and in producing workable code rather than for it to be safe from future vulnerabilities [2].

This paper aims to understand if machine-learning-aided testing for cybersecurity could enhance our existing static approaches to software testing. A core contribution of the paper is in the testing of the accuracy performance of the machine-learning approach of GPT-4 against the usage of static testing tools, along with a well-defined methodology that can be used in the assessment for the accuracy of bug finding. It uses a sampling-based approach to code examples and focuses on well-defined classifications of software bugs as defined within the MITRE Common Weakness Enumeration (CWE).

The remainder of this paper is organised as follows. Section 2 reviews related work on LLM-assisted bug finding and vulnerability detection. Section 3 presents the methodology, including the experiment design and the security scenarios used for evaluation. Section 4 reports the comparative results between GPT-4 (Advanced Data Analysis) and the selected SAST tools. Section 5 discusses the implications of the findings, outlines key security concerns for LLM-enhanced SAST, and identifies directions for future research. Section 6 concludes the paper and summarises the main limitations of the study. Section 7 provides an appendix with the statistical testing script used in the evaluation.

1.1 Background↩︎

Machine learning for code analysis in cybersecurity has been widely studied [3], and recent advances in natural language processing (NLP) have enabled large language models (LLMs) such as GPT-4 [4]. In practice, however, vulnerability discovery still relies heavily on Static Application Security Testing (SAST), which uses static code analysis to flag potential security defects prior to deployment. A persistent problem is that SAST tools often miss exploitable vulnerabilities (false negatives) in diverse coding patterns, while also producing findings that developers may deprioritise due to false positives. This slows remediation and widens the window of vulnerability, defined as the time between exploit availability and patch deployment [5]. In parallel, operational and policy constraints can delay disclosure and verification of zero-days, further increasing systemic exposure [6][10].

The research gap addressed in this paper is the lack of a transparent, reproducible methodology for measuring whether a general-purpose LLM can detect a broad set of real-world vulnerability patterns more effectively than widely used SAST tools, using clearly defined scenarios and statistically grounded comparison. Our focus is not to replace SAST, but to quantify detection capability under controlled conditions and to characterise when an LLM is complementary to static analysis.

We consider two common classes of application security testing:

  • Static Application Security Testing (SAST): automated analysis of source code in a non-runtime setting to detect security-relevant defects and insecure coding patterns.

  • Dynamic Application Security Testing (DAST): analysis of an application during execution, exercising program paths and inputs in a runtime environment.

2 Related Work↩︎

Dominik Sobania et al. [11] explored automated program repair techniques, specifically focusing on ChatGPT’s potential for bug fixing. According to them, while initially not designed for this purpose, ChatGPT demonstrated promising results on the QuixBugs benchmark, rivalling advanced methods like CoCoNut and Codex. ChatGPT’s interactive dialogue system uniquely enhances its repair rate, outperforming established standards. Wei Ma et al. [12] noted that while ChatGPT shows impressive potential in software engineering(SE) tasks like code and document generation, its lack of interpretability raises concerns given SE’s high-reliability requirements. Through a detailed study, they categorised AI’s essential skills for SE into syntax understanding, static behaviour understanding, and dynamic behaviour understanding. Their assessment, spanning languages like C, Java, Python, and Solidity, revealed that ChatGPT excels in syntax understanding (akin to an AST parser) but faces challenges in comprehending dynamic semantics. The study also found ChatGPT prone to hallucinations, emphasising the need to validate its outputs for SE dependability and suggesting that codes from LLMs are syntactically correct but potentially vulnerable.

Haonan Li et al. [13] discussed the challenges of balancing precision and scalability in static analysis for identifying software bugs. While LLMs show potential in understanding and debugging code, their efficacy in handling complex bug logic, which often requires intricate reasoning and broad analysis, remains limited. Therefore, the researchers suggest using LLMs to assist rather than replace static analysis. Their study introduced LLift, an automated system combining a static analysis tool and an LLM to address use-before-initialisation (UBI) bugs. Despite various challenges like bug-specific modelling and the unpredictability of LLMs, LLift, when tested on real-world potential UBI bugs, showed significant precision (50%) and recall (100%). Notably, it uncovered 13 new UBI bugs in the Linux kernel, highlighting the potential of LLM-assisted methods in extensive real-world bug detection.

Norbert Tihani et al. [14] introduced the FormAI dataset, comprising 112,000 AI-generated C programs with vulnerability classifications generated by GPT-3.5-turbo. These programs range from complex tasks like network management and encryption to simpler ones, like string operations. Each program comes labelled with the identified vulnerabilities, pinpointing the type, line number, and vulnerable function. To achieve accurate vulnerability detection without false positives, the Efficient SMT-based Bounded Model Checker (ESBMC) was used. This method leverages techniques like model checking and constraint programming to reason over program safety. Each vulnerability also references its corresponding Common Weakness Enumeration (CWE) number.

Codex, introduced by Mark et al. [15], represents a significant advancement in GPT language models, tailored specifically for code synthesis using data from GitHub. This refined model underpins the operations of GitHub Copilot. When assessed on the HumanEval dataset, designed to gauge the functional accuracy of generating programs based on docstrings, Codex achieved a remarkable 28.8% success rate. In stark contrast, GPT-3 yielded a 0% success rate, and GPT-J achieved 11.4%. A standout discovery was the model’s enhanced performance through repeated sampling, with a success rate soaring to 70.2% when given 100 samples per problem. Despite these promising results, Codex does exhibit certain limitations, notably struggling with intricate docstrings and variable binding operations. The paper deliberates on the broader ramifications of deploying such potent code-generation tools, touching upon safety, security, and economic implications.

In a technical evaluation, Cheshkov et al. [16] found that the ChatGPT and GPT-3 models, despite their success in various other code-based tasks, performed on par with a dummy classifier for this particular challenge. Utilising a dataset of Java files sourced from GitHub repositories, the study emphasised the models’ current limitations in the domain of vulnerability detection. However, the authors remain optimistic about the potential of future advancements, suggesting that models like GPT-4, with targeted research, could eventually make significant contributions to the field of vulnerability detection.

A comprehensive study conducted by Xin Liu et al. [17] investigated the potential of ChatGPT in Vulnerability Description Mapping (VDM) tasks. VDM is pivotal in efficiently mapping vulnerabilities to CWE and MITRE ATT&CK Techniques classifications. Their findings suggest that while ChatGPT approaches the proficiency of human experts in the Vulnerability-to-CWE task, especially with high-quality public data, its performance is notably compromised in tasks such as Vulnerability-to-ATT&CK, particularly when reliant on suboptimal public data quality. Ultimately, Xin Liu et al. emphasise that, despite the promise shown by ChatGPT, it is not yet poised to replace the critical expertise of professional security engineers, asserting that closed-source LLMs are not the conclusive answer for VDM tasks. Last but not least, the OWASP top 10 for LLMs [18] introduced ten security risks as follows: Prompt Injection, Insecure Output Handling, Training Data Poisoning, Model Denial of Service, Supply Chain Vulnerabilities, Sensitive Information Disclosure, Insecure Plugin Design, Excessive Agency, Over reliance, and Model Theft.

In contrast to prior work that focuses on program repair, synthetic datasets, or vulnerability mapping tasks, this study targets an end-to-end and reproducible comparison of an LLM and SAST on a curated set of security pitfalls with paired statistical testing. Our contribution is not a new detector, but a transparent evaluation protocol (scenario selection, binary scoring, aggregated SAST baseline, and McNemar inference) that enables controlled measurement of relative detection capability under identical inputs.

3 Methodology and security scenarios↩︎

3.1 Experiment Design and Data↩︎

We selected two different Static Application Security Testing (SAST) tools to ensure a fair comparison. The first is SonarCloud1, a well-established SAST platform provided by SonarSource. SonarQube supports 29 languages and offers continuous inspection of code quality. It conducts automatic reviews through static analysis to detect bugs, code smells, and other issues across the 29 supported languages. The platform provides insights on duplicated code, coding standards, unit tests, code coverage, code complexity, comments, bugs, and security vulnerabilities.

On the other hand, the second tool is a relatively new, paid Software-as-a-Service (SaaS) that began operations in 2020, named Cloud Defence2. Its mission is "to shield Cloud Native Applications from Zero Day Attacks." To derive a comprehensive evaluation, we combined the outcomes of both tools using an ‘OR’ operation and named this consolidated result the "SAST result." Consequently, a positive outcome (indicated by a ‘1’) in the SAST result signifies that either of the tools successfully detected the security vulnerability.

For this study, we selected 32 known security pitfalls that developers might inadvertently introduce, potentially leading to zero-day vulnerabilities. Based on our observations, we formulated the following hypotheses:

  • \(H_0\): GPT-4-Advanced Data Analysis detects vulnerabilities with the same or worse performance than the SAST tools.

  • \(H_1\): GPT-4-Advanced Data Analysis detects vulnerabilities with better performance than the SAST tools.

Design of the Experiment We have taken the code samples from GitHub or Snyk. Each sample corresponds to a known security pitfall listed in Table 1 and is evaluated against its intended vulnerability class (reported with a CWE identifier in Table 2). We ran each code sample independently through the GPT-4-Advanced Data Analysis web interface and through the selected SAST tools.The web interface does not expose the exact context window and system configuration used during analysis, which we treat as a study limitation; the prompts and outputs used for scoring are included in the replication package (see footnote). Detailed records of prompts, tool configurations as applicable, tool outputs, and scoring decisions were maintained and are accessible 3.

To enhance clarity and transparency, we applied the same end-to-end procedure to every sample:

  1. Sample selection and labelling: select a representative snippet that exhibits the intended vulnerability pattern; label the sample with its intended vulnerability category and corresponding CWE reference used for reporting.

  2. SAST execution: analyse the snippet with SonarQube and Cloud Defence using their standard workflows; record whether each tool flags the intended vulnerability category or an equivalent security finding consistent with the assigned label.

  3. LLM execution: submit the same snippet to GPT-4-Advanced Data Analysis with a fixed analysis instruction to identify security vulnerabilities and explain the issue; record the full response.

  4. Binary scoring: score each detector output as 1 for correct detection and 0 for a miss, using the scoring rule defined below.

  5. SAST aggregation: compute an aggregated SAST result using a logical OR across the two SAST tools; the aggregated SAST outcome is 1 if either tool detects the vulnerability, otherwise 0.

Scoring rule For each sample, a detector was scored as correct (1) if it explicitly identified the intended vulnerability type for that sample in a way consistent with the assigned category (for example, SQL injection, XSS, SSRF, insecure deserialization, directory traversal). If the detector produced no relevant finding, flagged only unrelated issues, or described a different vulnerability class, the outcome was scored as incorrect (0). Where a detector reported a closely related label, the decision was resolved by checking whether the described weakness matches the vulnerability mechanism in the code and aligns with the assigned CWE used in Table 2. Evidence supporting each scoring decision is included in the replication package (see footnote above).

For each tool’s detection ability, outcomes were categorised binarily: 1 denoting correct detection and 0 indicating a miss. Given the comparative nature of the study, the Chi-Squared Test for Independence was chosen as an initial framing to compare detection outcomes. However, because each code sample yields paired binary outcomes (GPT-4 and aggregated SAST on the same sample), we used McNemar’s test [19] for statistical inference on paired nominal data. We made a 2x2 contingency table that was formulated as follows:

GPT-4 Correct GPT-4 Incorrect
SAST Correct a b
SAST Incorrect c d

Wherein:

  • \(a\): Represents vulnerabilities correctly identified by both tools.

  • \(b\): Represents vulnerabilities exclusively detected by the SAST tool.

  • \(c\): Represents vulnerabilities exclusively identified by GPT-4.

  • \(d\): Represents vulnerabilities that remained undetected by both entities.

Interpretation of Outcomes We used McNemar’s test [19], and the p-value below 0.05 was established as the benchmark for statistical significance. If attained, it would signify a superior performance of GPT-4 over the SAST tool in the scope of vulnerability detection.

3.2 Security Vulnerabilities and Data↩︎

We explored the security scenarios that are listed in Table 1 and examined GPT4 and a SAST for each. Code snippets, detector outputs, and supporting evidence for the scoring decisions are documented in the replication package (see footnote above).

Table 1: Brief Descriptions of Various Attacks and sample code
ID Coding security mistakes sample Description
1 Buffer overflow [20] Overwriting memory by overflowing a buffer.
2 SQL Injection [21], [22] injecting malicious SQL code into a query.
3 Cross-Site Scripting (XSS) [23] Injecting malicious scripts into web pages viewed by users.
4 Broken Access Control [24] Improperly enforcing what users can or cannot do.
5 Insecure deserialization [25] Exploiting unsafe data unmarshalling.
6 Log4J [26] Exploiting the Log4J Java logging library.
7 Unrestricted upload [27] Uploading malicious files without restrictions.
8 Improper input validation [28] Not verifying the user’s input properly.
9 Memory Leak [29] Unintentional memory consumption leading to crashes.
10 Mass assignment [30] Overwriting object properties without restrictions.
11 Server-side request forgery [31] Making the server run unauthorized actions.
12 Insecure temporary files [32] Exploiting insecurely created temporary files.
13 Cleartext storage in a cookie [33] Storing sensitive data unencrypted in cookies.
14 XPath injection [34] Injecting malicious XPath queries.
15 Weak password recovery [35] Exploiting inadequate password recovery systems.
16 Logging vulnerabilities [36] Inadequately protecting or revealing logs.
17 Insecure Randomness [37] Using predictable random number generators.
18 NoSQL injection attack nosql? Injecting malicious code into NoSQL queries.
19 Code injection [38] Injecting malicious code into an application.
20 No rate limiting [39] Overloading systems by not capping request rates.
21 Vulnerable components [40] Using outdated or flawed software components.
22 Insecure design [41] Designing systems without security in mind.
23 Insecure hash [42] Using weak hashing methods.
24 ReDoS [43] Exploiting regex to cause denial-of-service.
25 XML external entity injection [44] Attacking parsers with external XML entities.
26 Cross site request forgery [45] Making users unknowingly submit a malicious request.
27 DOM XSS [46] Injecting malicious scripts via the Document Object Model.
28 Open redirect [47] Redirecting users to malicious sites.
29 Directory traversal [48] Accessing files outside of the intended directory.
30 Prototype pollution [49] Altering prototype objects.
31 Container capabilities [50] Containers retaining unnecessary capabilities.
32 Container privileged mode [51] Running containers with full system privileges.

4 Results↩︎

The comparison results between the online SAST tool and GPT-4 for detecting security vulnerabilities are presented in Table 2. Vulnerabilities ranged from common issues like Buffer Overflow and SQL Injection to more specific ones like Prototype Pollution. GPT-4 consistently detected most vulnerabilities correctly, as indicated by a "1" under the "GPT-C" column. In contrast, tools like sonarcloud and clouddefense had varied results, with some vulnerabilities detected correctly and others not. Across 32 paired scenarios, the aggregated SAST baseline detected 11 cases (34.38%), while GPT-4 detected 30 cases (93.75%), an absolute difference of 59.37 percentage points. The paired outcomes in Table 3 show \(b=0\) (SAST-only detections) and \(c=22\) (GPT-4-only detections), indicating that most disagreements arise from SAST misses where GPT-4 flags the intended vulnerability. This directional imbalance explains the strong McNemar significance reported below.

Table 2: Comparison results for various security vulnerabilities. C: Correct detection; I: Incorrect detection. Tools compared include GPT-4 Advanced Data Analysis (GPT), sonarcloud.io (SQ), and clouddefense.ai (CDA). Vulnerabilities are referenced by their Common Weakness Enumeration (CWE) ID, available at https://cwe.mitre.org/.
ID Security vulnerability inside a code snippet with its CWE GPT-C GPT-I SQ-C SQ-I CDA-C CDA-I CWE
1 Buffer overflow [52] 1 0 1 0 1 0 121
2 SQL Injection [53] 1 0 1 0 1 0 564
3 Cross-Site Scripting (XSS) [54]: 1 0 0 1 0 1 79
4 Broken Access Control [55] 1 0 0 1 0 1 284
5 Insecure deserialization [56] 1 0 0 1 0 1 502
6 \(\log 4 J\) [56] 1 0 0 1 0 1 502
7 Unrestricted upload of dangerous files [57] 1 0 0 1 0 1 434
8 Improper input validation [58] 1 0 0 1 0 1 20
9 Memory Leak [59] 1 0 0 1 1 0 401
10 Mass assignment with secret leak [60] 1 0 0 1 0 1 915
11 Server-side request forgery [61] 1 0 1 0 1 0 918
12 Insecure temporary file [62] 1 0 0 1 0 1 377
13 Plaintext storage of sensitive information in cookies [63] 1 0 0 1 0 1 315
14 XPath injection [64] 1 0 0 1 0 1 643
15 Weak password recovery [65] 1 0 0 1 0 1 640
16 Logging vulnerabilities [66] 1 0 0 1 0 1 532
17 Insecure Randomness [67] 1 0 0 1 0 1 330
18 NoSQL injection attack [68] 1 0 0 1 0 1 89
19 Code injection [69] 1 0 1 0 1 0 94
20 No rate limiting [70] 1 0 0 1 0 1 770
21 Vulnerable and outdated components [71] 0 1 0 1 0 1 1352
22 Insecure design [72] 0 1 0 1 0 1 657
23 Insecure hash [73] 1 0 0 1 0 1 328
24 \(\operatorname{ReDoS}\) [74] 1 0 0 1 0 1 185
25 XML external entity injection [75] 1 0 1 0 1 0 611
26 Cross-site request forgery [76] 1 0 0 1 0 1 352
27 DOM XSS [77] 1 0 1 0 1 0 80
28 Open redirect [78] 1 0 1 0 1 0 601
29 Directory traversal [79] 1 0 0 1 1 0 23
30 Prototype pollution [80] 1 0 0 1 0 1 1321
31 Container does not drop default capabilities [81] 1 0 0 1 0 1 250
32 Container is running in privileged mode [81] 1 0 0 1 0 1 250

To enhance the generalizability of our method to encompass a broader range of SAST tools, we introduced new columns named SAST-Correct and SAST-Incorrect into Table 3. We constructed the contingency matrix using these columns and GPT-Correct and GPT-Incorrect.

\[S A S T_{\text{correct }}=\bigcup_{S A S T} \operatorname{Result}_{S A S T}^{\text{correct }} ; S A S T_{\text{incorrect }}=1-S A S T_{\text{correct }}\]

Table 3: Comparison of SAST and GPT-4 Detection Abilities
GPT-4 Correct GPT-4 Incorrect
SAST Correct 11 0
SAST Incorrect 22 2

Utilising McNemar’s test [19], a comparative evaluation of vulnerability detection performance between GPT-4 and SAST tools was conducted. The test yielded a Chi-square value of 20.046 with an associated p-value of 0.000007562 Algorithm in the Appendix.

Given this result and adopting a significance level of 5% (i.e., \(\alpha = 0.05\)), we reject the null hypothesis, and our experiment supports the alternative hypothesis:

  • \(H_0\): GPT-4-Advanced Data Analysis has the same or worse performance than SAST tools.

  • \(H_1\): GPT-4-Advanced Data Analysis has better performance than SAST tools.

5 Discussion and future research↩︎

GPT-4 has shown a promising ability to detect vulnerabilities that traditional SAST tools might miss. This revelation is significant for several reasons:

  • Evolution of Detection Tools: As software development processes evolve, so too must the tools that ensure their security. The capabilities of GPT-4 in our experiment suggest that language models can serve as powerful supplements, if not alternatives, to traditional SAST tools.

  • Cost Implications: Traditional SAST tools, especially proprietary ones, can be expensive. If language models can provide comparable or even superior performance, organisations might be able to reduce costs associated with security testing.

  • Time Efficiency: The rapid analysis capabilities of models like GPT-4 could reduce the time taken for security assessments, especially in continuous integration/continuous deployment (CI/CD) environments.

However, while GPT-4’s performance is commendable, it is essential to approach these findings with caution. Language models, no matter how advanced, are not infallible. They operate based on patterns in the data they have been trained on. If a novel vulnerability emerges after their training cut-off, they might not recognise it. Integration of language models into existing software development lifecycles requires careful consideration, especially concerning reliability, false positives/negatives, and the model’s interpretability.

Looking ahead, there are multiple avenues for expanding upon this research:

  1. Broader SAST Tool Comparison: While our study focused on two specific SAST tools, future research could incorporate a broader range of tools to provide a more comprehensive comparison.

  2. Usability in Real-world Application: It would be beneficial to test GPT-4’s detection capabilities in real-world scenarios, such as live software development environments, to assess its practical applicability and compare its output with expert opinion.

  3. Integration with Development Environments: Research could explore how GPT-4 or similar models can seamlessly and securely integrate into popular development environments and platforms.

  4. Security-trained LLMs: While GPT-4 is a generalised model, there might be benefits in training custom language models specifically focused on security vulnerability detection.

  5. LLMs-trained using Fault-Tolerant Quantum Computers(FTQC):

  6. Jens Eisert et al. [82] provided a resource estimation for large machine learning models trained over Fault-Tolerant Quantum Computers (FTQC), focusing on significant computational expenses, power, and time consumption challenges. They demonstrated that FTQCs could offer efficient resolutions for generic (stochastic) gradient descent algorithms, scaling as \(O(T^2 \times \text{{polylog}}(n))\), where \(n\) is the size of the models and \(T\) is the number of iterations in training. The effectiveness depended on the models being sufficiently dissipative and sparse with minimal learning rates. The authors also explored the practical application, benchmarking models ranging from seven million to 103 million parameters, and found potential for quantum enhancement in sparse training after model pruning. This paper opens a new avenue for researching the resources and impact of training security-focused LLMs using FTQCs.

Additionally, we must recognise that these advancements have both benefits and risks. While these models can help defence, attackers could also use them to find new vulnerabilities, introducing an asymmetry in Offensive Cyber Operations (OCO) that necessitates vigilant monitoring and research, which we introduce in the next section.

5.1 Security concerns of LLMs↩︎

CISA has emphasised that AI should adhere to the principle of "Secure by Design" [83], suggesting a comprehensive threat model tailored for domain-specific LLMs, such as GPTs specialised in vulnerability scanning. BSI has outlined several threats pertinent to AI security [9]. Furthermore, it is crucial to recognise that many MLOps solutions rely on open-source frameworks. This fact introduces heightened security vulnerabilities, especially concerning supply chain attacks on open-source resources and undetectable hidden backdoors [84]. Shafi Goldwasser et al. shared an AI-era wisdom like Reflections on Trusting Trust [85], which showcases undetectable backdoors in AI.

We outline the various attacks linked to LLMs; however, creating a comprehensive threat map for LLM-enhanced SAST is an important area for future research:

  1. Poisoning Attacks: Attackers introduce malicious data into the training set to compromise the model’s performance [86].

  2. Backdoor Attacks: Attackers embed a hidden behaviour within a model, triggered by specific inputs during deployment [87].

  3. Supply chain attack: Malicious activities aimed at tampering with the AI software supply chain to compromise the model or system [88].

  4. Endpoint /API security breach: Exploiting vulnerabilities in the AI system’s access points or interfaces to gain unauthorised access or leak information [89].

  5. Model Stealing Attacks: For organisations that invested significant resources in developing a commercial or mission-critical AI model, model stealing is a threat [90].

  6. Membership Inference Attacks: In membership inference attacks, the attacker tries to determine whether a data sample was part of a model’s training data [91].

  7. Attribute Inference Attacks: In attribute inference attacks, the attacker seeks to breach the confidentiality of the model’s training data by determining the value of a sensitive attribute associated with a specific individual or identity in the training data [92].

  8. Model Inversion Attacks: Model inversion attacks aim to recover features that characterise classes from the training data [93].

  9. Denial of Service: Attackers overload or manipulate the AI system, rendering it non-operational or degrading its performance [9].

  10. Prompt injection: Manipulating the input prompts to mislead or control the output of models like GPT-4 [94].

  11. Jailbreaks: Bypassing restrictions or controls put on language models to access broader or hidden functionalities [95].

  12. Privacy breach: Exploiting the model to reveal sensitive or private information it might have been exposed to during training [96].

  13. GAN-based Attack: Using Generative Adversarial Networks to confuse or mislead the target AI model into making incorrect predictions or classifications [9].

In this paper, we do not elaborate on the attack surface of LLMs. Instead, our focus is to underscore the significance of adhering to principles such as security by design/default and privacy by design/default. We advocate for integrating MLSecOps and emphasise the application of defence-in-depth strategies, notably the Zero Trust Architecture. It is also imperative to consider specific requirements like the Software Bill of Materials (SBOM) and other best practices when leveraging LLM-enhanced vulnerability scanning. These considerations are not just recommended; they are indispensable. Also, GPT4 and code-LLMs may generate insecure codes that warn about over-reliance on LLMs [97].

As revealed in the Vulkan files [98], reconnaissance systems are an undeniable component of cyber warfare. Therefore, it’s imperative to enhance the resilience and robustness of LLM-enhanced SASTs through Federated Learning (FL-LLM), as these systems will become targets if they are not already. However, introducing FL-LLMs might also present new security challenges [99]. While using FL-LLM for training on a European scale/transatlantic scale might be feasible, training using a reliable dataset is crucial as the dataset’s quality will directly reflect the final performance of the model. Model hyperparameter tuning, retraining, and pruning will require substantial resources. Therefore, developing a high-quality European or even transatlantic dataset is unavoidable. Without such datasets, LLMs risk becoming costly failures due to the resource-intensive nature of training, model serving, and inference, leading to the potential for undertrained or poisoned models in cyber defence [100], [101]. Present datasets [102] often lack comprehensive coverage of all known CWEs, proper labelling, and multi-language data.

6 Conclusions↩︎

This paper provides an empirical and statistically grounded comparison of a general-purpose LLM (GPT-4 Advanced Data Analysis) and two SAST tools for detecting security vulnerabilities in code snippets representing 32 common security pitfalls. Our primary scientific contribution is a transparent evaluation procedure that defines (i) a curated set of representative vulnerability scenarios, (ii) a consistent binary scoring rule for detection outcomes, (iii) an aggregated SAST baseline, and (iv) paired statistical inference using McNemar’s test to compare detectors on the same samples. Within this controlled setting, GPT-4 achieved 30 correct detections out of 32 scenarios (93.75%), and the paired comparison indicates a statistically significant performance difference in favour of GPT-4.

From an applicability perspective, the results support using LLM-assisted analysis as a complementary capability to SAST in secure software development lifecycles. In particular, LLM-based reasoning can help surface higher-level vulnerability mechanisms and contextual explanations that can accelerate triage and remediation, while SAST remains valuable for systematic rule-based analysis and integration into CI/CD workflows. The study also highlights that adopting LLM-enhanced scanning must be coupled with secure deployment practices, including careful handling of sensitive code, access controls, logging hygiene, and governance over model usage in development environments.

Limitations of this study include the bounded scenario set (32 samples), the use of only two SAST tools, reliance on a specific GPT-4 interface configuration at the time of testing, and the use of static code snippets rather than full projects and runtime execution. Scoring decisions, while documented for replication, may also be affected by detector reporting style and by borderline cases where a finding is related but not identical to the intended label. Future work will expand the scenario set and language coverage, evaluate additional SAST tools and LLMs, add expert adjudication to reduce scoring ambiguity, and incorporate project-level and runtime evaluations to better characterise false positives, false negatives, and operational impact in real DevSecOps pipelines.

7 Appendix↩︎

Algorithm A1: McNemar test procedure for comparing GPT-4 and SAST

  1. Input: A dataset \(D\) with one row per security scenario and binary columns:

    • GPT-Correct \(\in \{0,1\}\)

    • SAST-Correct \(\in \{0,1\}\)

  2. Derive paired disagreement counts:

    • \(b \leftarrow \left|\{i \in D : \texttt{SAST-Correct}_i = 1 \land \texttt{GPT-Correct}_i = 0\}\right|\) (SAST-only)

    • \(c \leftarrow \left|\{i \in D : \texttt{SAST-Correct}_i = 0 \land \texttt{GPT-Correct}_i = 1\}\right|\) (GPT-only)

  3. Construct the 2x2 paired table: \[\begin{bmatrix} a & b \\ c & d \end{bmatrix} \quad \text{where } a \text{ and } d \text{ are not required for McNemar's statistic.}\]

  4. Compute McNemar’s test statistic: \[\chi^2 \leftarrow \frac{(|b-c|-1)^2}{b+c}\] where the \(-1\) is the continuity correction and is used when \(b+c > 0\).

  5. Compute p-value: obtain \(p\) from a chi-square distribution with 1 degree of freedom using \(\chi^2\).

  6. Decision rule: if \(p < 0.05\), reject \(H_0\); otherwise, fail to reject \(H_0\).

  7. Output: \(\chi^2\), \(p\), and the hypothesis decision.

References↩︎

[1]
I. Ghafoor, I. Jattala, S. Durrani, and C. M. Tahir, “Analysis of OpenSSL heartbleed vulnerability for embedded systems,” in 17th IEEE international multi topic conference 2014, 2014, pp. 314–319.
[2]
R. Sen, “Challenges to cybersecurity: Current state of affairs,” Communications of the Association for Information Systems, vol. 43, no. 1, p. 2, 2018.
[3]
T. Sharma et al., “A survey on machine learning techniques for source code analysis,” arXiv preprint arXiv:2110.09610, 2021.
[4]
OpenAI, “GPT-4 technical report.” arXiv.org, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://arxiv.org/abs/2303.08774.
[5]
H. D. Johansen and R. van Renesse, “FirePatch: Secure and time-critical dissemination of software patches,” IFIP, pp. 373–384, Jan. 2007, doi: 10.1007/978-0-387-72367-9_32.
[6]
“Regulations on the management of network product security vulnerabilities.” Www.gov.cn, 2021, Accessed: Aug. 20, 2023. [Online]. Available: https://www.gov.cn/gongbao/content/2021/content_5641351.htm.
[7]
“Tianfu cup international cybersecurity contest.” Tianfucup.com, 2022, Accessed: Aug. 20, 2023. [Online]. Available: https://www.tianfucup.com/2022/en/.
[8]
DARPA, “Artificial intelligence cyber challenge (AIxCC).” Dodsbirsttr.mil, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://www.dodsbirsttr.mil/topics-app/?baa=DOD_SBIR_2023_P1_C4.
[9]
BSI, “AI SECURITY CONCERNS IN a NUTSHELL.” Mar. 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://www.bsi.bund.de/SharedDocs/Downloads/EN/BSI/KI/Practical_Al-Security_Guide_2023.pdf?__blob=publicationFile&v=5.
[10]
BSI, “Machine learning in the context of static application security testing - ML-SAST.” Feb. 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://www.bsi.bund.de/SharedDocs/Downloads/EN/BSI/Publications/Studies/ML-SAST/ML-SAST-Studie-final.pdf?__blob=publicationFile&v=5.
[11]
D. Sobania, C. Hanna, M. Briesch, and J. Petke, “An analysis of the automatic bug fixing performance of ChatGPT.” Jan. 2023, [Online]. Available: https://arxiv.org/pdf/2301.08653.pdf.
[12]
W. Ma et al., “The scope of ChatGPT in software engineering: A thorough investigation.” May 2023, [Online]. Available: https://arxiv.org/pdf/2305.12138.pdf.
[13]
H. Li, Y. Hao, Y. Zhai, and Z. Qian, “The hitchhiker’s guide to program analysis: A journey with large language models.” Aug. 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://arxiv.org/pdf/2308.00245.pdf.
[14]
N. Tihanyi, T. Bisztray, R. Jain, M. Ferrag, L. Cordeiro, and V. Mavroeidis, “THE FORMAI DATASET: GENERATIVE AI IN SOFTWARE SECURITY THROUGH THE LENS OF FORMAL VERIFICATION *.” Jul. 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://arxiv.org/pdf/2307.02192.pdf.
[15]
M. Chen et al., “Evaluating large language models trained on code,” arXiv preprint arXiv:2107.03374. 2021.
[16]
A. Cheshkov, P. Zadorozhny, and R. Levichev, “Technical report: Evaluation of ChatGPT model for vulnerability detection.” Apr. 2023, [Online]. Available: https://arxiv.org/pdf/2304.07232.pdf.
[17]
X. Liu, Y. Tan, Z. Xiao, J. Zhuge, and R. Zhou, “Not the end of story: An evaluation of ChatGPT-driven vulnerability description mappings.” pp. 3724–3731, 2023, Accessed: Aug. 22, 2023. [Online]. Available: https://aclanthology.org/2023.findings-acl.229.pdf.
[18]
“OWASP top 10 for large language model applications | OWASP foundation.” Owasp.org, 2023, Accessed: Aug. 22, 2023. [Online]. Available: https://owasp.org/www-project-top-10-for-large-language-model-applications/.
[19]
Q. McNemar, “Note on the sampling error of the difference between correlated proportions or percentages,” Psychometrika, vol. 12, pp. 153–157, Jun. 1947, doi: 10.1007/bf02295996.
[20]
“Buffer overflow.” GitHub, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://github.com/pikulet/mem-attacks-example/blob/master/buffer_overflow/buffer_overflow.c.
[21]
“SQL injection attack.” GitHub, Apr. 2019, Accessed: Aug. 20, 2023. [Online]. Available: https://github.com/doublehops/sql-injection-attack-example.
[22]
“What is SQL injection (SQLi)?” Snyk Learn, 2021, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/sql-injection/.
[23]
“What is cross-site scripting (XSS)?” Snyk Learn, 2021, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/xss/.
[24]
“Broken access control.” Snyk Learn, 2022, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/broken-access-control/.
[25]
“Insecure deserialization.” Snyk Learn, 2022, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/insecure-deserialization/.
[26]
“Log4Shell.” Lunasec.io, Dec. 2021, Accessed: Aug. 20, 2023. [Online]. Available: https://www.lunasec.io/docs/blog/log4j-zero-day/.
[27]
“What is unrestricted file upload?” Snyk Learn, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/unrestricted-file-upload/.
[28]
“What is improper input validation?” Snyk Learn, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/improper-input-validation/.
[29]
“What are memory leaks?” Snyk Learn, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/memory-leaks/.
[30]
“What is mass assignment?” Snyk Learn, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/mass-assignment/.
[31]
“What is SSRF?” Snyk Learn, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/ssrf-server-side-request-forgery/.
[32]
“What is an insecure temporary file?” Snyk Learn, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/insecure-temporary-file/.
[33]
“The dangers of storing cleartext sensitive information in a cookie?” Snyk Learn, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/cleartext-sensitive-information-in-cookie/.
[34]
“What is an XPath injection?” Snyk Learn, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/xpath-injection/.
[35]
“What is weak password recovery?” Snyk Learn, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/weak-password-recovery/.
[36]
“What are logging vulnerabilities?” Snyk Learn, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/logging-vulnerabilities/.
[37]
“What is insecure randomness?” Snyk Learn, 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/insecure-randomness/.
[38]
“What is code injection?” Snyk Learn, 2022, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/malicious-code-injection/.
[39]
“No rate limiting.” Snyk Learn, 2022, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/no-rate-limiting/.
[40]
“How to manage vulnerable and outdated components.” Snyk Learn, 2022, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/vulnerable-and-outdated-components/.
[41]
“Insecure design.” Snyk Learn, 2022, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/insecure-design/.
[42]
“What is an insecure hash?” Snyk Learn, 2022, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/insecure-hash/.
[43]
“ReDoS.” Snyk Learn, 2022, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/redos/.
[44]
“XXE attack.” Snyk Learn, 2022, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/xxe/.
[45]
“CSRF attack.” Snyk Learn, 2022, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/csrf-attack/.
[46]
“DOM based XSS.” Snyk Learn, 2022, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/dom-based-xss/.
[47]
“Open redirect vulnerability.” Snyk Learn, 2022, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/open-redirect/.
[48]
“What is directory traversal?” Snyk Learn, 2021, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/directory-traversal/.
[49]
“What is prototype pollution?” Snyk Learn, 2021, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/prototype-pollution/.
[50]
“Container does not drop all default capabilities.” Snyk Learn, 2021, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/container-does-not-drop-all-default-capabilities/.
[51]
“Container runs in privileged mode.” Snyk Learn, 2021, Accessed: Aug. 20, 2023. [Online]. Available: https://learn.snyk.io/lesson/container-runs-in-privileged-mode/.
[52]
M. Corporation, Accessed: 21-08-2023“CWE-121: Stack-based buffer overflow.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/121.html.
[53]
M. Corporation, Accessed: 21-08-2023“CWE-564: SQL injection.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/564.html.
[54]
M. Corporation, Accessed: 21-08-2023“CWE-79: Improper neutralization of input during web page generation (’cross-site scripting’).” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/79.html.
[55]
M. Corporation, Accessed: 21-08-2023“CWE-284: Improper access control.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/284.html.
[56]
M. Corporation, Accessed: 21-08-2023“CWE-502: Deserialization of untrusted data.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/502.html.
[57]
M. Corporation, Accessed: 21-08-2023“CWE-434: Unrestricted upload of file with dangerous type.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/434.html.
[58]
M. Corporation, Accessed: 21-08-2023“CWE-20: Improper input validation.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/20.html.
[59]
M. Corporation, Accessed: 21-08-2023“CWE-401: Missing release of memory after effective lifetime.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/401.html.
[60]
M. Corporation, Accessed: 21-08-2023“CWE-915: Improperly controlled modification of dynamically-determined object attributes.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/915.html.
[61]
M. Corporation, Accessed: 21-08-2023“CWE-918: Server-side request forgery (SSRF).” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/918.html.
[62]
M. Corporation, Accessed: 21-08-2023“CWE-377: Insecure temporary file.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/377.html.
[63]
M. Corporation, Accessed: 21-08-2023“CWE-315: Cleartext storage of sensitive information in a cookie.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/315.html.
[64]
M. Corporation, Accessed: 21-08-2023“CWE-643: Improper neutralization of data within XPath expressions (’XPath injection’).” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/643.html.
[65]
M. Corporation, Accessed: 21-08-2023“CWE-640: Weak password recovery mechanism for forgotten password.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/640.html.
[66]
M. Corporation, Accessed: 21-08-2023“CWE-532: Insertion of sensitive information into log file.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/532.html.
[67]
M. Corporation, Accessed: 21-08-2023“CWE-330: Use of insufficiently random values.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/330.html.
[68]
M. Corporation, Accessed: 21-08-2023“CWE-89: Improper neutralization of special elements used in an SQL command (’SQL injection’).” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/89.html.
[69]
M. Corporation, Accessed: 21-08-2023“CWE-94: Improper control of generation of code (’code injection’).” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/94.html.
[70]
M. Corporation, Accessed: 21-08-2023“CWE-770: Allocation of resources without limits or throttling.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/770.html.
[71]
M. Corporation, Accessed: 21-08-2023“CWE-1352: OWASP top ten 2021 category A06:2021 - vulnerable and outdated components.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/1352.html.
[72]
M. Corporation, Accessed: 21-08-2023“CWE-657: Violation of secure design principles.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/657.html.
[73]
M. Corporation, Accessed: 21-08-2023“CWE-328: Use of weak hash.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/328.html.
[74]
M. Corporation, Accessed: 21-08-2023“CWE-185: Incorrect regular expression.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/185.html.
[75]
Accessed: 21-08-2023“CWE-611: Improper restriction of XML external entity reference.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/611.html.
[76]
Accessed: 21-08-2023“CWE-352: Cross-site request forgery (CSRF).” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/352.html.
[77]
Accessed: 21-08-2023“CWE-80: Improper neutralization of script-related HTML tags in a web page (basic XSS).” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/80.html.
[78]
M. Corporation, Accessed: 21-08-2023“CWE-601: URL redirection to untrusted site (’open redirect’).” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/601.html.
[79]
Accessed: 21-08-2023“CWE-23: Relative path traversal.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/23.html.
[80]
Accessed: 21-08-2023“CWE-1321: Improperly controlled modification of object prototype attributes (’prototype pollution’).” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/1321.html.
[81]
Accessed: 21-08-2023“CWE-250: Execution with unnecessary privileges.” 2023, [Online]. Available: https://cwe.mitre.org/data/definitions/250.html.
[82]
J. Eisert et al., “Towards provably efficient quantum algorithms for large-scale machine learning models,” Research Square (Research Square), 2023, doi: 10.21203/rs.3.rs-2860733/v1.
[83]
CISA, “Software must be secure by design, and artificial intelligence is no exception | CISA.” Cybersecurity; Infrastructure Security Agency CISA, Aug. 2023, Accessed: Aug. 19, 2023. [Online]. Available: https://www.cisa.gov/news-events/news/software-must-be-secure-design-and-artificial-intelligence-no-exception.
[84]
S. Goldwasser, M. P. Kim, V. Vaikuntanathan, and O. Zamir, “Planting undetectable backdoors in machine learning models,” in 2022 IEEE 63rd annual symposium on foundations of computer science (FOCS), 2022, pp. 931–942.
[85]
K. Thompson, “Reflections on trusting trust,” Communications of the ACM, vol. 27, no. 8, pp. 761–763, 1984.
[86]
L. Truong et al., “Systematic evaluation of backdoor data poisoning attacks on image classifiers,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition (CVPR) workshops, 2020.
[87]
X. Chen, C. Liu, B. Li, K. Lu, and D. Song, “Targeted backdoor attacks on deep learning systems using data poisoning.” arXiv.org, 2017, Accessed: Aug. 21, 2023. [Online]. Available: https://arxiv.org/abs/1712.05526.
[88]
D. Williams, C. Clark, R. McGahan, B. Potteiger, D. Cohen, and P. Musau, “Discovery of AI/ML supply chain vulnerabilities within automotive cyber-physical systems,” in 2022 IEEE international conference on assured autonomy (ICAA), 2022, pp. 93–96.
[89]
M. Korolov, “Why API attacks are increasing and how to avoid them.” CSO Online; CSO Online, Jul. 2023, Accessed: Aug. 21, 2023. [Online]. Available: https://www.csoonline.com/article/646557/why-api-attacks-are-increasing-and-how-to-avoid-them.html.
[90]
“I know what you trained last summer: A survey on stealing machine learning models and defences | ACM computing surveys.” ACM Computing Surveys, 2023, Accessed: Aug. 21, 2023. [Online]. Available: https://dl.acm.org/doi/10.1145/3595292.
[91]
R. Shokri, M. Stronati, C. Song, and V. Shmatikov, “Membership inference attacks against machine learning models,” arXiv (Cornell University), May 2017, doi: 10.1109/sp.2017.41.
[92]
Y. Zhang, R. Jia, H. Pei, W. Wang, B. Li, and D. Song, “The secret revealer: Generative model-inversion attacks against deep neural networks,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2020, pp. 253–261.
[93]
A. Chawla, H. Yin, P. Molchanov, and J. Alvarez, “Data-free knowledge distillation for object detection,” in Proceedings of the IEEE/CVF winter conference on applications of computer vision, 2021, pp. 3289–3298.
[94]
F. Perez and I. Ribeiro, “Ignore previous prompt: Attack techniques for language models,” arXiv preprint arXiv:2211.09527, 2022.
[95]
X. Shen, Z. Chen, M. Backes, Y. Shen, and Y. Zhang, “"Do anything now": Characterizing and evaluating in-the-wild jailbreak prompts on large language models.” arXiv.org, 2023, Accessed: Aug. 21, 2023. [Online]. Available: https://arxiv.org/abs/2308.03825.
[96]
X. Pan, M. Zhang, S. Ji, and M. Yang, “Privacy risks of general-purpose language models,” in 2020 IEEE symposium on security and privacy (SP), 2020, pp. 1314–1331.
[97]
O. Asare, N. Asokan, and M. Nagappan, “Copilot security: A user study.” Aug. 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://arxiv.org/pdf/2308.06587.pdf.
[98]
C. Timberg, E. Nakashima, H. Munzinger, and H. Tanriverdi, “Secret trove offers rare look into russian cyberwar ambitions.” Washington Post; The Washington Post, Mar. 2023, Accessed: Aug. 21, 2023. [Online]. Available: https://www.washingtonpost.com/national-security/2023/03/30/russian-cyberwarfare-documents-vulkan-files/.
[99]
C. Chen, X. Feng, J. Zhou, J. Yin, and X. Zheng, “Federated large language model : A position paper.” 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://arxiv.org/pdf/2307.08925.pdf.
[100]
F. Xue, Y. Fu, W. Zhou, Z. Zheng, and Y. You, “To repeat or not to repeat: Insights from scaling LLM under token-crisis.” May 2023, Accessed: Aug. 20, 2023. [Online]. Available: https://arxiv.org/pdf/2305.13230.pdf.
[101]
J. Hoffmann et al., “Training compute-optimal large language models,” arXiv preprint arXiv:2203.15556. 2022.
[102]
Y. Chen, Z. Ding, X. Chen, and D. Wagner, “DiverseVul: A new vulnerable source code dataset for deep learning based vulnerability detection,” arXiv preprint arXiv:2304.00409, 2023.

  1. https://www.sonarsource.com/products/sonarcloud/↩︎

  2. https://www.clouddefense.ai/↩︎

  3. https://github.com/owlmt/owmlt-llm-sast-artifacts↩︎