Local-first protection against IDN homograph attacks, lookalike domains, and phishing script spoofing.
PunyGuard is an open-source cross-browser extension (Chrome, Edge, Brave, Firefox, Safari) that inspects hostnames on every page, including embedded links, scripts, and iframes, for Unicode lookalikes and mixed-script phishing tells. Analysis runs entirely on-device so your browsing data never leaves your machine during live checks.
Project site: https://0xdolan.github.io/PunyGuard/
Attackers register domains that look identical to brands you trust by swapping Latin letters for Cyrillic, Greek, or Punycode encodings. Humans cannot reliably spot раypal.com vs paypal.com. PunyGuard can.
| Badge | Meaning |
|---|---|
| Green | No significant homograph indicators |
| Amber | Punycode / IDN or elevated watch signals |
| Red | High-probability lookalike / mixed-script risk |
- UTS #39-inspired confusable / homoglyph detection (local matrix)
- Mixed-script and invisible-character detection
- Unicode inspector: paste any domain; see each character’s
U+, formal name, block, script, category, hex/dec, escapes - Search characters by name,
U+, hex, decimal, block, or script; copy list to clipboard - Extension analyzer tab + GitHub Pages inspector (
#/inspect) - Live page recon + toolbar threat badge (green / amber / red)
- Popup with page results and an Inspect tab, plus a settings page (on/off, badge, iframe scanning, theme)
- Light and dark themes
- GPL-3.0 open source
| Page scan | Domain inspector |
|---|---|
![]() |
![]() |
| Unicode analyzer | Private by design |
![]() |
![]() |
A tutorial-style course in docs/, from first principles to how the engine works, with runnable examples:
- Foundations: bits and bytes, ASCII, Unicode, encoding and decoding, escapes
- Tricky Unicode: invisible characters (zero-width, Hangul fillers, Private Use Area, tags, fullwidth forms), normalization, confusables and scripts, bidirectional text
- Domains: how domain names work, IDN and Punycode, homograph attacks
- Invisible code: hiding data in invisible characters, attacks in source and config, detection and defense
- How PunyGuard works: architecture, domain detection pipeline, character inspector, limitations and roadmap
Plus a glossary and examples: an invisible-text codec, a Unicode scanner, and a git pre-commit hook.
PunyGuard is not in the browser stores yet. Until it is, install a release build. You can also start from the project site, which has a button per browser.
-
Open the latest release and download the file for your browser:
Browser File Chrome, Brave, Opera, Vivaldi punyguard-x.y.z-chrome.zipMicrosoft Edge punyguard-x.y.z-edge.zipFirefox 140+ punyguard-x.y.z-firefox.xpiSafari 15.4+ (macOS) punyguard-x.y.z-safari-xcode.zip -
Chromium browsers: unzip it and load the folder as an unpacked extension. Firefox: open the
.xpi. Safari: open the Xcode project and run it. Step-by-step details are in Browser support and in each release's notes.
Prefer to build it yourself? See Develop.
Every check runs locally. PunyGuard makes no network requests during analysis and collects no data (the Firefox manifest declares data_collection_permissions: none).
| Permission | Why it is needed |
|---|---|
<all_urls> (host access) |
Read the hostnames of links, scripts, and iframes on pages you visit |
tabs |
Know which page the popup and toolbar badge belong to |
storage |
Save your settings and the current tab's scan results |
Full policy: PRIVACY.md.
TypeScript (strict) · React 19 · WebExtensions MV3 · WXT (Vite) · Tailwind · DaisyUI · Vitest · Playwright · pnpm
All targets ship Manifest V3 from one codebase.
| Browser | Minimum | Build | Output | Load unpacked |
|---|---|---|---|---|
| Chrome | 88+ | pnpm build |
apps/extension/.output/chrome-mv3 |
chrome://extensions → Developer mode → Load unpacked |
| Brave | Chromium 88+ | pnpm build |
apps/extension/.output/chrome-mv3 |
brave://extensions → Developer mode → Load unpacked |
| Edge | 88+ | pnpm build:edge |
apps/extension/.output/edge-mv3 |
edge://extensions → Developer mode → Load unpacked |
| Firefox | 140+ | pnpm build:firefox |
apps/extension/.output/firefox-mv3 |
about:debugging → This Firefox → Load Temporary Add-on |
| Safari | 15.4+ | pnpm safari:xcode (macOS) |
apps/extension/safari/ Xcode project |
Run the app in Xcode, then enable it in Safari → Settings → Extensions |
Brave and other Chromium browsers (Opera, Vivaldi) use the Chrome build. Safari requires macOS with Xcode; pnpm safari:xcode builds safari-mv3 and wraps it with safari-web-extension-converter.
When loading unpacked, select the folder that contains manifest.json. File pickers hide .output because it starts with a dot: press Ctrl+H to show it, or paste the path.
pnpm install
pnpm dev # Chrome with live reload
pnpm dev:firefox # Firefox with live reload
pnpm build:all # Chrome, Edge, Firefox, Safari builds
pnpm zip:all # Store-ready zips (+ Firefox sources zip for AMO)
pnpm verify # Everything CI checks, locally (also runs before every git push)
pnpm release:stage # Build every release package into release/ with checksums and notes
pnpm test:e2e # Playwright smoke tests
pnpm site:dev # Site with live reload → http://localhost:5173/PunyGuard/
pnpm site:preview # Production Pages build → http://localhost:4173/PunyGuard/The version lives in the root package.json and is propagated to every package, the manifest, the popup and options footers, and the site. pnpm version:bump <patch|minor|major> bumps it and dates the changelog, and pushing a vX.Y.Z tag drafts a GitHub Release with every store zip. See CHANGELOG.md and docs/RELEASING.md, which also covers the one-time GitHub Actions and Pages setup.
apps/
extension/ Browser extension (WXT + React)
public/icons/ Toolbar & store icons
src/ Entrypoints, components, lib
tests/ Vitest unit + Playwright smoke tests
site/ GitHub Pages marketing site & inspector
packages/
core/ Detection engine shared by extension and site
assets/brand/ Brand mark source files
assets/store/ Store screenshots, promo tiles, and icons
docs/ Unicode security guide, examples, store listing kit, maintainer docs
scripts/ Version, changelog, and dash checks
.github/ CI/CD & Pages workflows
Contributions are welcome: see CONTRIBUTING.md for the branch flow and checks. main is protected, so changes land through pull requests with all CI checks passing.
Please report vulnerabilities, including detection bypasses, privately as described in SECURITY.md.
GNU GPL v3 · Made with ❤️ by 0xdolan



