arXiv:2609.06149cs.CRSep 2026

Manuscript Offprint

arXiv:2609.06149

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

Hanna Kim, Jian Cui, Minkyoo Song, Hwanjo Heo, Seungwon Shin, Kimin Lee, Xiaojing Liao

Abstract

Script-based malware remains a prevalent attack technique. These scripts often contain indicators of compromise (IOCs) that provide actionable threat intelligence. However, statically recovering such indicators is challenging, as relevant values may be dispersed or transformed within code. Although large language models (LLMs) have shown promise in security analysis, their ability to recover IOCs from malicious scripts remains underexplored.

We present SCRIPTIOC-BENCH, a benchmark for measuring static IOC extraction capability on real-world malicious scripts. The benchmark comprises 634 manually verified JavaScript, PowerShell, and VBScript malware samples covering four IOC types (URLs, domains, IP addresses, and filesystem artifacts). We further stratify ground-truth IOCs by recovery level, distinguishing directly exposed indicators from those requiring decoding or reconstruction. Using this benchmark, we evaluate a broad range of proprietary and open-weight LLMs and show that IOC recovery without execution remains challenging across model scales: the strongest model reaches only 65.4 F1. To characterize how recovery fails, we introduce a false-positive taxonomy and use it to compare the error profiles of the evaluated models. We further study two mitigations on a small open-weight model, deterministic string utilities and task-specific adaptation, finding that they provide complementary recovery gains, raise precision, and shift errors toward sample-grounded mismatches.

1 Introduction

Script-based malware is an important and widely used attack technique in real-world intrusions. By abusing built-in commands and scripting interpreters, adversaries can flexibly execute malicious logic, retrieve follow-on payloads, and interact with the host environment without relying on custom binaries

in the initial stage. Consequently, scripts such as PowerShell and JavaScript often function as primary execution or delivery artifacts in cybersecurity attacks [8, 28, 37]. At the same time, these scripts often expose information about attacker-controlled infrastructure and accessed resources, making them a valuable source of indicators of compromise (IOCs) [39]. IOCs refer to artifacts that indicate malicious activity, including URLs and domains, that can support detection, triage, and threat hunting. Recovering such indicators is therefore an important goal of malware analysis because it enables defenders to move from the analysis of a single sample to the identification of related infections and the disruption of broader malicious activity [26, 29].

Static IOC recovery. IOC extraction imposes a practical scale constraint. Large analysis platforms report processing roughly 1.2M previously unseen files per day, making scalable automated analysis nontrivial [17]. Given the large volume of script samples encountered in practice, scalable first-line screening is essential. Static analysis has been widely used for this purpose because it enables script artifacts to be examined without execution. Static IOC recovery, however, is more difficult than searching source code for IOC-shaped strings. Malicious scripts routinely split values across literals, encode them through transformations, or reconstruct them through script-specific computation. Recovering such indicators may therefore require reasoning over dispersed program context. This creates a natural opportunity for large language models (LLMs), whose code-understanding capabilities may enable execution-free analysis beyond conventional pattern matching. Yet existing LLM-based malware studies largely focus on adjacent tasks such as code deobfuscation or behavioral analysis [5, 7, 11, 12, 61]. The capabilities and limitations of current LLMs for static IOC recovery therefore remain under-explored.

Our study. Against this backdrop, we formulate the following research questions: RQ1. How reliably can LLMs recover statically obtainable IOCs from malicious scripts? RQ2. Which forms of recovery remain challenging, from extracting explicit values to sample-specific reconstruction? RQ3. How

  • Corresponding authors.

do script characteristics such as length affect IOC extraction reliability? RQ4. What failure modes emerge across model capabilities, and to what extent can they be mitigated?

Addressing these questions requires a benchmark grounded in real-world scripts, so that evaluation reflects the recovery challenges encountered in practice. Yet no existing dataset provides ground truth restricted to statically obtainable IOCs, as reports from malware-analysis platforms often combine static and dynamic evidence without clearly distinguishing their provenance. Moreover, indicator-level annotation should characterize how each IOC can be recovered, since different indicators may require different forms of recovery even within a single script.

We therefore present SCRIPTIOC-BENCH, the first benchmark for measuring static IOC extraction from real-world script-based malware. It contains 634 manually verified JavaScript, PowerShell, and VBScript samples covering four actionable IOC types: URLs, domains, IP addresses, and filesystem artifacts. Ground-truth indicators are retained only when their values are fully determined by the script file alone. We further annotate each IOC by its recovery level: Direct, when the value appears explicitly in the source; Fixed-transform, when it can be recovered using common deterministic transformations; and Program-dependent, when recovery requires following logic specific to the program.

Findings. Using SCRIPTIOC-BENCH, we evaluate open-weight LLMs [16,33,36,44–47] from 8B to 480B parameters alongside frontier proprietary models [15,40], and identify three main findings. First, strong LLMs recover directly exposed IOCs well, but performance drops sharply as recovery requires deeper reconstruction. (RQ1-RQ2; §5.3.1–§5.3.2) Although the leading LLMs substantially outperform surface-based extractors, even the strongest model reaches only 65.4 F1. Frontier models recover up to 91.7% of Direct IOCs but only 31–46% of Program-dependent IOCs, showing that recovery through sample-specific program logic remains particularly challenging. Second, input complexity can limit reliable IOC recovery. (RQ3; §5.3.3) Longer scripts generally make LLMs more likely to produce incomplete or unusable outputs and less likely to recover indicators. Such extremely long and redundant samples are common in script-based malware, making inflated context length a practical obstacle to reliable LLM-based IOC recovery. Third, smaller models fail differently, and the resulting failure modes are actionable. (RQ4; §5.4–§6) When recovery becomes difficult, smaller models frequently fall back to IOC examples from the prompt, whereas frontier models more often produce sample-grounded reconstruction errors. We target these weaknesses in a controlled study on a small open-weight model using deterministic string utilities and task-specific adaptation: tools improve grounding and Direct recovery, while adaptation learns recurring reconstruction patterns and improves Fixed-transform recovery. Together, the two approaches raise precision from 31% to 48% while substantially reducing unsupported predictions.

Contributions. Our main contributions are as follows:

• We introduce SCRIPTIOC-BENCH, a benchmark for static IOC extraction from script-based malware, covering JavaScript, PowerShell, and VBScript with four IOC types over 634 manually verified samples.

• We systematically evaluate open-weight and frontier LLMs across recovery difficulty and input complexity, revealing a substantial gap between direct extraction and deeper reconstruction, as well as degraded reliability on long inputs.

• We identify distinct failure modes across model scales through a fine-grained false-positive taxonomy, and show that tool augmentation and task-specific adaptation shift a small model's errors toward sample-grounded errors.

Artifact and Leaderboard. We release our datasets and code, and provide a leaderboard; a screenshot is included in Appendix A.

References (32)