• HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
Monday, November 23, 2026
BIOENGINEER.ORG
No Result
View All Result
  • Login
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
  • HOME
  • NEWS
  • EXPLORE
    • CAREER
      • Companies
      • Jobs
        • Lecturer
        • PhD Studentship
        • Postdoc
        • Research Assistant
    • EVENTS
    • iGEM
      • News
      • Team
    • PHOTOS
    • VIDEO
    • WIKI
  • BLOG
  • COMMUNITY
    • FACEBOOK
    • INSTAGRAM
    • TWITTER
No Result
View All Result
Bioengineer.org
No Result
View All Result
Home NEWS Science News Technology

Automated Study Shows Functional Code Models Frequently Produce Exploitable Software Vulnerabilities

by
November 23, 2026
in Technology
Reading Time: 5 mins read
0
Automated Study Shows Functional Code Models Frequently Produce Exploitable Software Vulnerabilities

Automated Study Shows Functional Code Models Frequently Produce Exploitable Software Vulnerabilities

Share on FacebookShare on TwitterShare on LinkedinShare on RedditShare on Telegram

A comprehensive empirical study published in Automated Software Engineering demonstrates that large language models optimized for software engineering frequently generate functional source code containing severe security vulnerabilities. Led by Mohammed Latif Siddiq, Noshin Ulfat, Nishat Raihan, Joanna C. S. Santos, and Marcos Zampieri, the research team created Multi-SALLM, an automated benchmarking framework engineered to systematically evaluate the safety of artificial intelligence code generation across multiple programming languages and diverse natural languages. Their findings uncover a persistent trade-off in modern code generation: high functional correctness does not inherently imply software security, and models that generate the highest proportion of executable, test-passing solutions routinely expose the highest rates of exploitable security weaknesses across standard development tasks.

The investigation was designed to address major blind spots in traditional software engineering evaluations of artificial intelligence. Standard benchmarks and widely adopted performance metrics such as pass@k and CodeBLEU prioritize whether an artificial intelligence model can generate source code that satisfies unit tests or mirrors reference implementations, often drawn from competitive programming challenges or basic classroom exercises. These test environments rarely capture the architectural complexity, dependency interactions, or security hazards of enterprise production environments where generated routines handle untrusted input. Consequently, models can achieve outstanding functional benchmarks while systematically reproducing unsafe programming idioms, insecure application programming interface calls, and common vulnerability patterns found throughout large-scale public training repositories.

To rigorously test these boundaries, the researchers assembled a curated dataset grounded in real-world security challenges, comprising 125 carefully designed base prompts. This collection was established by mining 500 popular Stack Overflow queries tagged with terms indicating insecure or vulnerable Python code, extracting demonstrative examples and guidance from the Common Weakness Enumeration, and mining rule sets from CodeQL static analyzer documentation and Sonar rules. To bolster ecological validity, the researchers incorporated 25 prompts abstracted directly from real-world Common Vulnerabilities and Exposures across 17 distinct weakness categories affecting Python libraries and frameworks. The final dataset encompasses 45 distinct weakness identifiers drawn from the MITRE Top 25 Most Dangerous Software Weaknesses and established industrial security rules, with every prompt featuring a function signature, required imports, associated test harnesses, and verified insecure reference implementations.

Recognizing that global developers prompt models in diverse native languages, the investigators expanded the dataset across 22 non-English natural languages, representing 11 major linguistic families, using a translation workflow powered by GPT-4o-Mini. To guarantee semantic fidelity and prevent translation artifacts from distorting model comprehension, the pipeline applied an automated back-translation protocol evaluated via BERTScore, selecting the highest-scoring candidate among ten iterations per prompt. The average BERTScore across the natural languages exceeded 85 percent semantic similarity to the original English specifications, confirming consistent conceptual equivalence. Furthermore, the authors systematically generalized the dataset beyond Python by developing aligned Java and C++ versions for every prompt, creating a balanced corpus of 2,875 evaluation prompts per programming language.

