Published November 10, 2026 | Version v1

Coverage Aware Security Assessment of AI Generated Code

Contributors

Hosting institution:

Description

A security scanner that reports no findings has not necessarily completed an assessment of the

supplied program. This distinction is especially important when AI-generated code is extracted from

research archives containing refusals, incomplete responses, or serialization artifacts. This study

presents a reproducible secondary analysis of 4,200 archived Gemini-Pro outputs derived from 150

security-oriented prompts and 27 mutations per prompt. The corpus contains 1,876 C and 2,324

Python records. We combine language-frontend checks, Semgrep Community Edition diagnostics,

and supplementary Python analysis with Bandit in a coverage-aware assessment framework. Only

1,058 outputs satisfy the specified frontend and scanner-completion conditions. Semgrep reports at

least one finding in 1,328 outputs; among the 2,872 outputs without findings, 2,082, or 72.49%, do

not satisfy those conditions. A parent-aware analysis identifies rule-profile changes in 24 of 680 pairs

for which both original and mutated outputs are frontend-accepted. The prespecified directional test

of reduced frontend acceptance and the two language-specific tests of alert-rate change are not

supported after multiplicity adjustment. A post hoc extraction sensitivity check changes frontend

acceptance in 14 records without changing their alert presence. The results demonstrate an

interpretation problem in this archive rather than a verified vulnerability prevalence. The contribution

is an implemented assessment framework, an auditable empirical result, and a reproducibility

package that separates candidate findings, bounded no-finding outcomes, and unresolved

assessments.

Files

Research_Paper.pdf

Files (402.6 kB)

Name Size
md5:5aa826efff69e5704a17bcb376d86cf4
402.6 kB Preview Download