Glyphguard

A deterministic Unicode integrity auditor for text an AI system reads, writes, or is asked to act on.

Glyphguard scans any pasted text for Unicode tricks used to smuggle hidden or spoofed content past humans and keyword filters: invisible characters, bidi overrides, homoglyph lookalikes, styled "math-alphabet" letters, fullwidth forms, and the invisible Unicode tag block. The scan is a pure function of the input text — no model, no judgment call. Re-run the same text through this same page (or a fresh reimplementation of the method below) and you get a byte-identical report and SHA-256 hash, every time.

Limits: what it cannot catch, and what it flags that is often innocent. Read before trusting a result.
  • Look-alike letters. It knows 46 well-known look-alikes of Latin letters (24 Cyrillic, 19 Greek, 2 other Latin forms and 1 letter-like symbol, such as Cyrillic а for Latin a), not the full Unicode list of thousands. "Clean" means none of these 46 was found, not that no look-alike exists anywhere in Unicode.
  • Mixed alphabets in one word. A word here means a run of characters between spaces. A word that mixes Latin with Cyrillic or Greek, such as pаypal with a Cyrillic а, raises the verdict to at least medium. Other mixes (Latin with Armenian, say) are not checked.
  • Styled letters. Unicode keeps bold, italic and other styled letters for mathematics (𝐁𝐨𝐥𝐝). The 13 Latin styles and the digits are decoded back to plain text. The Greek styles and the styled dotless i and j are flagged but not decoded. Version 1.0.0 of this page passed those as clean; 1.1.0 flags them.
  • Variation selectors. These are invisible characters that pick how an emoji looks; the red heart ❤️ carries one. There are 256 of them, so a run of them can hide one byte each, a known way to smuggle data. It flags them but does not decode what they carry.
  • It reads characters; it does not run anything. It cannot tell you what a model or a browser will do with the text, only which unusual characters are inside it.
  • Often innocent, still flagged (each checked by running the scanner): the heart and keycap emoji ❤️ #️⃣ (variation selector, medium); joined emoji such as a family (zero-width joiners, low); ordinary Russian or Greek words (their letters are on the look-alike list, medium); Hebrew or Arabic with a right-to-left mark (bidi, medium); fullwidth digits in Japanese or Chinese text, 123 (medium); bold or italic "styled" social-media text (medium); soft hyphens from copied web text, and a byte-order mark at the start of a file (invisible, low). Each finding says what it is and where, so read the findings, not only the verdict.
  • Nothing here is sent anywhere. Every check runs locally in this browser tab.

Start here

Kar-Glyphguard tells you whether text carries tricks hidden in its characters: invisible characters, look-alike letters, bidi overrides, hidden Unicode-tag text, styled or fullwidth letters, variation selectors and mixed-script words. It runs entirely in this page: nothing you paste is sent anywhere, and no AI judges anything.

  1. Paste the text above, or press one of the example buttons (a hidden instruction, a homoglyph URL…).
  2. Press Scan.
  3. Read the verdict: clean, or flagged with its highest severity, every finding with its position, and any hidden text decoded.
  4. Keep the report: Download report.json; Verify re-checks a report against its text.

Below the tool: how it works · words on this page · blueprint · roll it out · for a business · FAQ

1 · Scan text

Try an example:

4 · Verify a report

