The lifecycle hook automatically changes the user's Claude Code setup during eligible global installs, creating a guarded first-party agent extension lifecycle risk. Source inspection did not establish credential exfiltration or other concrete attack behavior.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
Global npm installation outside CI, unless HAUS_NO_POSTINSTALL=1 is set.
Impact
Claude configuration and hooks may be added or updated without a separate setup command.
Mechanism
The postinstall hook invokes the package CLI's install command, which writes Haus-managed files and ensures hooks and security rules in Claude settings.
Evidence
package.jsonscripts/postinstall.mjsdist/cli.jsClaude user configuration settings.jsonClaude-managed skills, agents, and slash commands