Dependency audit

Audit exact npm dependency versions against OSV through Runx native HTTP and emit replay-verified evidence with no unverified findings.

You’re reading version 0.2.10. Go to the current version

Overview

Audit exact npm versions from an immutable package-lock.json against OSV. Runx owns every network request, response bound, retry, host admission, and receipt. Package code owns only lockfile inventory and OSV result semantics.

The audit is read-only. It does not install dependencies, execute target code, repair packages, publish advisories, or treat missing OSV data as proof of safety.

In the manual

Runner

  • audit

Declared by its execution profile. Read the profile

SKILL.md

Exact CVE Audit

Audit exact npm versions from an immutable package-lock.json against OSV. Runx owns every network request, response bound, retry, host admission, and receipt. Package code owns only lockfile inventory and OSV result semantics.

The audit is read-only. It does not install dependencies, execute target code, repair packages, publish advisories, or treat missing OSV data as proof of safety.

When to use it

Use cve-audit when a reviewer needs reproducible evidence for the advisories affecting exact npm versions in a public immutable lockfile. It is appropriate for dependency review, release triage, and the evidence stage before vuln-triage. Exact-version matching matters: package-name or loose-range scans can turn possible exposure into false findings.

Do not use it for mutable branch URLs, private repositories without a declared reader, non-npm ecosystems, exploit development, or coverage claims broader than the selected dependency scope.

Inputs

  • target_name: human-readable project name.
  • target_repo: public https://github.com/... repository URL.
  • target_commit: full 40-character Git commit.
  • lockfile_url: raw.githubusercontent.com package-lock URL containing that commit in its path.
  • dependency_scope: direct-production by default, or all-installed.

Private repositories, credentials, mutable branch URLs, abbreviated commits, and non-npm lockfiles are outside this runner.

Execution contract

  1. Validate the immutable GitHub target before any network call.
  2. Read the pinned lockfile through the web connector's page.read, retaining its transport digest and refusing truncation.
  3. Extract exact installed versions from package-lock versions 2 or 3. The inventory is capped at 10,000 entries.
  4. Query OSV in batches of 500 with the osv connector's vulnerabilities.query. It sends POSTs but is a read; it is not a mutation lane.
  5. Refuse the audit if any OSV query result carries a page token. A partial provider result must never be reported as complete.
  6. Read each returned advisory with osv/vulnerabilities.read, validate advisory identity, and exclude withdrawn advisories. The verified advisory set is capped at 50; a larger set stops instead of being truncated.
  7. Assemble the audit, report, and evidence from the exact inventory and full advisory records.
  8. Repeat the OSV query and advisory reads in separate graph steps. Compare dependency path, exact version, advisory id, and withdrawal state. Finalize only when the two complete sets match.

The connectors admit only their declared hosts, reject credentials in URLs, and block private-network resolution. The skill has no private HTTP client and its deterministic JavaScript worker has no network access.

Outputs

  • audit_result (runx/cve-audit.audit.v1): immutable target, selected inventory, findings, and counts.
  • report (runx/cve-audit.report.v1): Markdown report bound by digest.
  • evidence (runx/cve-audit.evidence.v1): exact queries and returned non-withdrawn advisory ids.
  • verification (runx/cve-audit.verification.v1): independent replay comparison, including false, missing, changed, and withdrawn counts.
  • delivery (runx/cve-audit.delivery.v1): digests of every final packet, emitted only after successful verification.

The sealed graph receipt records both native provider passes and every derived packet.

Stop conditions

  • Target or lockfile URL is mutable, unpinned, non-HTTPS, or outside the declared GitHub hosts.
  • Lockfile version or shape cannot produce an exact inventory.
  • Inventory, advisory count, response size, or batch output exceeds a declared bound.
  • OSV returns an error, malformed shape, identity mismatch, or a pagination token the graph cannot complete.
  • The replay observes any added, removed, changed, or newly withdrawn finding.

The selected dependency scope is always carried into the output. A direct-production result makes no claim about transitive or development dependencies.

Example

For a lockfile pinned to one full Git commit, the skill inventories the exact installed production versions, queries OSV, reads every returned advisory, and then repeats the provider pass. It seals only if both complete finding sets match. The same request pointed at main/package-lock.json stops before the network boundary because the target is mutable; a clean finding set still means “OSV returned no matching advisory for this scope,” not “the project is safe.”

Published execution profile

The execution profile published with 0.2.10, shown as its exact bytes.

Runner
  • audit
Profile digestsha256:a2e7a638b1135aae3b38d1cca304e46e6fc23d171ae3081dfebbeac11d46d8e6
skill: cve-audit
version: "0.2.10"

catalog:
  kind: graph
  audience: public
  visibility: public
  role: canonical
  execution: read
  completion: runtime_receipt
  approval: none
  category: security
  tags: [cve, dependencies, osv]
  links:
    source: https://github.com/jaasieldelgado131/runx-exact-cve-audit
    registry: https://runx.ai/x/jaasieldelgado131/cve-audit
    advisory_source: https://osv.dev

connectors:
  web:
    operations: [page.read]
  osv:
    operations: [vulnerabilities.query, vulnerabilities.read]
runners:
  audit:
    default: true
    inputs:
      target_name:
        type: string
        required: true
        description: Human-readable project name.
      target_repo:
        type: string
        required: true
        description: Public GitHub source repository URL.
      target_commit:
        type: string
        required: true
        description: Immutable full source commit.
      lockfile_url:
        type: string
        required: true
        description: Raw GitHub package-lock.json URL pinned to target_commit.
      dependency_scope:
        type: string
        required: false
        default: direct-production
        description: direct-production or all-installed.
      observed_at:
        type: string
        required: true
        description: Explicit ISO-8601 evidence time used in every emitted packet.
    result_from: [finalize]
    steps:
      - id: prepare
        label: validate immutable target and plan lockfile read
        inputs:
          target_name: $input.target_name
          target_repo: $input.target_repo
          target_commit: $input.target_commit
          lockfile_url: $input.lockfile_url
          dependency_scope: $input.dependency_scope
          observed_at: $input.observed_at
        tool: { module: cve.mjs, export: prepare }
        outputs:
          target_plan: object
        artifacts:
          named_emits:
            target_plan: target_plan

      - id: lockfile
        label: read the pinned lockfile
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        operation: web/page.read
        input: $steps.prepare.target_plan.lockfile_read

      - id: inventory
        label: extract exact inventory and plan OSV batch queries
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        inputs:
          target_plan: $steps.prepare.target_plan
          lockfile: $steps.lockfile.provider_operation.result
        tool: { module: cve.mjs, export: inventory }
        outputs:
          scan_plan: object
        artifacts:
          named_emits:
            scan_plan: scan_plan

      - id: query
        label: query exact versions
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        operation: osv/vulnerabilities.query
        input: $steps.inventory.scan_plan.provider_input

      - id: advisory-plan
        label: validate OSV result completeness and plan advisory reads
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        inputs:
          scan_plan: $steps.inventory.scan_plan
          query_result: $steps.query.provider_operation.result
          target_name: $input.target_name
          target_repo: $input.target_repo
          target_commit: $input.target_commit
          lockfile_url: $input.lockfile_url
          dependency_scope: $input.dependency_scope
          observed_at: $input.observed_at
        tool: { module: cve.mjs, export: planFindings }
        outputs:
          finding_plan: object
        artifacts:
          named_emits:
            finding_plan: finding_plan

      - id: advisories
        label: read complete advisory records
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        operation: osv/vulnerabilities.read
        input: $steps.advisory-plan.finding_plan.provider_input

      - id: assemble
        label: assemble exact-version audit and replay plan
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        inputs:
          scan_plan: $steps.inventory.scan_plan
          finding_plan: $steps.advisory-plan.finding_plan
          advisories_result: $steps.advisories.provider_operation.result
          evidence_time: $steps.prepare.target_plan.observed_at
        tool: { module: cve.mjs, export: assemble }
        outputs:
          audit_result: object
          report_draft: object
          evidence: object
          replay_query_plan: object
        artifacts:
          named_emits:
            audit_result: audit_result
            evidence: evidence
            replay_query_plan: replay_query_plan
          packets:
            audit_result: runx/cve-audit.audit.v1
            evidence: runx/cve-audit.evidence.v1

      - id: digest-report
        label: digest the exact rendered report natively
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        tool: data.digest
        inputs:
          encoding: utf8_text
          value: $steps.assemble.report_draft.markdown

      - id: bind-report
        label: bind the native markdown digest to the report packet
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        inputs:
          report_draft: $steps.assemble.report_draft
          markdown_digest: $steps.digest-report.digest_result
        tool: { module: cve.mjs, export: bindReport }
        outputs:
          report: object
        artifacts:
          named_emits:
            report: report
          packets:
            report: runx/cve-audit.report.v1

      - id: replay-query
        label: independently replay every exact-version query
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        operation: osv/vulnerabilities.query
        input: $steps.assemble.replay_query_plan.provider_input

      - id: replay-plan
        label: validate replay completeness and plan replay advisory reads
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        inputs:
          scan_plan: $steps.inventory.scan_plan
          query_result: $steps.replay-query.provider_operation.result
          target_name: $input.target_name
          target_repo: $input.target_repo
          target_commit: $input.target_commit
          lockfile_url: $input.lockfile_url
          dependency_scope: $input.dependency_scope
          observed_at: $input.observed_at
        tool: { module: cve.mjs, export: planReplay }
        outputs:
          replay_plan: object
        artifacts:
          named_emits:
            replay_plan: replay_plan

      - id: replay-advisories
        label: re-read advisory state for independent verification
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        operation: osv/vulnerabilities.read
        input: $steps.replay-plan.replay_plan.provider_input

      - id: verify
        label: compare reported and independently replayed exact sets
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        inputs:
          audit_result: $steps.assemble.audit_result
          evidence: $steps.assemble.evidence
          replay_plan: $steps.replay-plan.replay_plan
          advisories_result: $steps.replay-advisories.provider_operation.result
          evidence_time: $steps.prepare.target_plan.observed_at
        tool: { module: cve.mjs, export: verify }
        outputs:
          verification: object
        artifacts:
          named_emits:
            verification: verification
          packets:
            verification: runx/cve-audit.verification.v1

      - id: digest-audit
        label: digest the exact audit packet natively
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        tool: data.digest
        inputs:
          value: $steps.assemble.audit_result

      - id: digest-report-packet
        label: digest the exact report packet natively
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        tool: data.digest
        inputs:
          value: $steps.bind-report.report

      - id: digest-evidence
        label: digest the exact evidence packet natively
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        tool: data.digest
        inputs:
          value: $steps.assemble.evidence

      - id: digest-verification
        label: digest the exact verification packet natively
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        tool: data.digest
        inputs:
          value: $steps.verify.verification

      - id: prepare-delivery
        label: assemble the recomputable delivery packet
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        inputs:
          audit_result: $steps.assemble.audit_result
          verification: $steps.verify.verification
          report_digest: $steps.digest-report-packet.digest_result
          evidence_digest: $steps.digest-evidence.digest_result
          audit_result_digest: $steps.digest-audit.digest_result
          verification_digest: $steps.digest-verification.digest_result
          evidence_time: $steps.prepare.target_plan.observed_at
        tool: { module: cve.mjs, export: prepareDelivery }
        outputs:
          delivery_draft: object

      - id: digest-delivery
        label: digest the delivery packet before its intrinsic digest is attached
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        tool: data.digest
        inputs:
          value: $steps.prepare-delivery.delivery_draft

      - id: finalize
        label: bind the native delivery digest and seal the packet
        when:
          value: $steps.prepare.target_plan.decision
          equals: ready
        inputs:
          delivery_draft: $steps.prepare-delivery.delivery_draft
          delivery_digest: $steps.digest-delivery.digest_result
        tool: { module: cve.mjs, export: finalize }
        outputs:
          delivery: object
        artifacts:
          named_emits:
            delivery: delivery
          packets:
            delivery: runx/cve-audit.delivery.v1
    policy:
      guards:
        - step: finalize
          value: $steps.verify.verification.verified
          equals: true

