Pith. sign in

REVIEW 2 cited by

DeVAIC: A Tool for Security Assessment of AI-generated Code

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2404.07548 v2 pith:ZKNZURFJ submitted 2024-04-11 cs.SE

classification cs.SE
keywords codetooldevaicsecurityai-generateddetectionevaluateincomplete
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Context: AI code generators are revolutionizing code writing and software development, but their training on large datasets, including potentially untrusted source code, raises security concerns. Furthermore, these generators can produce incomplete code snippets that are challenging to evaluate using current solutions. Objective: This research work introduces DeVAIC (Detection of Vulnerabilities in AI-generated Code), a tool to evaluate the security of AI-generated Python code, which overcomes the challenge of examining incomplete code. Method: We followed a methodological approach that involved gathering vulnerable samples, extracting implementation patterns, and creating regular expressions to develop the proposed tool. The implementation of DeVAIC includes a set of detection rules based on regular expressions that cover 35 Common Weakness Enumerations (CWEs) falling under the OWASP Top 10 vulnerability categories. Results: We utilized four popular AI models to generate Python code, which we then used as a foundation to evaluate the effectiveness of our tool. DeVAIC demonstrated a statistically significant difference in its ability to detect security vulnerabilities compared to the state-of-the-art solutions, showing an F1 Score and Accuracy of 94% while maintaining a low computational cost of 0.14 seconds per code snippet, on average. Conclusions: The proposed tool provides a lightweight and efficient solution for vulnerability detection even on incomplete code.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Optimizing AI-Assisted Code Generation

    cs.SE 2024-12 conditional novelty 2.0 of 10

    A literature review and conceptual design for a secure, user-friendly AI code generation platform, with no implementation or experimental validation.

  2. Applied Statistics in the Era of Artificial Intelligence: A Review and Vision

    stat.AP 2024-12 unverdicted novelty 2.0 of 10

    A review and vision paper: applied statistics and AI are complementary, and statisticians should focus on uniquely human skills as AI automates routine analysis.

Pith tools