# US 2024/0388603 A1 · Backdoor attack method and apparatus for malicious url detection system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0388603 A1
- Document ID: US20240388603A1
- Status: Published application
- Kind: A1
- Application number: 18/427,298
- Filed: 2024-01-30
- Published: 2024-11-21
- Earliest claimed: 2023-05-18
- Assignees: Tsinghua University
- Applicants: Tsinghua University
- Inventors: Ke XU; Yi ZHAO; Jiahua CHEN
- Web page: https://patentgrep.com/patent/US20240388603A1

## CPC

- H04L 63/1483: {service impersonation, e.g. phishing, pharming or web spoofing (detection of rogue wireless access points H04W12/12)}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 2463/145: Detection or countermeasures against cache poisoning
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The disclosure provides a backdoor attack method and apparatus for a malicious URL detection system. The backdoor attack method includes: obtaining original URL samples of backdoor URL samples to be generated; determining position information of separator slashes in each URL of the original URL samples, and obtaining a position number result by numbering the position information; determining a backdoor attack mode of the malicious URL detection system based on the position number result, and generating the backdoor URL samples corresponding to the original URL samples by using the backdoor attack mode; and constructing a training set based on a preset ratio of the backdoor URL samples, training a neural network model by using the training set, and testing an attack strength of the malicious URL detection system in the backdoor attack mode by using the trained neural network model to obtain a real-time attack success rate.

## Claims

### Claim 1

A backdoor attack method for a malicious uniform resource locator (URL) detection system, comprising:
obtaining original URL samples of backdoor URL samples to be generated;
determining position information of separator slashes in each URL of the original URL samples, and obtaining a position number result by numbering the position information;
determining a backdoor attack mode of the malicious URL detection system based on the position number result, and generating the backdoor URL samples corresponding to the original URL samples by using the backdoor attack mode; and
constructing a training set based on a preset ratio of the backdoor URL samples, training a neural network model by using the training set, and testing an attack strength of the malicious URL detection system in the backdoor attack mode by using the trained neural network model to obtain a real-time attack success rate.

### Claim 2 (depends on 1)

The method of claim 1, wherein obtaining the original URL samples of the backdoor URL samples to be generated comprises:
obtaining initial URL samples by re-collecting URL samples and labels corresponding to the URL samples; and
obtaining the original URL samples of the backdoor URL samples to be generated by filtering the initial URL samples.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the backdoor attack mode of the malicious URL detection system based on the position number result, and generating the backdoor URL samples corresponding to the original URL samples by using the backdoor attack mode, comprise:
determining positions of a first number of separator slashes selected from the URLs of the original URL samples and determining a position serial number corresponding to each selected separator slash;
determining the backdoor attack mode of the malicious URL detection system based on the position serial numbers and a second number of separator slashes; and
generating the backdoor URL samples corresponding to all the original URL samples based on the determined backdoor attack mode.

### Claim 4 (depends on 3)

The method of claim 3, wherein constructing the training set based on the preset ratio of the backdoor URL samples, training the neural network model by using the training set, and testing the attack strength of the malicious URL detection system in the backdoor attack mode by using the trained neural network model to obtain the real-time attack success rate, comprise:
obtaining word features, character features and statistical features of the URL sample in the training set;
constructing the neural network model for processing the character features and the word features, and training the neural network model to obtain a trained neural network model; and
constructing a multi-feature representation of the word features, the character features and the statistical features of the URL sample, and obtaining a test result of the real-time attack success rate by inputting the multi-feature representation to the trained neural network model for testing the attack strength of the malicious URL detection system in the backdoor attack mode.

### Claim 5 (depends on 4)

The method of claim 4, after obtaining the real-time attack success rate, further comprising:
updating the backdoor attack mode in real time based on the real-time attack success rate, to enable the real-time attack success rate in the updated backdoor attack mode to reach a preset attack success rate.

### Claim 6

An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, and
when the instructions are executed by the at least one processor, the at least one processor is configured to:
obtain original URL samples of backdoor URL samples to be generated;
determine position information of separator slashes in each URL of the original URL sample, and obtain a position number result by numbering the position information;
determine a backdoor attack mode of a malicious URL detection system based on the position number result, and generate the backdoor URL samples corresponding to the original URL samples by using the backdoor attack mode; and
establish a training set based on a preset ratio of the backdoor URL samples, train a neural network model by using the training set, and test an attack strength of the malicious URL detection system in the backdoor attack mode by using the trained neural network model to obtain a real-time attack success rate.

### Claim 7 (depends on 6)

The electronic device of claim 6, wherein the at least one processor is further configured to:
obtain initial URL samples by re-collecting URL samples and labels corresponding to the URL samples; and
obtain the original URL samples of the backdoor URL samples to be generated by filtering the initial URL samples.

### Claim 8 (depends on 6)

The electronic device of claim 6, wherein the at least one processor is further configured to:
determine positions of a first number of separator slashes selected from the URLs of the original URL samples and determine a position serial number corresponding to each selected separator slash;
determine the backdoor attack mode of the malicious URL detection system based on the position serial numbers and a second number of separator slashes; and
generate the backdoor URL samples corresponding to all the original URL samples based on the determined backdoor attack mode.

### Claim 9 (depends on 8)

The electronic device of claim 8, wherein the at least one processor is further configured to:
obtain word features, character features and statistical features of the URL sample in the training set;
construct the neural network model for processing the character features and the word features, and train the neural network model to obtain a trained neural network model; and
construct a multi-feature representation of the word features, the character features and the statistical features of the URL sample, and obtain a test result of real-time attack success rate by inputting the multi-feature representation to the trained neural network model for testing the attack strength of the malicious URL detection system in the backdoor attack mode.

### Claim 10 (depends on 9)

The electronic device of claim 9, wherein the at least one processor is further configured to:
update the backdoor attack mode in real time based on the real-time attack success rate, to enable the real-time attack success rate in the updated backdoor attack mode to reach a preset attack success rate.

### Claim 11

A non-transitory computer-readable storage medium, having computer instructions stored thereon, wherein the computer instructions are configured to cause a computer to execute a backdoor attack method for a malicious URL detection system, the backdoor attack method comprises:
obtaining original URL samples of backdoor URL samples to be generated;
determining position information of separator slashes in each URL of the original URL samples, and obtaining a position number result by numbering the position information;
determining a backdoor attack mode of the malicious URL detection system based on the position number result, and generating the backdoor URL samples corresponding to the original URL samples by using the backdoor attack mode; and
constructing a training set based on a preset ratio of the backdoor URL samples, training a neural network model by using the training set, and testing an attack strength of the malicious URL detection system in the backdoor attack mode by using the trained neural network model to obtain a real-time attack success rate.

### Claim 12 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein obtaining the original URL samples of the backdoor URL samples to be generated comprises:
obtaining initial URL samples by re-collecting URL samples and labels corresponding to the URL samples; and
obtaining the original URL samples of the backdoor URL samples to be generated by filtering the initial URL samples.

### Claim 13 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein determining the backdoor attack mode of the malicious URL detection system based on the position number result, and generating the backdoor URL samples corresponding to the original URL samples by using the backdoor attack mode, comprise:
determining positions of a first number of separator slashes selected from the URLs of the original URL samples and determining a position serial number corresponding to each selected separator slash;
determining the backdoor attack mode of the malicious URL detection system based on the position serial numbers and a second number of separator slashes; and
generating the backdoor URL samples corresponding to all the original URL samples based on the determined backdoor attack mode.

### Claim 14 (depends on 13)

The non-transitory computer-readable storage medium of claim 13, wherein constructing the training set based on the preset ratio of the backdoor URL samples, training the neural network model by using the training set, and testing the attack strength of the malicious URL detection system in the backdoor attack mode by using the trained neural network model to obtain the real-time attack success rate, comprise:
obtaining word features, character features and statistical features of the URL sample in the training set;
constructing the neural network model for processing the character features and the word features, and training the neural network model to obtain a trained neural network model; and
constructing a multi-feature representation of the word features, the character features and the statistical features of the URL sample, and obtaining a test result of the real-time attack success rate by inputting the multi-feature representation to the trained neural network model for testing the attack strength of the malicious URL detection system in the backdoor attack mode.

### Claim 15 (depends on 14)

The non-transitory computer-readable storage medium of claim 14, wherein, after obtaining the real-time attack success rate, the method further comprises:
updating the backdoor attack mode in real time based on the real-time attack success rate, to enable the real-time attack success rate in the updated backdoor attack mode to reach a preset attack success rate.
