Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) │
Expand All @@ -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` |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) │
Expand All @@ -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` |
Expand Down Expand Up @@ -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).
Expand Down
4 changes: 4 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion docs/plan-zero-touch-adoption.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading