The default postinstall launches a helper from a downloaded runtime artifact and passes it the installer’s complete environment, which can contain credentials and other secrets. The artifact is from the project’s own release host and checksum-verified, but the helper’s implementation is unavailable here, so the install-time code’s use of those values cannot be verified.
Static reason
One or more suspicious static signals were detected.
Trigger
npm install, unless CI=true or AGENC_SKIP_POSTINSTALL=1; the helper runs when it exists in the resolved runtime.
Mechanism
The postinstall resolves the platform runtime and invokes its prepare-peer-credentials.mjs helper with an environment copied from process.env. The helper’s implementation is absent from the package snapshot.
Attack narrative
During npm installation, the package fetches its runtime artifact and launches the artifact’s prepare-peer-credentials.mjs helper when present. It passes the full installer environment to that helper. The helper is not readable in this package snapshot, so its handling of environment secrets cannot be established; the install-time execution and environment access are concrete.
Evidence
package.jsonscripts/postinstall.mjslib/runtime-manager.mjsgenerated/agenc-runtime-manifest-v2.json