v0.4.0

Get started

NHIM audit quickstart

Run a static Kubernetes NHIM audit in minutes — no Blekline account required.

View as Markdown

@blekline/[nhim](/docs/definitions/nhim)-audit scans Kubernetes clusters for agent candidate workloads that may bypass MCP/runtime enforcement hops. Use this as Step 0 before Track 03 sandbox eval.

No Blekline account required for static audit.

Run the audit

kubectl apply -f https://raw.githubusercontent.com/Blekline/blekline-oss/main/packages/nhim-audit/deploy/rbac/nhim-audit-reader.yaml
npx @blekline/nhim-audit audit --plain --json -o nhim-audit.json

Try a broken fixture (no kubeconfig):

npx @blekline/nhim-audit demo broken

Read the score

ScoreBandMeaning
0–39CRITICALMandatory hop not enforced
40–69AT RISKPartial enforcement
70–89PARTIALStatic clean — probe recommended
90–100HARDENEDStatic aligned

Upload [nhim](/docs/definitions/nhim)-audit.json to Operations → Posture or attach it to your enterprise sandbox request.

Top rules (static)

IDSeveritySummary
NHIM-001CRITICALNo sidecar on agent candidate
NHIM-002CRITICALNo mandatory-hop NetworkPolicy
NHIM-003HIGHAdmission webhook missing
NHIM-004HIGHWebhook fail-open
NHIM-005HIGHSidecar externally exposed

Full rule reference: [NHIM Audit CLI](/docs/tools/nhim-audit).

CI merge gate

Fail PRs when posture regresses:

- uses: blekline/nhim-audit-action@v1
  with:
    kubeconfig: ${{ secrets.KUBECONFIG }}
    fail-on: high
    min-score: "75"
    output: nhim-audit.json

See [CI NHIM gate](/docs/deploy/ci-nhim-gate) for flags, SARIF export, and exit codes.

Probe verification (optional)

Active bypass checks require a probe eval token (blw_eval_…):

  1. Run static audit and save JSON
  2. Email enterprise@blekline.com with [nhim-audit](/docs/definitions/nhim-audit).json, or request via Track 03 sandbox grant
  3. Run with --probe:
BLEKLINE_EVAL_TOKEN=blw_eval_… npx @blekline/nhim-audit audit --probe --json -o nhim-audit-probed.json

Next steps

Disclaimer: Evidence enablement only — not certification.