The install hook is tied to bundled dependency setup, but it also launches nested npm installations whose transitive lifecycle behavior is not constrained by this script. This supports a warning about install-time execution risk, not a finding of malicious behavior.
Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
Installing the package triggers its postinstall script.
Impact
Additional dependency installation and lifecycle code may run without a separate prompt for each transitive package.
Mechanism
The script reads the bundleDependencies list, changes into each existing dependency directory, and synchronously runs npm install.
Evidence
package.jsonscript/install_transitive_dep.jsnode_modules/@amzn/codewhisperernode_modules/@amzn/codewhisperer-runtimenode_modules/@amzn/codewhisperer-streamingnode_modules/@amzn/amazon-q-developer-streaming-clientnode_modules/@amazon/elastic-gumby-frontend-client