Skip to content

fix(tier1): harden public validation and CLI behavior - #18

Merged
chrisknvidia merged 14 commits into
mainfrom
naren/tier1-scanner-version-hardening
Aug 1, 2026
Merged

chrisknvidia merged 14 commits into
mainfrom
naren/tier1-scanner-version-hardening

Conversation

@rng1995

@rng1995 rng1995 commented Jul 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Ports public-compatible Tier 1 and CLI hardening through internal SkillEvaluator 0.8.3, while preserving the external repository’s latest dependency-remediation decisions.

Baseline and source

  • Verified common import tree: internal 69ece96fa82859ff956b6c3adcae0e8ebf403815 and public donor a1a603c026ef41d5ca98aa00fa8003544638535e (tree e5073d50ebc28bb9c1ef1a74526659a80b55deec).
  • Internal source reviewed through 0.8.3 / ed7ae8e8396ec0788135741192e6d75e4ba23724.
  • Public branch synchronized with fb54805d8dd17bb5ad23c151b9ea40fd5922b994.
  • Relevant 0.8.3 changes: c743d5f, ee03e56, 46b76d2, cb65f58, 9b22bdd, 0e2a933, 9c26b2e, and 7ba0c73.

Included

  • Suppress only the exact public two-line SPDX HTML preamble from hidden-instruction findings; modified comments or directives still fail.
  • Exclude only the exact SPDX preamble from Tier 2 chunks.
  • Distinguish explicit release/package versions from IP addresses without suppressing URLs, hosts, endpoints, servers, resolvers, or later IP tokens.
  • Allow canonical agents/ and tests/ supporting directories.
  • Run optional-label version validation by default and support --previous-version monotonic checks.
  • Preserve CLI command grouping and stable report-path visibility.
  • Constrain Ruff to the validated 0.15.x minor.

Public adaptations and exclusions

  • Does not restore the SkillSpector dependency, scanner-contract fixture, Semgrep, or other packages deliberately removed by public PR fix: remediate nSpect dependency vulnerabilities #20.
  • Adds no NVIDIA-internal code, configuration, registry, documentation, provider, or service integration.
  • Does not alter Tier 2 Milvus/remote-vector behavior, plugin evaluation, or Tier 3 execution.
  • The SPDX recognizer is exact and public-license-specific, not a general comment bypass.

Validation

  • Complete exact-lockfile suite: 2920 passed, 8 skipped, 3 deselected.
  • Ruff, git diff --check, and OSS-boundary scan: passed.
  • Focused SPDX, PII/IP, schema-directory, chunking, version, and CLI tests: passed.

Risk

  • Missing metadata.version remains valid.
  • Network-address contexts fail closed.
  • The dependency graph matches current public main; no removed scanner functionality is reintroduced.

This PR is intentionally not merged.

@rng1995 rng1995 changed the title fix(tier1): harden SkillSpector and version validation fix(tier1): harden public validation and CLI behavior Jul 26, 2026
@chrisknvidia
chrisknvidia force-pushed the naren/tier1-scanner-version-hardening branch from 3aa99bf to d9f6c09 Compare July 31, 2026 16:15
@chrisknvidia
chrisknvidia force-pushed the naren/tier1-scanner-version-hardening branch from ae752d7 to 671414f Compare July 31, 2026 22:32

@chrisknvidia chrisknvidia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the metadata/IP false-negative fix at 0dabd9e. Version and tag labels now require real identifier-token boundaries; regression coverage preserves snake_case, kebab-case, and camelCase labels while conversion/diversion/staging/tagline correctly surface public-IP findings. Local full suite, packaged CLI E2E, OSS source/archive scans, and refreshed GitHub CI are green.

@chrisknvidia
chrisknvidia merged commit 2737b07 into main Aug 1, 2026
11 checks passed
chrisknvidia pushed a commit that referenced this pull request Aug 1, 2026
* fix(tier1): harden scanner and version validation

Signed-off-by: Narendran Raghavan <[email protected]>

* feat(cli): group top-level help commands

* fix(validation): port 0.8.3 hardening

Signed-off-by: Narendran Raghavan <[email protected]>

* fix(validation): harden scanner metadata handling

Signed-off-by: Christopher Kevin <[email protected]>

* fix(validation): fail closed on malformed scanner data

Signed-off-by: Christopher Kevin <[email protected]>

* fix(validation): enforce scanner report contract

Signed-off-by: Christopher Kevin <[email protected]>

* fix(security): reconcile aggregate scanner risk

Signed-off-by: Christopher Kevin <[email protected]>

* fix(security): align informational risk scoring

Signed-off-by: Christopher Kevin <[email protected]>

* fix(security): mirror scanner risk lower bound

Signed-off-by: Christopher Kevin <[email protected]>

* fix(security): match scanner risk aggregation

Signed-off-by: Christopher Kevin <[email protected]>

* fix(security): skip zero-confidence score slots

Signed-off-by: Christopher Kevin <[email protected]>

* fix(security): handle private scanner dedup identities

Signed-off-by: Christopher Kevin <[email protected]>

* fix(validation): close rebase and versioning blockers

Signed-off-by: Christopher Kevin <[email protected]>

* fix(security): match version labels as tokens

Signed-off-by: Christopher Kevin <[email protected]>

---------

Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia pushed a commit that referenced this pull request Aug 1, 2026
Includes the public benchmark metadata sanitization (#22), Tier 1 validation and CLI hardening (#18), and structured Tier 3 dataset generation outcomes (#21).

Signed-off-by: Narendran Raghavan <[email protected]>
@chrisknvidia
chrisknvidia deleted the naren/tier1-scanner-version-hardening branch August 1, 2026 03:01
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.

2 participants