Evaluating the generated outputs across four prominent models—StarCoder2, Qwen2.5-Coder, GPT-4o-Mini, and Gemini-2.5-Flash—required an automated pipeline capable of repairing raw model outputs and conducting rigorous dual-mode security assessments. Because generative models frequently output conversational commentary, unmatched formatting fences, duplicated imports, or incomplete syntax, the Multi-SALLM framework employs a deterministic six-rule repair module that extracts fenced code blocks, strips redundant model-specific tags, balances braces, and infers missing standard library headers. Cleaned outputs are then placed into isolated Docker containers where they undergo test-based dynamic verification using language-specific unit test suites alongside static taint and pattern analysis via CodeQL to detect improper data flows, unsafe system calls, weak cryptographic algorithms, and injection risks.

To formalize this multi-dimensional assessment, the authors introduced two novel evaluation metrics: vulnerable@k and security@k. While the classic pass@k metric uses an unbiased estimator to calculate the probability that at least one program out of k generated samples successfully passes all functional tests, vulnerable@k measures the probability that at least one output within a k-sample budget contains an exploitable flaw identified by static or dynamic analysis. Complementing this, security@k calculates the proportion of prompts for which all k generated solutions are entirely free of detected vulnerabilities. By treating functional validity and software security as orthogonal properties, Multi-SALLM enables practitioners to distinguish whether a model produces secure solutions or merely fails to compile enough valid code to trigger automated vulnerability detectors.

The empirical results demonstrated that GPT-4o-Mini achieved the highest overall functional pass rates across all settings, reaching pass@1 rates between 28 percent and 34 percent in Python, 15 percent to 18 percent in Java, and 33 percent to 36 percent in C++. However, this high functional yield was coupled with high vulnerability exposure. Under CodeQL static analysis for Python, GPT-4o-Mini exhibited a vulnerable@1 rate of approximately 43 percent, while Gemini-2.5-Flash recorded approximately 37 percent, Qwen2.5-Coder registered 28 percent, and StarCoder2 generated the fewest vulnerable samples at approximately 7 percent. The apparent safety of lower-yield models proved misleading: StarCoder2 achieved negligible functional pass rates, below 1.5 percent across most families, indicating that its low vulnerability rate was primarily an artifact of producing uncompilable or incomplete code that could not be parsed by static analyzers or executed in test harnesses.

Dynamic test-based evaluations confirmed that sampling strategies heavily influence developer risk. Across all tested programming languages, expanding the sampling budget from k equals 1 to k equals 5 or increasing decoding temperature systematically increased the vulnerable@k metric while causing security@k to drop steeply. For example, in dynamic Python testing, Gemini-2.5-Flash rose from a vulnerable@1 of approximately 40 percent to between 50 percent and 55 percent at vulnerable@5, while its security@k collapsed from approximately 40 percent down to 15 to 25 percent. Similarly, Qwen2.5-Coder saw its security@5 fall to between 3 percent and 8 percent. This dynamic occurs because broader stochastic exploration increases the cumulative probability of drawing at least one flawed completion, meaning that developers relying on multi-candidate generation are progressively more likely to encounter insecure variants unless rigorous downstream validation filters are deployed.

When comparing linguistic effects, the researchers discovered that the target programming language exerted a vastly stronger influence on generation quality and security than the natural language used in the prompt. While model rankings and performance remained remarkably stable across all 23 natural languages and 11 language families, shifting between programming languages created dramatic variations. For GPT-4o-Mini, Python pass@1 varied by only 5.7 percentage points across the 11 natural language families, yet the gap between Java and C++ exceeded 18 percentage points in 9 of those families. Java consistently lagged behind Python and C++ in functional yield and security resilience across models, which the authors attribute to Java’s structural verbosity and strict class hierarchies. Conversely, C++ achieved strong pass@1 rates, though static analysis via CodeQL reported zero detections for top models due to having only 14 available rules compared to 48 rules for Python, underscoring the critical need to interpret static tool metrics alongside dynamic test suites.

