MAL-2026-5640

    Dashboard / Malicious Package / MAL-2026-5640

    MAL-2026-5640

    Published: 11 Jun 2026Last Modified: 9 Jul 2026Aliases: 
    GHSA-5wjv-qgmc-8w9m

    Summary: Malicious code in ecto-corsair-whisper-6f3b9 (npm)

    Details: Source: amazon-inspector (8695ea17273c804f1a58e6c0b877de280f7472622065964245deb85cc62dae20) The package declares a postinstall lifecycle hook (postinstall.js) that runs automatically on `npm install`. The script shells out via curl to the EC2 IMDSv2 metadata endpoint to obtain IAM role credentials, exports them, then iterates AWS Secrets Manager across multiple regions calling `aws secretsmanager list-secrets` and `get-secret-value`, and additionally dumps any process environment variable matching `FLAG|HTB|SECRET|AWS_`. The captured blob is chunked and HTTP PUT to a hardcoded bare-IP destination (http://154.57.164.71:30782) framed as a fake 'manifest' JSON. Execution is gated by an `isAppWorker()` check (hostname matches a 12-hex Docker-style ID and cwd contains `/app/node_modules`), which narrows the victim profile to containerized CI/build workers but does not change the nature of the attack. Additional behavior includes scanning /app for HackTheBox flag patterns (`/HTB\{[^}]+\}/`) and reading /app/src/main.rs, /app/main.rs, /app/flag.txt. This is unambiguous install-time credential theft plus remote exfiltration: any installer whose container matches the gate has IAM role credentials, secrets, and environment-variable secrets sent to attacker-controlled infrastructure. Source: ghsa-malware (d0ca45bd5ff9251df7ade64227231b9db2164ed9c61735808e83cb5626c3505a) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

    References: https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.2, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.1, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.3, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.0, https://github.com/advisories/GHSA-5wjv-qgmc-8w9m, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.22, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.21, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.14, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.17, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.16, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.18, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.4, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.5, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.11, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.8, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.24, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.20, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.23, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.19, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.25, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.15, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.7, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.12, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.10, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.13, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.9, https://www.npmjs.com/package/ecto-corsair-whisper-6f3b9/v/1.0.6

    Affected packages

    Package

    Name: ecto-corsair-whisper-6f3b9

    Purl: pkg:npm/ecto-corsair-whisper-6f3b9

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    1.0.2
    1.0.1
    1.0.3
    1.0.0
    1.0.22
    1.0.21
    1.0.14
    1.0.17
    1.0.16
    1.0.18
    1.0.4
    1.0.5
    1.0.11
    1.0.8
    1.0.24
    1.0.20
    1.0.23
    1.0.19
    1.0.25
    1.0.15
    1.0.7
    1.0.12
    1.0.10
    1.0.13
    1.0.9
    1.0.6
    MAL-2026-5640 | CVE-DB