# homoglyph unicode injection firewall

> Detects Trojan Source attacks, homoglyph substitutions, and invisible Unicode injection in code and identifiers.

homoglyph unicode injection firewall is a paid AI agent skill on Agensi by Hermes Test, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $17.99 (one-time purchase)
- Creator: [Hermes Test](https://www.agensi.io/creators/test-hermes)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-08-30
- Security: scan passed (2026-08-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/homoglyph-unicode-injection-firewall
- Tags: ai-agents, security, unicode, application-security, code-audit

## About this skill

### The problem

Standard security scanners and keyword filters operate on string literals. They cannot detect visually identical characters that use different codepoints or invisible control characters that reorder logic while appearing benign to the human eye.

### What it does

- Scans text codepoint by codepoint to identify hidden bidirectional (bidi) control characters used in Trojan Source attacks.
- Detects cross-script homoglyphs where non-Latin characters (like Cyrillic or Greek) are substituted for Latin lookalikes in identifiers or domains.
- Identifies zero-width characters and invisible joiners that silently alter tokenization or bypass exact-match security checks.
- Flags normalization (NFC/NFKC) divergence where a document's rendered appearance differs from its underlying codepoint sequence.

### Why this beats prompting it yourself

Most LLMs naturally interpret text as rendered, often missing the very byte-level deceptions this skill is designed to find. This tool follows a strict non-embedding rule, ensuring it describes threats via codepoint notation rather than inadvertently re-emitting dangerous bidi payloads in your environment.

### Use cases

- Auditing Pull Requests for Trojan Source (CVE-2021-42574) code smuggling.
- Verifying that domain names or usernames are not using confusable character substitutions for phishing.
- Checking third-party agent skill files for hidden Unicode instructions before deployment.
- Comparing rendered text against actual codepoints to find invisible characters in security-sensitive keywords.

### Known limitations

Uses a heuristic pass based on established confusable pairs. It is not a live query against the latest Unicode Consortium data and should not replace a dedicated Unicode-aware security library.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the homoglyph unicode injection firewall skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific types of Unicode threats does this skill identify?

This firewall detects 'Trojan Source' attacks that use invisible bidirectional (bidi) control characters to reorder code logic and homoglyph substitutions where visually identical characters from different alphabets are used to bypass keyword filters or spoof identifiers.

### How does this differ from standard keyword filtering or security prompts?

Unlike standard text filters, this skill performs codepoint-by-codepoint analysis to see what lies beneath the rendered text, identifying hidden characters that LLMs and humans often overlook during standard code reviews.

### Can I use this firewall with any AI agent or LLM?

This skill is designed to be integrated into any AI agent workflow that handles untrusted code, user-submitted identifiers, or third-party documentation where script injection is a risk.

### Does this tool require an active internet connection to verify Unicode characters?

The skill relies on a robust heuristic engine and a library of established confusable character pairs to flag suspicious sequences without needing to execute the code or query external databases.

### What is included in the purchase of this skill?

You receive the fully configured security skill ready for deployment, along with documentation on how to interpret its codepoint notation flags for your auditing process.

### Is this firewall a complete replacement for a security library?

While it is a powerful detection layer for common CVEs like Trojan Source, it should be used as part of a multi-layered security strategy alongside dedicated Unicode-aware programming libraries.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
