We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.DB

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Databases

Title: The FormAI Dataset: Generative AI in Software Security Through the Lens of Formal Verification

Abstract: This paper presents the FormAI dataset, a large collection of 112, 000 AI-generated compilable and independent C programs with vulnerability classification. We introduce a dynamic zero-shot prompting technique constructed to spawn diverse programs utilizing Large Language Models (LLMs). The dataset is generated by GPT-3.5-turbo and comprises programs with varying levels of complexity. Some programs handle complicated tasks like network management, table games, or encryption, while others deal with simpler tasks like string manipulation. Every program is labeled with the vulnerabilities found within the source code, indicating the type, line number, and vulnerable function name. This is accomplished by employing a formal verification method using the Efficient SMT-based Bounded Model Checker (ESBMC), which uses model checking, abstract interpretation, constraint programming, and satisfiability modulo theories to reason over safety/security properties in programs. This approach definitively detects vulnerabilities and offers a formal model known as a counterexample, thus eliminating the possibility of generating false positive reports. We have associated the identified vulnerabilities with Common Weakness Enumeration (CWE) numbers. We make the source code available for the 112, 000 programs, accompanied by a separate file containing the vulnerabilities detected in each program, making the dataset ideal for training LLMs and machine learning algorithms. Our study unveiled that according to ESBMC, 51.24% of the programs generated by GPT-3.5 contained vulnerabilities, thereby presenting considerable risks to software safety and security.
Comments: this https URL PLEASE USE PUBLISHED VERSION FOR CITATION: this https URL
Subjects: Databases (cs.DB); Artificial Intelligence (cs.AI)
Journal reference: PROMISE 2023: Proceedings of the 19th International Conference on Predictive Models and Data Analytics in Software Engineering December 2023 Pages 33 to 43
DOI: 10.1145/3617555.3617874
Cite as: arXiv:2307.02192 [cs.DB]
  (or arXiv:2307.02192v3 [cs.DB] for this version)

Submission history

From: Tamas Bisztray [view email]
[v1] Wed, 5 Jul 2023 10:39:58 GMT (2583kb,D)
[v2] Sat, 2 Sep 2023 13:23:29 GMT (2058kb,D)
[v3] Thu, 28 Mar 2024 07:52:02 GMT (2465kb,D)

Link back to: arXiv, form interface, contact.