A small vision-language model, fine-tuned on pictures of malware bytes, names the family 91.3% of the time and writes a report. CNNs label slightly better, and stored reports score higher on text metrics.
| System | Accuracy (%) | Macro F1 (%) | ECE |
| OpenFlamingo, no fine-tuning (generation) | 0.0 | 0.0 | – |
| OpenFlamingo, no fine-tuning (forced choice) | 10.0 | 1.8 | 0.899 |
| Qwen2.5-VL-7B, no fine-tuning (forced choice) | 10.0 | 1.8 | 0.182 |
| SmolVLM-2.2B, no fine-tuning (forced choice) | 10.1 | 2.3 | 0.211 |
| CLIP linear probe | 88.3 | 88.3 | 0.067 |
| CLIP 1-nearest neighbour | 90.0 | 90.0 | 0.100 |
| Small CNN (from scratch) | 0.024 | ||
| ResNet-18 (ImageNet init.) | 0.037 | ||
| Fine-tuned VLM (ours) | 0.019 |
| System | BLEU-4 | ROUGE-L | BERTScore | Cosine | Tech. ID F1 | Family (%) |
| Random training report | 0.249 | 0.280 | 0.586 | 0.734 | 0.239 | 8.5 |
| Typical report of predicted family (VLM) | 0.313 | 0.380 | 0.656 | 0.796 | 0.558 | 91.8 |
| Typical report of predicted family (ResNet-18) | 0.313 | 0.380 | 0.656 | 0.795 | 0.554 | 94.0 |
| Typical report of true family (oracle) | 0.314 | 0.381 | 0.657 | 0.799 | 0.555 | 100.0 |
| Nearest training image (CLIP retrieval) | 0.346 | 0.407 | 0.679 | 0.799 | 0.799 | 90.0 |
| Family-constrained retrieval (VLM family) | 0.345 | 0.406 | 0.678 | 0.799 | 0.803 | 91.8 |
| Family-constrained retrieval (ResNet-18 family) | 0.346 | 0.408 | 0.680 | 0.800 | 0.809 | 94.0 |
| Qwen2.5-VL-7B, no fine-tuning | 0.049 | 0.115 | 0.257 | 0.549 | 0.000 | 9.9 |
| SmolVLM-2.2B, no fine-tuning | 0.014 | 0.130 | 0.141 | 0.635 | 0.000 | 10.0 |
| Generated report (fine-tuned VLM, ours) | 0.213 | 0.305 | 0.596 | 0.754 | 0.471 | 91.8 |
Going deeper

| Input image | Acc. (%) | behavior |
| Real image | 91.6 | – |
| Black image | 10.0 | always zeroaccess |
| Uniform noise | 10.4 | mostly onlinegames |
| Image of another sample | 9.1 | follows the image’s |
| family (91.6%) |
Imagine a postal sorting office swamped with suspicious parcels. Opening each one takes too long, so a clerk photographs the outside and guesses what is inside from the wrapping and labels.
The authors trained a clerk who looks at the photo and both names the sender's usual kind of parcel and writes a note on what it probably contains. To teach it, two assistants wrote notes from existing paperwork, and a supervisor merged them. The clerk gets the kind right about nine times in ten, and leans on the shipping labels and packing slips more than the contents.
But a specialist sorter that only names the kind is a little more accurate. The clerk's notes are generic for that kind, its tracking numbers are invented, and a strip of random tape stuck on the bottom of a parcel throws it off much more than it throws the specialist.
The abstract, word for word, with the six densest phrases unpacked.
Malware volumes demand analysis tools that scale beyond manual triage. We present an agentic pipeline in which two LLM agents analyse VirusTotal and FLARE CAPA data1 and a gemini-3.1-flash-lite based judge agent merges their outputs into a forensic report. The resulting 4000 reports over ten malware families, each paired with a grayscale byte image, are used to fine-tune OpenFlamingo-3B with LoRA to identify the family of a sample and describe its behaviour from the image alone2. On 800 held-out samples, the model identifies the family in 91.3±0.6% of cases, is well calibrated (ECE 0.019) and writes a report for each sample, whereas current VLMs without fine-tuning are at chance level3. Image-ablation and occlusion analyses show that its outputs are grounded in the image, mostly in PE headers, read-only data and resources. Image-only CNNs classify slightly better (93.0%) but provide no report4, and template and retrieval baselines score higher on text metrics because they copy stored expert reports of other files5; these conclusions hold on test samples without near-duplicates in the training data. Appending random bytes amounting to 1% of the file size reduces the VLM’s accuracy by 11 points6, revealing where it needs robustness before deployment.
Two lines of work lead here: reading malware as images, and models that pair images with text.
Read four parts of it, in this order.
Skip Section 2 and the appendices unless you want the prompts or training details.
If the reports are weaker than they look, these places show it.
| Input image | BLEU-4 | ROUGE-L | BERTScore | Cosine | Tech. ID F1 | Family (%) |
| Real image | 0.212 | 0.306 | 0.592 | 0.750 | 0.470 | 92.0 |
| Image of another sample | 0.182 | 0.254 | 0.551 | 0.698 | 0.198 | 10.0 |
| Black image | 0.196 | 0.252 | 0.559 | 0.749 | 0.248 | 10.0 |
The baselines in Table 11 put the scores into perspective, but they solve an easier task, they do not write a report, they return an existing expert report of another file. The typical report of the predicted family is the same text for every sample of the family, and retrieval returns the report of the most similar training sample, including its hash and the details specific to that file; both require the training reports at inference time. Because they are genuine expert reports, they reproduce the shared report format exactly and score higher on all automatic metrics. The typical report of the family predicted by the VLM, which has the same classification accuracy as the VLM, reaches a BERTScore of 0.656 (VLM 0.596) and a technique-ID F1 of 0.558 (VLM 0.471). Retrieval scores highest (BLEU-4 0.346, technique-ID F1 0.799) because, in a dataset of related variants, the nearest training sample often shares the behavior report of the test sample; this advantage shrinks on samples without near-duplicates (Section 5.5). The generated reports, in contrast, are new text for the sample at hand. Their sample-specific content is still limited, a report is more similar to its own reference than to the other references of the same family (mean difference 0.008, 95% CI 0.004–0.011), and it ranks its own reference first among the 80 references of its family in 2.3% of the cases (chance 1.3%), compared with 1.5% for the family template and 5.0% for retrieval. The reference reports always include the sample’s MD5 hash, and the model reproduces this field in 78.4% of its reports, but none of the generated hashes equals the true hash of the sample, the field is always fabricated. Appendix F shows a typical example of a generated report.
All models are evaluated on the held-out test set of 800 samples (80 per family). For the VLM, we report the mean and sample standard deviation over the three training seeds. Where only one model is analysed (calibration, image controls, occlusion, robustness and report baselines), we use the seed-42 model. We compute 95% confidence intervals using a percentile bootstrap with 1,000 resamples of the test samples. We use the malware family labels in the judge-agent reports as reference labels. These labels derive from AVClass and VirusTotal data. Therefore, our evaluation measures agreement with the pipeline-generated labels rather than an independent ground truth. Since we use a random data split, we also report the main results on test samples without near-duplicates in the training or validation sets (Section 4.4).
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
Generative AI disclosure. Generative AI (Claude by Anthropic) was used to assist with manuscript editing and certain aspects of the experimental code development. All outputs were carefully reviewed by the authors to ensure their accuracy, originality, and consistency. The authors independently verified the code and experimental results, cross-checked all reported numerical values against the corresponding experimental outputs, and assume full responsibility for the manuscript’s content.
More latest news
Read all