US10931714B2 - Domain name recognition method and domain name recognition device - Google Patents

Domain name recognition method and domain name recognition device Download PDF

Info

Publication number
US10931714B2
US10931714B2 US16/412,406 US201916412406A US10931714B2 US 10931714 B2 US10931714 B2 US 10931714B2 US 201916412406 A US201916412406 A US 201916412406A US 10931714 B2 US10931714 B2 US 10931714B2
Authority
US
United States
Prior art keywords
string
domain name
name recognition
vectors
clusters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active, expires
Application number
US16/412,406
Other versions
US20200220897A1 (en
Inventor
Pin-Cyuan Lin
Yu-Chun Wu
Ming-Kung SUN
Zong-Cyuan JHANG
Yi-Chung Tseng
Chiung-Ying Huang
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Acer Cyber Security Inc
Original Assignee
Acer Cyber Security Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Acer Cyber Security Inc filed Critical Acer Cyber Security Inc
Assigned to ACER CYBER SECURITY INCORPORATED reassignment ACER CYBER SECURITY INCORPORATED ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: HUANG, CHIUNG-YING, JHANG, ZONG-CYUAN, LIN, PIN-CYUAN, SUN, MING-KUNG, TSENG, YI-CHUNG, WU, YU-CHUN
Publication of US20200220897A1 publication Critical patent/US20200220897A1/en
Application granted granted Critical
Publication of US10931714B2 publication Critical patent/US10931714B2/en
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1441Countermeasures against malicious traffic
    • H04L63/1483Countermeasures against malicious traffic service impersonation, e.g. phishing, pharming or web spoofing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization
    • H04L61/1511
    • H04L61/306
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2119Authenticating web pages, e.g. with suspicious links
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/30Types of network names

Definitions

  • the disclosure relates to a domain name recognition method and a domain name recognition device, and more particularly to a domain name recognition method and a domain name recognition device capable of recognizing a malicious website.
  • the disclosure provides a domain name recognition method and a domain name recognition device capable of effectively recognizing a malicious website.
  • the domain name recognition method of the disclosure includes the following steps.
  • a first string of a first domain name and a second string of a second domain name are obtained.
  • Multiple characters of the first string and the second string are classified into multiple clusters, and multiple vectors corresponding to the clusters are generated, wherein each of the characters corresponds to one of the vectors.
  • a first vector set corresponding to the first string and a second vector set corresponding to the second string are generated.
  • a similarity of the first vector set and the second vector set is calculated using an algorithm.
  • the lengths of the first string and the second string are not necessarily the same.
  • each of the vectors is a unit vector and different clusters correspond to different vectors.
  • the algorithm is the dynamic time warping (DTW) algorithm.
  • the algorithm generates a matrix with dimensions corresponding to the length of the first string and the length of the second string, establishes the shortest distance path from the bottom leftmost element to the top rightmost element in the matrix, calculates the distance of one of the first vector set and one of the second vector set corresponding to each of the elements on the shortest distance path, and calculates the similarity according to the sum of each of the distances on the shortest distance path.
  • the value of each of the elements of the matrix is the sum of the distance of each of the elements and the smallest value of the value of element of the left element, the bottom element, and the bottom left element of each of the elements. Also, the shortest distance path is generated by selecting the element with the smallest element value in the left element, the bottom element, and the bottom left element of the top rightmost element from the top rightmost element of the matrix.
  • the disclosure provides a domain name recognition device, which includes a processor and a memory coupled to the processor.
  • the processor obtains a first string of a first domain name and a second string of a second domain name; classifies multiple characters of the first string and the second string into multiple clusters and generates multiple vectors corresponding to the clusters, wherein each of the characters corresponds to one of the vectors; generates a first vector set corresponding to the first string and a second vector set corresponding to the second string; and calculates a similarity of the first vector set and the second vector set using an algorithm.
  • the lengths of the first string and the second string are not necessarily the same.
  • each of the vectors is a unit vector and different clusters correspond to different vectors.
  • the algorithm is the DTW algorithm.
  • the algorithm generates a matrix with dimensions corresponding to the length of the first string and the length of the second string, establishes the shortest distance path of the bottom leftmost element to the top rightmost element in the matrix, calculates the distance of one of the first vector set and one of the second vector set corresponding to each of the elements on the shortest distance path, and calculates the similarity according to the sum of each of the distances on the shortest distance path.
  • the value of each of the elements of the matrix is the sum of the distance of each of the elements and the smallest value of the value of element of the left element, the bottom element, and the bottom left element of each of the elements. Also, the shortest distance path is generated by selecting the element with the smallest element value in the left element, the bottom element, and the bottom left element of the top rightmost element from the top rightmost element of the matrix.
  • the domain name recognition method and the domain name recognition device of the disclosure divide the characters of the domain name into multiple clusters and generate multiple vectors corresponding to the clusters, and further generate vector sets of the two domain names. Finally, the similarity of the two vector sets corresponding to the two domain names is calculated.
  • FIG. 1 is a block diagram of a domain name recognition device according to an embodiment of the disclosure.
  • FIG. 2 is a schematic diagram of clusters corresponding to vectors according to an embodiment of the disclosure.
  • FIG. 3A to FIG. 3C are examples of calculating a similarity of two strings according to an embodiment of the disclosure.
  • FIG. 4 is a flowchart of a domain name recognition method according to an embodiment of the disclosure.
  • the Euclidean distance, the Hamming distance, the Edit distance, and the Cosine similarity may be used to perform the sequence similarity calculation.
  • the Euclidean distance and the Hamming distance limit that the lengths of the two string vectors to be compared must be the same. However, in the context of domain name comparison, the lengths of various domain names are not the same most of the time.
  • the Edit distance compares the similarity between two strings by calculating the minimum number of edit(s) required to convert one string into the other string.
  • the minimum number of edit(s) does not effectively reflect the similarity of the domain names (for example, the minimum number of edit to convert “google” into “oogle” is 1 while the minimum number of edits to convert “google” into “g00g1e” is 3, but in fact the latter is a malicious website relatively more difficult to be detected by the user).
  • the Cosine similarity requires the two strings to be first converted into the same length through a specific vectorization method. However, the intermediate process during vectorization may easily cause the order of the domain names to be distorted.
  • FIG. 1 is a block diagram of a domain name recognition device according to an embodiment of the disclosure.
  • a domain name recognition device 100 includes a processor 110 and a memory 120 coupled to the processor 110 .
  • the processor 110 is, for example, a central processing unit (CPU), other programmable general purpose or special purpose microprocessor, a digital signal processor (DSP), a programmable controller, an application specific integrated circuit (ASIC), other similar component, or a combination of the above components.
  • the memory 120 is, for example, any form of fixed or movable random-access memory (RAM), a read-only memory (ROM), a flash memory, a hard disk drive (HDD), a solid-state drive (SSD), other similar component, or a combination of the above components.
  • the domain name recognition device 100 may be an electronic device such as a personal computer, a server, a notebook computer, a tablet computer, or a smart phone.
  • the processor 110 can find a malicious website disguised as a normal secure website by comparing the domain names and assist the user in detecting that he or she has been directed into a high-risk website before the user is victimized. Specifically, when a list of secure domain names (for example, a list of domain names of 500 global websites or a whitelist) is given, the processor 110 can compare the similarity between the string of domain name of a specific website and the strings of domain names of the whitelist before the user enters the specific website.
  • a list of secure domain names for example, a list of domain names of 500 global websites or a whitelist
  • the processor 110 can generate a warning notification to the user to alert the user that the website being visited may be a malicious website.
  • the processor 110 can classify characters in the string of domain name into multiple clusters. Multiple characters, which may be mistaken from one another by human eye, may be included in each of the clusters. Table 1 is an example of classifying characters into multiple clusters and Table 1 can be recorded in the memory 120 .
  • each of the clusters can also correspond to a unit vector, as shown in FIG. 2 .
  • FIG. 3A to FIG. 3C are examples of calculating similarity of two strings according to an embodiment of the disclosure.
  • the lengths of the first string and the second string are respectively assumed to be 3 and 2; a first character, a second character, and a third character of the first string are respectively classified into clusters C0, C1 and C2; and a first character and a second character of the second string are respectively classified into clusters C1 and C2.
  • the number of clusters is three (i.e. C0, C1, and C2).
  • the processor 110 can perform the following operations based on the DTW algorithm.
  • the processor 110 can generate a matrix 300 with dimensions corresponding to the lengths of the first string and the second string (i.e. a 2 ⁇ 3 matrix).
  • each of the element values is calculated by calculating the distance of two vectors corresponding to each of the elements plus the smallest value in the left element, the bottom element, and the bottom left element of the element.
  • the value of the element 301 is the distance 2 of C1 and C0 (the distance of two clusters is the sum of absolute value of subtraction of all corresponding elements of the two clusters).
  • the value of an element 302 is the sum 2 of the distance 0 of C1 and C1 plus the left element value 2 of the element 302 , as the element 302 does not have a bottom element and a bottom left element. Since the smallest value of a left element 304 , the bottom element 302 , and the bottom left element 301 of an element 303 is 2, and the distance of C1 and C2 corresponding to the element 303 is 2, the value of the element 303 is 2 plus 2 equals to 4. The values of other elements may be deduced so on and so forth.
  • the processor 110 After calculating the values of all of the elements in the matrix 300 , the processor 110 establishes the shortest distance path of the bottom leftmost element to the top rightmost element in the matrix. For example, the processor 110 finds the element 302 having the smallest value in the left element, the bottom element, and the bottom left element of the element 305 based on the element 305 , and finds the element 301 having the smallest value in the left element, the bottom element, and the bottom left element of the element 302 (the element 302 does not have a bottom element and a bottom left element, so the element 301 is directly found). Therefore, the element 301 , the element 302 , and the element 305 form the shortest distance path of the matrix 300 .
  • the processor 110 recalculates the distance of two clusters corresponding to all of the elements on the shortest distance path.
  • the value of the element 301 is recalculated as the distance 2 of C0 and C1
  • the value of the element 302 is recalculated as the distance 0 of C1 and C1
  • the value of the element 305 is recalculated as the distance 0 of C2 and C2.
  • FIG. 4 is a flowchart of a domain name recognition method according to an embodiment of the disclosure.
  • Step S 401 a first string of a first domain name and a second string of a second domain name are obtained.
  • Step S 402 multiple characters of the first string and the second string are classified into multiple clusters, and multiple vectors corresponding to the clusters are generated, wherein each of the characters corresponds to one of the vectors.
  • Step S 403 a first vector set corresponding to the first string and a second vector set corresponding to the second string are generated.
  • Step S 404 a similarity of the first vector set and the second vector set is calculated using an algorithm.
  • the domain name recognition method and the domain name recognition device of the disclosure divide the characters of the domain name into multiple clusters and generate multiple vectors corresponding to the clusters, and further generate vector sets of the two domain names. Finally, the similarity of the two vector sets corresponding to the two domain names is calculated. When the similarity is too high, a warning notification can be issued to alert the user.
  • the disclosure adopts the DTW algorithm for comparing the similarity of the strings. Since the algorithm is designed based on dynamic programming, the time taken for comparison can be significantly reduced.
  • the method of the disclosure relative to the blacklist of domain names may also prevent the situation whereby the blacklist is generated after the user has been victimized from happening.

Abstract

The disclosure provides a domain name recognition method and a domain name recognition device. The domain name recognition method includes the following steps. A first string of a first domain name and a second string of a second domain name are obtained. Multiple characters of the first string and the second string are classified into multiple clusters. Multiple vectors corresponding to the clusters are generated, wherein each of the characters corresponds to one of the vectors. A first vector set corresponding to the first string and a second vector set corresponding to the second string are generated. A similarity of the first vector set and the second vector set is calculated.

Description

CROSS-REFERENCE TO RELATED APPLICATION
This application claims the priority benefit of Taiwan application serial no. 108100647, filed on Jan. 8, 2019. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
BACKGROUND Technical Field
The disclosure relates to a domain name recognition method and a domain name recognition device, and more particularly to a domain name recognition method and a domain name recognition device capable of recognizing a malicious website.
Description of Related Art
Many malicious websites design their domain names much like secure websites (for example, google.com) which the user often visits. These malicious websites try to trick the user into providing his or her account and password, so as to access the user's online account. Once the account is successfully accessed, the user's personal data may be used to steal identity, defraud credit card, withdraw bank account deposit, browse the user's e-mails, and even change the password so that the user can no longer log into his or her online account.
Although we may detect these malicious websites using certain features (for example, domain name, webpage content, etc.), the degree of alertness varies with each user's understanding of the relative knowledge on information security. Most users often enter malicious websites without knowing, and when obvious abnormality is detected (for example, password being changed), relevant data are often already stolen.
In the past, the way to prevent malicious websites is to make use of the data feedbacked by users to sort out a list of suspicious websites. Then, information security experts are invited to carefully examine these websites and finally screen out the actual high-risk websites and blacklist them. However, such a process is very time consuming, causing the inability to update the blacklist in time when new malicious websites appear. In addition, a lot of information security experts are required to be involved in the sorting process, causing wastage of a great amount of human resources. Therefore, how to effectively recognize a malicious website should be a goal for persons skilled in the art to strive for.
SUMMARY
The disclosure provides a domain name recognition method and a domain name recognition device capable of effectively recognizing a malicious website.
The domain name recognition method of the disclosure includes the following steps. A first string of a first domain name and a second string of a second domain name are obtained. Multiple characters of the first string and the second string are classified into multiple clusters, and multiple vectors corresponding to the clusters are generated, wherein each of the characters corresponds to one of the vectors. A first vector set corresponding to the first string and a second vector set corresponding to the second string are generated. A similarity of the first vector set and the second vector set is calculated using an algorithm.
In an embodiment of the disclosure, the lengths of the first string and the second string are not necessarily the same.
In an embodiment of the disclosure, each of the vectors is a unit vector and different clusters correspond to different vectors.
In an embodiment of the disclosure, the algorithm is the dynamic time warping (DTW) algorithm.
In an embodiment of the disclosure, the algorithm generates a matrix with dimensions corresponding to the length of the first string and the length of the second string, establishes the shortest distance path from the bottom leftmost element to the top rightmost element in the matrix, calculates the distance of one of the first vector set and one of the second vector set corresponding to each of the elements on the shortest distance path, and calculates the similarity according to the sum of each of the distances on the shortest distance path.
In an embodiment of the disclosure, the value of each of the elements of the matrix is the sum of the distance of each of the elements and the smallest value of the value of element of the left element, the bottom element, and the bottom left element of each of the elements. Also, the shortest distance path is generated by selecting the element with the smallest element value in the left element, the bottom element, and the bottom left element of the top rightmost element from the top rightmost element of the matrix.
The disclosure provides a domain name recognition device, which includes a processor and a memory coupled to the processor. The processor obtains a first string of a first domain name and a second string of a second domain name; classifies multiple characters of the first string and the second string into multiple clusters and generates multiple vectors corresponding to the clusters, wherein each of the characters corresponds to one of the vectors; generates a first vector set corresponding to the first string and a second vector set corresponding to the second string; and calculates a similarity of the first vector set and the second vector set using an algorithm.
In an embodiment of the disclosure, the lengths of the first string and the second string are not necessarily the same.
In an embodiment of the disclosure, each of the vectors is a unit vector and different clusters correspond to different vectors.
In an embodiment of the disclosure, the algorithm is the DTW algorithm.
In an embodiment of the disclosure, the algorithm generates a matrix with dimensions corresponding to the length of the first string and the length of the second string, establishes the shortest distance path of the bottom leftmost element to the top rightmost element in the matrix, calculates the distance of one of the first vector set and one of the second vector set corresponding to each of the elements on the shortest distance path, and calculates the similarity according to the sum of each of the distances on the shortest distance path.
In an embodiment of the disclosure, the value of each of the elements of the matrix is the sum of the distance of each of the elements and the smallest value of the value of element of the left element, the bottom element, and the bottom left element of each of the elements. Also, the shortest distance path is generated by selecting the element with the smallest element value in the left element, the bottom element, and the bottom left element of the top rightmost element from the top rightmost element of the matrix.
Based on the above, the domain name recognition method and the domain name recognition device of the disclosure divide the characters of the domain name into multiple clusters and generate multiple vectors corresponding to the clusters, and further generate vector sets of the two domain names. Finally, the similarity of the two vector sets corresponding to the two domain names is calculated.
To make the aforementioned and other features of the disclosure more comprehensible, several embodiments accompanied with drawings are described in detail as follows.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of a domain name recognition device according to an embodiment of the disclosure.
FIG. 2 is a schematic diagram of clusters corresponding to vectors according to an embodiment of the disclosure.
FIG. 3A to FIG. 3C are examples of calculating a similarity of two strings according to an embodiment of the disclosure.
FIG. 4 is a flowchart of a domain name recognition method according to an embodiment of the disclosure.
DETAILED DESCRIPTION OF DISCLOSED EMBODIMENTS
In an embodiment, the Euclidean distance, the Hamming distance, the Edit distance, and the Cosine similarity may be used to perform the sequence similarity calculation. The Euclidean distance and the Hamming distance limit that the lengths of the two string vectors to be compared must be the same. However, in the context of domain name comparison, the lengths of various domain names are not the same most of the time. The Edit distance compares the similarity between two strings by calculating the minimum number of edit(s) required to convert one string into the other string. However, the minimum number of edit(s) does not effectively reflect the similarity of the domain names (for example, the minimum number of edit to convert “google” into “oogle” is 1 while the minimum number of edits to convert “google” into “g00g1e” is 3, but in fact the latter is a malicious website relatively more difficult to be detected by the user). The Cosine similarity requires the two strings to be first converted into the same length through a specific vectorization method. However, the intermediate process during vectorization may easily cause the order of the domain names to be distorted.
FIG. 1 is a block diagram of a domain name recognition device according to an embodiment of the disclosure.
Referring to FIG. 1, a domain name recognition device 100 according to an embodiment of the disclosure includes a processor 110 and a memory 120 coupled to the processor 110. The processor 110 is, for example, a central processing unit (CPU), other programmable general purpose or special purpose microprocessor, a digital signal processor (DSP), a programmable controller, an application specific integrated circuit (ASIC), other similar component, or a combination of the above components. The memory 120 is, for example, any form of fixed or movable random-access memory (RAM), a read-only memory (ROM), a flash memory, a hard disk drive (HDD), a solid-state drive (SSD), other similar component, or a combination of the above components. The domain name recognition device 100 may be an electronic device such as a personal computer, a server, a notebook computer, a tablet computer, or a smart phone.
In an embodiment, the processor 110 can find a malicious website disguised as a normal secure website by comparing the domain names and assist the user in detecting that he or she has been directed into a high-risk website before the user is victimized. Specifically, when a list of secure domain names (for example, a list of domain names of 500 global websites or a whitelist) is given, the processor 110 can compare the similarity between the string of domain name of a specific website and the strings of domain names of the whitelist before the user enters the specific website. If the similarity between the string of domain name of the specific website and the strings of domain names of the whitelist is too high, but the domain name of the specific website is not a domain name in the whitelist, the processor 110 can generate a warning notification to the user to alert the user that the website being visited may be a malicious website.
In an embodiment, the processor 110 can classify characters in the string of domain name into multiple clusters. Multiple characters, which may be mistaken from one another by human eye, may be included in each of the clusters. Table 1 is an example of classifying characters into multiple clusters and Table 1 can be recorded in the memory 120.
TABLE 1
Cluster Character
C0 other symbols
C1 o, 0
C2 P, q, g, 9
C3 i, 1, j, 1
Taking goo.gl as an example, each of the characters of goo.gl will be converted into the following code under the above classification:
g o o . g l
C2 C1 C1 C0 C2 C3
In addition, each of the clusters can also correspond to a unit vector, as shown in FIG. 2. In the above example, there are 4 clusters, so the unit vector corresponding to each of the clusters has 4 elements and the unit vectors corresponding to each of the clusters do not overlap with one other.
The following will illustrate how to compare the similarity of strings of two domain names.
FIG. 3A to FIG. 3C are examples of calculating similarity of two strings according to an embodiment of the disclosure.
Referring to FIG. 3A, for ease of understanding, the lengths of the first string and the second string are respectively assumed to be 3 and 2; a first character, a second character, and a third character of the first string are respectively classified into clusters C0, C1 and C2; and a first character and a second character of the second string are respectively classified into clusters C1 and C2. It is worth noting that in the examples of FIG. 3A to FIG. 3C, the number of clusters is three (i.e. C0, C1, and C2). The processor 110 can perform the following operations based on the DTW algorithm.
In particular, the processor 110 can generate a matrix 300 with dimensions corresponding to the lengths of the first string and the second string (i.e. a 2×3 matrix). In the matrix 300, each of the element values is calculated by calculating the distance of two vectors corresponding to each of the elements plus the smallest value in the left element, the bottom element, and the bottom left element of the element. For example, since an element 301 does not have a left element, a bottom element, and a bottom left element, the value of the element 301 is the distance 2 of C1 and C0 (the distance of two clusters is the sum of absolute value of subtraction of all corresponding elements of the two clusters). The value of an element 302 is the sum 2 of the distance 0 of C1 and C1 plus the left element value 2 of the element 302, as the element 302 does not have a bottom element and a bottom left element. Since the smallest value of a left element 304, the bottom element 302, and the bottom left element 301 of an element 303 is 2, and the distance of C1 and C2 corresponding to the element 303 is 2, the value of the element 303 is 2 plus 2 equals to 4. The values of other elements may be deduced so on and so forth.
Referring to FIG. 3B, after calculating the values of all of the elements in the matrix 300, the processor 110 establishes the shortest distance path of the bottom leftmost element to the top rightmost element in the matrix. For example, the processor 110 finds the element 302 having the smallest value in the left element, the bottom element, and the bottom left element of the element 305 based on the element 305, and finds the element 301 having the smallest value in the left element, the bottom element, and the bottom left element of the element 302 (the element 302 does not have a bottom element and a bottom left element, so the element 301 is directly found). Therefore, the element 301, the element 302, and the element 305 form the shortest distance path of the matrix 300.
Referring to FIG. 3C, the processor 110 recalculates the distance of two clusters corresponding to all of the elements on the shortest distance path. For example, the value of the element 301 is recalculated as the distance 2 of C0 and C1, the value of the element 302 is recalculated as the distance 0 of C1 and C1, and the value of the element 305 is recalculated as the distance 0 of C2 and C2.
Finally, processor 110 sums up the recalculated values of all of the elements on the shortest distance path and divides by the sum of lengths of the first string and the second string to obtain a final value. For example, the final value=(2+0+0)/(2+3)=0.4. The smaller the final value, the higher the similarity of the two strings. Therefore, the processor 110 can issue a warning notification to alert the user when the final value above is less than a threshold value.
FIG. 4 is a flowchart of a domain name recognition method according to an embodiment of the disclosure.
Referring to FIG. 4, in Step S401, a first string of a first domain name and a second string of a second domain name are obtained.
In Step S402, multiple characters of the first string and the second string are classified into multiple clusters, and multiple vectors corresponding to the clusters are generated, wherein each of the characters corresponds to one of the vectors.
In Step S403, a first vector set corresponding to the first string and a second vector set corresponding to the second string are generated.
In Step S404, a similarity of the first vector set and the second vector set is calculated using an algorithm.
In summary, the domain name recognition method and the domain name recognition device of the disclosure divide the characters of the domain name into multiple clusters and generate multiple vectors corresponding to the clusters, and further generate vector sets of the two domain names. Finally, the similarity of the two vector sets corresponding to the two domain names is calculated. When the similarity is too high, a warning notification can be issued to alert the user. The disclosure adopts the DTW algorithm for comparing the similarity of the strings. Since the algorithm is designed based on dynamic programming, the time taken for comparison can be significantly reduced. In addition, the method of the disclosure relative to the blacklist of domain names may also prevent the situation whereby the blacklist is generated after the user has been victimized from happening.
Although the disclosure has been disclosed in the above embodiments, the embodiments are not intended to limit the disclosure. It will be apparent to persons skilled in the art that various modifications and variations can be made to the disclosed embodiments without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the disclosure covers modifications and variations provided that they fall within the scope of the following claims and their equivalents.

Claims (10)

What is claimed is:
1. A domain name recognition method performed by hardware electronic device with a processor and memory, comprising: obtaining a first string of a first domain name and a second string of a second domain name; classifying a plurality of characters of the first string and the second string into a plurality of clusters, and generating a plurality of vectors corresponding to the plurality of clusters, wherein each of the plurality of characters corresponds to one of the plurality of vectors;
generating a first vector set corresponding to the first string and a second vector set corresponding to the second string; and calculating a similarity between the first vector set and the second vector set using an algorithm, wherein the algorithm is a dynamic time warping (DTW) algorithm.
2. The domain name recognition method according to claim 1, wherein lengths of the first string and the second string are not necessarily the same.
3. The domain name recognition method according to claim 1, wherein each of the plurality of vectors is a unit vector and different ones of the clusters correspond to different ones of the vectors.
4. The domain name recognition method according to claim 1, wherein the algorithm generates a matrix corresponding to a length of the first string and a length of the second string, establishes a shortest distance path of a bottom leftmost element to a top rightmost element in the matrix, calculates a distance of one of the first vector sets on and one of the second vector sets corresponding to each of the elements on the shortest distance path, and calculates a similarity according to a sum of each of the distances on the shortest distance path.
5. The domain name recognition method according to claim 4, wherein a value of each of the elements of the matrix is a sum of the distance of each of the elements plus a smallest value of a value of an element of a left element, a bottom element, and a bottom left element of each of the elements, and the shortest distance path is generated by selecting an element with a smallest element value in the left element, the bottom element, and the bottom left element of the top rightmost element from the top rightmost element of the matrix.
6. A domain name recognition device, comprising: a processor; and a memory coupled to the processor, wherein the processor obtains a first string of a first domain name and a second string of a second domain name; classifies a plurality of characters of the first string and the second string into a plurality of clusters, and generates a plurality of vectors corresponding to the plurality of clusters, wherein each of the plurality of characters corresponds to one of the plurality of vectors; generates a first vector set corresponding to the first string and a second vector set corresponding to the second string; and calculates a similarity between the first vector set and the second vector set using an algorithm, wherein the algorithm is a dynamic time warping (DTW) algorithm.
7. The domain name recognition device according to claim 6, wherein lengths of the first string and the second string are not necessarily the same.
8. The domain name recognition device according to claim 6, wherein each of the plurality of vectors is a unit vector and different ones of the clusters correspond to different ones of the vectors.
9. The domain name recognition device according to claim 6, wherein the algorithm generates a matrix corresponding to a length of the first string and a length of the second string, establishes a shortest distance path of a bottom leftmost element to a top rightmost element in the matrix, calculates a distance of one of the first vector sets on and one of the second vector sets corresponding to each of the elements on the shortest distance path, and calculates a similarity according to a sum of each of the distances on the shortest distance path.
10. The domain name recognition device according to claim 9, wherein a value of each of the elements of the matrix is a sum of the distance of each of the elements plus a smallest value of a value of an element of a left element, a bottom element, and a bottom left element of each of the elements, and the shortest distance path is generated by selecting an element with a smallest element value in the left element, the bottom element, and the bottom left element of the top rightmost element from the top rightmost element of the matrix.
US16/412,406 2019-01-08 2019-05-14 Domain name recognition method and domain name recognition device Active 2039-09-05 US10931714B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
TW108100647 2019-01-08
TW10810064.7 2019-01-08
TW108100647A TWI740086B (en) 2019-01-08 2019-01-08 Domain name recognition method and domain name recognition device

Publications (2)

Publication Number Publication Date
US20200220897A1 US20200220897A1 (en) 2020-07-09
US10931714B2 true US10931714B2 (en) 2021-02-23

Family

ID=66793782

Family Applications (1)

Application Number Title Priority Date Filing Date
US16/412,406 Active 2039-09-05 US10931714B2 (en) 2019-01-08 2019-05-14 Domain name recognition method and domain name recognition device

Country Status (3)

Country Link
US (1) US10931714B2 (en)
EP (1) EP3681121B1 (en)
TW (1) TWI740086B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11240257B2 (en) * 2019-03-07 2022-02-01 Lookout, Inc. Domain name and URL visual verification for increased security
US11757901B2 (en) * 2021-09-16 2023-09-12 Centripetal Networks, Llc Malicious homoglyphic domain name detection and associated cyber security applications

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200623026A (en) 2004-12-17 2006-07-01 Ind Tech Res Inst Pronunciation assessment method and system based on distinctive feature analysis
US20120042381A1 (en) 2010-08-10 2012-02-16 Manos Antonakakis Method and system for determining whether domain names are legitimate or malicious
TW201414260A (en) 2012-06-07 2014-04-01 Angelo Starink Malicious message detection and processing
US20140310811A1 (en) 2013-04-11 2014-10-16 F-Secure Corporation Detecting and Marking Client Devices
US20160065597A1 (en) 2011-07-06 2016-03-03 Nominum, Inc. System for domain reputation scoring
CN106911717A (en) 2017-04-13 2017-06-30 成都亚信网络安全产业技术研究院有限公司 A kind of domain name detection method and device
TW201737120A (en) 2016-04-12 2017-10-16 芋頭科技(杭州)有限公司 Semantic matching method and intelligent device
CN108282450A (en) 2017-01-06 2018-07-13 阿里巴巴集团控股有限公司 The detection method and device of abnormal domain name
US10134388B1 (en) * 2015-12-23 2018-11-20 Amazon Technologies, Inc. Word generation for speech recognition
US10277628B1 (en) * 2013-09-16 2019-04-30 ZapFraud, Inc. Detecting phishing attempts

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2849136A1 (en) * 2013-04-19 2014-10-19 Charbel Nassif Transformable furniture unit

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200623026A (en) 2004-12-17 2006-07-01 Ind Tech Res Inst Pronunciation assessment method and system based on distinctive feature analysis
US20120042381A1 (en) 2010-08-10 2012-02-16 Manos Antonakakis Method and system for determining whether domain names are legitimate or malicious
US20160065597A1 (en) 2011-07-06 2016-03-03 Nominum, Inc. System for domain reputation scoring
TW201414260A (en) 2012-06-07 2014-04-01 Angelo Starink Malicious message detection and processing
US20140310811A1 (en) 2013-04-11 2014-10-16 F-Secure Corporation Detecting and Marking Client Devices
US10277628B1 (en) * 2013-09-16 2019-04-30 ZapFraud, Inc. Detecting phishing attempts
US10134388B1 (en) * 2015-12-23 2018-11-20 Amazon Technologies, Inc. Word generation for speech recognition
TW201737120A (en) 2016-04-12 2017-10-16 芋頭科技(杭州)有限公司 Semantic matching method and intelligent device
CN108282450A (en) 2017-01-06 2018-07-13 阿里巴巴集团控股有限公司 The detection method and device of abnormal domain name
CN106911717A (en) 2017-04-13 2017-06-30 成都亚信网络安全产业技术研究院有限公司 A kind of domain name detection method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Search Report of Europe Counterpart Application", dated Dec. 10, 2019, p. 1-p. 7.
Kolatch et al., "Look Alike/Sound Alike Algorithms for Assessing Drug Name Similarities", 2004, pp. 1-20. (Year: 2004). *

Also Published As

Publication number Publication date
TWI740086B (en) 2021-09-21
US20200220897A1 (en) 2020-07-09
EP3681121B1 (en) 2023-08-09
TW202026904A (en) 2020-07-16
EP3681121A1 (en) 2020-07-15

Similar Documents

Publication Publication Date Title
US11244199B2 (en) User identity determining method, apparatus, and device
CN108650260B (en) Malicious website identification method and device
CN107818301B (en) Method and device for updating biological characteristic template and electronic equipment
Wang et al. Breaking bad: Detecting malicious domains using word segmentation
CN106055574A (en) Method and device for recognizing illegal URL
CN109657228B (en) Sensitive text determining method and device
US10931714B2 (en) Domain name recognition method and domain name recognition device
CN103067347B (en) Method for detecting phishing website and network device thereof
US20220100839A1 (en) Open data biometric identity validation
Haruta et al. Visual similarity-based phishing detection scheme using image and CSS with target website finder
WO2021072876A1 (en) Identification image classification method and apparatus, computer device, and readable storage medium
Zhou et al. Visual similarity based anti-phishing with the combination of local and global features
US20180349470A1 (en) Multi-distance similarity analysis with tri-point arbitration
US20220377107A1 (en) System and method for detecting phishing-domains in a set of domain name system (dns) records
CN106250755B (en) Method and device for generating verification code
CN110222790B (en) User identity identification method and device and server
WO2020113582A1 (en) Providing images with privacy label
CN114282019A (en) Target multimedia data searching method and device, computer equipment and storage medium
CN113656630A (en) Method, device and system for retrieving images
CN112182520B (en) Identification method and device of illegal account number, readable medium and electronic equipment
CN114513341B (en) Malicious traffic detection method, malicious traffic detection device, terminal and computer readable storage medium
CN111708988B (en) Infringement video identification method and device, electronic equipment and storage medium
CN111478877B (en) Domain name recognition method and domain name recognition device
AT&T
CN111401197B (en) Picture risk identification method, device and equipment

Legal Events

Date Code Title Description
FEPP Fee payment procedure

Free format text: ENTITY STATUS SET TO UNDISCOUNTED (ORIGINAL EVENT CODE: BIG.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

AS Assignment

Owner name: ACER CYBER SECURITY INCORPORATED, TAIWAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:LIN, PIN-CYUAN;WU, YU-CHUN;SUN, MING-KUNG;AND OTHERS;REEL/FRAME:049274/0322

Effective date: 20190510

STCF Information on status: patent grant

Free format text: PATENTED CASE