Security field guide
WFX-Loot, GitHub Actions, and npm install scripts
A package manifest can show whether lifecycle hooks are declared. That is a useful review signal, but it cannot tell you whether a repository or workflow was compromised.
In a November 2026 report, Aikido described a campaign it named WFX-Loot. It reported that stolen GitHub credentials were used to add malicious workflow payloads to repositories, with some variants using a shell script triggered by an npm postinstall hook. Aikido reported 4,837 compromised accounts opening probe pull requests across 61,764 repositories and at least 1,835 repositories where the payload ran. These are the researchers’ reported counts, not a count of affected npm packages.
What the package page reports
The package specification now shows Runs install scripts based on npm manifest fields preinstall, install, and postinstall. It reports “Yes” when one of those hooks is declared, “No” when script metadata is present and none is declared, and “Unknown” when script metadata was not returned.
This is a manifest observation only. A hook is not proof of malicious behavior, and the absence of these fields does not prove a package, source repository, maintainer account, or CI workflow is safe. Package metadata also cannot detect a workflow that was briefly added and later reverted.
What maintainers can review
- Inspect recent workflow and package-manifest changes, including changes that were reverted.
- Review GitHub Actions run history and audit logs for unexpected gaps or runs.
- Use least-privilege workflow permissions and protect deployment secrets with reviewed environments.
- Where compatible with the project, consider installing dependencies with lifecycle scripts disabled and explicitly allow only required scripts.
If you find evidence that a payload executed, follow your incident-response process and assess credentials available to that workflow. This guide is general information, not an incident assessment.