YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_JS_NPM_Supplychain_Attack_Sep25
Detects obfuscated JavaScript in NPM packages used in supply chain crypto stealer attacks in September 2025
- Author
- Florian Roth
- Date
- 2025-09-09
- Modified
- 2025-11-29
- Score / Quality
- 85 / 85
What this rule detects
Detects obfuscated JavaScript in NPM packages used in supply chain crypto stealer attacks in September 2025
It defines 4 patterns (4 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_MAL_JS_NPM_Supplychain_Attack_Sep25 : FILE
{
meta:
= "Detects obfuscated JavaScript in NPM packages used in supply chain crypto stealer attacks in September 2025"
= "Florian Roth"
= "f083233e-348a-5b7d-a128-181c543a279c"
= "2025-09-09"
= "2025-11-29"
= "https://www.linkedin.com/feed/update/urn:li:activity:7370889385992437760/"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/mal_npm_supply_chain_sep25.yar#L1-L21"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "16f6c756bc8ce5ef5d9aa1ded0f811ec0c9cee3d8f85cc151b8ca1df7b8a4337"
= "1b83d1bd79cdff02ed2fff7bf1feb57801ff9a933de1bd4f7ceecf738213ab4c"
= 85
= 85
= "FILE"
strings:
$x1 = "const _0x112fa8=_0x180f;(function(_0x13c8b9" ascii
$fp1 = "<html"
$fp2 = "<xml "
$fp3 = "<?xml"
condition:
filesize < 200KB and 1 of ( $x* ) and not 1 of ( $fp* )
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "const _0x112fa8=_0x180f;(function(_0x13c8b9" | ascii |
| $fp1 | text | "<html" | |
| $fp2 | text | "<xml " | |
| $fp3 | text | "<?xml" |
Condition
filesize < 200KB and 1 of ( $x* ) and not 1 of ( $fp* )In plain words (Heuristic)
- The file must be smaller than 200KB (a cheap guard that skips large files).
- At least 1 patterns in ( $x* ) must match.
- At least 1 patterns in ( $fp* ) must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 16f6c756bc8ce5ef5d9aa1ded0f811ec0c9cee3d8f85cc151b8ca1df7b8a4337
Licence & attribution
Author: Florian Roth
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: f083233e-348a-5b7d-a128-181c543a279c
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-04-15
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-02-23
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-02-23
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-02-13
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-02-13
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-04-17
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-04-17
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-11-01