← Back to SOC feed Coverage →

Detects suspicious JavaScript dropper used in plain-crypto-js supply chain attacks

yara HIGH signature-base
florian-roth
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at signature-base →
Retrieved: 2026-08-06T11:00:00Z · Confidence: medium

Hunt Hypothesis

This hunt targets adversaries leveraging malicious JavaScript droppers to compromise software supply chains, specifically mimicking the behavior observed in recent plain-crypto-js incidents where attackers inject code to establish persistence and execute secondary payloads. Proactively hunting for this pattern within Azure Sentinel is critical because it enables the early identification of stealthy supply chain compromises that traditional signature-based detections might miss, allowing the SOC team to isolate affected resources before lateral movement occurs.

YARA Rule

rule SUSP_JS_Dropper_Mar26 {
   meta:
      description = "Detects suspicious JavaScript dropper used in plain-crypto-js supply chain attacks"
      author = "Marius Benthin"
      date = "2026-03-31"
      reference = "https://www.stepsecurity.io/blog/axios-compromised-on-npm-malicious-versions-drop-remote-access-trojan"
      hash = "e10b1fa84f1d6481625f741b69892780140d4e0e7769e7491e5f4d894c2e0e09"
      score = 70
      id = "456a52c2-9cbf-572f-9a5b-b8d74183e3f4"
   strings:
      $sa1 = "Buffer.from("
      $sa2 = "FileSync("
      $sa3 = ".replaceAll("

      $sb1 = ".arch()"
      $sb2 = ".platform()"
      $sb3 = ".release()"
      $sb4 = ".type()"
   condition:
      filesize < 10KB
      and all of ($sa*)
      and 2 of ($sb*)
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 7 string patterns in its detection logic.

References

False Positive Guidance

Here are 4 specific false positive scenarios for the “Detects suspicious JavaScript dropper used in plain-crypto-js supply chain attacks” rule, along with recommended filters and exclusions:

Original source: https://github.com/Neo23x0/signature-base/blob/main/yara/mal_npm_supply_chain_mar26.yar