ProfMalPlus: Agent-Coordinated Detection of Malicious NPM Packages via Static-Dynamic Analysis Synergy

· Source: cs.SE updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cybersecurity & Data Privacy, Software Development & Engineering · Depth: Expert, extended

Summary

ProfMalPlus is a malicious NPM package detector designed to counter supply chain attacks by addressing limitations in existing detection methods. It achieves a 98.1% F1-score, outperforming state-of-the-art detectors by 3.5% to 52.6%. The system combines object-sensitive behavior graph analysis with a coordinated multi-agent LLM-based reasoning framework. This framework processes security-relevant code slices, enriching them with inline evidence from static analysis, registry-derived third-party semantics, and dynamic augmentation via sandbox execution for runtime-dependent behaviors. ProfMalPlus employs local and global judge agents, a router agent for adaptive evidence gathering, and a localization agent to pinpoint malicious code snippets with explanations. In real-world monitoring, it detected 597 previously unknown malicious NPM packages, all confirmed and removed, at a monetary cost of \$67.45, significantly cheaper than other LLM-based solutions.

Key takeaway

For AI Security Engineers managing NPM dependencies, traditional static or dynamic analysis tools may miss sophisticated, obfuscated threats. You should consider integrating advanced hybrid detection systems like ProfMalPlus, which combine behavior graph analysis with multi-agent LLM reasoning. This approach provides superior accuracy and interpretability, pinpointing malicious code and explaining its intent, as demonstrated by detecting 597 unknown malicious packages. While incurring higher runtime, its cost-effective evidence acquisition strategy makes it a valuable addition to your supply chain security toolkit.

Key insights

ProfMalPlus synergizes behavior graphs with LLM-based multi-agent reasoning for robust, interpretable NPM malware detection.

Principles

Method

ProfMalPlus constructs object-sensitive behavior graphs, extracts annotated code slices, then uses coordinated LLM agents (local, global, router) in a closed loop for iterative evidence gathering and verdict generation, including third-party enrichment and dynamic augmentation.

In practice

Topics

Code references

Best for: Research Scientist, CTO, VP of Engineering/Data, AI Scientist, AI Security Engineer, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.