← Lab /AI/ML

LLMs recover IOCs from malicious scripts with at most 65.4 F1

LLMs achieve limited static IOC extraction performance, with the best model reaching only 65.4 F1 on the benchmark

AI/ML arXiv 5 Sep 2026 Benchmark Prototype evidence

Published as “SCRIPTIOC-BENCH: A Benchmark for Recognizing Actionable Threat Intelligence from Script-Based Malware using LLMs”

Why it matters

Current LLMs cannot yet be relied upon for fully automated static IOC extraction, so security teams must combine them with specialized tools or human review.

Summary

The strongest model (GPT-Terra or Gemini-Pro) only achieves 65.4 F1 on static IOC extraction, and even the best models recover just 31-46 % of program-dependent indicators, showing that reliable extraction remains difficult. The benchmark reveals sharp performance drops as reconstruction depth increases, and longer scripts further degrade recall and increase response failures. Tool augmentation and task-specific adaptation improve precision (up to 48 %) and grounding but do not solve program-dependent recovery.

What they found 3

  1. The strongest LLM reaches only 65.4 F1 on the benchmark.

    “the strongest model reaches only 65.4 F1.”

  2. Frontier models recover up to 91.7 % of Direct IOCs but only 31-46 % of Program-dependent IOCs.

    “Frontier models recover up to 91.7% of Direct IOCs but only 31-46% of Program-dependent IOCs”

  3. Longer scripts increase response-failure rates and reduce recall beyond regex baselines.

    “Longer inputs degrade both recovery capability and response reliability.”

Caveats 6

  • Even the best model’s F1 is only 65.4 %, far from perfect.
  • Program-dependent recall never exceeds 46 % for any model, indicating a major gap.
  • Precision of the base 8B model is only 31 %, showing many false positives.
  • Program-dependent recovery remains difficult even for frontier models.
  • Our results show that static IOC extraction remains challenging even for frontier models;
  • Scope. This case study is intended to demonstrate that the failure modes SCRIPTIOC-BENCH surfaces are actionable, rather than to establish generality across models;

What’s new here 4

  • Introduces SCRIPTIOC-BENCH, the first benchmark focused on statically recoverable IOCs from real-world script-based malware.
  • Annotates each IOC with a recovery-level (Direct, Fixed-transform, Program-dependent) to assess reconstruction difficulty.
  • Provides a fine-grained false-positive taxonomy to analyze LLM error modes.
  • Evaluates a wide range of open-weight and frontier LLMs and studies mitigations (deterministic string tools, task-specific adaptation).