Created
March 31, 2026 13:12
-
-
Save tuannvm/fe9214691b5cc88996c3f560eea31c70 to your computer and use it in GitHub Desktop.
Axios npm compromise scanner - checks for malicious versions 1.14.1 and 0.30.4, plain-crypto-js trojan, and C2 callbacks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "=== Axios Compromise Scanner ===" | |
| echo "Malicious versions: 1.14.1, 0.30.4" | |
| echo "Checking..." | |
| echo | |
| find ~ -path "*/node_modules/axios/package.json" -type f 2>/dev/null | while read p; do | |
| v=$(jq -r .version "$p" 2>/dev/null || grep -oP '"version":\s*"\K[^"]+' "$p" | head -1) | |
| case "$v" in | |
| 1.14.1|0.30.4) echo "π¨ MALICIOUS: $(dirname $p) β $v" ;; | |
| *) echo "β Safe: $(dirname $p) β $v" ;; | |
| esac | |
| done | |
| echo | |
| if find ~ -path "*/node_modules/plain-crypto-js" -type d 2>/dev/null | head -1 | grep -q .; then | |
| echo "π¨ TROJAN FOUND: plain-crypto-js present" | |
| else | |
| echo "β No trojan package" | |
| fi | |
| echo | |
| if find ~ -path "*/node_modules/axios/*" -name "*.js" -exec grep -l "sfrclak\.com" {} \; 2>/dev/null | head -1 | grep -q .; then | |
| echo "π¨ C2 CALLBACK FOUND" | |
| else | |
| echo "β No C2 callbacks" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment