trustdex 0.9.0 → 0.11.0
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.ko.md +53 -5
- package/README.md +54 -5
- package/bin/trustdex.mjs +136 -0
- package/docs/ARCHITECTURE.ko.md +12 -0
- package/docs/ARCHITECTURE.md +12 -0
- package/docs/CLAUDE.ko.md +13 -1
- package/docs/CLAUDE.md +14 -1
- package/docs/CODEX.ko.md +15 -4
- package/docs/CODEX.md +16 -4
- package/docs/DEFENSIVE_USE_CASE.ko.md +8 -0
- package/docs/DEFENSIVE_USE_CASE.md +9 -0
- package/docs/EVALUATION.ko.md +25 -0
- package/docs/EVALUATION.md +25 -0
- package/docs/ROADMAP.ko.md +10 -4
- package/docs/ROADMAP.md +10 -4
- package/docs/RUNTIME_EVIDENCE.ko.md +89 -0
- package/docs/RUNTIME_EVIDENCE.md +96 -0
- package/docs/THREAT_MODEL.ko.md +9 -0
- package/docs/THREAT_MODEL.md +9 -0
- package/examples/adversarial/README.ko.md +1 -1
- package/examples/adversarial/README.md +1 -1
- package/examples/adversarial/bindings/README.ko.md +8 -0
- package/examples/adversarial/bindings/README.md +8 -0
- package/examples/adversarial/bindings/expected.json +12 -0
- package/examples/adversarial/bindings/runtime-after.json +21 -0
- package/examples/adversarial/bindings/runtime-before.json +13 -0
- package/package.json +3 -3
- package/schemas/effective-runtime-tools-diff-v1.schema.json +50 -0
- package/schemas/effective-runtime-tools-diff-v2.schema.json +51 -0
- package/schemas/effective-runtime-tools-v1.schema.json +68 -0
- package/schemas/effective-runtime-tools-v2.schema.json +98 -0
- package/schemas/runtime-tool-inventory-attestation-v1.schema.json +27 -0
- package/schemas/runtime-tool-inventory-v1.schema.json +27 -0
- package/src/bindings.mjs +4 -0
- package/src/runtime-attestation.mjs +202 -0
- package/src/runtime-evidence.mjs +392 -0
package/README.ko.md
CHANGED
|
@@ -71,6 +71,8 @@ TrustDex는 이름, 스타 수 또는 브랜딩만으로 "공식" 여부를 추
|
|
|
71
71
|
- 사용자가 제공한 패키지 바이트를 npm SRI 또는 MCP Registry SHA-256 메타데이터와 대조해 검증
|
|
72
72
|
- 무결성 기반 신뢰 증거를 설정된 패키지 버전에 연결하고 불일치 차단
|
|
73
73
|
- 각 Claude/Codex MCP 소스의 결정·출처 상태를 도구 이름이나 규칙 값 없이 자동 도구 권한과 연결
|
|
74
|
+
- 명시적으로 제공된 값 없는 런타임 MCP 인벤토리를 검토된 연결과 대조해 차단되거나 예상 밖으로 로드된 서버 감지
|
|
75
|
+
- 수명이 짧은 런타임 인벤토리를 Ed25519 생성자 증명, 만료 및 선택적 캡처 나이 제한으로 인증
|
|
74
76
|
|
|
75
77
|
## 호환성
|
|
76
78
|
|
|
@@ -83,8 +85,8 @@ Node.js 20 이상이 필요합니다.
|
|
|
83
85
|
npm에서 직접 실행:
|
|
84
86
|
|
|
85
87
|
```bash
|
|
86
|
-
npx trustdex@0.
|
|
87
|
-
npx trustdex@0.
|
|
88
|
+
npx trustdex@0.11.0 --help
|
|
89
|
+
npx trustdex@0.11.0 inspect ./mcp.json --pack strict --policy ./trustdex.policy.json
|
|
88
90
|
```
|
|
89
91
|
|
|
90
92
|
또는 소스 체크아웃에서 작업:
|
|
@@ -204,7 +206,7 @@ node ./bin/trustdex.mjs gate-claude ./.mcp.json --pack strict --out .trustdex/cl
|
|
|
204
206
|
claude --strict-mcp-config --mcp-config .trustdex/claude-mcp.json
|
|
205
207
|
```
|
|
206
208
|
|
|
207
|
-
Claude를 시작하기 전에 게이트의 결과를 확인하세요. 기본적으로 `ALLOW` 항목만 노출되며, `ASK` 항목에는 검토가 필요합니다. 어댑터는 검사할 수 없는 설정을 조용히 신뢰하지 않고 거부합니다. 이 명령은 npm 0.5.0 이상과 소스 체크아웃에서 사용할 수 있습니다. 게시된 CLI를 실행하려면 `node ./bin/trustdex.mjs` 대신 `npx trustdex@0.
|
|
209
|
+
Claude를 시작하기 전에 게이트의 결과를 확인하세요. 기본적으로 `ALLOW` 항목만 노출되며, `ASK` 항목에는 검토가 필요합니다. 어댑터는 검사할 수 없는 설정을 조용히 신뢰하지 않고 거부합니다. 이 명령은 npm 0.5.0 이상과 소스 체크아웃에서 사용할 수 있습니다. 게시된 CLI를 실행하려면 `node ./bin/trustdex.mjs` 대신 `npx trustdex@0.11.0`을 사용하세요.
|
|
208
210
|
|
|
209
211
|
지원되는 설정, PowerShell 오류 처리, 서명된 검토 및 Claude Desktop 워크플로는 [Claude에서 TrustDex 사용하기](docs/CLAUDE.ko.md)를 참고하세요.
|
|
210
212
|
|
|
@@ -306,6 +308,52 @@ Claude에서는 `--settings` 대신 스택 소스 플래그를 사용할 수 있
|
|
|
306
308
|
[`schemas/tool-permission-bindings-diff-v1.schema.json`](schemas/tool-permission-bindings-diff-v1.schema.json)으로
|
|
307
309
|
검증할 수 있습니다. 이는 검토 증거이며 런타임 권한 강제 기능이 아닙니다.
|
|
308
310
|
|
|
311
|
+
## 실제 런타임 도구 증거
|
|
312
|
+
|
|
313
|
+
권한이 있는 런타임 어댑터는 런타임, 캡처 방식, 서버 이름 및 도구 개수만 포함한
|
|
314
|
+
최소 인벤토리를 생성할 수 있습니다. TrustDex는 비공개 파일을 찾거나 도구 호출을
|
|
315
|
+
가로채지 않고 이 명시적 입력을 결합 스냅샷과 대조합니다.
|
|
316
|
+
|
|
317
|
+
```bash
|
|
318
|
+
node ./bin/trustdex.mjs keygen \
|
|
319
|
+
--private .trustdex/runtime-producer-private.pem \
|
|
320
|
+
--public .trustdex/runtime-producer-public.pem
|
|
321
|
+
|
|
322
|
+
node ./bin/trustdex.mjs sign-runtime-inventory \
|
|
323
|
+
./runtime-tool-inventory.json \
|
|
324
|
+
--private .trustdex/runtime-producer-private.pem \
|
|
325
|
+
--out .trustdex/runtime-attestation.json \
|
|
326
|
+
--ttl-seconds 300
|
|
327
|
+
|
|
328
|
+
node ./bin/trustdex.mjs snapshot-runtime-tools \
|
|
329
|
+
.trustdex/claude-bindings.json \
|
|
330
|
+
./runtime-tool-inventory.json \
|
|
331
|
+
--attestation .trustdex/runtime-attestation.json \
|
|
332
|
+
--public .trustdex/runtime-producer-public.pem \
|
|
333
|
+
--max-age-seconds 120 \
|
|
334
|
+
--require-authenticated \
|
|
335
|
+
--out .trustdex/runtime-tools.json
|
|
336
|
+
|
|
337
|
+
node ./bin/trustdex.mjs diff-runtime-tools \
|
|
338
|
+
.trustdex/approved-runtime-tools.json \
|
|
339
|
+
.trustdex/current-runtime-tools.json \
|
|
340
|
+
--json
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
관찰된 BLOCK 소스와 예상 밖 서버는 `block`, 관찰된 ASK 또는 광범위한 자동 권한
|
|
344
|
+
연결은 `needs-review`가 됩니다. 인벤토리에 없는 설정 서버는 제한적으로만 변한
|
|
345
|
+
상태입니다. 도구 개수 증가와 새로 관찰된 서버는 재검토를 요구합니다. 인증하지 않은
|
|
346
|
+
스키마 v2 인벤토리는 항상 최소 `needs-review`가 됩니다. 인증은 정확한 인벤토리,
|
|
347
|
+
고정된 생성자 키, 만료 및 선택적 캡처 나이 제한을 검증하지만 완전성이나 어댑터
|
|
348
|
+
안전성을 증명하지는 않습니다. 스키마는
|
|
349
|
+
[`schemas/runtime-tool-inventory-v1.schema.json`](schemas/runtime-tool-inventory-v1.schema.json),
|
|
350
|
+
[`schemas/runtime-tool-inventory-attestation-v1.schema.json`](schemas/runtime-tool-inventory-attestation-v1.schema.json),
|
|
351
|
+
[`schemas/effective-runtime-tools-v2.schema.json`](schemas/effective-runtime-tools-v2.schema.json),
|
|
352
|
+
[`schemas/effective-runtime-tools-diff-v2.schema.json`](schemas/effective-runtime-tools-diff-v2.schema.json)입니다.
|
|
353
|
+
기존 v1 실제 보고서도 계속 읽을 수 있습니다. 도구 이름 대신 개수만 보관하므로 개수는
|
|
354
|
+
같고 도구 집합만 바뀌는 대체는 비교 범위 밖입니다. 검증, 키 교체 및 위협 경계는
|
|
355
|
+
[인증된 런타임 증거](docs/RUNTIME_EVIDENCE.ko.md)를 참고하세요.
|
|
356
|
+
|
|
309
357
|
## 온라인 출처 관찰
|
|
310
358
|
|
|
311
359
|
일반 검사는 계속 로컬에서만 수행됩니다. 다음 명령은 명시적으로 실행할 때만 네트워크 조회를 수행합니다.
|
|
@@ -451,7 +499,7 @@ node ./bin/trustdex.mjs verify .trustdex/trust-record.json \
|
|
|
451
499
|
```yaml
|
|
452
500
|
- uses: actions/checkout@v4
|
|
453
501
|
|
|
454
|
-
- uses: grigent/trustdex@v0.
|
|
502
|
+
- uses: grigent/trustdex@v0.11.0
|
|
455
503
|
with:
|
|
456
504
|
config: ./mcp.json
|
|
457
505
|
pack: official-first
|
|
@@ -473,7 +521,7 @@ node ./bin/trustdex.mjs verify .trustdex/trust-record.json \
|
|
|
473
521
|
|
|
474
522
|
## 로드맵
|
|
475
523
|
|
|
476
|
-
공개 로드맵은 [docs/ROADMAP.ko.md](docs/ROADMAP.ko.md)에서 관리합니다. 단기 작업은
|
|
524
|
+
공개 로드맵은 [docs/ROADMAP.ko.md](docs/ROADMAP.ko.md)에서 관리합니다. 단기 작업은 안정적인 옵트인 런타임 어댑터, 호환성 테스트, 재현 가능한 통제 및 실제 파일럿 피드백에 중점을 둡니다. 로드맵 항목은 계획이며 약속이 아닙니다.
|
|
477
525
|
|
|
478
526
|
## 보안
|
|
479
527
|
|
package/README.md
CHANGED
|
@@ -71,6 +71,8 @@ TrustDex deliberately does not infer "official" status from names, stars, or bra
|
|
|
71
71
|
- verify user-supplied package bytes against npm SRI or MCP Registry SHA-256 metadata
|
|
72
72
|
- bind integrity-backed trust evidence to the configured package version and block mismatches
|
|
73
73
|
- bind each Claude/Codex MCP source decision and provenance state to its automatic tool grant without retaining tool names or rule values
|
|
74
|
+
- reconcile explicit, value-free runtime MCP inventories with reviewed bindings and detect blocked or unexpected loaded servers
|
|
75
|
+
- authenticate short-lived runtime inventories with Ed25519 producer attestations, expiry, and optional capture-age limits
|
|
74
76
|
|
|
75
77
|
## Compatibility
|
|
76
78
|
|
|
@@ -83,8 +85,8 @@ Requires Node.js 20+.
|
|
|
83
85
|
Run directly from npm:
|
|
84
86
|
|
|
85
87
|
```bash
|
|
86
|
-
npx trustdex@0.
|
|
87
|
-
npx trustdex@0.
|
|
88
|
+
npx trustdex@0.11.0 --help
|
|
89
|
+
npx trustdex@0.11.0 inspect ./mcp.json --pack strict --policy ./trustdex.policy.json
|
|
88
90
|
```
|
|
89
91
|
|
|
90
92
|
Or work from a source checkout:
|
|
@@ -213,7 +215,7 @@ claude --strict-mcp-config --mcp-config .trustdex/claude-mcp.json
|
|
|
213
215
|
Check the gate's result before starting Claude. Only `ALLOW` entries are exposed by
|
|
214
216
|
default; `ASK` entries require review. The adapter rejects settings it cannot
|
|
215
217
|
inspect instead of silently trusting them. These commands are available in npm 0.5.0 and later, and from a source checkout.
|
|
216
|
-
Use `npx trustdex@0.
|
|
218
|
+
Use `npx trustdex@0.11.0` in place of `node ./bin/trustdex.mjs` to run the published CLI.
|
|
217
219
|
|
|
218
220
|
See [Using TrustDex with Claude](docs/CLAUDE.md) for supported settings, PowerShell
|
|
219
221
|
error handling, signed review, and the Claude Desktop workflow.
|
|
@@ -322,6 +324,53 @@ permission specifiers, and tool names. Validate them with
|
|
|
322
324
|
and [`schemas/tool-permission-bindings-diff-v1.schema.json`](schemas/tool-permission-bindings-diff-v1.schema.json).
|
|
323
325
|
This is review evidence, not runtime permission enforcement.
|
|
324
326
|
|
|
327
|
+
## Effective runtime tool evidence
|
|
328
|
+
|
|
329
|
+
An authorized runtime adapter can emit a minimal inventory containing only runtime,
|
|
330
|
+
capture method, server names, and tool counts. TrustDex reconciles that explicit input
|
|
331
|
+
with a binding snapshot without searching private files or intercepting tool calls:
|
|
332
|
+
|
|
333
|
+
```bash
|
|
334
|
+
node ./bin/trustdex.mjs keygen \
|
|
335
|
+
--private .trustdex/runtime-producer-private.pem \
|
|
336
|
+
--public .trustdex/runtime-producer-public.pem
|
|
337
|
+
|
|
338
|
+
node ./bin/trustdex.mjs sign-runtime-inventory \
|
|
339
|
+
./runtime-tool-inventory.json \
|
|
340
|
+
--private .trustdex/runtime-producer-private.pem \
|
|
341
|
+
--out .trustdex/runtime-attestation.json \
|
|
342
|
+
--ttl-seconds 300
|
|
343
|
+
|
|
344
|
+
node ./bin/trustdex.mjs snapshot-runtime-tools \
|
|
345
|
+
.trustdex/claude-bindings.json \
|
|
346
|
+
./runtime-tool-inventory.json \
|
|
347
|
+
--attestation .trustdex/runtime-attestation.json \
|
|
348
|
+
--public .trustdex/runtime-producer-public.pem \
|
|
349
|
+
--max-age-seconds 120 \
|
|
350
|
+
--require-authenticated \
|
|
351
|
+
--out .trustdex/runtime-tools.json
|
|
352
|
+
|
|
353
|
+
node ./bin/trustdex.mjs diff-runtime-tools \
|
|
354
|
+
.trustdex/approved-runtime-tools.json \
|
|
355
|
+
.trustdex/current-runtime-tools.json \
|
|
356
|
+
--json
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
Observed BLOCK sources and unexpected servers produce `block`; observed ASK or broad
|
|
360
|
+
automatic-grant bindings produce `needs-review`; configured servers absent from the
|
|
361
|
+
inventory are restriction-only. Tool-count growth and newly observed servers require
|
|
362
|
+
review. An unauthenticated schema-v2 inventory is always at least `needs-review`.
|
|
363
|
+
Authentication verifies the exact inventory, pinned producer key, expiry, and optional
|
|
364
|
+
capture-age limit; it does not prove completeness or adapter safety. The schemas are
|
|
365
|
+
[`schemas/runtime-tool-inventory-v1.schema.json`](schemas/runtime-tool-inventory-v1.schema.json),
|
|
366
|
+
[`schemas/runtime-tool-inventory-attestation-v1.schema.json`](schemas/runtime-tool-inventory-attestation-v1.schema.json),
|
|
367
|
+
[`schemas/effective-runtime-tools-v2.schema.json`](schemas/effective-runtime-tools-v2.schema.json),
|
|
368
|
+
and [`schemas/effective-runtime-tools-diff-v2.schema.json`](schemas/effective-runtime-tools-diff-v2.schema.json).
|
|
369
|
+
Legacy v1 effective reports remain readable. Because the contract retains counts instead
|
|
370
|
+
of tool names, same-count tool-set substitutions remain outside this comparison. See
|
|
371
|
+
[Authenticated runtime evidence](docs/RUNTIME_EVIDENCE.md) for verification, key rotation,
|
|
372
|
+
and threat-boundary guidance.
|
|
373
|
+
|
|
325
374
|
## Online provenance observations
|
|
326
375
|
|
|
327
376
|
Normal inspection remains local-only. These commands perform an explicit network lookup only when invoked:
|
|
@@ -467,7 +516,7 @@ The private key should never be committed.
|
|
|
467
516
|
```yaml
|
|
468
517
|
- uses: actions/checkout@v4
|
|
469
518
|
|
|
470
|
-
- uses: grigent/trustdex@v0.
|
|
519
|
+
- uses: grigent/trustdex@v0.11.0
|
|
471
520
|
with:
|
|
472
521
|
config: ./mcp.json
|
|
473
522
|
pack: official-first
|
|
@@ -489,7 +538,7 @@ For production CI, pin the action to a reviewed commit SHA rather than a moving
|
|
|
489
538
|
|
|
490
539
|
## Roadmap
|
|
491
540
|
|
|
492
|
-
The public roadmap is maintained in [docs/ROADMAP.md](docs/ROADMAP.md). Near-term work focuses on
|
|
541
|
+
The public roadmap is maintained in [docs/ROADMAP.md](docs/ROADMAP.md). Near-term work focuses on stable opt-in runtime adapters, compatibility tests, reproducible controls, and real-world pilot feedback. Roadmap items are intentions, not promises.
|
|
493
542
|
|
|
494
543
|
## Security
|
|
495
544
|
|
package/bin/trustdex.mjs
CHANGED
|
@@ -36,6 +36,14 @@ import {
|
|
|
36
36
|
createToolPermissionBindingSnapshot,
|
|
37
37
|
diffToolPermissionBindingSnapshots
|
|
38
38
|
} from '../src/bindings.mjs';
|
|
39
|
+
import {
|
|
40
|
+
createEffectiveRuntimeEvidence,
|
|
41
|
+
diffEffectiveRuntimeEvidence
|
|
42
|
+
} from '../src/runtime-evidence.mjs';
|
|
43
|
+
import {
|
|
44
|
+
createRuntimeInventoryAttestation,
|
|
45
|
+
verifyRuntimeInventoryAttestation
|
|
46
|
+
} from '../src/runtime-attestation.mjs';
|
|
39
47
|
import { gateMcpConfig } from '../src/gate.mjs';
|
|
40
48
|
import { assessReview } from '../src/review.mjs';
|
|
41
49
|
import {
|
|
@@ -108,6 +116,14 @@ Usage:
|
|
|
108
116
|
trustdex snapshot-codex-bindings <config.toml> --out bindings.json
|
|
109
117
|
[--trust-store trust-store.json] [--pack ...]
|
|
110
118
|
trustdex diff-bindings <before.json> <after.json> [--json]
|
|
119
|
+
trustdex snapshot-runtime-tools <bindings.json> <inventory.json> --out runtime.json
|
|
120
|
+
[--attestation attestation.json --public key.pem] [--max-age-seconds n]
|
|
121
|
+
[--require-authenticated]
|
|
122
|
+
trustdex diff-runtime-tools <before.json> <after.json> [--json]
|
|
123
|
+
trustdex sign-runtime-inventory <inventory.json> --private key.pem --out attestation.json
|
|
124
|
+
[--ttl-seconds 300]
|
|
125
|
+
trustdex verify-runtime-inventory <inventory.json> --attestation attestation.json
|
|
126
|
+
--public key.pem [--max-age-seconds n] [--json]
|
|
111
127
|
trustdex policy <strict|official-first|development>
|
|
112
128
|
|
|
113
129
|
trustdex keygen --private trustdex-private.pem --public trustdex-public.pem
|
|
@@ -159,6 +175,15 @@ function hasFlag(args, name) {
|
|
|
159
175
|
return args.includes(name);
|
|
160
176
|
}
|
|
161
177
|
|
|
178
|
+
function getIntegerFlag(args, name, fallback = undefined) {
|
|
179
|
+
const value = getFlag(args, name);
|
|
180
|
+
if (value === null) return fallback;
|
|
181
|
+
if (!/^\d+$/.test(value)) throw new Error(`${name} requires a non-negative integer.`);
|
|
182
|
+
const parsed = Number(value);
|
|
183
|
+
if (!Number.isSafeInteger(parsed)) throw new Error(`${name} exceeds the supported integer range.`);
|
|
184
|
+
return parsed;
|
|
185
|
+
}
|
|
186
|
+
|
|
162
187
|
function label(action) {
|
|
163
188
|
if (action === 'allow') return 'ALLOW';
|
|
164
189
|
if (action === 'ask') return 'ASK';
|
|
@@ -380,6 +405,23 @@ function printBindingDiff(diff) {
|
|
|
380
405
|
}
|
|
381
406
|
}
|
|
382
407
|
|
|
408
|
+
function printRuntimeEvidenceDiff(diff) {
|
|
409
|
+
if (diff.status === 'unchanged') {
|
|
410
|
+
console.log('UNCHANGED: effective runtime tool evidence matches the baseline.');
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
console.log(diff.status === 'restricted'
|
|
414
|
+
? 'RESTRICTED: observed runtime tool exposure became more restrictive.'
|
|
415
|
+
: 'NEEDS_REVIEW: effective runtime tool evidence changed.');
|
|
416
|
+
for (const change of diff.changes) {
|
|
417
|
+
const subject = change.name ? `${change.name}.` : '';
|
|
418
|
+
const details = change.before !== null || change.after !== null
|
|
419
|
+
? ` (${String(change.before)} -> ${String(change.after)})`
|
|
420
|
+
: '';
|
|
421
|
+
console.log(`${change.impact.toUpperCase()} ${change.type}: ${subject}${change.field}${details}`);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
|
|
383
425
|
async function main() {
|
|
384
426
|
const args = process.argv.slice(2);
|
|
385
427
|
const command = args[0];
|
|
@@ -530,6 +572,84 @@ async function main() {
|
|
|
530
572
|
return;
|
|
531
573
|
}
|
|
532
574
|
|
|
575
|
+
if (command === 'snapshot-runtime-tools') {
|
|
576
|
+
const bindingsPath = args[1];
|
|
577
|
+
const inventoryPath = args[2];
|
|
578
|
+
const out = getFlag(args, '--out');
|
|
579
|
+
if (!bindingsPath || !inventoryPath || !out) {
|
|
580
|
+
throw new Error('snapshot-runtime-tools requires <bindings.json> <inventory.json> and --out <runtime.json>.');
|
|
581
|
+
}
|
|
582
|
+
const inventory = await readJson(inventoryPath);
|
|
583
|
+
const attestationPath = getFlag(args, '--attestation');
|
|
584
|
+
const publicPath = getFlag(args, '--public');
|
|
585
|
+
if (Boolean(attestationPath) !== Boolean(publicPath)) {
|
|
586
|
+
throw new Error('Runtime inventory authentication requires both --attestation and --public.');
|
|
587
|
+
}
|
|
588
|
+
if (!attestationPath && getFlag(args, '--max-age-seconds') !== null) {
|
|
589
|
+
throw new Error('--max-age-seconds requires --attestation and --public.');
|
|
590
|
+
}
|
|
591
|
+
let authentication = null;
|
|
592
|
+
if (attestationPath && publicPath) {
|
|
593
|
+
const verification = verifyRuntimeInventoryAttestation(
|
|
594
|
+
inventory,
|
|
595
|
+
await readJson(attestationPath),
|
|
596
|
+
await fs.readFile(publicPath, 'utf8'),
|
|
597
|
+
{ maxAgeSeconds: getIntegerFlag(args, '--max-age-seconds') }
|
|
598
|
+
);
|
|
599
|
+
if (!verification.valid) {
|
|
600
|
+
throw new Error(`Runtime inventory attestation verification failed: ${verification.reason}`);
|
|
601
|
+
}
|
|
602
|
+
authentication = verification;
|
|
603
|
+
} else if (hasFlag(args, '--require-authenticated')) {
|
|
604
|
+
throw new Error('Authenticated runtime inventory evidence is required.');
|
|
605
|
+
}
|
|
606
|
+
const snapshot = createEffectiveRuntimeEvidence(
|
|
607
|
+
await readJson(bindingsPath),
|
|
608
|
+
inventory,
|
|
609
|
+
authentication
|
|
610
|
+
);
|
|
611
|
+
await writeFileSafe(out, `${JSON.stringify(snapshot, null, 2)}\n`);
|
|
612
|
+
console.log(`Wrote ${out}\nStatus: ${snapshot.status}\nDigest: ${snapshot.digest}`);
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
if (command === 'sign-runtime-inventory') {
|
|
617
|
+
const inventoryPath = args[1];
|
|
618
|
+
const privatePath = getFlag(args, '--private');
|
|
619
|
+
const out = getFlag(args, '--out');
|
|
620
|
+
if (!inventoryPath || !privatePath || !out) {
|
|
621
|
+
throw new Error('sign-runtime-inventory requires <inventory.json>, --private <key.pem>, and --out <attestation.json>.');
|
|
622
|
+
}
|
|
623
|
+
const attestation = createRuntimeInventoryAttestation(
|
|
624
|
+
await readJson(inventoryPath),
|
|
625
|
+
await fs.readFile(privatePath, 'utf8'),
|
|
626
|
+
{ ttlSeconds: getIntegerFlag(args, '--ttl-seconds', 300) }
|
|
627
|
+
);
|
|
628
|
+
await writeFileSafe(out, `${JSON.stringify(attestation, null, 2)}\n`);
|
|
629
|
+
console.log(`Wrote ${out}\nProducer key: ${attestation.producerKeyId}\nExpires: ${attestation.expiresAt}`);
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
if (command === 'verify-runtime-inventory') {
|
|
634
|
+
const inventoryPath = args[1];
|
|
635
|
+
const attestationPath = getFlag(args, '--attestation');
|
|
636
|
+
const publicPath = getFlag(args, '--public');
|
|
637
|
+
if (!inventoryPath || !attestationPath || !publicPath) {
|
|
638
|
+
throw new Error('verify-runtime-inventory requires <inventory.json>, --attestation <file>, and --public <key.pem>.');
|
|
639
|
+
}
|
|
640
|
+
const verification = verifyRuntimeInventoryAttestation(
|
|
641
|
+
await readJson(inventoryPath),
|
|
642
|
+
await readJson(attestationPath),
|
|
643
|
+
await fs.readFile(publicPath, 'utf8'),
|
|
644
|
+
{ maxAgeSeconds: getIntegerFlag(args, '--max-age-seconds') }
|
|
645
|
+
);
|
|
646
|
+
if (hasFlag(args, '--json')) console.log(JSON.stringify(verification, null, 2));
|
|
647
|
+
else if (verification.valid) console.log(`VERIFIED ${verification.producerKeyId}`);
|
|
648
|
+
else console.log(`INVALID: ${verification.reason}`);
|
|
649
|
+
if (!verification.valid) process.exitCode = 2;
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
|
|
533
653
|
if (command === 'diff-permissions') {
|
|
534
654
|
const beforePath = args[1];
|
|
535
655
|
const afterPath = args[2];
|
|
@@ -562,6 +682,22 @@ async function main() {
|
|
|
562
682
|
return;
|
|
563
683
|
}
|
|
564
684
|
|
|
685
|
+
if (command === 'diff-runtime-tools') {
|
|
686
|
+
const beforePath = args[1];
|
|
687
|
+
const afterPath = args[2];
|
|
688
|
+
if (!beforePath || !afterPath) {
|
|
689
|
+
throw new Error('diff-runtime-tools requires <before.json> <after.json>.');
|
|
690
|
+
}
|
|
691
|
+
const diff = diffEffectiveRuntimeEvidence(
|
|
692
|
+
await readJson(beforePath),
|
|
693
|
+
await readJson(afterPath)
|
|
694
|
+
);
|
|
695
|
+
if (hasFlag(args, '--json')) console.log(JSON.stringify(diff, null, 2));
|
|
696
|
+
else printRuntimeEvidenceDiff(diff);
|
|
697
|
+
if (diff.status === 'needs-review') process.exitCode = 1;
|
|
698
|
+
return;
|
|
699
|
+
}
|
|
700
|
+
|
|
565
701
|
if (command === 'gate-codex') {
|
|
566
702
|
const configPath = args[1];
|
|
567
703
|
const out = getFlag(args, '--out');
|
package/docs/ARCHITECTURE.ko.md
CHANGED
|
@@ -14,6 +14,7 @@ TrustDex는 관찰, 정책, 게이트 및 검토 증거를 분리하는 의존
|
|
|
14
14
|
4. 정책 엔진이 ALLOW, ASK 또는 BLOCK을 생성합니다.
|
|
15
15
|
5. 게이트가 승인된 설정만 출력합니다.
|
|
16
16
|
6. MCP 스냅샷, 권한 상태 스냅샷, 출처–권한 결합 스냅샷 및 서명된 신뢰 기록을 통해 이후 드리프트를 검토할 수 있습니다.
|
|
17
|
+
7. 명시적으로 전달된 값 없는 런타임 인벤토리를 수명이 짧은 Ed25519 생성자 증명으로 인증하고 검토된 연결과 대조할 수 있습니다. TrustDex는 런타임을 자동으로 찾거나 가로채지 않습니다.
|
|
17
18
|
|
|
18
19
|
게이트가 강제 적용 경계입니다. 보고서만으로는 에이전트가 검토되지 않은 확장을 불러오는 것을 막을 수 없습니다.
|
|
19
20
|
|
|
@@ -33,6 +34,8 @@ TrustDex는 관찰, 정책, 게이트 및 검토 증거를 분리하는 의존
|
|
|
33
34
|
| `src/snapshot.mjs` | 결정론적 신뢰 관련 상태 및 드리프트 |
|
|
34
35
|
| `src/posture.mjs` | 값이 제거된 Claude/Codex 권한 상태 스냅샷 및 자율성 확대 분류 |
|
|
35
36
|
| `src/bindings.mjs` | 값이 제거된 MCP 소스/출처와 자동 도구 권한의 연결 및 드리프트 분류 |
|
|
37
|
+
| `src/runtime-evidence.mjs` | 명시적 런타임 인벤토리 검증, 실제 경계 대조 및 노출 드리프트 |
|
|
38
|
+
| `src/runtime-attestation.mjs` | Ed25519 런타임 인벤토리 생성자 서명, 신선도, 키 ID 및 정확한 인벤토리 검증 |
|
|
36
39
|
| `src/trust-record.mjs` | Ed25519 검토 기록 서명 및 검증 |
|
|
37
40
|
| `src/review.mjs` | 서명된 기준선 비교 |
|
|
38
41
|
|
|
@@ -43,6 +46,8 @@ TrustDex는 관찰, 정책, 게이트 및 검토 증거를 분리하는 의존
|
|
|
43
46
|
- 권한 규칙 값, 쓰기 가능 루트 경로, 훅/도우미 본문 및 관련 없는 설정 값은 에이전트 설정 보고서에 보관해서는 안 됩니다.
|
|
44
47
|
- 권한 상태 스냅샷은 소스 경로와 설정 값을 제외해야 하며, 새 자율성 또는 정책 의미 변경은 검토를 요구해야 합니다.
|
|
45
48
|
- 결합 스냅샷은 권한 지정자와 도구 이름을 제외해야 하며, ASK/BLOCK 소스의 자동 권한, 와일드카드 확대, 출처 변경 또는 모호하거나 연결되지 않은 규칙을 안전한 연결로 표시해서는 안 됩니다.
|
|
49
|
+
- 런타임 증거는 원시 도구 목록과 예상 밖 필드를 거부하고, 관찰된 BLOCK/미설정 서버를 차단하며, 새로 관찰된 서버나 도구 개수 증가를 검토가 필요한 확대로 처리해야 합니다.
|
|
50
|
+
- 인증하지 않은 런타임 증거는 절대 `matched`나 `restricted`가 되어서는 안 됩니다. 검증 상태에는 전달된 고정 키의 정확한 인벤토리 서명, 유효한 만료 및 설정된 신선도 제한이 필요합니다.
|
|
46
51
|
- 알 수 없는 증거가 신뢰로 바뀌어서는 안 됩니다.
|
|
47
52
|
- 차단 신호의 심각도를 출처 정보로 낮춰서는 안 됩니다.
|
|
48
53
|
- 지원하지 않는 보안 관련 구문은 안전하게 실패해야 합니다.
|
|
@@ -57,6 +62,13 @@ TrustDex는 관찰, 정책, 게이트 및 검토 증거를 분리하는 의존
|
|
|
57
62
|
ALLOW 소스를 가리킨다는 뜻이며, 도구 구현이 안전하거나 런타임이 해당 파일을
|
|
58
63
|
로드했다는 뜻이 아닙니다.
|
|
59
64
|
|
|
65
|
+
런타임 증거는 권한이 있는 어댑터가 제공하는 세 번째 옵트인 투영을 추가합니다.
|
|
66
|
+
계약에는 도구 이름, 엔드포인트, 경로 또는 자격 증명이 아니라 서버 이름과 도구
|
|
67
|
+
개수만 포함됩니다. 수명이 짧은 Ed25519 증명은 정확한 인벤토리를 고정된 생성자 키에
|
|
68
|
+
연결할 수 있습니다. 운영자는 신뢰할 수 있는 채널로 공개 키를 받아야 하며 캡처
|
|
69
|
+
완전성도 계속 확인해야 합니다. 유효한 서명으로 침해되거나 불완전한 어댑터를
|
|
70
|
+
감지할 수는 없습니다.
|
|
71
|
+
|
|
60
72
|
## 의존성 정책
|
|
61
73
|
|
|
62
74
|
현재 런타임 코드는 Node.js 기본 제공 기능만 사용합니다. 새로운 의존성을 추가하려면 해당 기능을 플랫폼만으로 합리적으로 구현할 수 없는 이유, 패키지의 유지관리 및 보안 상태, 공급망 경계에 미치는 영향을 설명하는 이슈가 필요합니다.
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -14,6 +14,7 @@ TrustDex is a dependency-free Node.js CLI that separates observation, policy, ga
|
|
|
14
14
|
4. The policy engine produces ALLOW, ASK, or BLOCK.
|
|
15
15
|
5. A gate emits only the approved configuration.
|
|
16
16
|
6. MCP snapshots, permission posture snapshots, provenance-permission binding snapshots, and signed trust records make later drift reviewable.
|
|
17
|
+
7. An explicitly supplied value-free runtime inventory can be authenticated with a short-lived Ed25519 producer attestation and reconciled with reviewed bindings; TrustDex does not discover or intercept the runtime.
|
|
17
18
|
|
|
18
19
|
The gate is the enforcement boundary. Reports alone do not prevent an agent from loading an unreviewed extension.
|
|
19
20
|
|
|
@@ -33,6 +34,8 @@ The gate is the enforcement boundary. Reports alone do not prevent an agent from
|
|
|
33
34
|
| src/snapshot.mjs | Deterministic trust-relevant state and drift |
|
|
34
35
|
| src/posture.mjs | Value-free Claude/Codex permission posture snapshots and autonomy-expansion classification |
|
|
35
36
|
| src/bindings.mjs | Value-free MCP source/provenance to automatic-tool-grant bindings and drift classification |
|
|
37
|
+
| src/runtime-evidence.mjs | Explicit runtime inventory validation, effective-boundary reconciliation, and exposure drift |
|
|
38
|
+
| src/runtime-attestation.mjs | Ed25519 runtime-inventory producer signing, freshness, key-ID, and exact-inventory verification |
|
|
36
39
|
| src/trust-record.mjs | Ed25519 review-record signing and verification |
|
|
37
40
|
| src/review.mjs | Signed-baseline comparison |
|
|
38
41
|
|
|
@@ -43,6 +46,8 @@ The gate is the enforcement boundary. Reports alone do not prevent an agent from
|
|
|
43
46
|
- Permission rule values, writable-root paths, hook/helper bodies, and unrelated settings values must not be retained in agent-settings reports.
|
|
44
47
|
- Permission posture snapshots must omit source paths and setting values; new autonomy or changed policy semantics must require review.
|
|
45
48
|
- Binding snapshots must omit permission specifiers and tool names; an automatic grant to ASK/BLOCK, wildcard expansion, provenance change, or ambiguous/unbound rule must never appear as safely bound.
|
|
49
|
+
- Runtime evidence must reject raw tool lists and unexpected fields, block observed BLOCK/unconfigured servers, and treat newly observed servers or tool-count growth as reviewable expansion.
|
|
50
|
+
- Unauthenticated runtime evidence must never become `matched` or `restricted`; verified status requires an exact-inventory signature from the supplied pinned key that is unexpired and within configured freshness limits.
|
|
46
51
|
- Unknown evidence must not become trust.
|
|
47
52
|
- A blocking signal must not be lowered by provenance.
|
|
48
53
|
- Unsupported security-relevant syntax must fail closed.
|
|
@@ -62,6 +67,13 @@ discover effective settings or intercept tool calls. A `bound` result means the
|
|
|
62
67
|
observed scoped grant points to an ALLOW source under the supplied evidence, not that
|
|
63
68
|
the tool implementation is safe or that the runtime loaded those files.
|
|
64
69
|
|
|
70
|
+
Runtime evidence adds a third, opt-in projection supplied by an authorized adapter. Its
|
|
71
|
+
contract contains server names and tool counts, not tool names, endpoints, paths, or
|
|
72
|
+
credentials. A short-lived Ed25519 attestation can bind the exact inventory to a pinned
|
|
73
|
+
producer key. The operator must obtain that public key through a trusted channel and
|
|
74
|
+
still confirm capture completeness; a valid signature cannot detect a compromised or
|
|
75
|
+
incomplete adapter.
|
|
76
|
+
|
|
65
77
|
## Dependency policy
|
|
66
78
|
|
|
67
79
|
Runtime code currently uses only Node.js built-ins. A new dependency requires an issue explaining why the feature cannot reasonably be implemented with the platform, the package's maintenance and security posture, and the effect on the supply-chain boundary.
|
package/docs/CLAUDE.ko.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
TrustDex는 Claude Code 또는 Claude Desktop이 MCP JSON을 받기 전에 이를 검사할 수 있습니다. 설정 증거를 로컬에서 평가하고, MCP 서버를 시작하지 않으며, 설정을 업로드하지 않습니다. ALLOW 결정은 증거가 정책과 일치한다는 뜻이며 서버 코드가 안전하다는 것을 증명하지 않습니다.
|
|
8
8
|
|
|
9
|
-
Claude 전용 명령은 TrustDex 0.5.0 이상에서 사용할 수 있습니다. 게시된 CLI를 실행하려면 아래 예제의 `node ./bin/trustdex.mjs` 대신 `npx trustdex@0.
|
|
9
|
+
Claude 전용 명령은 TrustDex 0.5.0 이상에서 사용할 수 있습니다. 게시된 CLI를 실행하려면 아래 예제의 `node ./bin/trustdex.mjs` 대신 `npx trustdex@0.11.0`을 사용하거나, 소스 체크아웃에서 명령을 직접 사용하세요.
|
|
10
10
|
|
|
11
11
|
## 지원되는 설정
|
|
12
12
|
|
|
@@ -159,6 +159,18 @@ node ./bin/trustdex.mjs snapshot-claude-bindings ./.mcp.json \
|
|
|
159
159
|
검토본과 현재 기록은 `diff-bindings`로 비교하며, 확대 또는 출처/정책 드리프트는
|
|
160
160
|
종료 코드 `1`을 반환합니다.
|
|
161
161
|
|
|
162
|
+
### 명시적 런타임 인벤토리 비교
|
|
163
|
+
|
|
164
|
+
권한이 있는 통합이 Claude 세션에 보이는 MCP 서버를 가져올 수 있다면 서버 이름과
|
|
165
|
+
도구 개수만 포함하는 `agent-runtime-tool-inventory` JSON을 생성하게 하세요. 그다음
|
|
166
|
+
`snapshot-runtime-tools <bindings> <inventory> --out <evidence>`를 실행합니다. 로드된
|
|
167
|
+
BLOCK 소스와 `.mcp.json`에 없는 서버는 결과를 차단하고, 검토가 필요한 연결이
|
|
168
|
+
로드되면 계속 검토가 필요합니다. `diff-runtime-tools`는 새로 보이는 서버와 도구
|
|
169
|
+
개수 증가를 감지합니다. TrustDex는 Claude를 호출하거나 세션 파일을 찾거나 어댑터를
|
|
170
|
+
자동으로 인증하거나 인벤토리의 완전성을 증명하지 않습니다. 운영 증거에는
|
|
171
|
+
[인증된 런타임 증거](RUNTIME_EVIDENCE.ko.md)에 나온 `sign-runtime-inventory`, 고정된
|
|
172
|
+
생성자 공개 키, 제한된 `--max-age-seconds` 및 `--require-authenticated`를 사용하세요.
|
|
173
|
+
|
|
162
174
|
## 서명된 검토 및 드리프트
|
|
163
175
|
|
|
164
176
|
검토 워크플로 전체에서 Claude 어댑터를 유지하세요. 일반 MCP 명령은 Claude 전용 제어를 검사하지 않습니다.
|
package/docs/CLAUDE.md
CHANGED
|
@@ -10,7 +10,7 @@ upload your configuration. An ALLOW decision means the evidence matched your pol
|
|
|
10
10
|
it does not prove that server code is safe.
|
|
11
11
|
|
|
12
12
|
The Claude-specific commands are available in TrustDex 0.5.0 and later.
|
|
13
|
-
Use `npx trustdex@0.
|
|
13
|
+
Use `npx trustdex@0.11.0` in place of `node ./bin/trustdex.mjs` in the examples
|
|
14
14
|
below to run the published CLI, or use the commands directly from a source checkout.
|
|
15
15
|
|
|
16
16
|
## Supported configuration
|
|
@@ -208,6 +208,19 @@ names and grant shape only. It omits permission specifiers and tool names, so sa
|
|
|
208
208
|
changes among scoped tools remain a source-review responsibility. Compare reviewed and
|
|
209
209
|
current records with `diff-bindings`; expansion or provenance/policy drift exits `1`.
|
|
210
210
|
|
|
211
|
+
### Compare an explicit runtime inventory
|
|
212
|
+
|
|
213
|
+
If an authorized integration can obtain the MCP servers visible to a Claude session,
|
|
214
|
+
have it emit `agent-runtime-tool-inventory` JSON with server names and tool counts only.
|
|
215
|
+
Then run `snapshot-runtime-tools <bindings> <inventory> --out <evidence>`. Loaded BLOCK
|
|
216
|
+
sources and servers absent from `.mcp.json` block the result; loaded review-required
|
|
217
|
+
bindings remain review-required. `diff-runtime-tools` detects newly visible servers and
|
|
218
|
+
tool-count growth. TrustDex does not call Claude, discover session files, authenticate
|
|
219
|
+
the adapter automatically, or prove the inventory is complete. Production evidence
|
|
220
|
+
should use `sign-runtime-inventory`, a pinned producer public key, bounded
|
|
221
|
+
`--max-age-seconds`, and `--require-authenticated` as shown in
|
|
222
|
+
[Authenticated runtime evidence](RUNTIME_EVIDENCE.md).
|
|
223
|
+
|
|
211
224
|
## Signed review and drift
|
|
212
225
|
|
|
213
226
|
Keep the Claude adapter throughout a review workflow; generic MCP commands do not
|
package/docs/CODEX.ko.md
CHANGED
|
@@ -15,7 +15,7 @@ Codex 클라이언트는 `config.toml`(기본적으로 `~/.codex/` 아래)의 `[
|
|
|
15
15
|
### 1. 현재 설정 검사
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npx trustdex@0.
|
|
18
|
+
npx trustdex@0.11.0 inspect-codex ~/.codex/config.toml --pack strict
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
이 명령은 파일을 로컬에서 읽으며 네트워크 요청을 하지 않습니다. 출력에는 각 MCP 서버, 소스 유형, 신뢰 신호 및 ALLOW / ASK / BLOCK 결정이 표시됩니다. 환경 변수 이름은 표시될 수 있지만 값은 절대 표시되지 않습니다.
|
|
@@ -25,7 +25,7 @@ npx trustdex@0.9.0 inspect-codex ~/.codex/config.toml --pack strict
|
|
|
25
25
|
### 2. 게이트된 사본 작성
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
npx trustdex@0.
|
|
28
|
+
npx trustdex@0.11.0 gate-codex ~/.codex/config.toml \
|
|
29
29
|
--pack official-first \
|
|
30
30
|
--trust-store ./trust-store.json \
|
|
31
31
|
--out ./gated-config.toml
|
|
@@ -141,13 +141,24 @@ node ./bin/trustdex.mjs diff-bindings \
|
|
|
141
141
|
이름, 엔드포인트 경로 및 관련 없는 값은 제외합니다. 이 정적 연결은 설정이 실제로
|
|
142
142
|
로드되었음을 증명하거나 Codex 런타임 샌드박스를 강제하지 않습니다.
|
|
143
143
|
|
|
144
|
+
### 명시적 런타임 인벤토리 비교
|
|
145
|
+
|
|
146
|
+
권한이 있는 Codex 통합은 해당 세션에 보이는 MCP 서버 이름과 서버별 도구 개수를
|
|
147
|
+
담은 `agent-runtime-tool-inventory` JSON을 제공할 수 있습니다.
|
|
148
|
+
`snapshot-runtime-tools <bindings> <inventory> --out <evidence>`로 검토된 Codex
|
|
149
|
+
결합 스냅샷과 대조하고, `diff-runtime-tools`로 노출 확대를 게이트합니다. 이는 옵트인
|
|
150
|
+
증거 어댑터 계약이며 자동 설정 탐색, 공식 Codex 내보내기 형식 또는 런타임 강제가
|
|
151
|
+
아닙니다. 캡처 경로와 샌드박스는 클라이언트에서 별도로 확인하세요. 운영 증거에는
|
|
152
|
+
[인증된 런타임 증거](RUNTIME_EVIDENCE.ko.md)에 나온 `sign-runtime-inventory`, 고정된
|
|
153
|
+
생성자 공개 키, 제한된 `--max-age-seconds` 및 `--require-authenticated`를 사용하세요.
|
|
154
|
+
|
|
144
155
|
### 스킬 및 플러그인
|
|
145
156
|
|
|
146
157
|
에이전트 스킬과 플러그인 매니페스트도 같은 방법으로 검사할 수 있습니다.
|
|
147
158
|
|
|
148
159
|
```bash
|
|
149
|
-
npx trustdex@0.
|
|
150
|
-
npx trustdex@0.
|
|
160
|
+
npx trustdex@0.11.0 inspect-skill ./path/to/SKILL.md --pack strict
|
|
161
|
+
npx trustdex@0.11.0 inspect-plugin ./path/to/plugin.json --pack strict
|
|
151
162
|
```
|
|
152
163
|
|
|
153
164
|
이 명령은 파이프로 연결된 셸 설치 프로그램, 민감한 경로 참조, 네트워크 URL 및 와일드카드 도구 범위와 같은 관찰 가능한 신호를 보고합니다. 스킬이나 플러그인이 안전하다는 것을 증명하지는 않습니다.
|
package/docs/CODEX.md
CHANGED
|
@@ -15,7 +15,7 @@ Codex clients read MCP server definitions from `[mcp_servers.<name>]` tables in
|
|
|
15
15
|
### 1. Inspect the current configuration
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npx trustdex@0.
|
|
18
|
+
npx trustdex@0.11.0 inspect-codex ~/.codex/config.toml --pack strict
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
This reads the file locally and makes no network request. The output lists each MCP server, its source type, trust signals, and an ALLOW / ASK / BLOCK decision. Environment variable names may appear; their values never do.
|
|
@@ -25,7 +25,7 @@ Use `--json` for machine-readable output and `--trust-store ./trust-store.json`
|
|
|
25
25
|
### 2. Write a gated copy
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
npx trustdex@0.
|
|
28
|
+
npx trustdex@0.11.0 gate-codex ~/.codex/config.toml \
|
|
29
29
|
--pack official-first \
|
|
30
30
|
--trust-store ./trust-store.json \
|
|
31
31
|
--out ./gated-config.toml
|
|
@@ -157,13 +157,25 @@ requires review even for an ALLOW source. Wildcard tool scope is recorded as a b
|
|
|
157
157
|
tool names, endpoint paths, and unrelated values are omitted. This static binding does
|
|
158
158
|
not prove the configuration is loaded or enforce the Codex runtime sandbox.
|
|
159
159
|
|
|
160
|
+
### Compare an explicit runtime inventory
|
|
161
|
+
|
|
162
|
+
An authorized Codex integration can provide `agent-runtime-tool-inventory` JSON with
|
|
163
|
+
the MCP server names visible to that session and a tool count for each server. Run
|
|
164
|
+
`snapshot-runtime-tools <bindings> <inventory> --out <evidence>` to reconcile it with
|
|
165
|
+
the reviewed Codex binding snapshot, and `diff-runtime-tools` to gate exposure growth.
|
|
166
|
+
This is an opt-in evidence adapter contract, not automatic config discovery, an official
|
|
167
|
+
Codex export format, or runtime enforcement. Confirm the capture path and sandbox in the
|
|
168
|
+
client separately. Production evidence should use `sign-runtime-inventory`, a pinned
|
|
169
|
+
producer public key, bounded `--max-age-seconds`, and `--require-authenticated` as shown
|
|
170
|
+
in [Authenticated runtime evidence](RUNTIME_EVIDENCE.md).
|
|
171
|
+
|
|
160
172
|
### Skills and plugins
|
|
161
173
|
|
|
162
174
|
Agent skills and plugin manifests can be inspected the same way:
|
|
163
175
|
|
|
164
176
|
```bash
|
|
165
|
-
npx trustdex@0.
|
|
166
|
-
npx trustdex@0.
|
|
177
|
+
npx trustdex@0.11.0 inspect-skill ./path/to/SKILL.md --pack strict
|
|
178
|
+
npx trustdex@0.11.0 inspect-plugin ./path/to/plugin.json --pack strict
|
|
167
179
|
```
|
|
168
180
|
|
|
169
181
|
These report observable signals such as piped shell installers, references to sensitive paths, network URLs, and wildcard tool scopes. They do not prove a skill or plugin is safe.
|
|
@@ -46,6 +46,7 @@ TrustDex는 이 표면에 대한 노출 전 통제를 연구하고 구현합니
|
|
|
46
46
|
| 증거에서 비밀 값 제외 | 출력, 스냅샷 및 설정 지문에서 비밀 값을 제거하는 테스트 |
|
|
47
47
|
| 승인 상태의 드리프트 표시 | 결정론적 스냅샷, Ed25519 검토 기록 및 재검사 명령 |
|
|
48
48
|
| 소스 신뢰와 자동 권한 조정 | 값이 제거된 Claude/Codex 결합 스냅샷, 스키마, 차이 및 비활성 픽스처 |
|
|
49
|
+
| 검토된 의도와 명시적 런타임 증거 비교 | 값 없는 인벤토리 계약, 수명이 짧은 Ed25519 생성자 증명, 실제 경계 대조 및 노출 드리프트 테스트 |
|
|
49
50
|
| 공급망 모호성 감소 | 명시적 출처 관찰, 아티팩트 다이제스트 검증, 릴리스 체크섬, SBOM 및 빌드 증명 |
|
|
50
51
|
| 연구 재현성 유지 | 비활성 픽스처, 문서화된 기대 결과, 크로스 플랫폼 CI 및 CodeQL |
|
|
51
52
|
|
|
@@ -64,6 +65,13 @@ ALLOW 결과는 여전히 관찰된 증거에 대한 정책 결과일 뿐입니
|
|
|
64
65
|
보관하지 않고 광범위하거나 차단된 권한을 검토할 수 있게 합니다. 이는 정적
|
|
65
66
|
증거이며 런타임 호출을 강제하지 않습니다.
|
|
66
67
|
|
|
68
|
+
`snapshot-runtime-tools`는 권한이 있는 런타임 어댑터의 값 없는 인벤토리를 받아
|
|
69
|
+
해당 연결과 대조합니다. `sign-runtime-inventory`와 `verify-runtime-inventory`는
|
|
70
|
+
짧은 만료와 선택적 캡처 나이 강제를 사용해 정확한 캡처를 고정된 Ed25519 생성자
|
|
71
|
+
키에 연결합니다. 도구 이름을 보관하지 않고 로드된 차단 소스와 예상 밖 서버를
|
|
72
|
+
드러낼 수 있습니다. 인증은 캡처 완전성을 증명하거나 침해된 어댑터를 보호하지
|
|
73
|
+
않습니다. [인증된 런타임 증거](RUNTIME_EVIDENCE.ko.md)를 참고하세요.
|
|
74
|
+
|
|
67
75
|
## CVP 신청 경계
|
|
68
76
|
|
|
69
77
|
Anthropic의 현재 Cyber Verification Program 신청은 검증 가능한 개인 또는 조직 정보, 보안 작업 설명 및 요청 티어에 해당하는 통제 준수 확인을 요구합니다. 이 저장소는 보안 작업 설명을 뒷받침할 수 있지만, 저장소 변경만으로 운영자 신원을 증명하거나 계정·기기 통제를 충족할 수는 없습니다.
|