The postinstall hook automatically registers Aptly's agent integration in existing host configuration, an agent extension lifecycle risk. The policy starts with transmission unselected, and the reviewed source did not show install-time data exfiltration or broader agent control changes.
Static reason
High-risk behavior combination matched malicious policy.
Trigger
Package installation, through the postinstall script, when the built CLI exists and a supported host configuration is present.
Impact
Aptly becomes integrated with the host's agent lifecycle. The policy's transmission scope starts as unselected, so the reviewed source does not establish automatic task-data transmission from this install-time setup alone.
Mechanism
Runs `setup --automatic`; setup adds a routing Hook and writes Aptly's enabled automatic Hook policy. Installation therefore changes host agent configuration without an explicit setup command.
Evidence
package.jsondist/bin/aptly.jsdist/src/setup.jsCodex or Claude MCP and Hooks configuration filesAptly private automatic Hook policy