Skip to content
KitploitKITPLOIT
ИнструментыЭксплойтыБлог
Log in
Отправить
ИнструментыЭксплойтыБлог
Отправить

Инструменты для хакинга, пентеста и кибербезопасности — ваш арсенал защиты!

Kitploit — это каталог инструментов для хакинга, кибербезопасности и пентестинга. Находите последние обновления проектов для поиска уязвимостей, анализа систем, автоматизации тестирования и усиления вашей безопасности.

ЛентыКонтактыКонфиденциальность© 2026 Kitploit

Каталог инструментов

Категории

Все категории
Loading categories
GlyphGuard — Zero-dependency CLI that audits text, source code, and domains for Unicode homoglyphs, invisible and bidi characters, and Trojan Source attacks, with JSON reports and CI exit-code gating. | Kitploit
Инструменты/GitHubGitHub/gitstq/glyphguard
Defensive ToolsStatic AnalysisVulnerability AnalysisCode AnalysisInformation GatheringPhishingWeb SecurityDevSecOpsUtilities & FrameworksDNS Analysis
GitHub
16 окт. 2026 г.Ещё не проверено
gitstq/glyphguard

GlyphGuard

Zero-dependency CLI that audits text, source code, and domains for Unicode homoglyphs, invisible and bidi characters, and Trojan Source attacks, with JSON reports and CI exit-code gating.

Репозиторий
Поделиться
Контент недоступен на запрошенном языке. Показываем английскую версию.

zero deps python license ci platform

🔥 GlyphGuard

Unicode Homoglyph & Invisible-Character Security Audit Engine

简体中文 · 繁體中文 · English

A lightweight, zero-dependency, pure-stdlib CLI: detects Unicode homoglyph phishing, invisible/format characters, and Trojan Source bidirectional attacks (CVE-2021-42574).


🎉 Introduction

Modern text is no longer just ASCII. Attackers can use Unicode homoglyphs to make аррle.com look like apple.com, zero-width characters to smuggle malicious logic into source code, or bidirectional control characters (Trojan Source, CVE-2021-42574) to visually reorder comments and code. These characters are invisible in editors yet bypass human code review.

