Skip to content

Inspect locked npm dependency contents as an opt-in scan #951

Closed

Description

@YMuskrat

SkillSpector checks dependency declarations against advisories and supply-chain rules, but external package contents are not automatically inspected. A package can contain a credential-stealing installation hook without a published advisory, leaving that code outside the scan.

Add an opt-in --inspect-dependencies mode that:

  • Reads exact artifacts and recorded transitive dependencies from supported npm lockfiles.
  • Downloads packages within explicit budgets and verifies their integrity before inspection.
  • Statically inspects supported source and npm scripts in an isolated worker without installing packages or executing their code.
  • Reports findings with package identity, artifact digest, lock references, and source locations.
  • Preserves missing artifacts, unsupported content, integrity failures, unavailable isolation, and budget exhaustion as incomplete analysis; --fail-on-incomplete must fail the scan for these gaps.

Initial support can be limited to public npm registry tarballs in package-lock.json and npm-shrinkwrap.json v2/v3, with Linux x86-64/AArch64 worker isolation. Reports should distinguish inspection not requested, completed inspection, and incomplete inspection. Static inspection does not establish package trust or certify the completeness of the install graph.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions