Armando found that graphql-sequelize-teselagen v5.3.9, a GraphQL and Relay integration layer for MySQL and Postgres developed by Teselagen, was maliciously modified on September 15, 2025. The injection adds a postinstall hook running an AWS credential-stealing bundle, following the same pattern as eslint-config-teselagen v6.1.8 published by the same teselagen-admin account on the same day.
Key Findings
- Malicious version: v5.3.9, published 2025-09-15; v5.3.8 is clean (already analyzed)
- Entry point: postinstall lifecycle hook fires automatically on npm install
- Targets: Node.js developer machines and CI/CD pipelines -- harvests AWS and cloud credentials
- Detection: Script-JS.Worm.SupplyChain, Text.Worm.SupplyChain, Archive-GZIP.Worm.SupplyChain, Archive-TAR.Worm.SupplyChain
Package Background
graphql-sequelize-teselagen is a GraphQL and Relay ORM bridge for MySQL and Postgres via Sequelize, developed by Teselagen as part of their biotechnology software platform. The package was first published on June 19, 2017, and maintained continuously since. The publisher account (teselagen-admin) manages 38 npm packages. The intel signal no-github-tag for v5.3.9 indicates the release was published outside the normal development workflow, consistent with an unauthorized injection.
Attack Analysis
Armando's analysis shows that v5.3.9 changes two files relative to v5.3.8: bundle.js and package.json. The postinstall hook in package.json was already present in the legitimate v5.3.8 (for a prepublish step); v5.3.9 modifies it to also run bundle.js -- the malicious payload.
bundle.js (sha256: b74caeaa75e077c99f7d44f46daaf9796a3be43ecf24f2a1fd381844669da777) is the identical payload found in eslint-config-teselagen v6.1.8, published on the same day by the same account. This confirms both packages were compromised in the same attack. The bundle carries the AWS SDK for JavaScript v3 alongside attacker code that resolves and exfiltrates credentials from environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN), IMDS at 169.254.169.254, ECS task metadata at 169.254.170.2, GCP metadata at metadata.google.internal, and web identity token files. Collected credentials are sent to https://webhook.site/bb8ca5f6-4175-45d2-b042-fc9ebb8170b7.
Malicious Files