Paste text and a report.json exported above (yours, or anyone else's). Glyphguard re-runs the scan from scratch and checks whether the result is byte-identical to what was claimed — the same re-run a third party would do to confirm a report wasn't doctored.

5 · Self-test

Runs the whole promise live, in this tab: scan a sample → export its report → verify it matches → tamper with a copy of the report → verify again and confirm the tamper is caught.

How it works

text from outsideevery character checkedhidden text decodedclean, or flaggedfindingshash
  1. Every character is checked against the categories above: zero-width and other invisible characters, 46 curated look-alikes, bidi overrides, Unicode tag characters, mathematical and fullwidth letters, variation selectors, and words that mix scripts.
  2. Hidden content is decoded: tag characters back to the ASCII they spell, styled letters back to plain ones.
  3. The report, with every finding and its position, is hashed with SHA-256, so the same script can re-verify it later.

Words on this page

Severity
How much a finding can change what a reader or a model sees or does. High: hidden tag text, and the two bidi overrides that reorder text on screen. Medium: look-alike letters, styled and fullwidth letters, variation selectors, other bidi controls, and words that mix alphabets. Low: invisible characters such as zero-width spaces and soft hyphens. The verdict shows the highest severity found.
Confusable
A letter from another alphabet that looks like a Latin one: Cyrillic а in place of Latin a makes a different word to a computer.
Token
A run of characters between spaces, roughly a word. Mixed alphabets are flagged only inside one token, so English next to a quoted Greek or Russian word is not flagged.
Tag characters
Invisible copies of ordinary letters (Unicode U+E0020 to U+E007E). A person sees nothing; a model can read them as text. Glyphguard decodes them.
Variation selector
An invisible character meant to pick an emoji's style. There are 256 of them, so a run of them can carry one hidden byte each: a covert channel. Glyphguard flags them but does not decode what they carry.
Bidi control
An invisible character that changes the direction text is displayed in, so what you see is not the order a program reads ("Trojan Source").
Kernel
The small piece of code that decides every verdict; the rest of the page only shows what it decided. Here it is the block inside this page, copied byte for byte into kernel.mjs (the file the tests run) and into the script, so all three are the same code.
SHA-256 receipt
A 64-character fingerprint of the input and the verdict. Anyone with the same input gets the same fingerprint; change one character and it changes completely.
Deterministic
No AI model, no random numbers and no clock go into a verdict, so the same input gives the same verdict on any machine, every time.
No AI judge
No language model decides anything. The verdict comes from fixed rules you can read in kernel.mjs.
Mutation gate
A test of the tests. witness makes small deliberate changes to the kernel, one at a time: for example it turns if (count > 0) into if (count >= 0), then runs the tests. Every change must make a test fail. A change no test notices has survived: it would mean no test checks what happens at that exact point. A change reviewed as equivalent cannot alter any result (both versions give the same answer for every input), and the reason is written down and checked.
CI
Continuous integration: GitHub re-runs every test and the gate on its own computers on every change, and the runs are public.
In the browser
The page does the work on your computer. Nothing you paste is sent to a server.
MIT licence
An open-source licence: you may use, copy, change and build products with it, free, as long as the copyright notice stays.
Sourced figures
Every number in the cost case comes from a published source (the UK median wage and UK inflation, from the ONS), linked under the table.

Blueprint

Roll it out

  1. Pick one place where this check is done by hand today, or skipped, and the person who owns it.
  2. Try it here on real examples from that place. Nothing leaves the page.
  3. Put it in the flow. Run node scripts/kar-glyphguard.mjs --file text.txt in CI or a script (Node.js 20 or later, no dependencies). Exit code 0 means clean, 1 means something was flagged, 2 means the input could not be read. An AI agent can run the same script as a skill.
  4. Keep the receipts with the work they checked, so anyone can recompute a verdict later.
  5. Measure the difference with the cost case below.

For a business

Kar-Glyphguard turns a check that is usually done by eye, or not at all, into a verdict anyone can recompute: the same input gives the same answer and the same SHA-256 receipt on any machine, with no AI judging it.

The cost case, on your numbers

What the checking costs today against running the tool. Staff time is at the UK median hourly wage with on-costs left out, so this is a floor; later years rise with UK inflation (CPI). Change any box to your own numbers and the table recalculates as you type.

How it is worked out. Today: checks a year (per week × 52) × minutes per check × the median hourly wage, plus anything you pay for a tool now. With the tool: the share it replaces takes the seconds you enter instead of the minutes, and the rest is still checked by hand. Each later year rises by one more year of inflation.

yearchecking by handwith Kar-Glyphguardsaved

Against what you do now

Security, data protection and deployment

Support and ownership

Supplied by AI Native Solutions; start through that site. Support, any service level, warranty and liability are agreed per deployment, in each deployment's agreement. The software is MIT and keeps running without us.

Where it stops, answered straight

The case for the board

A check that anyone can recompute replaces a check that has to be trusted, at no licence cost, without sending your data anywhere. Its logic is the code on this page, and its tests are themselves tested.

FAQ

Why does this matter for AI?
Text can carry instructions a person cannot see but a model reads, such as Unicode tag characters spelling "rank this first". This finds and decodes them.
Can an agent run it?
Yes. The same kernel ships as a one-file Node.js script (scripts/kar-glyphguard.mjs), usable as an agent skill before it acts on outside text.
Will it flag text that is innocent?
Yes, some, because the same characters carry real tricks: the heart emoji, ordinary Russian or Greek words, Hebrew with a direction mark, fullwidth digits in Japanese text, bold "styled" social-media text. Each finding names the character, its position and what it is, and the Limits list at the top names each innocent case, checked by running the scanner. Read the findings, not only the verdict.
What happens with bad, empty or very large input?
Any text is accepted, including empty text, which is reported clean with its hash. A file that is not valid UTF-8 text is read with each bad byte as the replacement character (�), which is not flagged. There is no length cap: scanning and reporting a 200,000-character text took 0.15 seconds (the median of 7 runs on an ordinary Windows laptop); starting Node.js for the script adds up to about a second. An input file the script cannot read is refused (exit 2).
What do I need to run it?
For the page, a modern browser; there is nothing to install. For the script, Node.js 20 or later (free from nodejs.org; node --version shows which one you have): download scripts/kar-glyphguard.mjs (one file, no dependencies, no npm install) and run it with no arguments to see how to call it.
Does it need the internet or an account?
No. The page works once loaded, and the script runs offline. Nothing is uploaded.