Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add s977043/river-review --skill invisible-unicode-injectiongit clone --depth 1 https://github.com/s977043/river-reviewWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/s977043/river-review/invisible-unicode-injection)<a href="https://agentmods.dev/skills/s977043/river-review/invisible-unicode-injection"><img src="https://agentmods.dev/badge/skills/s977043/river-review/invisible-unicode-injection/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/s977043/river-review/invisible-unicode-injection"><img src="https://agentmods.dev/badge/skills/s977043/river-review/invisible-unicode-injection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00152 | $0.02587 |
| Opus 5.5 | $0.00061 | $0.01035 |
| Sonnet 5.5 | $0.00030 | $0.00517 |
| Haiku 4.5 | $0.00015 | $0.00259 |
Grade A, and why
Invisible Unicode Injection Scan 不可視 Unicode コード注入検出 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Pattern declaration
Primary pattern: Reviewer
Secondary patterns: Inversion
Why: 不可視・危険な Unicode 文字の混入は、文字コード(code point)で機械的・決定論に判定できる領域が大きい。よって本スキルの一次担保は src/lib/heuristic-review.mjs の決定論 detector(findInvisibleUnicode)と canary テストが担い(.claude/rules/review-core.md の False-positive 責務分界 #1070)、AI レビューは canary が守る範囲を重複指摘せず、文脈的な妥当性(意図した装飾か・攻撃の疑いか)の判断に限定する。危険文字の混入が無ければ実行を止めるゲートが必要。
Goal / 目的
- 差分へ新規追加されたソースコード行に含まれる、不可視・欺瞞的な Unicode 文字を検出する。
- 対象は 2026 年に急増した GlassWorm 型サプライチェーン攻撃(異体字セレクター・ゼロ幅文字でコードを不可視化)と Trojan Source(CVE-2021-42574、双方向制御文字で表示順と実行順を食い違わせる手口)とする。
検出カテゴリ
検出対象は以下に列挙した code point 集合に限定する(Unicode の不可視文字を網羅するものではない)。
- タグ文字(Tag characters): U+E0000–E007F。GlassWorm 実物・ASCII smuggling・LLM プロンプトインジェクションの主要ベクタ。絵文字タグシーケンス(地域旗など、絵文字ベースに付随する正当な利用)は除外する。
- 双方向制御・マーク(Bidi control/mark): U+202A–202E / U+2066–2069(制御)と U+061C / U+200E / U+200F(マーク)。表示上のコード順序を実行順序とすり替える(Trojan Source / CVE-2021-42574)。
- 異体字セレクター(Variation Selector): U+FE00–FE0F(BMP)と U+E0100–E01EF(補助面 VS17+)。GlassWorm がペイロードを不可視に符号化する手口。絵文字の見た目切り替えとして正当な単独利用(絵文字直後の 1 個・キーキャップ)は除外する。
- 不可視・ゼロ幅文字: ゼロ幅スペース(U+200B)・WORD JOINER(U+2060)・ソフトハイフン(U+00AD)・MONGOLIAN VOWEL SEPARATOR(U+180E)・COMBINING GRAPHEME JOINER(U+034F)・不可視数学演算子(U+2061–2064)・ハングルフィラー(U+115F/U+1160/U+3164)・BRAILLE PATTERN BLANK(U+2800)・インターリニア注釈(U+FFF9–FFFB)・非先頭 BOM(U+FEFF)。
- ゼロ幅接合子(ZWJ/ZWNJ): U+200C / U+200D。絵文字シーケンス内の正当な接合は除外し、識別子・キーワード中の裸の接合子のみ対象とする。
- 変則空白(Confusable whitespace): NBSP(U+00A0)・U+2000–200A・U+202F・U+205F・全角空白(U+3000)等。文字列リテラル・コメント外に現れた場合のみ対象とする。
Non-goals / 扱わないこと
- 依存パッケージ内部(
node_modules等)の不可視文字検出(別途 CI / SCA の領域)。 - ドキュメント(
.md/.txt等)中のゼロ幅・絵文字利用。正当な装飾・組版が多く、本スキルはソースコードに限定する。既知の受容リスク: README 等のコードフェンスへの注入は現状すり抜ける(#1602 の教訓)。 - 上記に列挙していない Unicode 不可視文字の網羅。列挙集合の外は現状スコープ外とする。
- CJK 漢字の異体字シーケンス(IVS, U+E0100+ を非絵文字ベースに付与する正当な用途)はコードでは稀なため、補助面 VS を一律検出する副作用として誤検出しうる(受容リスク)。
- 機密情報(API キー・トークン)の検出(
secret-credential-scanの領域)。SQLi / XSS 等(security-basicの領域)。
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- eval/promptfoo.yaml 1.3 KB
- fixtures/01-glassworm-payload-happy.diff 576 B
- fixtures/01-glassworm-payload-happy.md 1.3 KB
- fixtures/02-emoji-i18n-false-positive.diff 274 B
- fixtures/02-emoji-i18n-false-positive.md 1.2 KB
- golden/01-glassworm-payload-happy.md 1.8 KB
- golden/02-emoji-i18n-false-positive.md 518 B
- prompt/system.md 3.4 KB
- prompt/user.md 2.6 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 109 lines · 152 tokens per session scan A 2b56b4529690
Invisible Unicode Injection Scan 不可視 Unicode コード注入検出 is a skill published in the GitHub repository s977043/river-review (8 stars, last pushed yesterday), licensed MIT. It adds 152 tokens to every session and 2,587 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Invisible Unicode Injection Scan 不可視 Unicode コード注入検出 compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Invisible Unicode Injection Scan 不可視 Unicode コード注入検出s977043/river-review | Skill | 8 | yesterday | MIT | A | 152 | Claude Code |
| logic-reviewhyhmrright/logic-lens | Skill | 25 | 1mo ago | MIT | A | 161 | Claude Code |
| logic-healthhyhmrright/logic-lens | Skill | 25 | 1mo ago | MIT | A | 180 | Claude Code |
| run-iteration-evalhyhmrright/logic-lens | Skill | 25 | 1mo ago | MIT | A | 108 | Claude Code |
| sync-skill-cachehyhmrright/logic-lens | Skill | 25 | 1mo ago | MIT | A | 103 | Claude Code |
| gemini-promptingarcobaleno64/agy-plugin-cc | Skill | 18 | today | MIT | A | 31 | Claude Code |
| bump-versionhyhmrright/logic-lens | Skill | 25 | 1mo ago | MIT | A | 52 | Claude Code |