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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)]()
Expand Down Expand Up @@ -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 向け)。
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)]()
Expand Down Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
3 changes: 2 additions & 1 deletion src/aiitg/__init__.py
Original file line number Diff line number Diff line change
@@ -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.**

Expand Down
2 changes: 1 addition & 1 deletion src/aiitg/cli/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/test_cli_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Loading