diff --git a/README.ja.md b/README.ja.md index d46ac8c..48d01f0 100644 --- a/README.ja.md +++ b/README.ja.md @@ -55,7 +55,7 @@ Untrusted input (docx/xlsx/xls/pdf/html/pptx) │ FormatRegistry → parser → ParsedDocument │ │ (format-agnostic intermediate model) │ │ │ -│ Detector chain (7 detectors) │ +│ Detector chain (8 detectors) │ │ → Evidence list (coordinate-level) │ │ │ │ Sanitizer (strip / redact) │ @@ -75,7 +75,7 @@ Untrusted input (docx/xlsx/xls/pdf/html/pptx) | 段階 | 機能 | インターフェース | |---|---|---| -| **M0** | 隠しコンテンツ監査。6 形式 × 7 検出器 → 座標レベルの JSON 証拠 | `aiitg scan` | +| **M0** | 隠しコンテンツ監査。6 文書形式 × 7 検出器 → 座標レベルの JSON 証拠 | `aiitg scan` | | **M1** | サニタイズ(strip/redact)+ 信頼ラベル(safe/caution/dangerous) | `aiitg sanitize`, `aiitg trust` | | **M2** | ポリシー適用(allow/quarantine/human_approval/block)+ 監査 + 人間承認キュー + エージェント向け **MCP server** | `aiitg policy`, `aiitg audit`, `aiitg approvals`, `aiitg-mcp` | | **M3** | ゼロタッチ導入。Claude Code の `PreToolUse` フックで、信頼できないコンテンツがモデルのコンテキストに入る前にポリシーを強制(fail-closed・キャッシュ・監査ログ付き) | `aiitg hook pretooluse`, `aiitg hook-config` | diff --git a/README.md b/README.md index f1f683c..fa7c53e 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Untrusted input (docx/xlsx/xls/pdf/html/pptx) │ FormatRegistry → parser → ParsedDocument │ │ (format-agnostic intermediate model) │ │ │ -│ Detector chain (7 detectors) │ +│ Detector chain (8 detectors) │ │ → Evidence list (coordinate-level) │ │ │ │ Sanitizer (strip / redact) │ @@ -75,7 +75,7 @@ Untrusted input (docx/xlsx/xls/pdf/html/pptx) | Stage | Capability | Interface | |---|---|---| -| **M0** | Hidden content audit — 6 formats × 7 detectors → coordinate-level JSON evidence | `aiitg scan` | +| **M0** | Hidden content audit — 6 document formats × 7 detectors → coordinate-level JSON evidence | `aiitg scan` | | **M1** | Sanitization (strip/redact) + trust labeling (safe/caution/dangerous) | `aiitg sanitize`, `aiitg trust` | | **M2** | Policy enforcement (allow/quarantine/human_approval/block) + audit + human-approval queue + **MCP server** for agent frameworks | `aiitg policy`, `aiitg audit`, `aiitg approvals`, `aiitg-mcp` | | **M3** | Zero-touch adoption — a Claude Code `PreToolUse` hook that enforces policy before untrusted content enters the model context (fail-closed, cached, audited) | `aiitg hook pretooluse`, `aiitg hook-config` | @@ -180,7 +180,7 @@ aiitg scan report.docx --format json # JSON evidence report aiitg scan report.xlsx --min-severity high # only high+ findings aiitg scan report.pdf --format rich # terminal table aiitg scan ./inbox --recursive --jsonl # batch directory scan, one compact JSON object per line -aiitg list-detectors # list all 7 detectors +aiitg list-detectors # list all 8 detectors ``` Exit codes: `0` = clean · `1` = findings at/above threshold · `2` = usage error · `3` = parse error (CI-friendly). diff --git a/SECURITY.md b/SECURITY.md index 5207542..1c89962 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -29,6 +29,10 @@ In scope — anything that breaks the project's promises: overrides a real verdict). - **Detection bypass**: a concealment technique that a human reader cannot see but aiitg reports as `safe` with no evidence, or a sanitized output that still carries the hidden payload. +- **Directive bypass**: an instruction planted in a code comment or an agent rule file that reaches + the model without a `DET-008` finding, or a sanitized substitute that still carries it. This is not + *concealment* — a human reads the comment too — but it breaks the same promise through a different + channel, so it is in scope. - **Policy bypass**: reaching `allow` for a document the default policy would block/quarantine, or a `human_approval` decision that proceeds without a human. - **Crash-to-allow**: any exception path that results in the document being consumed anyway. diff --git a/docs/plan-zero-touch-adoption.md b/docs/plan-zero-touch-adoption.md index 65fd131..a30ca5c 100644 --- a/docs/plan-zero-touch-adoption.md +++ b/docs/plan-zero-touch-adoption.md @@ -615,7 +615,8 @@ Guardrails for backward compatibility: - **Hook-contract drift**: the `hookSpecificOutput` schema is an external contract and may change. Mitigation: pin the documented field names in one renderer (`render_outcome`), test it directly, and keep the CLI stdout shape in one place. -- **Performance**: each enforced `Read` runs a full parse + 7 detectors. Mitigation: extension +- **Performance**: each enforced `Read` runs a full parse + the detector chain (documents: 7 detectors; + source files: the code-context detector only). Mitigation: extension allowlist, `(path, mtime, size)` result cache, hook `timeout` in settings, and an `--no-scan` passthrough for large files. - **False positives**: `default_policy` quarantines on any evidence (POL-002), so legitimately