hottub.patents
US 12,586,398 B2#3285262 Most CitedActiveUnited States (USPTO)Utility

Detecting a homoglyph in a string of characters

0Forward Citations (#3285262 Global)
0.0/yrCitation Velocity (#3285262 Global)
0.00Citation PageRank (#3285262 Global)
6Prior Art Cited
20Claims (3 Indep. · 17 Dep.)
9Drawings / Sheets

Abstract

A method for detecting a homoglyph in an input text includes receiving a first string of characters and deobfuscating the first string of characters to generate a second string of characters. When at least one character from the first string of characters has replaced another character in the second string of characters based on the deobfuscating, the method further includes determining a visual similarity value based on the first string of characters and the second string of characters and providing an indication whether a homoglyph is present in the first string of characters, based on the visual similarity value.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 0.

Claims (20 — 3 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented method, comprising: receiving, by a computing system comprising one or more processors, an electronic communication including a first string of characters; deobfuscating the first string of characters to generate a second string of characters; when at least one character from the first string of characters has replaced another character in the second string of characters based on the deobfuscating, determining a visual similarity value based on a weighted sum of a first visual similarity value and a second visual similarity value by: rendering the first string of characters to obtain a first image, rendering the second string of characters to obtain a second image, determining a number of pixels which are different between the first image and the second image to obtain the first visual similarity value, and measuring a structural similarity between the first image and the second image based on luminance, contrast, and structural characteristics of the first image and the second image, to obtain the second visual similarity value; and based on the visual similarity value indicating a homoglyph is present in the first string of characters, controlling a computing resource to take remedial action with respect to the electronic communication to improve security associated with the computing system.

  2. Claim 2Depends on #1

    The computer-implemented method of claim 1, wherein controlling the computing resource comprises controlling the computing resource to monitor a source of the homoglyph which transmits or provides content that includes the first string of characters.

  3. Claim 3Depends on #2

    The computer-implemented method of claim 2, the method further comprising: applying a convolutional filter to the first image and the second image to obtain a first feature map corresponding to the first image and a second feature map corresponding to the second image; and the visual similarity value is further based on a distance metric between first feature vectors associated with the first feature map and second feature vectors associated with the second feature map.

  4. Claim 4Depends on #3

    The computer-implemented method of claim 3, wherein the first image and the second image are rendered in a same font, and the method further comprises determining the homoglyph is present in the first string of characters when the visual similarity value is greater than a first threshold value and less than a second threshold value.

  5. Claim 5Depends on #1

    The computer-implemented method of claim 1, wherein controlling the computing resource comprises controlling the computing resource to update a deobfuscation library by identifying, based on the homoglyph, new visually-similar characters to add to mappings stored by the deobfuscation library.

  6. Claim 6Depends on #1

    The computer-implemented method of claim 1, wherein controlling the computing resource comprises controlling the computing resource to moderate content relating to the electronic communication which includes the first string of characters.

  7. Claim 7Depends on #1

    The computer-implemented method of claim 1, wherein the first image and the second image are rendered in a same font.

  8. Claim 8Depends on #1

    The computer-implemented method of claim 1, further comprising determining the homoglyph is present in the first string of characters when the visual similarity value is greater than a first threshold value and less than a second threshold value.

  9. Claim 9Depends on #1

    The computer-implemented method of claim 1, wherein the visual similarity value is further based on a number of characters from the first string of characters which have replaced another character in the second string of characters based on the deobfuscating.

  10. Claim 10Depends on #1

    The computer-implemented method of claim 1, wherein based on the visual similarity value indicating the homoglyph is present in the first string of characters, the method further comprises at least one of: providing a notification indicating the first string of characters includes the homoglyph, classifying the electronic communication as spam or unsolicited, or removing the first string of characters from the electronic communication.

  11. Claim 11Depends on #1

    The computer-implemented method of claim 1, wherein the first string of characters is an input to a messaging platform, and based on the visual similarity value indicating the homoglyph is present in the first string of characters, controlling the computing resource comprises preventing the first string of characters from being presented on the messaging platform or removing the first string of characters from the messaging platform.

  12. Claim 12Depends on #1

    The computer-implemented method of claim 1, wherein deobfuscating the first string of characters to generate the second string of characters comprises applying a mapping to each character from among the first string of characters to generate the second string of characters, and the method further comprises determining whether at least one character from among the first string of characters has replaced another character from among the second string of characters based on whether the mapping indicates at least one character from among the first string of characters is a substitute for another character from among the second string of characters.

  13. Claim 13Depends on #1

    The computer-implemented method of claim 1, further comprising: applying an optical character recognition (OCR) process to the first image to obtain a first OCR string of characters and to the second image to obtain a second OCR string of characters; and calculating a Hamming distance between the first OCR string of characters and the second OCR string of characters, and wherein the visual similarity value is further based on the Hamming distance between the first OCR string of characters and the second OCR string of characters.

  14. Claim 14Depends on #13

    The computer-implemented method of claim 13, wherein the first image and the second image are rendered in a same font, and the method further comprises determining the homoglyph is present in the first string of characters when the visual similarity value is greater than a first threshold value and less than a second threshold value.

  15. Claim 15Independent Claim

    A computing system, comprising: one or more processors; and one or more non-transitory computer-readable media that store instructions that, when executed by the one or more processors, cause the computing system to perform operations, the operations comprising: receiving an electronic communication including a first string of characters, deobfuscating the first string of characters to generate a second string of characters, when at least one character from the first string of characters has replaced another character in the second string of characters based on the deobfuscating, determining a visual similarity value based on a weighted sum of a first visual similarity value and a second visual similarity value by: rendering the first string of characters to obtain a first image, rendering the second string of characters to obtain a second image, determining a number of pixels which are different between the first image and the second image to obtain the first visual similarity value, and measuring a structural similarity between the first image and the second image based on luminance, contrast, and structural characteristics of the first image and the second image, to obtain the second visual similarity value, and based on the visual similarity value indicating a homoglyph is present in the first string of characters, controlling a computing resource to take remedial action with respect to the electronic communication to improve security associated with the computing system.

  16. Claim 16Depends on #15

    The computing system of claim 15, wherein the first image and the second image are rendered in a same font.

  17. Claim 17Depends on #15

    The computing system of claim 15, wherein as the number of pixels different between the first image and the second image decreases, the first visual similarity value increases.

  18. Claim 18Depends on #15

    The computing system of claim 15, wherein the visual similarity value is further based on a number of characters from the first string of characters which have replaced another character in the second string of characters based on the deobfuscating.

  19. Claim 19Depends on #15

    The computing system of claim 15, wherein based on the visual similarity value indicating the homoglyph is present in the first string of characters, the operations further comprise at least one of: providing a notification indicating the first string of characters includes the homoglyph, classifying the electronic communication as spam or unsolicited, or removing the first string of characters from the electronic communication.

  20. Claim 20Independent Claim

    A computer-implemented method, comprising: receiving, by a computing system comprising one or more processors, an electronic communication including a first string of characters; deobfuscating the first string of characters to generate a second string of characters; determining whether at least one character from the first string of characters has replaced another character in the second string of characters based on the deobfuscating; when at least one character from the first string of characters has replaced another character in the second string of characters, rendering the first string of characters to obtain a first image and rendering the second string of characters to obtain a second image; determining a visual similarity value between the first image and the second image based on a weighted sum of a first visual similarity value and a second visual similarity value by: determining a number of pixels which are different between the first image and the second image to obtain the first visual similarity value, and measuring a structural similarity between the first image and the second image based on luminance, contrast, and structural characteristics of the first image and the second image, to obtain the second visual similarity value; and when a predetermined condition is satisfied based on the visual similarity value to indicate a homoglyph is present in the first string of characters, controlling a computing resource to take remedial action with respect to the electronic communication to improve security associated with the computing system.

Technical Overview & Description

FIELD The disclosure relates generally to methods and computing systems for detecting the presence of a homoglyph in an input text string. For example, the disclosure relates to methods and computing systems for determining whether a string of characters (e.g., included as part of a textual input or entry) received by a computing system includes a homoglyph. BACKGROUND Homoglyphs are characters or symbols that are visually similar or identical to another character or symbol but are treated as distinct characters by computing systems. For example, a homoglyph may have a different Unicode code point than another character which is visually similar. For example, the digit “ 0 ” and the capital letter “ O ” are homoglyphs because they look very similar but have different Unicode code points. In some circumstances, homoglyphs can be used for malicious purposes, such as for phishing attacks, bypassing spam filters, creating links to illegitimate websites, and the like. SUMMARY Aspects and advantages of embodiments of the disclosure will be set forth in part in the following description, or can be learned from the description, or can be learned through practice of the example embodiments. In one or more example embodiments, a computer implemented method for detecting the presence of a homoglyph is provided. For example, the method includes receiving a first string of characters and deobfuscating the first string of characters to generate a second string of characters. When at least one character from the first string of characters has replaced another character in the second string of characters based on the deobfuscating, the method further includes determining a visual similarity value based on the first string of characters and the second string of characters and providing an indication whether a homoglyph is present in the first string of characters, based on the visual similarity value. In some implementations, determining the visual similarity value comprises: render

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (6)

Non-Patent Literature (10)

  • Plagiarism Detection (Year: 2017).
  • ShamFinder (Year: 2017).
  • Faisal et al.,
  • “
  • Plagiarism detection in texts obfuscated with homoglyphs.
  • ”
  • In Advances in Information Retrieval: 39th European Conference on IR Research, ECIR 2017, Aberdeen, UK, Apr. 8-13, 2017, Proceedings 39, pp. 669-675, Springer International Publishing, 2017.
  • International Search Report and Written Opinion for Application No. PCT/US2023/031969, mailed Jan. 2, 2024, 13 pages.
  • Suzuki et al.,
  • “