Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2021-42694 — Static analysis tool to detect homoglyph substitution attacks in source code, scanning Python identifiers for visually similar Unicode characters to prevent supply-chain vulnerabilities. | Kitploit
Tools/GitHubGitHub/k271266/cve-2021-42694
Static AnalysisVulnerability AnalysisCode AnalysisSupply Chain SecurityLearning & Education
GitHubk271266/cve-2021-42694

CVE-2021-42694

Static analysis tool to detect homoglyph substitution attacks in source code, scanning Python identifiers for visually similar Unicode characters to prevent supply-chain vulnerabilities.

View Repository
51 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2021-42694

This script implements a Homoglyph detection tool, primarily used to detect potential CVE-2021-42694 vulnerabilities in code. Let me explain its main functions in detail: Core Features:

  • Detect homoglyph substitution attacks in code
  • Scan identifiers such as variable names and function names in Python files
  • Identify visually similar but different Unicode characters Main Components:
  • HomoglyphDetector class: The main detector class
  • Data Acquisition: Fetch Confusables data from the Unicode official website
  • File Scanning: Support scanning single files or entire directories Workflow:
  • Automatically download Unicode Confusables data on first run
  • Parse the data and build a homoglyph comparison table
  • Scan identifiers in code files
  • Check each identifier for homoglyph characters
  • Generate a detailed detection report Specific Detection Process: Apply to homoglyph_de...

    例如检测这样的代码:

    user_name = "John" # 正常代码 usеr_name = "John" # 包含同形文字的代码(е 是西里尔字母) Output Results:
  • Display suspicious file paths
  • Display suspicious identifiers
  • Display specific homoglyph pairs (e.g., n -> η) Security Features:
  • Automatic update of Unicode data
  • Local caching mechanism
  • Detailed error handling The main purpose of this tool is to help developers discover potential homoglyph attacks in code, which can lead to:
  • Code obfuscation
  • Security vulnerabilities
  • Maintenance difficulties
  • Potential malicious code injection By using this tool, developers can:
  • Ensure that identifiers used in the code are safe
  • Prevent homoglyph substitution attacks
  • Improve code maintainability and security
Download Tool