← Lab /Security & privacy

Behavior-centric framework accurately classifies malware and pinpoints malicious code regions

The proposed analysis framework achieves accurate malware classification while providing fine-grained localization of malicious behaviors

Security & privacy arXiv 29 Sep 2026 Method Prototype evidence

Published as “Behavior-Centric Malware Classification with Fine-Grained Malicious Logic Localization”

Why it matters

The approach enables analysts to pinpoint the exact code regions responsible for malicious actions while maintaining classification accuracy.

Summary

The proposed framework achieves 99.87% accuracy, precision, recall, and F1 when combining a Transformer and a GNN via late fusion, while also providing basic-block-level malicious logic localization. It is evaluated on a real-world dataset of 43 malware families derived from VirusTotal reports and manual inspection. Classification performance is strong for most families (e.g., Transformer precision 99.62%) but drops for families with overlapping behaviors (e.g., gandcrab precision 0.8571) and behavior-coverage is not perfect (e.g., Mydoom coverage 0.80). The evidence is based on reported metrics and comparisons to three baselines.

What they found 3

  1. Late-fusion of Transformer and GNN reaches 99.87% across accuracy, precision, recall, and F1.

    “Finally, combining both branches via late fusion yields the best overall results, achieving 99.87% across accuracy, precision, recall, and F1.”

  2. Transformer alone attains 99.62% precision, 99.61% recall, 99.61% F1, and 99.61% accuracy.

    “The Behavior Transformer achieves consistently strong performance, with an average precision of 99.62%, recall of 99.61%, F1 score of 99.61%, and accuracy of 99.61%.”

  3. GNN alone attains 98.75% precision, 99.04% recall, 98.88% F1, and 99.0% accuracy.

    “The score-aware GNN also performs competitively, obtaining an accuracy of 99.00%, precision of 98.75%, recall of 99.04%, and F1 score of 98.88%.”

Caveats 6

  • Precision for the gandcrab family drops to 0.8571, well below the near-perfect scores for other families.
  • Behavior coverage for the Mydoom sample is only 0.80, indicating incomplete localization.
  • Errors are concentrated in families with similar behavior patterns, suggesting limits to discriminating overlapping tactics.
  • We do not claim that all malicious behavior must appear in this form; rather, we focus on the broad and practically important class of behaviors that manifest through security-relevant system interactions.
  • The remaining errors are concentrated in families with similar behavior patterns.
  • Because the source codes were unavailable, we re-implemented the most representative methods from previous studies.

What’s new here 3

  • Links security-relevant API sinks to their originating basic blocks via context-sensitive backward slicing.
  • Combines instruction-level Transformer embeddings with a score-aware GNN over behavior graphs.
  • Introduces a behavior-coverage metric that quantifies overlap between model attention and manually labeled malicious behaviors.