AI-Generated Code Detection and Quality/Security Assessment Framework

Artificial Intelligence (AI) tools like GitHub Copilot and ChatGPT are changing software development by automating routine coding tasks and speeding up delivery times. However, using AI-generated code in production environments comes with significant challenges. These include verifying the source of the code, ensuring its quality, and managing vulnerabilities. This paper proposes a flexible, multi-layered framework to (i) determine whether a code snippet is created by AI or a human and (ii) evaluate its quality and security using a combined risk score. The framework uses stylometric analysis, abstract syntax tree (AST) patterns, and static application security testing (SAST) results alongside machine learning classifiers. It aims to be effective against code obfuscation, reformatting, and any edits made afterward.

Authors

Publication Details

Journal
International journal of multidisciplinary and scientific emerging research.
Published
2025-03-25
DOI
https://doi.org/10.15662/ijmserh.2025.1303074
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

AI-Generated Code Detection and Quality/Security Assessment Framework

Saiyad Uzaib
International journal of multidisciplinary and scientific emerging research.
Software Engineering Research
article

AI-Generated Code Detection and Quality/Security Assessment Framework

Saiyad Uzaib
article en

Abstract

Artificial Intelligence (AI) tools like GitHub Copilot and ChatGPT are changing software development by automating routine coding tasks and speeding up delivery times. However, using AI-generated code in production environments comes with significant challenges. These include verifying the source of the code, ensuring its quality, and managing vulnerabilities. This paper proposes a flexible, multi-layered framework to (i) determine whether a code snippet is created by AI or a human and (ii) evaluate its quality and security using a combined risk score. The framework uses stylometric analysis, abstract syntax tree (AST) patterns, and static application security testing (SAST) results alongside machine learning classifiers. It aims to be effective against code obfuscation, reformatting, and any edits made afterward.

International journal of multidisciplinary and scientific emerging research.Vol. 13(03)
Openalex Percentile: Top 62%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.