Package-update detectors can miss malicious releases when they assess a version as a standalone snapshot. Comparing a candidate release with its immediate predecessor can reveal suspicious changes—but a 2026 study of npm and PyPI found that this extra context is a useful screening signal, not a dependable way to identify a malicious update within a package’s normal release history.
What version context adds to package detection
A snapshot detector examines the files and behavior in one release. It has no direct record of which parts of that release are new. An attacker may leave most legitimate package code intact while adding a small but consequential change, such as an outbound network call, process execution, access to credentials or environment variables, an encoded payload, or an install-time hook.
A predecessor-aware detector reconstructs the same package’s immediately preceding release and compares it with the candidate. That baseline can help distinguish an established feature from a newly introduced behavior. But simply subtracting one version’s files or features from another is not enough: the studied approach combined signals found in the candidate release with structural and version-context descriptors.
What the 2026 study found
In a Scientific Reports study published October 5, 2026, Moatasem M. Draz evaluated malicious package updates in npm and PyPI. The headline results changed substantially depending on what the model was asked to distinguish. The strongest reported results came from a package-disjoint evaluation against never-compromised controls matched within each ecosystem by candidate archive file count; they do not establish that the detector can reliably pick the malicious release out of one package’s ordinary history.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
| Evaluation | Reported result | What it indicates |
|---|---|---|
| Package-disjoint test against never-compromised controls matched by ecosystem and archive file count | ROC-AUC 0.801 ± 0.006; nested grouped F1 0.792 (95% CI 0.730–0.845) | The model separated compromised packages from the matched clean controls in this evaluation. |
| Malicious release versus ordinary updates from the same compromised packages | ROC-AUC 0.551 | Near chance: the model had difficulty distinguishing the malicious update from normal releases of the same packages. |
| Strict temporal hold-out | F1 0.310 | Performance was much weaker on later releases, suggesting limited transfer from historical malicious-package feeds. |
| Train on npm, evaluate on PyPI | ROC-AUC 0.498 | The model did not demonstrate useful transfer in this direction. |
| Train on PyPI, evaluate on npm | ROC-AUC 0.630 | Transfer was limited and asymmetric; the paper withdrew a broad cross-ecosystem transfer claim. |
| Primary paired, within-package design: shuffled versus correct predecessor | PR-AUC 0.674 with a shuffled predecessor; 0.718 with the correct predecessor | Using the correct prior version improved PR-AUC by 0.044 in this study design. |
| Operating point with a 5% false-positive budget | 34.3% of compromises recovered at precision 0.907 | A screening trade-off: high precision at this operating point still left most compromises unrecovered. |
| Operational cost per candidate | 0.90 seconds and 114 MB; model inference 69 microseconds | The paper presented this as a low-cost first-stage filter; the figures are the study’s reported operational costs. |
The paper’s earlier, ungrouped and unmatched evaluation values—F1 0.895 and ROC-AUC 0.965—were superseded after the evaluation protocol was corrected. They should not be read as its final headline results. Its abstract describes the approach as “a first-stage screening filter” and argues for “stronger within-package and temporal evaluation.”
Why a better score against clean packages may not mean better update detection
The control group defines the detection question. If the positive examples are releases from compromised packages and the negative examples are releases from never-compromised packages, a model can learn characteristics that separate those package populations. That does not show it can tell a malicious release from an ordinary release of the very same package.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
The study’s ROC-AUC of 0.551 on ordinary updates from the same compromised packages is therefore central to interpreting its stronger matched-control result. It shows why a detector should be tested against realistic benign updates, not only clean packages that differ in other ways. Temporal hold-outs matter for the same reason: a model’s performance on older, labeled examples does not guarantee that it will recognize later attacks.
The authors also report dataset attrition and possible survivorship bias, with incomplete matching for package age, publication period, and popularity. In a manual sample of 120 positive cases, only 25 were adjudicable. Feed-labeled positives should therefore not be treated as uniformly confirmed malicious update compromises.
Free tools Windows power users keep installed
One-click scans. No signup required.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Do not confuse a malicious update with dependency confusion
A malicious update compromises a package a project already depends on by publishing harmful behavior in a later release. Dependency confusion is a different package-resolution risk: a malicious public package shares a name with an organization’s private package and may be selected instead, depending on how dependencies are resolved.
npm recommends scoped packages to prevent this kind of substitution. Its Threats and Mitigations documentation, last edited July 8, 2024, says: “While npm is not able to detect dependency confusion attacks we have a zero tolerance for malicious packages on the registry.” That distinction matters: a version-history detector aimed at suspicious changes to a trusted package is not, by itself, a defense against resolving the wrong package name.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
In May 2026, Microsoft described malicious npm packages imitating internal organizational scopes and using install hooks. One reported package used version 100.100.100 to try to win resolution against internal packages; other packages used less conspicuous versions. This illustrates attack mechanics, not detector performance.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Use version context as one layer, not the decision-maker
Package managers, repository alerts, and organizational controls address different parts of the problem. npm says it scans packages for known malicious content and runs packages to seek new malicious patterns, while also acknowledging that it cannot detect dependency-confusion attacks. GitHub Dependabot malware alerts check for known malicious dependencies using reviewed entries in the GitHub Advisory Database. GitHub cautions that new malware may take time to trigger alerts and advises keeping manifest and lock files current.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
These controls can help identify known threats, but an unreported or newly published malicious release may not yet be covered. A practical defense layers them with careful dependency resolution, version controls, and monitoring of install behavior.
Apply controls in proportion to the threat
- Review alerts and dependency changes. Keep manifests and lock files current, and investigate new or unexpected package versions rather than treating an absence of alerts as proof of safety.
- Reduce package-resolution ambiguity. Use scoped names for private npm packages and configure resolution so a public package cannot silently substitute for an internal one.
- Restrict install-time execution where feasible. In guidance responding to the April 2026 Axios incident, CISA recommended that affected organizations consider npm’s
ignore-scripts=trueandmin-release-age=7settings. These were incident-specific recommendations, not universal requirements; assess compatibility before applying them. - Monitor what installation does. CISA’s incident guidance also recommended monitoring for unexpected processes and network activity, which can expose behavior that static version comparisons miss.
- Investigate environments that ran affected commands. For the Axios incident, CISA advised reviewing repositories, CI/CD pipelines, and developer machines that ran affected install or update commands; searching cached packages in artifact repositories; pinning known-safe versions; and restoring affected environments to a known-safe state.
For organization-wide practices, ENISA’s March 10, 2026 technical advisory covers secure selection, integration, and monitoring of third-party packages across the software development life cycle.
How to evaluate a package-update detector
A headline AUC or F1 score is not enough to judge whether a detector will help in your environment. Check what its evaluation actually tests:
- Input: Does it examine one release alone, compare the candidate with its immediate predecessor, or combine both absolute behavior signals and version-context features?
- Separation by package: Are releases from the same package kept out of both training and test data, so the evaluation does not reward memorizing package identity?
- Realistic benign controls: Are malicious releases compared with ordinary updates from the same packages, as well as with clean packages matched for ecosystem and size?
- Future releases: Is there a strict temporal hold-out to test whether the model works on later publications rather than only historical examples?
- Transfer claims: Are npm and PyPI tested separately, and does the evaluation distinguish transfer to another ecosystem from training on pooled data?
- Operating point: What recall and precision does the detector achieve at a stated false-positive budget? A strong average score does not tell you how many alerts your team must triage or how many attacks it will miss.
- Cost and response: What are the per-candidate runtime and memory costs, and what action follows a detection—review, quarantine, or automatic blocking?
The study’s variation across matched controls, same-package updates, later releases, and cross-ecosystem tests shows why these details determine what a score can support. Adding predecessor context improved one paired evaluation, but the weak same-package and temporal results leave the core challenge unresolved: identifying malicious behavior amid normal package evolution. The authors point to semantic or data-flow analysis of newly added code as a potential next step.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

