# NPM supply chain attack detection?

**URL:** <https://community.dynatrace.com/t/npm-supply-chain-attack-detection/53309>\
**Category:** Open Q&A\
**Tags:** application-security, appsec-attacks\
**Created:** [September 11, 2025, 4:32pm UTC](https://community.dynatrace.com/t/npm-supply-chain-attack-detection/53309 "2025-09-11T16:32:07Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [September 11, 2025, 4:32pm UTC](https://community.dynatrace.com/t/npm-supply-chain-attack-detection/53309/1 "2025-09-11T16:32:07Z")

</div>

Just wondering how, if, it is possible to detect situations like the one that involved NPM some days ago, with Dynatrace?

> **[18 Popular Code Packages Hacked, Rigged to Steal Crypto – Krebs on Security](https://krebsonsecurity.com/2025/09/18-popular-code-packages-hacked-rigged-to-steal-crypto/)**

---

<div class="post-metadata">

**Author:** ![Kenny\_Gillette](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kenny_gillette/32/20170_2.png) [@Kenny\_Gillette](https://community.dynatrace.com/u/Kenny_Gillette)\
**Post date:** [September 11, 2025, 4:55pm UTC](https://community.dynatrace.com/t/npm-supply-chain-attack-detection/53309/2 "2025-09-11T16:55:07Z")

</div>

I was wondering the same thing

---

<div class="post-metadata">

**Author:** ![christian\_kreuz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/christian_kreuz/32/21669_2.png) [@christian\_kreuz](https://community.dynatrace.com/u/christian_kreuz)\
**Post date:** [September 12, 2025, 12:02pm UTC](https://community.dynatrace.com/t/npm-supply-chain-attack-detection/53309/3 "2025-09-12T12:02:19Z")

</div>

If you are monitoring logs of your CI/CD pipeline, NPM Cache / Proxy, or even Renovate, you might be able to find the log output containing one of these malicious packages:

```javascript
fetch logs
| search "*is-arrayish*"

```

My advise is to check which systems are monitored, and then narrow down the filters to a specialized query for those systems.

You can then re-use that when the next supply chain attack hits the world.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [September 12, 2025, 12:46pm UTC](https://community.dynatrace.com/t/npm-supply-chain-attack-detection/53309/4 "2025-09-12T12:46:37Z")

</div>

[@christian\_kreuz](https://community.dynatrace.com/user/23530)&nbsp;,

Besides being affected or for forensics purposes, I was more wondering about detecting them before being impacted?

---

<div class="post-metadata">

**Author:** ![Kenny\_Gillette](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/kenny_gillette/32/20170_2.png) [@Kenny\_Gillette](https://community.dynatrace.com/u/Kenny_Gillette)\
**Post date:** [September 12, 2025, 1:03pm UTC](https://community.dynatrace.com/t/npm-supply-chain-attack-detection/53309/5 "2025-09-12T13:03:20Z")

</div>

So if I see this then there is still an issue?

---

<div class="post-metadata">

**Author:** ![christian\_kreuz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/christian_kreuz/32/21669_2.png) [@christian\_kreuz](https://community.dynatrace.com/u/christian_kreuz)\
**Post date:** [September 15, 2025, 6:14am UTC](https://community.dynatrace.com/t/npm-supply-chain-attack-detection/53309/6 "2025-09-15T06:14:27Z")

</div>

I am not aware that Dynatrace has a built-in solution that can catch a supply chain attack - at least not in an early stage in the CI/CD pipeline.

One thing that might work into that direction is Runtime Vulnerability Analytics:&nbsp;[Runtime Vulnerability Analytics — Dynatrace Docs](https://docs.dynatrace.com/docs/secure/application-security/vulnerability-analytics)

Though in that case, you already have that vulnerable dependency deployed somewhere, therefore someone might already have successfully exploited the supply chain attack.

---

<div class="post-metadata">

**Author:** ![christian\_kreuz](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/christian_kreuz/32/21669_2.png) [@christian\_kreuz](https://community.dynatrace.com/u/christian_kreuz)\
**Post date:** [September 15, 2025, 6:18am UTC](https://community.dynatrace.com/t/npm-supply-chain-attack-detection/53309/7 "2025-09-15T06:18:39Z")

</div>

You need to check the logs in detail. If you still see a certain dependency in a certain version being used in logs, then it’s worthwhile investigating (could be a Pull Request Build, could be a release build, …).

---

<div class="post-metadata">

**Author:** ![tfellinger](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tfellinger/32/21162_2.png) [@tfellinger](https://community.dynatrace.com/u/tfellinger)\
**Post date:** [September 15, 2025, 1:50pm UTC](https://community.dynatrace.com/t/npm-supply-chain-attack-detection/53309/8 "2025-09-15T13:50:20Z")

</div>

Hello Antonio,

I’m currently working on a sample workflow that fetches malicious packages from OSV and compares them to monitored entities. It’s currently a prototype, but the final version will create detection findings so they appear in the Threats & Exploits app.

Is that going into the direction you’re thinking of?

If you’d like to provide feedback I’m happy to share the current version with you.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [September 16, 2025, 8:25pm UTC](https://community.dynatrace.com/t/npm-supply-chain-attack-detection/53309/9 "2025-09-16T20:25:25Z")

</div>

There’s another nasty one that has been revealed to happen with 40+ NPM packages:

> **[Shai-Hulud: Self-Replicating Worm Compromises 500+ NPM Packages - StepSecurity](https://www.stepsecurity.io/blog/ctrl-tinycolor-and-40-npm-packages-compromised)**
>
> The Shai-Hulud worm has infected over 500 NPM packages including @ctrl/tinycolor in an unprecedented self-propagating supply chain attack. The malware harvests AWS/GCP/Azure credentials using TruffleHog, establishes persistence through GitHub Actions...

---

<div class="post-metadata">

**Author:** ![mattia](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@mattia](https://community.dynatrace.com/u/mattia)\
**Post date:** [September 23, 2025, 1:27pm UTC](https://community.dynatrace.com/t/npm-supply-chain-attack-detection/53309/10 "2025-09-23T13:27:14Z")

</div>

If you use the Dynatrace module Runtime Vulnerability Analytics, affected packages will also be reported as they belong to our feeds (e.g. Snyk) so you will be notified by RVA if you use packages which are impacted.  
This is a great way to democratize ownership of such activities.

If you would like to build a sort of dashboard, it might be useful to build a Notebook used as a runbook (or a dashboard) to keep track. You could check NodeJS components used and their version, here is a nice article from Sam Bernardy detailing the type of notebook you could use&nbsp;

> **[Beyond the Scan with Dynatrace: Hunting "Shai-Hulud" with Observability Data](https://www.linkedin.com/pulse/beyond-scan-dynatrace-hunting-shai-hulud-data-samuel-bernardy-rqybc/?trackingId=D2fFwU3NRqSLIstq4duPiw%3D%3D)**
>
> Let's start with a story we know all too well. It's 5:00 PM.