The authors emphasize several methodological boundaries, including the scope of three programming languages, the curated nature of the benchmark prompts, and the reliance on automated translation without human native-speaker review. In addition, static analyzers like CodeQL remain subject to false negatives when detecting complex vulnerabilities, and models with severe compilation bottlenecks inevitably distort comparative static rankings. Nevertheless, the Multi-SALLM benchmark establishes that natural language prompting is not the primary barrier to secure code generation. Because advanced language models reliably produce functional code that mirrors dangerous programming habits, the authors conclude that artificial intelligence code assistants cannot be deployed safely without integrated pipelines incorporating automated repair, static verification, and sandboxed dynamic execution.

Subject of Research: Multilingual security assessment of large language models for code generation

Article Title: Multi-SALLM: a multilingual security assessment of generated code

Article References: Siddiq, M. L., Ulfat, N., Raihan, N., Santos, J. C. S., & Zampieri, M. (2026). Multi-SALLM: a multilingual security assessment of generated code. Automated Software Engineering, 33(4), Article 122. https://doi.org/10.1007/s10515-026-00646-5

Image Credits: AI Generated

DOI: 10.1007/s10515-026-00646-5

Keywords: Large Language Models, Code Generation, Software Security, Multi-SALLM, Vulnerability Detection, CodeQL, Static Analysis, Dynamic Testing, Python, Java, C++, Pass@k, Security@k, Vulnerable@k, GPT-4o-Mini, Gemini-2.5-Flash, Qwen2.5-Coder, StarCoder2

News Source: Denise Maddox. (November 23, 2026). Automated Study Shows Functional Code Models Frequently Produce Exploitable Software Vulnerabilities. Scienmag.

Tags: C++code generationCodeQLdynamic testingGemini-2.5-flashGPT-4o-miniJavaLarge Language ModelsMulti-SALLMPass@kPythonqwen2.5-coderSecurity@ksoftware securityStarCoder2static analysisvulnerability detectionVulnerable@k
Share12Tweet7Share2ShareShareShare1

Related Posts

Perfusable Microfluidic Device Establishes and Maintains Hypoxia Under Continuous Fluid Perfusion

Perfusable Microfluidic Device Establishes and Maintains Hypoxia Under Continuous Fluid Perfusion

November 23, 2026
Segmented Thrust Fault Slip and Strata Clamping Trigger Underground Coalburst Disasters

Segmented Thrust Fault Slip and Strata Clamping Trigger Underground Coalburst Disasters

November 23, 2026

Applied Magnetic Fields Can Suppress or Enhance Damaging Laser Electromagnetic Pulses

November 23, 2026

Entropy-Constrained Neural Networks Outperform Standard Formulations in Buckley-Leverett Flow Benchmarks

November 23, 2026

POPULAR NEWS

  • Groundwater in Igarra Exceeds Safe Metal Limits and Elevates Health Risks

    Groundwater in Igarra Exceeds Safe Metal Limits and Elevates Health Risks

    29 shares
    Share 12 Tweet 7
  • Review Highlights TMEM16A in Epithelial Fluid Transport and Cellular Plasticity

    29 shares
    Share 12 Tweet 7
  • Researchers Identify Epidemic Clostridioides Difficile Strain RT176 in China

    29 shares
    Share 12 Tweet 7
  • Conduction System Pacing and Leadless Implants Transform Modern Cardiovascular Care

    29 shares
    Share 12 Tweet 7

About

We bring you the latest biotechnology news from best research centers and universities around the world. Check our website.

Follow us

Recent News

Review Evaluates Subphenotyping Approaches to Advance Precision Medicine in ARDS

Pooled Prime Editing Enables Multiplexed Endogenous Protein Tagging and Localization Mapping

Perfusable Microfluidic Device Establishes and Maintains Hypoxia Under Continuous Fluid Perfusion

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 88 other subscribers
  • Contact Us

Bioengineer.org © Copyright 2023 All Rights Reserved.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Homepages
    • Home Page 1
    • Home Page 2
  • News
  • National
  • Business
  • Health
  • Lifestyle
  • Science

Bioengineer.org © Copyright 2023 All Rights Reserved.