diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ee7053..f3b282f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,9 @@ Code-context coverage: the gate now reads source files and agent rule files, not rule-file name bypass with the sniffed-kind check (`DOCUMENT_KINDS`). - `evil.txt` carrying a document is enforced again after that merge — pinned by `tests/unit/test_text_parser.py` and the upstream regression test. +- **Scope wording**: the package description, CLI help, module docstring and README headline now say + what the gate actually reads (documents **and** source/rule files); the last stale 7-detector count + in `README.ja.md` is corrected, and the `list-detectors` e2e test now pins DET-008 as well. ## [0.2.0] — 2026-09-11 diff --git a/README.ja.md b/README.ja.md index 48d01f0..fa2b2a0 100644 --- a/README.ja.md +++ b/README.ja.md @@ -2,7 +2,7 @@ [English](README.md) | [日本語](README.ja.md) -**AI エージェントのためのゼロトラスト入力セキュリティ層。** 信頼できない文書が LLM に渡される前にスキャンし、隠されたプロンプトインジェクションを検出し、サニタイズし、信頼ラベルを付け、ポリシーを適用します。**外部コンテンツはデータであり、権限ではありません。** +**AI エージェントのためのゼロトラスト入力セキュリティ層。** 信頼できない入力(文書・ソースコード・エージェントのルールファイル)が LLM に渡される前にスキャンし、隠されたプロンプトインジェクションを検出し、サニタイズし、信頼ラベルを付け、ポリシーを適用します。**外部コンテンツはデータであり、権限ではありません。** [![CI](https://github.com/sscodeai/aiitg/actions/workflows/ci.yml/badge.svg)](https://github.com/sscodeai/aiitg/actions/workflows/ci.yml) [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)]() @@ -117,7 +117,7 @@ aiitg scan report.docx --format json # JSON evidence report aiitg scan report.xlsx --min-severity high # high 以上の finding のみ aiitg scan report.pdf --format rich # ターミナル表形式 aiitg scan ./inbox --recursive --jsonl # ディレクトリ一括スキャン。1 行 1 compact JSON -aiitg list-detectors # 7 個の検出器を一覧表示 +aiitg list-detectors # 8 個の検出器を一覧表示 ``` 終了コード: `0` = clean · `1` = 閾値以上の finding あり · `2` = 使用方法エラー · `3` = パースエラー(CI 向け)。 diff --git a/README.md b/README.md index fa7c53e..e2fc422 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [English](README.md) | [日本語](README.ja.md) -**The zero-trust input security layer for AI agents.** Scan untrusted documents before they reach an LLM — detect hidden prompt-injection content, sanitize it, label its trustworthiness, and enforce policy. **External content is data, never authority.** +**The zero-trust input security layer for AI agents.** Scan untrusted input — documents, source files and agent rule files — before it reaches an LLM: detect hidden prompt-injection, sanitize it, label its trustworthiness, and enforce policy. **External content is data, never authority.** [![CI](https://github.com/sscodeai/aiitg/actions/workflows/ci.yml/badge.svg)](https://github.com/sscodeai/aiitg/actions/workflows/ci.yml) [![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)]() @@ -36,6 +36,7 @@ That's also why the tool is deliberately named as a gateway, not a scanner: a sc - **Peer-review manipulation**: authors hide prompts in manuscripts to make AI reviewers give top scores ([arXiv:2507.06185](https://arxiv.org/abs/2507.06185), [2508.20863](https://arxiv.org/abs/2508.20863), [2509.09912](https://arxiv.org/abs/2509.09912)) - **Resume injection**: hidden instructions in resumes force AI screeners to "must hire" ([arXiv:2605.28999](https://arxiv.org/abs/2605.28999)) - **Agent hijacking**: hidden text in PDFs/web pages makes AI assistants leak secrets or execute dangerous actions +- **Code-comment injection**: an insecure objective written as an ordinary `# TODO:` comment in a library the developer imports — the model complies because the marker is the same one real code uses ([arXiv:2610.05139](https://arxiv.org/abs/2610.05139); see DET-008 below) The document a human sees and the document an LLM reads can be **completely different** — that's the **Human-AI Visibility Gap**. This project turns that gap into auditable evidence. diff --git a/pyproject.toml b/pyproject.toml index 812653a..300c320 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "hatchling.build" [project] name = "aiitg" version = "0.3.0" -description = "AI Input Trust Gateway — hidden content auditor for documents fed to LLMs/Agents" +description = "AI Input Trust Gateway — zero-trust input layer: audit documents, source files and agent rule files for hidden prompt-injection before they reach an LLM/Agent" readme = "README.md" requires-python = ">=3.11" license = { text = "MIT" } diff --git a/src/aiitg/__init__.py b/src/aiitg/__init__.py index 7a7183a..8a682e6 100644 --- a/src/aiitg/__init__.py +++ b/src/aiitg/__init__.py @@ -1,4 +1,5 @@ -"""AI Input Trust Gateway — hidden content auditor for documents fed to LLMs/Agents. +"""AI Input Trust Gateway — zero-trust input layer for documents, source files and agent +rule files fed to LLMs/Agents. Core principle: **External content is data, never authority.** diff --git a/src/aiitg/cli/app.py b/src/aiitg/cli/app.py index ede575d..9af1217 100644 --- a/src/aiitg/cli/app.py +++ b/src/aiitg/cli/app.py @@ -21,7 +21,7 @@ app = typer.Typer( name="aiitg", - help="AI Input Trust Gateway — hidden content auditor for documents fed to LLMs/Agents.", + help="AI Input Trust Gateway — audit documents, source files and agent rule files before they reach an LLM/Agent.", add_completion=False, ) app.add_typer(hook_app, name="hook") diff --git a/tests/e2e/test_cli_e2e.py b/tests/e2e/test_cli_e2e.py index 0a1b3b2..6022260 100644 --- a/tests/e2e/test_cli_e2e.py +++ b/tests/e2e/test_cli_e2e.py @@ -98,7 +98,7 @@ class TestCLIList: def test_list_detectors(self): result = runner.invoke(app, ["list-detectors"]) assert result.exit_code == 0 - for det_id in ("DET-001", "DET-002", "DET-003", "DET-004", "DET-005", "DET-006", "DET-007"): + for det_id in ("DET-001", "DET-002", "DET-003", "DET-004", "DET-005", "DET-006", "DET-007", "DET-008"): assert det_id in result.output