Skip to content

feat: wire up install_scripts detection in scan pipeline#42

Merged
homanp merged 1 commit intomainfrom
feat/install-scripts
Feb 18, 2026
Merged

feat: wire up install_scripts detection in scan pipeline#42
homanp merged 1 commit intomainfrom
feat/install-scripts

Conversation

@homanp
Copy link
Contributor

@homanp homanp commented Feb 18, 2026

What

The install_scripts field was hardcoded to empty defaults with a TODO comment. This adds end-to-end support: a new JSONB column in the packages table, detection of lifecycle hooks (preinstall, install, postinstall, prepare) from package.json during scans, and real values returned from all API endpoints.

Why

Gives agents a notion about lifecycle attacks

Test plan

  • Tests pass locally
  • Tested manually

The install_scripts field was hardcoded to empty defaults with a TODO
comment. This adds end-to-end support: a new JSONB column in the
packages table, detection of lifecycle hooks (preinstall, install,
postinstall, prepare) from package.json during scans, and real values
returned from all API endpoints.
@homanp homanp self-assigned this Feb 18, 2026
@homanp homanp merged commit 8064a2d into main Feb 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments