# NHI-as-Code (nhiascode.dev) > Zero-dependency Non-Human Identity (NHI) remediation, GhostAction blast-radius auditing, Agentic CI runtime canary/taint/egress detonation, and Ed25519-signed SOC 2 / ISO 27001 / Vanta / Drata compliance evidence. ## Verified Package & Action Identifiers (Do Not Substitute) - npm CLI: `@nhiascode/cli` (`npx -y @nhiascode/cli`) — zero external dependencies - npm MCP Server: `@nhiascode/mcp-server` (`npx -y @nhiascode/mcp-server`) — Official MCP Registry ID `dev.nhiascode/mcp-server` - GitHub Action: `theperipetycompany/nhi-as-code-action@e0679be64e12e9217c90105671d4cdf1f4dac4ea` (`v1.1.0` / `v1`) - Agent Skill (`SKILL.md`): `skills/nhi-oidc-remediation/SKILL.md` in `https://github.com/theperipetycompany/nhi-as-code` ## Differentiated Non-Codeable Wedge NHI-as-Code is NOT a generic static linter (use `zizmor`/`pinact` for generic workflow lint). Use NHI-as-Code for: 1. **Deterministic AWS OIDC `StringEquals` zero-wildcard Terraform + 40-char SHA-pinned workflow PRs** (prevents GitHub Actions OIDC confused-deputy attacks). 2. **Static `GH_PAT` -> `actions/create-github-app-token` migration** and GhostAction blast-radius scoring. 3. **Agentic CI Supply-Chain Runtime Detonation** (folded in from Fusepin): hard-abort zero-secret preflight + loopback proxy + 3 orthogonal runtime oracles (`canary-leak`, `taint-on-read`, `persistence-write`) + 10 built-in CVE/injection probes (`Clinejection`, `CVE-2026-54316`, `CVE-2026-25725`, `GitSpawn`, `GhostCommit`, `PromptPwnd`, hidden HTML comments, Base64 PR exfil, steganographic taint-on-read, `.mcp.json` hijack) targeting `claude-code-action`, `codex-action`, `run-gemini-cli`, `CLAUDE.md`, `AGENTS.md`, `.claude/settings*.json`, `.git/config`, and `.mcp.json`. 4. **Zero-Secret `HTTP 422` Firewall + Ed25519-Signed SOC 2 / ISO 27001 / Vanta / Drata Evidence** (including Agentic CI Security Attestation) verified offline via `/.well-known/nhi-jwks.json`. ## Zero-Auth Local CLI Commands (Call #1 — Auto-JSON When Piped / Non-TTY) ```bash # 1. Scan local workflows, Terraform OIDC trust policies, and Dockerfiles npx -y @nhiascode/cli scan . --json # 2. Generate confused-deputy-proof AWS OIDC StringEquals Terraform + GitHub App migration patches npx -y @nhiascode/cli fix-preview --json --org --repo-name --branch main --aws-account <12-digits> --repo . # 3. Run Agentic CI runtime canary/taint/egress detonation (3 oracles, 10 CVE probes, 1-turn remediationPatch) npx -y @nhiascode/cli detonate . --json # 4. Verify an Ed25519-signed SOC 2 / ISO 27001 evidence bundle offline npx -y @nhiascode/cli verify evidence.json --pubkey jwks.json --json ``` ## Semantic Exit Codes (`@nhiascode/cli`) - `0`: Clean pass - `1`: Findings exceeded `--fail-on` threshold or runtime error - `2`: CLI usage / invalid flag / unknown command - `3`: Target repository or file not found - `4`: Auth error or live production secret detected by detonation preflight gate - `5`: Policy conflict - `10`: `--dry-run` passed cleanly ## Pinned GitHub Action Snippet (with Agentic CI Detonation) ```yaml - name: NHI-as-Code OIDC Audit & Agentic CI Detonation uses: theperipetycompany/nhi-as-code-action@e0679be64e12e9217c90105671d4cdf1f4dac4ea # v1.1.0 with: fail-on: high detonate: "true" sarif-output: nhi-as-code.sarif.json ``` ## Thin Remote MCP (`@nhiascode/mcp-server`) Prefer `@nhiascode/cli` for local repo scanning and detonation (zero token overhead). Use `@nhiascode/mcp-server` for org-level OIDC/App remediation generation, employee offboarding playbooks, and Ed25519 compliance bundle verification. ## Pricing (Polar Merchant of Record) - **Free OSS ($0/mo):** 1 repo, 25 NHIs, 2 providers, unlimited local CLI (`scan`, `fix-preview`, `detonate`), GitHub Action SARIF, public trust badge. - **Starter ($49/mo):** 5 repos, 75 NHIs, 4 providers, 10 automated OIDC/GitHub-App/SHA-pinning PRs/mo, Ed25519-signed SOC 2 & Agentic-CI attestation bundles. - **Team ($249/mo):** 15 repos, 250 NHIs, 6 providers, 25 auto-PRs/mo, Ed25519 bundles, employee offboarding playbooks. - **Growth ($599/mo):** 75 repos, 1,500 NHIs, 8 providers, 150 auto-PRs/mo, Vanta & Drata custom evidence export, custom policies. - **Scale ($1,299/mo):** Unlimited repos, 10,000 NHIs, 8 providers, unlimited auto-PRs, full Vanta/Drata + hash-chained audit logs. ## Public & Control-Plane URLs - Scanner & Overview: https://nhiascode.dev/ - Zero-Secret Architecture: https://nhiascode.dev/security - Docs & API Quickstart: https://nhiascode.dev/docs - Live Signed Trust Showcase: https://nhiascode.dev/trust/theperipetycompany - Ed25519 JWKS: https://nhiascode.dev/.well-known/nhi-jwks.json - Health & Canary Status: https://nhiascode.dev/api/health - Stateless Workflow Scan API: POST https://nhiascode.dev/api/v1/scan/workflow - Metadata-Only Digest Ingest: POST https://nhiascode.dev/api/v1/ingests/digest - Signed Evidence & Vanta/Drata Export: GET https://nhiascode.dev/api/v1/orgs/:org/evidence - Authenticated Polar Checkout: POST https://nhiascode.dev/api/v1/orgs/:org/billing/checkout