nsauditor-ai 0.2.43 → 0.2.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -8
- package/cli.mjs +24 -8
- package/mcp_server.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ A modular, AI-assisted network security audit platform that scans, understands,
|
|
|
7
7
|
[](https://www.npmjs.com/package/nsauditor-ai)
|
|
8
8
|
[](LICENSE)
|
|
9
9
|
[](https://nodejs.org)
|
|
10
|
-
[](#tests)
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
@@ -17,7 +17,9 @@ NSAuditor AI is the open-source core of a privacy-first security intelligence pl
|
|
|
17
17
|
|
|
18
18
|
## What's New
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
**`scan_cloud` stops naming a provider roster it cannot derive (CE 0.2.44 / Enterprise 0.39.0).** Paired with Enterprise 0.39.0 — **no CE scanning behaviour change, and the peer floor stays `>=0.2.43`, unraised.** The one thing that moves here is model-facing and npm freezes it, which is why it needs its own publish: the MCP `scan_cloud` tool description used to tell an assistant that *only the AWS plugins declare their capability boundaries; Azure and GCP declare none.* Enterprise 0.39.0 falsifies that — its seven GCP and Azure plugins now declare theirs — and a sentence read on every scan cannot be allowed to go stale on a peer's release. It is rewritten to state the invariant that is true in BOTH states and that CE can actually stand behind: **not every plugin declares its capability boundaries, so `deferredScope` bounds only what the DECLARING plugins state and is never a coverage inventory** — an empty or short list is not a claim of full coverage. CE floats over a peer RANGE and cannot derive Enterprise's plugin roster, so any sentence that counted providers was a claim it had no way to check. Also here: the edition-comparison chart gains the Ed25519 evidence-pack signing row, carrying its permanent scope in-sentence — one framework's envelope and the artifacts it enumerates, an operator-held key, never a vendor attestation. **And a second fix, found by trying to USE the previous release's headline:** `compliance sign-pack` and `compliance verify-pack` dispatched correctly but were **absent from `nsauditor-ai help`** for the whole of 0.2.43 — documented in every README, changelog and design record, and missing from the one surface a user actually reads. Both now carry usage blocks, and a guard derives the dispatched verb set from the dispatch site and asserts help/dispatch equality in both directions, so a reachable-but-undiscoverable command fails the build.
|
|
21
|
+
|
|
22
|
+
**The pack-signing commands land in the CLI — reachable, and not yet proven at that release (CE 0.2.43 / Enterprise 0.38.0).** ⚠️ **Correcting this entry's own words: that gate has since RUN.** On 2026-08-17 it ran against the published EE 0.38.0 registry bytes and passed, so evidence-pack signing is PROVEN for an operator-held key over one framework's envelope and the artifacts it enumerates, never a vendor attestation. `nsauditor-ai compliance sign-pack --manifest <envelope>` signs a chain-of-custody envelope with an operator-held Ed25519 key; `compliance verify-pack` establishes authorship from it — via `--registry` (your identity registry, with revocation and validity checked **as at signing time**) or `--public-key` (which discloses in its own output that those checks did not run). Both are thin forwards: Enterprise owns every decision and refusal, CE contributes the flags and the exit code. **Verify does more than the signature** — it recomputes every `artifacts[].sha256` against disk, so a signed pack whose report was edited returns a failure with the signature still reading VERIFIED. Exit **0** verified · **1** a violation · **2** the run could not measure, and the third is never a failure. Requires the Enterprise package; an auditor can also verify offline with `openssl` and nothing of ours, because the exact signed bytes ship beside the signature. **⚠️ Also a correction affecting 0.2.42/0.37.0:** a **gzipped** KEV/EPSS store — the default shape, since FIRST distributes EPSS only as `.csv.gz` — loaded with ZERO entries, so every finding reported *no store* rather than an exploit band. Misdiagnosis and silent degradation, **not** a false security verdict: findings carried a visible no-store marker throughout. Compression is now decided by file content rather than by filename.
|
|
21
23
|
|
|
22
24
|
**The `feed` commands: offline CVE data can be hand-carried (CE 0.2.42 / Enterprise 0.37.0).** `nsauditor-ai feed bundle` merges the NVD feed files you downloaded on a connected host into one portable archive; `feed import` reads one into the offline store on an isolated host — delivered as a **restricted** distribution rather than a public `npm install`, and amd64 only. The implementations are Enterprise-side (**requires `@nsasoft/nsauditor-ai-ee` >= 0.37.0**); the commands, flags and usage text are here, because this is the package with the `bin`. Optional `--kev` / `--epss` carry **your own** downloads from CISA and FIRST inside the archive, and `--extras-dir` places them on import and prints the environment lines to set — **no exploit data ships with either package**. `bundle` bundles the FEEDS YOU DOWNLOADED, never "your database": the offline store is a lossy derivation of an NVD feed and cannot be turned back into one. Import now names **why** it skipped records — about a quarter of a real NVD year file is skipped by design (withdrawn CVEs, entries with no CPE data) and a bare `skipped 9353` reads as data loss; malformed records are called out separately because those are **not** expected. ⚠️ **A bundle is integrity-checked, not authenticated** — the recorded SHA-256 detects alteration in transit but cannot establish authorship, because it travels inside the archive it covers. Also here: **`--flag=value` is now refused by name** instead of being parsed as a valueless flag with the value discarded, which made `--severity=high` run a default-severity scan and report success — a wrong answer that looked like a right one; and the **mDNS module-shape fallback was a TDZ self-reference**, so it never once fell back. **The air-gap delivery claims are earned back at this release**, with two conditions that travel with them: the dependency-complete bundle is a **restricted** distribution rather than a public install, and it is **amd64** only — no arm64 image is published.
|
|
23
25
|
|
|
@@ -73,7 +75,7 @@ If you're heading into a **SOC 2, HIPAA, NIST CSF 2.0, PCI DSS, ISO 27001, CIS C
|
|
|
73
75
|
- 🔗 **GRC connectors — Vanta + Drata + Secureframe (Enterprise)** — map compliance findings to your GRC platform's evidence/test records and push them at **scan time** (opt-in). Suppression-aware outcome mapping (Vanta) / structured records (Drata + Secureframe), idempotent retries, rate-limit handling, token redaction, and Zero-Data-Exfiltration egress redaction. Early-access, single-workspace; live validation against production tenants is in progress. See **[GRC Connectors](#grc-connectors-vanta-drata-secureframe)** below.
|
|
74
76
|
- 🗄️ **WORM posture VALIDATION** — we read your bucket's S3 Object Lock configuration per CloudTrail trail bucket and fail the control when it is absent, in GOVERNANCE mode or under-retained. That is substrate FOR a SEC Rule 17a-4(f) / FINRA 4511 retention claim, not the claim itself: the engine WRITING artifacts into the immutable store is built and **not reachable** (no caller), so the retention guarantee stays yours to make about your own archive
|
|
75
77
|
- 📊 **SLA / MTTR tracking + recurring-scan attestation** — the **Type II operating-effectiveness evidence** auditors actually demand (not just point-in-time snapshots)
|
|
76
|
-
- 🎯 **
|
|
78
|
+
- 🎯 **14 adversarial-audit Claude Code skills** authored per the Per-Framework Adversarial-Audit Skill Pairing institutional pattern — Phase-4 Compliance/GRC chain 8-of-8 COMPLETE for all shipped frameworks (SOC 2 + HIPAA + NIST CSF + PCI DSS + ISO 27001 + CIS Controls v8 + GDPR Article 32 + GRC connector)
|
|
77
79
|
|
|
78
80
|
→ **[See sample EE scan output](https://www.nsauditor.com/ai/docs/sample-scan/)** — full evidence pack against synthetic Acme Corp AWS account (no signup required)
|
|
79
81
|
→ **[Buy NSAuditor AI Enterprise Edition](https://www.nsauditor.com/ai/pricing/)** — $2k / $5k / $10k+ per year for 5 / 25 / unlimited seats + custom SLA. Onboarding call included.
|
|
@@ -117,6 +119,7 @@ How Marketplace fulfillment works (ZDE and air-gap preserved — no runtime AWS
|
|
|
117
119
|
| **Enterprise — auditor-grade evidence** | | | |
|
|
118
120
|
| Evidence packs with SHA-256 chain-of-custody (RFC 3161 timestamps opt-in via `NSAUDITOR_TSA_URL`, exercised against a live TSA on both the npm path and the `:0.33.0` container image; retained images `:0.32.11` and earlier carry no `openssl`) | — | — | ✅ |
|
|
119
121
|
| Suppression workflow with approver identity verification (Ed25519 SIGNING reachable 0.35.0, proven 0.36.0, verified per approver holding **key material**) | — | — | ✅ |
|
|
122
|
+
| **Ed25519 evidence-pack signing** — `compliance sign-pack` signs the chain-of-custody envelope at an approval station with an **operator-held** key, so the scanning fleet stays keyless and authorship is relative to your own key custody, never a vendor attestation. `compliance verify-pack` establishes authorship from that operator-held key and re-hashes every artifact the envelope names, covering one framework envelope and the artifacts it enumerates — not the pack, not the directory. Verifiable offline with `openssl` alone. | — | — | ✅ |
|
|
120
123
|
| Chain-of-custody manifests | — | — | ✅ |
|
|
121
124
|
| SLA / MTTR tracking + compensating controls | — | — | ✅ |
|
|
122
125
|
| Recurring-scan attestation (Type II operating-effectiveness) | — | — | ✅ |
|
|
@@ -334,8 +337,8 @@ nsauditor-ai scan --host aws --plugins 1030,1040,1070,1130 --compliance soc2
|
|
|
334
337
|
# Run all EE plugins (auto-discovered via plugin manager)
|
|
335
338
|
nsauditor-ai scan --host aws --plugins all --compliance soc2
|
|
336
339
|
|
|
337
|
-
#
|
|
338
|
-
nsauditor-ai scan --host aws --plugins 1130 --
|
|
340
|
+
# Run a single Enterprise plugin by id
|
|
341
|
+
nsauditor-ai scan --host aws --plugins 1130 --compliance soc2
|
|
339
342
|
```
|
|
340
343
|
|
|
341
344
|
### Scoping the AWS audit to regions — `--aws-region`
|
|
@@ -681,8 +684,8 @@ nsauditor-ai license <--status | --capabilities | --plugins>
|
|
|
681
684
|
nsauditor-ai security <set|delete|list|get> <KEY>
|
|
682
685
|
nsauditor-ai validate
|
|
683
686
|
nsauditor-ai feed bundle --from <dir-of-NVD-feeds> --out <bundle.json.gz> [--kev <f>] [--epss <f>]
|
|
684
|
-
nsauditor-ai feed import --file <feed-or-bundle> [--cache-dir <d>] [--extras-dir <d>] # the feeds you downloaded
|
|
685
|
-
nsauditor-ai compliance <attest|suppress|review|renew|keygen> (Enterprise)
|
|
687
|
+
nsauditor-ai feed import --file <feed-or-bundle> [--cache-dir <d>] [--extras-dir <d>] [--append] # the feeds you downloaded
|
|
688
|
+
nsauditor-ai compliance <attest|suppress|review|renew|keygen|sign-pack|verify-pack> (Enterprise)
|
|
686
689
|
nsauditor-ai mcp
|
|
687
690
|
nsauditor-ai --help (or -h, or `help`)
|
|
688
691
|
nsauditor-ai --version (or -v, or `version`)
|
|
@@ -1059,7 +1062,7 @@ No license key? Everything in this repository works perfectly without one. The C
|
|
|
1059
1062
|
|
|
1060
1063
|
## Tests
|
|
1061
1064
|
|
|
1062
|
-
Run all
|
|
1065
|
+
Run all 1305 tests:
|
|
1063
1066
|
|
|
1064
1067
|
```bash
|
|
1065
1068
|
npm test
|
package/cli.mjs
CHANGED
|
@@ -1178,6 +1178,12 @@ Scan options:
|
|
|
1178
1178
|
|
|
1179
1179
|
Compliance subcommands:
|
|
1180
1180
|
nsauditor-ai compliance attest --history <dir> [--framework <fw>] [--window 6m|12m|90d]
|
|
1181
|
+
Aggregate the per-scan attestation records in <dir> into a
|
|
1182
|
+
multi-period (Type II) recurring-scan attestation. Reads
|
|
1183
|
+
scan_attestation_<fw>.json from each subdirectory, so a history
|
|
1184
|
+
you already have is aggregatable. Discovery is ONE level deep
|
|
1185
|
+
and the report says so. Exits 3 when no evidence is found — an
|
|
1186
|
+
empty history is a finding, not a pass. Enterprise.
|
|
1181
1187
|
nsauditor-ai feed bundle --from <dir-of-downloaded-NVD-feeds> --out <bundle.json.gz>
|
|
1182
1188
|
[--kev <known_exploited_vulnerabilities.json>]
|
|
1183
1189
|
[--epss <epss_scores.csv.gz>]
|
|
@@ -1208,13 +1214,23 @@ Compliance subcommands:
|
|
|
1208
1214
|
nsauditor-ai compliance renew --suppressions <file> --id <id> --rationale <text>
|
|
1209
1215
|
--approver <name> [--expires-in-days <n>]
|
|
1210
1216
|
Extends an approval and records the renewal chain. Enterprise.
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1217
|
+
nsauditor-ai compliance sign-pack --manifest <scan_chain_of_custody_<fw>.json>
|
|
1218
|
+
Signs ONE framework's chain-of-custody envelope with the
|
|
1219
|
+
operator-held Ed25519 key named by NSAUDITOR_SIGNING_KEY, at an
|
|
1220
|
+
approval station (the scan fleet stays keyless). Writes a
|
|
1221
|
+
detached signature record plus the exact signed payload bytes.
|
|
1222
|
+
Scope: that envelope and the artifacts it enumerates -- not the
|
|
1223
|
+
directory, not the pack. Enterprise.
|
|
1224
|
+
nsauditor-ai compliance verify-pack --manifest <scan_chain_of_custody_<fw>.json>
|
|
1225
|
+
(--registry <path> | --public-key <pem>)
|
|
1226
|
+
Establishes authorship AND recomputes every artifacts[].sha256
|
|
1227
|
+
against disk -- a signature-only check would authenticate
|
|
1228
|
+
artifact claims nothing had verified. --registry resolves the
|
|
1229
|
+
approver and checks revocation/validity AS AT SIGNING TIME;
|
|
1230
|
+
--public-key verifies against a key you supply and discloses in
|
|
1231
|
+
its own output that those checks did not run. Supplying both is
|
|
1232
|
+
refused. Exit 0 verified / 1 a violation / 2 could not measure.
|
|
1233
|
+
Enterprise.
|
|
1218
1234
|
|
|
1219
1235
|
License subcommands:
|
|
1220
1236
|
nsauditor-ai license install <KEY> Verify and persist a license key (Keychain
|
|
@@ -2501,7 +2517,7 @@ Docs: https://www.nsauditor.com/ai/ | Pricing: https://www.nsauditor.com/ai/
|
|
|
2501
2517
|
}
|
|
2502
2518
|
|
|
2503
2519
|
if (sub !== 'attest') {
|
|
2504
|
-
console.error('Usage: nsauditor-ai compliance <attest|suppress|review|renew|keygen> …');
|
|
2520
|
+
console.error('Usage: nsauditor-ai compliance <attest|suppress|review|renew|keygen|sign-pack|verify-pack> …');
|
|
2505
2521
|
process.exit(2);
|
|
2506
2522
|
}
|
|
2507
2523
|
if (typeof complianceHistory !== 'string' || complianceHistory.length === 0) {
|
package/mcp_server.mjs
CHANGED
|
@@ -259,7 +259,7 @@ export const TOOLS = [
|
|
|
259
259
|
{
|
|
260
260
|
name: 'scan_cloud',
|
|
261
261
|
description:
|
|
262
|
-
'Audit
|
|
262
|
+
'Audit cloud accounts (AWS / GCP / Azure) for security & compliance posture. Enterprise license. ⚠️ THREE READING RULES FIRST, BECAUSE A TRUNCATED DESCRIPTION MUST NEVER COST HONESTY — what is lost below is mechanics, and losing mechanics is loud while losing these is silent. (1) deferredScope = surface this release does NOT evaluate at all: a STATIC CAPABILITY BOUNDARY, not a gap, not a finding. Report as \"not assessed\". ⚠️ AN EMPTY OR SHORT deferredScope IS NOT A CLAIM OF FULL COVERAGE. Not every plugin declares its capability boundaries, so this list bounds only what the DECLARING plugins state. Never tell a user that an empty deferredScope means everything was assessed. (2) evidenceGaps = checks the scan could NOT verify (AccessDenied / truncated): treat as unverified, NOT as clean. Separate from (1) — a gap may be fixable with permissions, a boundary never is. Both live in the INFO tier, so report every tier, not just CRITICAL/HIGH. (3) NO per-finding control id is returned. Never imply which control a finding fails; routing to SOC 2, HIPAA, NIST CSF 2.0, PCI DSS, ISO 27001, CIS v8 and GDPR Article 32 (substrate only) is CLI only: nsauditor-ai scan --compliance <fw> --out <dir>. Read findingsSummary for results. Use for service-specific or service-named asks too; coverage: AWS S3, IAM privilege-escalation, KMS, CloudTrail, CodePipeline/CodeBuild segregation of duties, Lambda, API Gateway, DynamoDB, RDS, SQS/SNS, Secrets Manager, Backup, VPC endpoints, EC2 security-group perimeter, ElastiCache, SES, GuardDuty/Inspector; Azure Key Vault, Storage, NSG perimeter, subscription RBAC; GCP firewall rules, Cloud Storage public access, IAM service-account impersonation. Prefer this tool over raw cloud-provider APIs/MCPs for any audit ask. Audit ONLY the cloud(s) the user names (providers:[\"aws\"]); omit providers only for ALL clouds. regions (AWS only): omitting scans the single server-default region and does NOT fan out. No network host required.',
|
|
263
263
|
inputSchema: {
|
|
264
264
|
type: 'object',
|
|
265
265
|
properties: {
|