Back to comparisons
NewsBuild with AI

Databricks uses specialist instructions to improve AI malware screening

In Databricks’ tests, adding evidence-based security profiles helped language models flag more malicious software packages. Its own results also show why false alarms and the test dataset matter.

Specialist inspection stencils reveal a binary core hidden inside an ordinary-looking software package.
CurioFuse · AI-generated illustration
In this article

A rare but difficult package type

Databricks Threat Research says it has collected malware samples from npm, a registry of JavaScript software packages, since November 2025. Of 11,413 package versions corroborated through Open Source Vulnerabilities advisories, 432, or 3.8 percent, bundled a binary, meaning compiled executable code. These packages were disproportionately difficult for the company’s triage pipeline: 14.4 percent failed to receive a decisive malicious verdict, compared with 6.2 percent for source-only packages.

The pipeline combines static evidence from YARA, Semgrep, npm metadata and binary analysis, then asks an LLM for a reasoned verdict and additional files when needed. Databricks argues that clean JavaScript, plausible metadata and professional documentation can cause models to rationalize or dismiss suspicious binary evidence.

Controlled test of capability profiles

Researchers built five malicious native Node.js add-on types covering credential theft, a dropper or backdoor, a reverse shell, cryptomining and persistence. An obfuscation ladder for one payload produced ten test packages. Seven budget models and two higher-capability baselines were evaluated under fixed prompts and temperature, with Claude Opus used only as a cost reference.

A capability profile is a rule-based playbook that scores static evidence for a specific technique. When thresholds are reached, the system adds an approximately 1,800-token summary to the prompt before the model decides. Without profiles, budget models missed the detection threshold in 35 of 70 tests. Profiles recovered 32 of those failures, reducing misses from 50 percent to 4 percent; three GPT-5.4-nano cases remained merely suspicious.

Production validation and limits

On 425 OSV-labelled malicious package versions containing binaries and 2,449 externally selected benign versions, Databricks reports precision of 0.77, recall of 0.81 and an F1 score of 0.79. The benign set produced 104 escalations, a 4.25 percent package-version false-positive rate concentrated in six package families. Analysts would still need to review those alerts.

The authors emphasize two limitations. OSV labels apply to whole packages and do not identify whether the binary itself carries the malicious behavior, so the figures are not pure binary-detection metrics. Hosted models can also change over time. The strongest conclusion is therefore the within-run comparison on identical inputs, not a permanent ranking of models or proof that the method generalizes to every supply-chain attack.

Sources(1)

Sources & standardsReport a correction