harness:
  files: [fixtures/support/composed.graph]
  cases: []

Published package and test evidence.

This exact version passed its recorded harness run: 3 checks passed · 0 failed.

Test result

Harness resultPassed
Tested version0.2.10
Recorded result3 checks passed · 0 failed
Result sourceRun by the Runx registry at publication
Suiterunx-harness
Test recorded
Test recordOpen the recorded run
Inspect receipt referencessha256:05445bc64847d39a3cb7d64ba1068be1e34684000c38e81459ab473a26a853fesha256:0e0fa7b51dd2b51b91f7f5976af9b4ee34829c6957d2fd7c6e9d274535f3b01bsha256:70e67626dc12e25aefdca19998928125008e123d38287470eecd2119b705a9fb

Package identity

Published revision0.2.10
Content digestsha256:75eb5865aee59a9fa4c583184076d7231da9389890bad1eff91852a2107651e5
SKILL.md digestsha256:8ec2f319a2bc5ca055f8a4febecac52e56407b10da26155471731d47d2e51ea5
Execution profile digestsha256:a2e7a638b1135aae3b38d1cca304e46e6fc23d171ae3081dfebbeac11d46d8e6
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 25 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.2.10ViewingContent digest sha256:75eb5865aee59a9fa4c583184076d7231da9389890bad1eff91852a2107651e5
  2. sha-279b3ea5e357Content digest sha256:279b3ea5e35797291eef9f80bc2e430d4c208bc4383dd589727ec9a4a08d1cd3
  3. sha-91335edb8944Content digest sha256:91335edb89447f0ddcf791b2a0812f7fe6e890535804e229ab1b453870d2d2db
  4. sha-04838f8f57d0Content digest sha256:19d10e4f2a302fffd540c9af3d1f729978d752b0f358ee92b42e4c3093c47ca9