{"id":51134815,"url":"https://github.com/0xcpu/unicode-sentinel","last_synced_at":"2026-06-25T16:30:33.703Z","repository":{"id":351400056,"uuid":"1188242257","full_name":"0xcpu/unicode-sentinel","owner":"0xcpu","description":"Chrome extension that detects invisible Unicode characters ","archived":false,"fork":false,"pushed_at":"2026-04-14T20:02:27.000Z","size":563,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-14T22:06:57.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xcpu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-21T20:08:52.000Z","updated_at":"2026-04-14T20:02:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/0xcpu/unicode-sentinel","commit_stats":null,"previous_names":["0xcpu/unicode-sentinel"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/0xcpu/unicode-sentinel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xcpu%2Funicode-sentinel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xcpu%2Funicode-sentinel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xcpu%2Funicode-sentinel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xcpu%2Funicode-sentinel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xcpu","download_url":"https://codeload.github.com/0xcpu/unicode-sentinel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xcpu%2Funicode-sentinel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34784112,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-25T16:30:32.985Z","updated_at":"2026-06-25T16:30:33.698Z","avatar_url":"https://github.com/0xcpu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unicode Sentinel\n\nChrome extension that detects invisible Unicode characters used in supply-chain attacks ([Glassworm](https://www.aikido.dev/blog/glassworm-returns-unicode-attack-github-npm-vscode)).\n\nScans code blocks for PUA codepoints, variation selectors, bidi overrides, and zero-width characters. Highlights them inline and shows a warning banner.\n\n![Unicode Sentinel detecting 9123 invisible characters in a malicious GitHub PR](screenshot.png)\n\n## How it scans\n\nScanning is **on-demand**. The extension does not run automatically on every page you visit - you click the toolbar action to scan the current tab. This minimises permissions: the manifest declares only `activeTab`, `storage`, and `scripting`, with no host permissions and no auto-injected content script.\n\nFlow:\n\n1. Click the toolbar icon → popup opens.\n2. Click **Scan this page** → background worker tries to message an existing content script first; if none answers, it injects `dist/src/content/content.js` and `dist/content.css` via `chrome.scripting`.\n3. The content script walks `pre`, `code`, and other code-block selectors, classifies each invisible codepoint into tiers (T1 dangerous, T2 suspicious, T3 informational), and streams findings back to the worker.\n4. The worker keeps per-tab state (findings, signature matches, badge counters) and the popup polls `GET_FINDINGS` until the scan completes.\n\nIf the active tab is restricted (chrome://, the Web Store, the devtools origin, file:// without permission), the popup shows **\"This page can't be scanned\"** instead of spinning to a timeout.\n\n## Build\n\n```\nnpm install\nnpm run build\n```\n\nOutputs bundled extension assets to `dist/`. Use `npm run watch` for incremental rebuilds.\n\n## Test\n\n```\nnpm test\n```\n\nJest with jsdom. 151 tests across scanner, signatures, content script handlers, background worker state, popup UI, and observer suspension behavior.\n\n## Install\n\n1. `chrome://extensions`: enable Developer mode\n2. Load unpacked: select this project folder\n3. Visit any GitHub commit/PR page or open `tests/fixture.html`\n4. Click the Unicode Sentinel toolbar icon → **Scan this page**\n\n## Settings\n\nOpen the extension's options page from `chrome://extensions` to configure:\n\n- **Scan scope** - `code_blocks` (default) or `full_page`\n- **Inline markers** - wrap each invisible codepoint in a marker span (default on)\n- **Group threshold** - collapse runs of N consecutive same-tier codepoints into a single marker\n- **Banner T3 threshold** - minimum T3 count before the page banner appears\n- **Export options** - redact URLs, strip context bytes from exports\n- **Signature ruleset URL** - fetch updated signatures from a remote source\n\nSettings changes apply on the next scan without reloading the page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xcpu%2Funicode-sentinel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xcpu%2Funicode-sentinel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xcpu%2Funicode-sentinel/lists"}