mlsanityData to 24 Nov 2026

Real Package, Wrong Controller: Static Auditing of Vendor--Protocol Mismatches in LLM-Generated PLC Code

arXiv 2611.33227 ↗Submitted 24 Nov 2026Announced 26 Nov 2026cs.CR cs.LG cs.SEcited by 0

Not on the map. Why?

Abstract (arXiv)

Language models can generate Python that drives industrial protocols on programmable logic controllers, yet existing code-grounding checks ask whether an imported package or symbol exists rather than whether it suits the declared industrial target. We define metadata-conditioned, import-level vendor--protocol incompatibility and build textscProteus-OT, a label-free static verifier over a version-pinned graph of documented bindings. Across 883 generated scripts, 180 carry an import-level mismatch against the declared target (20.4%); restricting to single-vendor targets gives 16.3%, and additionally requiring the offending library to reach a protocol communication call gives 14.2%, which we read as conditional on the corpus metadata rather than on verified intent. None of the 28 adjudicable human control files carries one, a sample too small to estimate a prevalence. Within the balanced subset, 96.6% of mismatching scripts import packages and call methods that exist, so an existence baseline does not represent them, and every positive ships with an inspectable witness. We also audit machine-versus-human classification on the same corpus, where character n-grams reach macro-F1 1.000 under task, model and vendor-disjoint partitions and survive comment removal, an AST round trip and identifier anonymisation. The trailing newline present in 95.2% of human files and in none of the generated ones separates the classes on its own. Vendor--protocol consistency is a useful static audit target, whereas provenance classification on repository-labelled corpora is not authorship detection.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 11 of its 24 references that are in the map. Submitted 24 Nov 2026, announced 26 Nov 2026.

Builds on

11 of 24 references.

References · 11

  1. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,337
  2. 2018Annotation Artifacts in Natural Language Inference Datacited by 722
  3. 2023Can AI-Generated Text be Reliably Detected?cited by 406
  4. 2023GPT detectors are biased against non-native English writerscited by 189
  5. 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 131
  6. 2020Dos and Don'ts of Machine Learning in Computer Securitycited by 119
  7. 2018TESSERACT: Eliminating Experimental Bias in Malware Classification across Space and Timecited by 116
  8. 2024AutoAttacker: A Large Language Model Guided System to Implement Automatic Cyber-attackscited by 100
  9. 2024We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMscited by 72
  10. 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verificationcited by 37
  11. 2024LLM4PLC: Harnessing Large Language Models for Verifiable Programming of PLCs in Industrial Control Systemscited by 26

Built on by

Not cited yet.