GlyphGuard is a developer-facing security audit engine that performs a systematic Unicode health check on text, source code, and domain names — locally, offline, and dependency-free:

  • 🛡️ Homoglyph skeleton mapping (a curated subset of the UTS #39 idea) — reveal аррle → apple at a glance
  • 👻 Invisible / format / bidirectional-override detection (including the Trojan Source attack class)
  • 🌐 Mixed-script spoofing detection (Cyrillic, Greek, Armenian, etc. mixed with Latin)
  • 🧹 Unicode normalization & cleaning (NFC / NFD / NFKC / NFKD, stripping dangerous characters)
  • 📏 Terminal display width (East-Asian wide, combining, zero-width)
  • 🌍 Domain homograph audit (punycode decode + skeleton)
  • ⚙️ CI gate: severity-based exit codes (0 / 1 / 2)
  • 📦 Cross-platform single-file distribution (.pyz via zipapp, zero-dependency build)

Inspiration: Unicode Technical Reports #36 / #39, the Trojan Source research, and community work such as codebox/homoglyph. Distinct from the account's existing security tools (RepoShield, VulnScan, MCPShield, PromptShield) — similarity < 10%.


✨ Core Features

  • 🚀 Zero dependencies: only the Python standard library (unicodedata / argparse / json) — no pip install, runs anywhere offline.
  • 🎯 High precision: only well-established confusable mappings are included to reduce false positives; legitimate CJK+Latin mixes are automatically exempted.
  • 🔍 7 detection classes: invisible chars, bidirectional overrides, control chars, confusables, mixed scripts, non-normalized text, domain homographs.
  • 🤖 CI friendly: audit returns structured exit codes, ready to gate merges in GitHub Actions / GitLab CI.
  • 📄 Multi-format reports: human-readable (colored) text and machine-readable JSON.
  • 💻 Cross-platform: consistent on Windows / macOS / Linux; ships a .pyz single-file executable.
  • 🌏 Trilingual docs: Simplified Chinese, Traditional Chinese, and English.

🚀 Quick Start

Requirements

  • Python 3.9+ (standard library only, no third-party packages)

Three ways to use it

1. Single-file executable (recommended, zero install)

Download glyphguard-<os>.pyz for your platform from Releases:

python glyphguard-<os>.pyz audit ./src --recursive

2. Run from source

git clone https://github.com/gitstq/GlyphGuard.git
cd GlyphGuard
python -m glyphguard audit ./src --recursive

3. Editable install

pip install -e .
glyphguard audit ./src --recursive

📖 Usage Guide

CommandPurpose
audit PATH...Audit files / directories for Unicode risks
skeleton TEXTMap text to its ASCII skeleton
invisibles TEXTList invisible / control characters
normalize TEXTUnicode normalization or cleaning
escape TEXTEscape non-ASCII / control characters
unescape TEXTReverse escape
width TEXTCompute terminal display width
inspect TEXTPer-character Unicode introspection
domain NAMEAudit a domain for homographs
# Recursive directory audit
glyphguard audit ./src --recursive

# CI gate: non-zero exit on critical
glyphguard audit ./src -r --fail-on critical
echo $?   # 0=clean, 1=warning, 2=critical

# Homoglyph skeleton
glyphguard skeleton "аррle"      # apple

# Domain audit
glyphguard domain "аррle.com"    # Looks like (ASCII): apple.com

💡 Design & Roadmap

Why pure standard library?

Security tools often run in constrained / offline environments (CI runners, audit sandboxes). Third-party dependencies introduce supply-chain risk and install overhead. GlyphGuard is strictly zero-dependency, relying only on unicodedata (Python's built-in Unicode database), so it runs on any machine with Python.

Data strategy

  • Confusable table (data.py): hand-curated, unambiguous mappings (Cyrillic / Greek / Armenian look-alikes of ASCII), augmented by algorithmic ranges (fullwidth, mathematical letters, circled letters) to avoid false positives.
  • Script detection: Unicode character-name prefixes are used first (self-maintaining across Unicode versions), with an explicit range table only for unreliable cases.
  • Scoring: critical / warning / info weighted deductions (100-point scale), balancing severity and readability.

Roadmap

  • SARIF output for GitHub Code Scanning
  • Editor plugins (VS Code / Neovim) with live highlighting
  • pre-commit hook integration
  • Finer-grained homoglyph coverage for more scripts (Devanagari, Thai, …)
  • .glyphguard.toml config for allowlists and thresholds

📦 Packaging & Deployment

Build a single-file executable locally (zero-dependency)

python -m compileall -q glyphguard
python - <<'PY'
import shutil, zipapp
shutil.copytree("glyphguard", "stage/glyphguard")
zipapp.create_archive("stage", "dist/glyphguard.pyz",
                      main="glyphguard.cli:main",
                      interpreter="/usr/bin/env python3")
PY
python dist/glyphguard.pyz version

GitHub Actions automated build & release

Two workflows are included:

  • .github/workflows/ci.yml: syntax check + unittest on Windows / macOS / Linux × Python 3.9–3.13 (stdlib only).
  • .github/workflows/release.yml: on v* tags, builds .pyz on all three platforms via zipapp and auto-creates the GitHub Release with assets.
git tag v1.0.0
git push origin v1.0.0      # triggers build & release

📥 Download: GitHub Releases v1.0.0


🤝 Contributing

Contributions welcome! See CONTRIBUTING.md:

  • Zero-dependency principle (no third-party packages)
  • Angular commit convention (feat: / fix: / docs: …)
  • New confusable mappings require unit tests
  • Local syntax check only; full tests run in cloud CI

📄 License

Released under the MIT License.

Made with 🔥 by gitstq

Скачать инструмент

Похожие инструменты

  • wazuh

    Открытая платформа XDR и SIEM для обнаружения угроз, анализа журналов, мониторинга целостности файлов, оценки уязвимостей и управления соответствием требованиям на конечных точках и в облачных нагрузках.

  • suricata

    Движок сетевой IDS/IPS/NSM с открытым исходным кодом для инспекции трафика в реальном времени, обнаружения и предотвращения вторжений, анализа протоколов и охоты за угрозами на основе правил.

  • zeek

    Zeek — это мощный фреймворк для анализа сети, который сильно отличается от типичных IDS, которые вы, возможно, знаете.

Популярное

Смотреть все →

Откройте для себя самые используемые инструменты нашего сообщества.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    # Приложение GhostLock с запуском в один клик (CVE-2026-43499)

    745
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    Платформа IMSI Catcher, разворачивающая поддельную соту GSM для перехвата SMS, внедрения сообщений и отслеживания мобильных устройств

    732
  • 3

    Callisto

    jetp1ane/callisto

    Автоматизированный инструмент анализа уязвимостей бинарных файлов, который декомпилирует исполняемые файлы с помощью Ghidra, сканирует псевдо-C код с помощью Semgrep и проверяет находки с использованием GPT-3.5-Turbo для уменьшения ложных срабатываний.

    610
  • 4

    opencti

    opencti-platform/opencti

    Открытая платформа киберразведки угроз

    546
  • 5

    ARTEX

    baarai/artex

    Платформа автономного тестирования на проникновение на основе мультиагентной LLM с агентами-планировщиками и агентами-исполнителями, графами активов и исследования, записью MITM-трафика и повторной проверкой уязвимостей.

    414
  • 6

    DFRoot

    a2333c/dfroot

    Инструмент для получения root-прав на Android для Samsung Galaxy S25 Ultra (SM-S938B), который объединяет DirtyFrag CVE-2026-43284 и CVE-2026-43499 для автоматического получения root-прав при загрузке через KernelSU.

    413

Изучить все инструменты

Просмотрите нашу коллекцию инструментов

Смотреть все инструменты →