← Lab /Security & privacy

Prompt injections can cause LLM log analyzers to label malicious traces as benign

LLM-based log interpretation can be fooled by injected prompts into misclassifying attacks as benign

Security & privacy arXiv 27 Jul 2026 Attack Simulation evidence Threat model

Published as “Just Testing, Move Along: Evasion of LLM-based System Log Interpretation by Prompt Injection”

Why it matters

LLM-driven log analysis pipelines can be silently subverted by modest text injections, but defenders can monitor LLM explanations to flag such manipulations.

Summary

Prompt injection can cause several LLMs to misclassify malicious log traces as benign, with the strongest injection string (Strong-Test-Long) achieving an attack success rate of 53.3% across 15 attack cases. The authors evaluated four LLMs (GPT-5.2, Qwen3.5, Llama-3, Devstral-2) on real attack logs from public datasets and showed that unmodified logs are consistently flagged as malicious. However, the evasion is not universal and explanations often reveal the injected manipulation, offering a detection avenue.

What they found 1

  1. Strong-Test-Long injection achieves the highest evasion performance.

    “Strong-Test-Long emerges as the most effective. It achieves scores of 6.0 (corresponding to Almost Certain: Normal) or higher in 8 out of 15 attack cases (ASR= 53.3%) and attains the highest overall average score of 4.53.”

Caveats 1

  • explanations generated by the LLMs alongside their classifications frequently contain indicators of adversarial manipulation that can be leveraged to detect such attacks.

What’s new here 4

  • Systematic framework for evaluating prompt-injection attacks against LLM-based log interpretation.
  • Open dataset of 15 attack cases with injected strings spanning remote and local injection vectors.
  • Quantitative measurement of injection transferability across multiple large-scale LLMs.
  • Analysis of detection cues in LLM-generated explanations for injected logs.

Threat model stated by the source

AdversaryAttacker seeking to downgrade the severity rating of malicious activity in LLM-based log analysis.
CapabilityCan inject arbitrary text into log fields (e.g., User-Agent, command-line parameters) and iteratively refine injections using a surrogate model.
AssumesBlack-box access to the detection system (no knowledge of model architecture or parameters).; Partial knowledge of the logging format and which fields are recorded.; Cannot modify the detector, its training data, or tamper with logs after generation.