Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,16 @@ jobs:
test -n "$wheel"
uv venv --python 3.12 .rhel8-security-venv
uv pip install --python .rhel8-security-venv/bin/python "${wheel}[security]"
- name: Smoke-test the Linux scanner pair
- name: Smoke-test the bundled Python scanners
run: |
.rhel8-security-venv/bin/python - <<'PY'
from importlib.metadata import version
from packaging.version import Version

assert version("semgrep") == "1.157.0"
assert version("pip-audit") == "2.9.0"
assert Version(version("bandit")) >= Version("1.9.4")
assert Version(version("pip-audit")) >= Version("2.10.0")
PY
.rhel8-security-venv/bin/semgrep --version
.rhel8-security-venv/bin/bandit --version
.rhel8-security-venv/bin/pip-audit --version

package:
Expand Down
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ ENV PIP_NO_INPUT=1 \
WORKDIR /app
COPY . /app

RUN apt-get update && \
apt-get install --yes --no-install-recommends git && \
rm -rf /var/lib/apt/lists/* && \
python -m pip install --no-cache-dir --upgrade pip && \
RUN python -m pip install --no-cache-dir --upgrade pip && \
python -m pip install --no-cache-dir ".[all]" && \
skillevaluator --help >/dev/null

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ skillevaluator rubric-eval ./my-skill # LLM-as-judge scoring — the o
| `security` | SkillSpector scanning for prompt injection, data exfiltration, and related risks |
| `pii` | Credentials, tokens, personal data, and other sensitive information |
| `license` | Frontmatter, license-file, and SPDX compliance |
| `code-integrity` | Bandit, packaged Semgrep checks, Gitleaks, links, dependency declarations, and static test discovery |
| `code-integrity` | Bandit, Semgrep with packaged policy, Gitleaks, links, dependency declarations, and static test discovery |
| `unicode` | Invisible Unicode, bidirectional overrides, and ASCII smuggling |
| `quality` | Deterministic quality scoring with a 0–100 score and A–F grade |
| `lint` | Advisory script structure, nesting, constants, shebang, and input-validation checks |
Expand Down
2 changes: 1 addition & 1 deletion THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ records the exact resolved dependency set used for this release.
| LLM | Anthropic (MIT), Boto3 (Apache-2.0), LiteLLM (MIT), OpenAI (Apache-2.0), Protobuf (BSD-3-Clause) |
| Tier 3 | Harbor (Apache-2.0) |
| Telemetry | OpenTelemetry API, SDK, and OTLP HTTP Exporter (Apache-2.0) |
| Security | Bandit (Apache-2.0), LangChain Core (MIT), pip-audit (Apache-2.0), Semgrep (LGPL-2.1), SkillSpector (Apache-2.0) |
| Security | Bandit (Apache-2.0), pip-audit (Apache-2.0) |
16 changes: 8 additions & 8 deletions config/oss_boundary_allowlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,63 +4,63 @@
{
"path": "tests/test_oss_packaging.py",
"rule": "internal-runtime-dependency",
"line": 127,
"line": 126,
"reason": "Negative dependency boundary assertion",
"expires": "2027-07-08",
"review_owner": "oss-release-reviewers"
},
{
"path": "tests/test_oss_packaging.py",
"rule": "internal-runtime-dependency",
"line": 128,
"line": 127,
"reason": "Negative dependency boundary assertion",
"expires": "2027-07-08",
"review_owner": "oss-release-reviewers"
},
{
"path": "tests/test_oss_packaging.py",
"rule": "internal-product-name",
"line": 129,
"line": 128,
"reason": "Negative product boundary assertion",
"expires": "2027-07-08",
"review_owner": "oss-release-reviewers"
},
{
"path": "tests/test_oss_packaging.py",
"rule": "internal-nvidia-credential",
"line": 135,
"line": 134,
"reason": "Negative credential boundary assertion",
"expires": "2027-07-08",
"review_owner": "oss-release-reviewers"
},
{
"path": "tests/test_oss_packaging.py",
"rule": "execution-service-integration",
"line": 136,
"line": 135,
"reason": "Negative execution boundary assertion",
"expires": "2027-07-08",
"review_owner": "oss-release-reviewers"
},
{
"path": "tests/test_oss_packaging.py",
"rule": "internal-runtime-dependency",
"line": 138,
"line": 137,
"reason": "Negative dependency boundary assertion",
"expires": "2027-07-08",
"review_owner": "oss-release-reviewers"
},
{
"path": "tests/test_oss_packaging.py",
"rule": "harbor-upload-integration",
"line": 404,
"line": 409,
"reason": "Negative upload boundary assertion",
"expires": "2027-07-08",
"review_owner": "oss-release-reviewers"
},
{
"path": "tests/test_oss_packaging.py",
"rule": "internal-nvidia-credential",
"line": 445,
"line": 450,
"reason": "Negative documentation boundary assertion",
"expires": "2027-07-08",
"review_owner": "oss-release-reviewers"
Expand Down
37 changes: 17 additions & 20 deletions docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ This project will download and install additional third-party open source softwa
- Python 3.12 or 3.13. `uv tool install` and `uv sync` provision a supported
interpreter automatically when passed `--python 3.13`; only the plain-pip
path needs one on PATH.
- Git (source installs and the pinned
[SkillSpector](https://github.com/NVIDIA/SkillSpector) dependency are
fetched from GitHub).
- Git for source installs.
- Docker, only for the container install and Tier 3 Docker evaluation.
- No API key is needed for deterministic Tier 1 checks. Full default scanner
coverage requires the `security` extra plus Gitleaks. LLM-backed checks and
Expand All @@ -37,35 +35,34 @@ binary:
| `tier2` | Intra-skill deduplication and local-catalog inter-skill similarity; includes `llm` |
| `tier3` | Docker and cloud live-agent evaluation; includes `llm` |
| `telemetry` | Optional OpenTelemetry export |
| `security` | Bandit, Semgrep, pip-audit, and the pinned SkillSpector Git dependency |
| `security` | Bandit and pip-audit |
| `all` | `tier2`, `tier3`, `telemetry`, and `security` |
| `dev` | Build, test, coverage, and formatting tools |

Swap the extras in the install one-liner:

```bash
uv tool install --python 3.13 "skillevaluator @ git+https://github.com/NVIDIA/SkillEvaluator.git" # base checks; scanner checks report INCOMPLETE
uv tool install --python 3.13 "skillevaluator[security] @ git+https://github.com/NVIDIA/SkillEvaluator.git" # + security scanners
uv tool install --python 3.13 "skillevaluator[security] @ git+https://github.com/NVIDIA/SkillEvaluator.git" # + bundled Python security scanners
uv tool install --python 3.13 "skillevaluator[tier2,tier3] @ git+https://github.com/NVIDIA/SkillEvaluator.git"
```

The `security` extra installs SkillSpector directly from GitHub at the
immutable revision pinned in `pyproject.toml`. It is substantially larger than
the base install because Semgrep and SkillSpector bring their own dependency
stacks; use `all` only when Tier 2/Tier 3 and telemetry are also needed.
Semgrep and SkillSpector remain supported external scanners. Install them in
separate tool environments so their CLI dependency stacks do not constrain or
become part of the Skill Evaluator distribution:

### Linux security scanner compatibility

The `security` and `all` extras support Linux systems with glibc 2.28, including
RHEL 8 and compatible enterprise distributions. Semgrep 1.158 and newer Linux
wheels require glibc 2.34 or later, so Linux installs use Semgrep 1.157, the
last compatible release. That Semgrep release requires `tomli<2.1`, so Linux
also uses pip-audit 2.9; pip-audit 2.10 and newer require `tomli>=2.2.1`.
```bash
brew install semgrep # macOS
uv tool install semgrep # isolated Python tool environment
uv tool install git+https://github.com/NVIDIA/SkillSpector.git # isolated Python tool environment
```

Python environment markers cannot select dependencies by glibc version.
Consequently, this compatible scanner pair is used on all Linux systems.
macOS and Windows installs continue to resolve the newer Semgrep and pip-audit
release lines.
The external executables must be on `PATH`, or their absolute paths can be set
with `SKILLEVALUATOR_SEMGREP_PATH` and
`SKILLEVALUATOR_SKILLSPECTOR_PATH`. RHEL 8 and compatible enterprise Linux
systems can provide compatible executables independently of the Skill
Evaluator Python environment. Use `all` only when Tier 2/Tier 3, telemetry,
and the bundled Python security tools are also needed.

## Install from source

Expand Down
20 changes: 14 additions & 6 deletions docs/tier1-validation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,17 @@ project environment or an explicit sandbox.
The default external profile treats a missing, timed-out, crashed, or malformed
Bandit, Semgrep, Gitleaks, or SkillSpector run as `INCOMPLETE`: terminal and
saved reports are non-green and `validate` exits non-zero. Install
`skillevaluator[security]` for the bundled Python scanners and install Gitleaks
separately (`brew install gitleaks` or
`skillevaluator[security]` for Bandit and pip-audit. Install Semgrep separately
(`brew install semgrep` or `uv tool install semgrep`), install SkillSpector
separately (`uv tool install git+https://github.com/NVIDIA/SkillSpector.git`),
and install Gitleaks separately (`brew install gitleaks` or
download a binary from the official
[Gitleaks releases](https://github.com/gitleaks/gitleaks/releases)).

Semgrep uses a policy packaged with the installed distribution, with metrics
and version checks disabled; Tier 1 never fetches a registry policy at runtime.
Bundled scanners resolve next to the SkillEvaluator interpreter before PATH.
Bundled Python scanners resolve next to the SkillEvaluator interpreter before
PATH. External Semgrep and SkillSpector installations resolve from PATH.
Intentional replacements require an auditable absolute executable path in
`SKILLEVALUATOR_BANDIT_PATH`, `SKILLEVALUATOR_SEMGREP_PATH`, or
`SKILLEVALUATOR_SKILLSPECTOR_PATH`; relative, missing, and non-executable
Expand Down Expand Up @@ -444,9 +447,14 @@ credential configuration is documented in [CONFIGURATION.md](configuration.mdx).
- **Gitleaks is not installed** — install it with `brew install gitleaks` or
download a binary from the official
[Gitleaks releases](https://github.com/gitleaks/gitleaks/releases).
- **A Python scanner is missing** — install the security extra with
`skillevaluator[security]`. Required scanner failures remain `INCOMPLETE`
until the scanner is installed and returns valid evidence.
- **Bandit or pip-audit is missing** — install the security extra with
`skillevaluator[security]`.
- **SkillSpector is missing** — install it separately with
`uv tool install git+https://github.com/NVIDIA/SkillSpector.git`.
- **Semgrep is missing** — install it separately with `brew install semgrep`
or `uv tool install semgrep`.
Required scanner failures remain `INCOMPLETE` until the scanner is installed
and returns valid evidence.
- **An LLM-backed stage fails immediately** — configure a supported provider or
omit `--llm`/`--llm-verify`. Use `--no-dedup` when a fully key-free Tier 1 run
is required.
Expand Down
28 changes: 10 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ license-files = [
# Base install is static-validation capable (Tier 1) and must NOT pull Harbor,
# LLM, or OpenTelemetry. Those live behind the extras below.
dependencies = [
"click>=8.1.8,<8.2",
"click>=8.3.3,<9",
"jinja2>=3.1",
"pydantic>=2.11.0",
"pyyaml>=6.0",
Expand All @@ -51,7 +51,8 @@ llm = [
"boto3>=1.34.0",
"litellm>=1.83.10,<1.89.0.dev0",
"openai>=2.21.0",
"protobuf>=6.33.5",
# CVE-2026-0994 / BDSA-2025-123809 complete recursion-limit fix.
"protobuf>=7.35.1",
]
# Tier 2 intra-skill deduplication and local-catalog inter-skill similarity.
tier2 = [
Expand All @@ -61,32 +62,23 @@ tier2 = [
tier3 = [
"skillevaluator[llm]",
"harbor==0.13.2",
# CVE-2026-59950, CVE-2026-52870, and CVE-2026-52869 fixed floor.
"mcp>=1.28.1,<2",
# CVE-2026-48522 through CVE-2026-48526 fixed floor.
"pyjwt[crypto]>=2.13.0",
]
# OpenTelemetry export (optional; telemetry degrades gracefully when absent).
telemetry = [
"opentelemetry-api>=1.37.0",
"opentelemetry-exporter-otlp-proto-http>=1.37.0",
"opentelemetry-sdk>=1.37.0",
# CVE-2026-0994 / BDSA-2025-123809 fixed floor.
"protobuf>=6.33.5",
# CVE-2026-0994 / BDSA-2025-123809 complete recursion-limit fix.
"protobuf>=7.35.1",
]
# Static security scanners (floors raised to the established release baseline).
security = [
"bandit>=1.9.4",
# CVE-2026-45134 / BDSA-2026-10450 fixed floor.
"langchain-core>=1.4.9",
# Semgrep 1.157 (the last release compatible with glibc 2.28) pins
# tomli<2.1, while pip-audit >=2.10 requires tomli>=2.2.1. Keep the two
# scanners on their compatible Linux pair; other platforms retain the
# established release baselines.
"pip-audit>=2.9.0,<2.10.0; sys_platform == 'linux'",
"pip-audit>=2.10.0; sys_platform != 'linux'",
"protobuf>=6.33.5",
# Semgrep >=1.158 Linux wheels require glibc >=2.34, while RHEL 8
# and compatible enterprise Linux distributions provide glibc 2.28.
"semgrep>=1.157.0,<1.158.0; sys_platform == 'linux'",
"semgrep>=1.162.0; sys_platform != 'linux'",
"skillspector @ git+https://github.com/NVIDIA/SkillSpector.git@ad55ceb60bcf38feb12227531c17b620c8b416af",
"pip-audit>=2.10.0",
]
# Full public install convenience bundle.
all = [
Expand Down
5 changes: 4 additions & 1 deletion src/skillevaluator/utils/tool_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ def get_install_hint(self) -> str:
"pip-audit": bundled_scanner_hint,
"safety": "Optional secondary scanner; install separately with: uv tool install safety",
"bandit": bundled_scanner_hint,
"semgrep": bundled_scanner_hint,
"semgrep": (
"Install Semgrep separately with: brew install semgrep (macOS) "
"or uv tool install semgrep"
),
"skillspector": "Install with: uv tool install git+https://github.com/NVIDIA/SkillSpector.git",
"skillevaluator": (
'Install with: uv tool install "skillevaluator[all] @ git+https://github.com/NVIDIA/SkillEvaluator.git"'
Expand Down
2 changes: 1 addition & 1 deletion tests/golden/_cli_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _param_to_dict(param: click.Parameter) -> dict[str, Any]:
if getattr(param, "required", False):
data["required"] = True
default = getattr(param, "default", None)
if default is not None:
if default is not None and default is not getattr(click.core, "UNSET", None):
data["default"] = str(default)
param_type = getattr(param, "type", None)
if isinstance(param_type, click.Choice):
Expand Down
Loading
Loading