ahooks-3.7.8@13.1.1
Malicious code in ahooks-3.7.8 (npm)
T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1041 · Exfiltration Over C2 ChannelT1071.001 · Web Protocols
Analysis
The package is a typosquat of the ahooks React hooks library. On npm install, the preinstall hook runs index.js which collects system information (hostname, platform, architecture, OS type/release, total/free memory, CPU count, current working directory, user info including username/uid/gid/shell) and executes the whoami and id commands. All collected data is exfiltrated via HTTPS POST to q7y246t0aca8jr8vfs8c900s4jaay1mq[.]oastify[.]com/detox56.
- analyzed by
- Leitwacht
- first seen
- Jul 14, 2026, 06:17 PM
- analyzed
- Jul 14, 2026, 06:17 PM
Related advisories
- cppt-common@13.1.1
- utils-style-engine@10.2.4
- bimi-maker@8.2.4
- solana-key-utils@1.0.0
- eth-wallet-helpers@1.0.0
- crypto-validate-lib@1.0.0
- layer2-sdk@1.0.1
- arb-kit@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.