Dependency check

Beta

How packages your agent adds or changes are checked against public security advisories and lists of malicious packages.

The dependency check looks at the packages your agent adds or changes in a turn. If one is a known malicious package, or has a high or critical security advisory, LeoPrevent advises the agent to move to a safe version.

Beta, available on accounts where LeoTrace has turned it on. To ask for it, contact support.

What it checks#

At the end of a turn, the plugin looks for changes in these files:

  • package-lock.json and npm-shrinkwrap.json
  • pnpm-lock.yaml
  • go.mod

Each package the turn added or changed is checked against public advisory data. The agent is told the safe version to move to, and to refresh the lockfile with the project's own tool.

The project scan#

LeoPrevent also checks the packages already in the project and records the result on the dashboard. You hear about high, critical or malicious packages already there when the agent works on code they cover, or when you run /leoprevent:sca. With /leoprevent:sca, the agent offers to fix the ones with a safe fix and changes nothing unless you say yes.

What is sent#

Package names and versions only, never code. Go module paths are sent, including private ones.

Turn it on or off#

Once LeoTrace has turned the feature on, Owners and Admins control it in Controls with Dependency check, for the whole organisation, a group, a workspace or a single repository.

SCA owner, set on each workspace, names who sees the full project scan when a session starts: No owner or Chosen people. Everyone else still gets the dependency check during a turn.

Updated 19 Nov 2026

Suggested articles