← Lab /AI/ML

41.6% of research artifacts contain insecure code patterns

Many publicly released research artifacts have insecure code that could be exploited

AI/ML arXiv 7 May 2026 Measurement Prototype evidence

Published as “On the Security of Research Artifacts”

Why it matters

SAFE can be adopted as an optional security assessment layer in artifact evaluation pipelines, helping reviewers and authors identify and mitigate real risks before artifacts are reused or deployed.

Summary

SAFE can automatically classify security-relevant versus benign findings in research artifacts with 84.80% accuracy (macro F1 84.63%) on an annotated subset, but its multi-class performance is lower (74.14% accuracy, macro F1 60.35%) and it fails to identify any BENIGN_RESEARCH_USAGE instances. The paper also reports that insecure coding practices are common across 509 publicly released artifacts. Evidence comes from a static-analysis study and a comparison against expert labels, but the evaluation is limited to a relatively small manually-annotated set.

What they found 2

  1. SAFE achieves high overall accuracy in distinguishing security-relevant from non-security findings.

    “Overall Analysis. On the annotated dataset, SAFE achieves an accuracy of 84.80%, with a macro F1-score of 84.63% in distinguishing security-relevant and non-security findings.”

  2. The framework correctly classifies the majority of non-security and security-relevant flags.

    “Our analysis shows that 82.19% of non-security flags are correctly classified, while 88.46% of security-relevant flags are correctly identified.”

Caveats 5

  • Multi-class classification performance is moderate (74.14% accuracy, macro F1 60.35%).
  • The model fails to correctly identify any instances of the BENIGN_RESEARCH_USAGE category, resulting in zero true positives.
  • High confusion between BENIGN_RESEARCH_USAGE, CONTEXTUAL_RISK, and HARDENING_RECOMMENDATION categories indicates difficulty capturing fine-grained semantic boundaries.
  • The difficulty in correctly classifying BENIGN_RESEARCH_USAGE and the confusion with adjacent categories suggest that the model struggles to capture fine-grained semantic boundaries between related security concepts.
  • The framework relies on static analysis context and does not incorporate runtime behavior, which may further limit its ability to distinguish between contextual risk and benign usage.

What’s new here 4

  • Introduces a framework (SAFE) that combines static analysis with LLM-based, context-aware reasoning to assess artifact security.
  • Provides a taxonomy and structured security labels that go beyond simple functional reproducibility checks.
  • Demonstrates a cost-effective, scalable approach (≈$0.13 per artifact) for large-scale artifact collections.
  • Integrates security reasoning into the artifact evaluation workflow, proposing optional security badges.