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)

    750
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    منصة IMSI Catcher تنشر خلية GSM مارقة لاعتراض الرسائل النصية القصيرة وحقن الرسائل وتتبع الأجهزة المحمولة

    739
  • 3

    Callisto

    jetp1ane/callisto

    أداة تحليل ثغرات ثنائية آلية تقوم بفك ترجمة الملفات التنفيذية عبر Ghidra، ومسح كود شبه-C باستخدام Semgrep، والتحقق من النتائج باستخدام GPT-3.5-Turbo لتقليل الإيجابيات الكاذبة.

    585
  • 4

    opencti

    opencti-platform/opencti

    منصة مفتوحة لاستخبارات التهديدات السيبرانية

    550
  • 5

    DFRoot

    a2333c/dfroot

    أداة root لنظام Android لهاتف Samsung Galaxy S25 Ultra (SM-S938B) تقوم بتسلسل DirtyFrag CVE-2026-43284 وCVE-2026-43499 للحصول على صلاحيات root تلقائيًا عند الإقلاع عبر KernelSU.

    414
  • 6

    ARTEX

    baarai/artex

    منصة اختبار اختراق مستقلة متعددة الوكلاء تعتمد على LLM، مع وكلاء تخطيط وتنفيذ، ومخططات للأصول والاستكشاف، وتسجيل حركة مرور MITM، وإعادة اختبار الثغرات.

    409

استكشف جميع الأدوات

تصفح مجموعتنا من الأدوات

عرض جميع الأدوات →