Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
reveal — Detects Trojan Source bidi-override and zero-width control characters in source text, pinpointing offending codepoints while accepting legitimate non-ASCII, with a CI-proven two-way test. | Kitploit
Tools/GitHubGitHub/unskilled0ne/reveal
Defensive ToolsStatic AnalysisVulnerability AnalysisCode AnalysisDevSecOpsSupply Chain SecurityLearning & Education
GitHubunskilled0ne/reveal

reveal

Detects Trojan Source bidi-override and zero-width control characters in source text, pinpointing offending codepoints while accepting legitimate non-ASCII, with a CI-proven two-way test.

View Repository
Dec 4, 2026Not yet reviewed
Share

reveal

Hidden bidi / invisible control characters detected — a Trojan Source attack proven caught both ways in CI.

"Trojan Source" (CVE-2021-42574) hides logic in plain sight: Unicode bidirectional overrides (U+202A–U+202E, U+2066–U+2069) reorder how a line is displayed without changing its logical bytes, so a reviewer sees if access == "user" while the compiler runs something else; zero-width characters smuggle differences into identifiers and URLs. All these codepoints are ≥ U+0020, so a naive "no ASCII control characters" check passes them. reveal shows that gap, then shows a dangerous-set scan catching the attack — on every push.

is_clean_ascii_only_unsafe('access_level = "user"‮ };) nimda( fi')  ─► True   → MISSED (the risk)
is_clean_safe(             same line)                                 ─► False  → CAUGHT
find_dangerous(            same line)  ─► [(21, "U+202E", "RIGHT-TO-LEFT OVERRIDE")]
is_clean_safe("admin​istrator")   ─► False (zero-width space)     → CAUGHT
is_clean_safe("café déjà vu — façade") ─► True  (legit non-ASCII)       → OK

How it works

reveal.py:

  • is_clean_safe(text) — returns False if the text contains any character in DANGEROUS (bidi embeddings/overrides/isolates and common zero-width formatting characters).
  • find_dangerous(text) — reports each hit as (index, "U+XXXX", name) so a linter can point at the exact offending codepoint.
  • is_clean_ascii_only_unsafe — the insufficient check (ASCII control chars only), included only to demonstrate that it misses the attack.

Run it

Requires Docker.

bash tests/run_bidi.sh

Expected tail:

 reveal trojan source: 10 passed, 0 failed

Layout

reveal.py            is_clean_safe (dangerous-set scan) + find_dangerous + is_clean_ascii_only_unsafe (the demo)
tests/test_reveal.py the two-way proof (bidi override + zero-width pass the naive check, then caught; benign accepted)
tests/run_bidi.sh    runs it in a pinned Python image
.github/workflows/   CI: the Trojan-Source proof + shellcheck

Limits (what this does and does not prove)

  • Accept legitimate non-ASCII; reject only the dangerous controls. Don't ban all non-ASCII — real names, comments and strings use it. This flags the specific formatting/zero-width codepoints, so café is fine and a hidden U+202E is not.
  • Scope the policy to the surface. Source code and identifiers should usually reject these outright; free-text that genuinely needs bidi (mixed RTL/LTR prose) may need isolates — in that case require balanced isolates rather than a blanket ban.
  • Pair with normalization and homoglyph checks. Confusable look-alike letters are a different trick (see the companion glyph Unicode-normalization repo); together they cover visual spoofing and hidden reordering.
  • is_clean_ascii_only_unsafe is a teaching device — it must not be your only gate.

License

MIT — see LICENSE.

Download Tool

Related Tools

  • wazuh

    Open-source XDR and SIEM platform for threat detection, log analysis, file integrity monitoring, vulnerability assessment, and compliance management across endpoints and cloud workloads.

  • suricata

    Open-source network IDS/IPS/NSM engine for real-time traffic inspection, intrusion detection and prevention, protocol analysis, and rule-based threat hunting.

  • zeek

    Zeek is a powerful network analysis framework that is much different from the typical IDS you may know.

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    745
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    732
  • 3

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    610
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    546
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    414
  • 6

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    413

Explore all tools

Browse our collection of tools

View all tools →