The postinstall command is scoped to React directories inside the installed package, consistent with avoiding package-local peer dependency copies. The logger uses a caller-provided endpoint after explicit initialization, with no automatic exfiltration identified.
Static reason
One or more suspicious static signals were detected.
Trigger
Package installation runs the postinstall cleanup; runtime logging requires a caller to initialize the logger.
Impact
The cleanup can remove React copies nested inside this package; no effect on the consumer’s root modules or malicious behavior was identified.
Mechanism
The hook runs rm -rf on node_modules/react and node_modules/react-dom relative to the package directory. Runtime logging sends records to a supplied endpoint.
Evidence
node_modules/reactnode_modules/react-dom