Invisible Unicode Injection Scan 不可視 Unicode コード注入検出

Invisible Unicode Injection Scan 不可視 Unicode コード注入検出 is a skill for Claude Code from s977043/river-review. It costs 152 tokens per session (2,587 once invoked), scanned A, original, MIT.

A static scan for invisible or misleading Unicode characters added to source code, including characters that can hide text or change its displayed order.

In plain words
What is it for?
It checks new source lines for zero-width characters, bidirectional controls, tag characters, variation selectors, and unusual invisible spaces.
Why use it?
These characters can make code look different from what it does, enabling attacks such as Trojan Source or hidden payloads in dependencies and code changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the river-review plugin — 140 skills, 18 commands, 5 agents, 3 hooks shipped together

Good fit It checks new source lines for zero-width characters, bidirectional controls, tag characters, variation selectors, and unusual invisible spaces.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s977043/river-review/invisible-unicode-injection
Install

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.

Any agent
npx skills add s977043/river-review --skill invisible-unicode-injection
Clone the repo
git clone --depth 1 https://github.com/s977043/river-review

Made for: Claude Code.

Or install river-review, the plugin that ships this one along with the rest of its 140 skills, 18 commands, 5 agents, 3 hooks.

Wrote 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.

agentmods badge for Invisible Unicode Injection Scan 不可視 Unicode コード注入検出

README.md
[![agentmods](https://agentmods.dev/badge/skills/s977043/river-review/invisible-unicode-injection/github.svg)](https://agentmods.dev/skills/s977043/river-review/invisible-unicode-injection)
Your own site
<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.

agentmods 80×15 button for Invisible Unicode Injection Scan 不可視 Unicode コード注入検出

Your own site · 80×15
<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>
Per session 152 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,587 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2mo ago against content hash 2b56b4529690, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugin-dist/river-review/skills/midstream/invisible-unicode-injection/SKILL.md · 109 lines

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 の領域)。

Read the full file on GitHub · 109 lines

Changes

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.

  1. 2mo ago First seen · 109 lines · 152 tokens per session scan A 2b56b4529690

Subscribe to this mod's changes

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.

Related

Invisible Unicode Injection Scan 不可視 Unicode コード注入検出 compared with skills from other repositories

Invisible Unicode Injection Scan 不可視 Unicode コード注入検出 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Invisible Unicode Injection Scan 不可視 Unicode コード注入検出s977043/river-reviewSkill8yesterdayMITA152Claude Code
logic-reviewhyhmrright/logic-lensSkill251mo agoMITA161Claude Code
logic-healthhyhmrright/logic-lensSkill251mo agoMITA180Claude Code
run-iteration-evalhyhmrright/logic-lensSkill251mo agoMITA108Claude Code
sync-skill-cachehyhmrright/logic-lensSkill251mo agoMITA103Claude Code
gemini-promptingarcobaleno64/agy-plugin-ccSkill18todayMITA31Claude Code
bump-versionhyhmrright/logic-lensSkill251mo agoMITA52Claude Code