A method for acquiring embedded advertisements in multi-device web pages and identifying maliciousness
Through the cross-browser identification process and multi-dimensional evaluation method, the shortcomings of cross-platform advertising identification and malicious labeling are solved, the risk assessment of multi-device web advertising is realized, and the identification accuracy and cyberspace governance capabilities are improved.
Patent Information
- Application Number
- CN202210606165.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-05-31
AI Technical Summary
The existing technology has few and incomplete methods for cross-platform and cross-browser advertising identification and malicious labeling, making it difficult to effectively identify and evaluate the malicious nature of advertisements embedded in multi-device web pages.
By capturing resource records from the browser's HTML text, using regular expressions to filter advertising resources, parsing images and jump links, classifying incitement features and advertising content, combined with the analytic hierarchy process to weightedly assess the maliciousness of ads, we achieve cross-platform Advertising Risk Assessment.
It achieves more comprehensive cross-browser advertising scanning and multi-channel advertising information extraction, provides a multi-dimensional maliciousness assessment method, improves the ability to identify potential harm to end users, and assists national cyberspace governance.
Smart Images

Figure CN114880541B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to a method for crawling browser advertisements of different manufacturers on different platforms (mainly computer and mobile terminals), and marking advertisement risks from multiple dimensions to achieve risk classification of advertisements. Background Art
[0002] In recent years, with the development of Internet technology, online advertising has become an important part of the advertising market. As an important way to deliver Internet advertising, browsers have many advantages such as wide coverage and fast dissemination. It is particularly important to identify and assess the malicious risks of browser advertisements. Accurately controlling online advertisements, especially timely discovering malicious advertisements, can provide a certain reference for national cyberspace governance and has practical research value.
[0003] Currently, many websites have preferences for advertising, which means that advertising resources, especially malicious resources, will pop up only when using their designated browsers. At the same time, browser advertising strategies sometimes differ in user identification. Therefore, it is urgent to design a universal method for obtaining embedded ads in multi-device web pages and identifying malicious ads. Summary of the invention
[0004] In order to solve the technical problems that the prior art has few, imperfect and unsystematic methods for cross-platform and cross-browser advertisement identification and maliciousness labeling, the present invention provides a method for acquiring and identifying maliciousness of embedded advertisements in multi-device web pages using a standard process to evaluate the maliciousness risk of advertisements.
[0005] The present invention provides a method for acquiring embedded advertisements in a multi-device web page and identifying maliciousness, the steps of which include:
[0006] Step 1: Capture resource records from the browser HTML text, filter out advertising resources using regular expressions according to advertising judgment rules, and parse the image resources and jump link resources in the advertising resources respectively;
[0007] Step 2: Classify the analysis results according to different dimensions, including: the classification process of incitement features and the classification process of advertising content;
[0008] Step 3: For the classification results of each dimension in step 2, assign weighted values according to the importance of the dimension, mark the maliciousness of the advertisement, and conduct risk assessment.
[0009] Preferably, the step 1 specifically comprises:
[0010] Step 1: Crawling process of multi-channel information sources;
[0011] Step 2: Advertisement identification process;
[0012] Step 3: Advertisement text extraction process;
[0013] Step 4: Web page content acquisition process;
[0014] Step 5: Format preprocessing process.
[0015] Preferably, the specific steps of step 1 include:
[0016] Step 11: Import the information source from the target resource library, perform operations such as cleaning and deduplication on the information source, and obtain the processed information source set S source ;
[0017] Step 12: Import the feature set from the browser feature library, perform Cartesian product combination on the platform feature and the browser identifier, and obtain the feature set S feature , and the feature set S feature With s source Cartesian product combination is used to construct the crawled message package set s message ;
[0018] Step 13, S message For any message packet message, import the corresponding crawling rule R from the crawling strategy library message , set the waiting time T wait , initiate a resource request to the target source;
[0019] Step 14: Determine whether the resource request has received a result. If a response message is received, go to step 5, otherwise delay T wait Then go to step 13;
[0020] Step 15: parse the response message obtained from the resource request and extract and integrate it into a resource set S according to the keywords resource .
[0021] Preferably, the specific steps of step 2 include:
[0022] Step 21: Import the decision rule R from the decision rule library detect ;
[0023] Step 22, take S resource The resource to be determined enters the advertisement identification module;
[0024] Step 23: For resource resource, use the decision rule set R detect Perform regular matching. If any rule matches the resource successfully, the resource is considered to be an advertising resource and the process goes to step 24. Otherwise, take S resourceThe next resource to be determined jumps to step 23;
[0025] Step 24: Record the picture information corresponding to the resource and store it in the picture object database DB img If the resource record has a jump connection, go to step 25, otherwise go to step 26;
[0026] Step 25: Record the jump link corresponding to the resource record resource and store it in the database DB link middle;
[0027] Step 26, if S resource If there is a resource to be determined, take resource and go to step 23.
[0028] Preferably, the specific steps of step 3 include:
[0029] Step 31: Get the image object database DB img The image object img to be extracted enters the OCR text recognition module and goes to step 32;
[0030] Step 32, check whether the OCR recognition module outputs the recognition result, if there is a result, go to step 33, otherwise delay T detect Then go to step 32;
[0031] Step 33: Integrate the text resources in the result, remove blanks, escape characters, etc., and retain the key feature string SK of the image img .
[0032] Preferably, the specific steps of step 4 include:
[0033] Step 41, check the legitimacy of the advertisement jump link, if there is a legitimate service IP address, go to step 42;
[0034] Step 42, initiate a GET request to the link to obtain the HTTP hypertext resource. If the request obtains a response result, go to step 43;
[0035] Step 43, parsing the hypertext resource obtained by the request, and extracting description field information such as Title from it;
[0036] Step 44: Integrate the description information, clean up the redundancy, discard the incomplete data, and retain the key feature string SK link .
[0037] Preferably, the specific steps of step 5 include:
[0038] Step 51: Import the key feature string SK of the advertisement image img, if the advertisement has a jump link, go to step 52, otherwise go to step 54;
[0039] Step 52: Import the advertisement link key feature string SK link , and perform feature integration process, see step 53;
[0040] Step 53: SK img and SK link The contents are merged, synonymous characters, redundant contents and other texts are removed, and the process goes to step 54;
[0041] Step 54: segment the feature string, extract the key words that appear in the advertisement, and form a feature list L of the advertisement. feature , for subsequent analysis.
[0042] Preferably, the specific steps of the incitement feature classification process in step 2 include:
[0043] Step 61, initializing the threshold value TD of the incitement index low , TD high ;
[0044] Step 62, import feature list L feature ;
[0045] Step 63, import feature list L feature Any attribute a i The frequency of occurrence of inflammatory words F a , and calculate the provocative index L of the advertising feature list L score , the calculation formula is
[0046] Step 64: Calculate the incitement index L according to the incitement index threshold. score Discretization processing, when L score <TD low When L score >TD high When L is found to be highly inflammatory, it is deemed that L is a highly inflammatory advertisement; otherwise, it is deemed that L is a generally inflammatory advertisement.
[0047] Preferably, the specific steps of the advertisement content classification process in step 2 include:
[0048] Step 71, import feature list L feature ;
[0049] Step 72, import feature list L feature Any attribute a i In each category k The conditional probability P(a i |yk ), according to the naive Bayes posterior probability formula, the advertising feature list L corresponding to each category y is calculated k The belonging probability list P(y k |L), go to step 73;
[0050] Step 73: Take the category y corresponding to the maximum probability of belonging to each category in the advertisement feature list L k As the content classification result of the advertisement feature list L, that is, P(y k |x)=max(P(y1|x),P(y2|x),…,P(y n |x)), x∈y k .
[0051] Preferably, the step three specifically comprises:
[0052] Step 81, weighting the classification results of each dimension according to the importance of the dimension, and calculating the maliciousness of each marked advertisement;
[0053] Step 82, assess the risk corresponding to the advertisement according to the marked maliciousness level; the lower the maliciousness, the safer the classification and identification results of the corresponding dimensions, and the lower the risk level of the advertisement; conversely, it means that the advertisement is more malicious in important dimensions, the corresponding risk level is higher, and the harm to the terminal user is greater.
[0054] The beneficial effects of the present invention are:
[0055] Based on the cross-browser universal recognition process, the present invention provides a more comprehensive scanning method to realize the discovery of various types of advertisements in multiple channels and the extraction of advertisement-related information. It also provides a multi-dimensional maliciousness assessment method based on incitement, content, etc., and conducts a more comprehensive risk assessment of advertisements, which can effectively find advertising resources with greater potential harm to end users, contribute to the national network data space governance, and improve the monitoring and identification capabilities of illegal and irregular advertisements.
[0056] Compared with the prior art, which targets real-world advertising texts for identification and whose risk determination scope is the advertisement itself, and which is completed by risk string matching, the identification targets of the present invention cover multi-device and cross-platform web ads. It covers as many ads as possible (including those for specific platforms and specific browsers) through a multi-device and cross-platform approach, and contains more information about the ads to increase the recognition accuracy. When calculating the risks, it also adopts the classification of incitement features and the classification of advertising content to describe the risks of advertisements in different dimensions, and adopts the weighted summation method of hierarchical analysis to give maliciousness indicators and further define the risks.
[0057] Compared with the prior art, which uses the information of the advertising material itself and the content of the browser search results as the source content for judgment, and constructs a risk word library to judge the risk of the original content text, the risk definition method of the present invention uses the method of incitement feature classification and advertising content classification to judge the maliciousness in different dimensions, and finally constructs a hierarchical analysis method to weightedly calculate the maliciousness of the advertisement, thereby defining the risk. The present invention classifies advertisements in different dimensions, identifies the maliciousness of each dimension, and uses the hierarchical analysis method to weight the overall maliciousness of the advertisement, deriving the risk value, which is more detailed in risk definition than the comparison file; and there is a quantitative plan for risk, which can meet the needs of grading risky advertisements as needed. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 It is a schematic diagram of the module structure for implementing advertisement acquisition and classification in the present invention;
[0059] Figure 2 It is a schematic diagram of the advertisement acquisition and classification execution process of the present invention.
[0060] Description of the accompanying symbols:
[0061] 1. Advertisement crawling module: This module crawls advertisements for each resource in the target resource library using a judgment rule library and a crawling strategy to extract advertisement images and advertisement image jump links.
[0062] 2. Target resource library, which stores advertising information sources and is developed and expanded according to actual needs. It mainly refers to search engines, portal navigation, forums, forums, Weibo, etc.
[0063] 3. The judgment rule library stores the advertising judgment feature string, which is formulated and expanded according to actual needs to determine whether the detection result is an advertisement. Regular expressions can be used for feature string matching. For example, in an advertising resource / banner123.gif, 123 is usually a random number, and / banner*.gif needs to be used for matching.
[0064] 4. Browser feature library, which stores browser features commonly used or recommended by malicious advertisements, and provides a multi-channel crawling basis for the source. Among them, the features are generally a subset of HTTP Header fields, which are used to identify the requesting browser. This method mainly uses the sec-ch-ua and sec-ch-ua-platform fields to identify the requesting browser category and platform respectively. For example, using the Chrome browser on the Windows platform, its parameters are expressed as follows:
[0065] sec-ch-ua:"Not;A Brand";v="99","Google Chrome";v="97","Chromium";v="97"
[0066] sec-ch-ua-platform: "Windows".
[0067] 5. The crawling strategy library reduces the impact of data collection on the information source and can be adjusted according to the defense strategy of the target information source. For example, for information sources with strong anti-crawling strategies, you can adapt by reducing the crawling frequency, switching proxies, etc.
[0068] 6. Content extraction module: This module is responsible for extracting content from the results of the advertisement crawling module and providing the cleaned data to the risk rating module for use.
[0069] 7. Advertisement text extraction: Use deep learning methods to build an image recognition library, extract text from advertisement images, and obtain key information about advertisement images. For example, use OCR technology modules such as tesseract-ocr tools to extract text from images.
[0070] 8. Obtain web page content, crawl the jump links of advertising images for the second time, and extract key information such as the page title.
[0071] 9. Format preprocessing: integrate the data extracted from advertising text and web page content, clean up redundancy, discard incomplete data, and standardize it according to the specified description format.
[0072] 10. Advertising risk rating module: This module divides the advertisement into dimensions such as the incitement and content classification, and evaluates the advertising risk based on the classification results of each dimension.
[0073] 11. Classification of incitement features: summarize the common incitement language styles of advertisements, learn the high-frequency words and word co-occurrence frequency of network advertisement category characteristics from various information resources, and build an advertisement incitement classification model based on the stimulation and inducement of the advertisement content to the end users. This model is mainly implemented by identifying the overall incitement of the advertisement. For example, when words such as "just use", "buy", and "quickly" appear in the copy, it will make it more stimulating. The model is used to classify advertisements into highly incitement advertisements, generally incitement advertisements, and non-incitement advertisements.
[0074] 12. Advertisement content classification: summarize the features of advertisements and use the naive Bayes classifier method to build an advertisement content classification model. Give the category conditional probability for each keyword to efficiently calculate the ad category attribution degree, and use the model to classify advertisements into gambling, pornography, APP downloads, finance, and other advertisements.
[0075] 13. Advertisement risk assessment: integrate the results of multi-dimensional classification such as incitement and content classification to give a risk assessment value. Use the analytic hierarchy process to develop assessment criteria for each dimension, and use a weighted summation method to summarize the assessment. DETAILED DESCRIPTION
[0076] The present invention is further described below in conjunction with the accompanying drawings and embodiments so that those skilled in the art can easily implement the present invention.
[0077] Example:
[0078] like Figure 1-2 As shown, the specific steps of the present invention include:
[0079] Step 1: Capture resource records from the browser HTML text, filter out advertising resources using regular expressions according to advertising judgment rules, and parse the image resources and jump link resources in the advertising resources respectively. Specifically including: Step 1: Multi-channel information source crawling process; Step 2: Advertising identification process; Step 3: Advertising text extraction process; Step 4: Web page content acquisition process; Step 5: Format preprocessing process.
[0080] 1. For the multi-channel information source crawling process, the specific steps are as follows:
[0081] Step 11: Import the information source from the target resource library, perform operations such as cleaning and deduplication on the information source, and obtain the processed information source set S source ;
[0082] Step 12: Import the feature set from the browser feature library, perform Cartesian product combination on the platform feature and the browser identifier, and obtain the feature set S feature , and the feature set S feature With S source Cartesian product combination is performed to construct the crawled message package set S message ;
[0083] Step 13, S message For any message packet message, import the corresponding crawling rule R from the crawling strategy library message , set the waiting time T wait , initiate a resource request to the target source;
[0084] Step 14: Determine whether the resource request has received a result. If a response message is received, go to step 5, otherwise delay T wait Then go to step 13;
[0085] Step 15: parse the response message obtained from the resource request and extract and integrate it into a resource set S according to the keywords resource , for use by subsequent processes.
[0086] 2. The specific steps of advertisement identification process are as follows:
[0087] Step 21: Import the decision rule R from the decision rule library detect ;
[0088] Step 22, take S resource The resource to be determined enters the advertisement identification module;
[0089] Step 23: For resource resource, use the decision rule set R detect Perform regular matching. If any rule matches resource successfully, resource is considered to be an advertising resource and the process goes to step 24. Otherwise, take S resource The next resource to be determined jumps to step 23;
[0090] Step 24: Record the picture information corresponding to the resource and store it in the picture object database DB img If the resource record has a jump connection, go to step 25, otherwise go to step 26;
[0091] Step 25: Record the jump link corresponding to the resource record resource and store it in the database DB link middle;
[0092] Step 26, if S resource If there is a resource to be determined, take resource and go to step 23.
[0093] 3. The specific steps of advertisement text extraction process are as follows:
[0094] Step 31: Get the image object database DB img The image object img to be extracted enters the OCR text recognition module and goes to step 32;
[0095] Step 32, check whether the OCR recognition module outputs the recognition result, if there is a result, go to step 33, otherwise delay T detect Then go to step 32;
[0096] Step 33: Integrate the text resources in the result, remove blanks, escape characters, etc., and retain the key feature string SK of the image img .
[0097] 4. The specific steps of web page content acquisition process are as follows:
[0098] Step 41, check the legitimacy of the advertisement jump link, if there is a legitimate service IP address, go to step 42;
[0099] Step 42, initiate a GET request to the link to obtain the HTTP hypertext resource. If the request obtains a response result, go to step 43;
[0100] Step 43, parsing the hypertext resource obtained by the request, and extracting description field information such as Title from it;
[0101] Step 44: Integrate the description information, clean up the redundancy, discard the incomplete data, and retain the key feature string SK link .
[0102] 5.Format preprocessing process, the specific steps are as follows:
[0103] Step 51: Import the key feature string SK of the advertisement image img , if the advertisement has a jump link, go to step 52, otherwise go to step 54;
[0104] Step 52: Import the advertisement link key feature string SK link , and perform feature integration process, see step 53;
[0105] Step 53: SK img and SK link The contents are merged, synonymous characters, redundant contents and other texts are removed, and the process goes to step 54;
[0106] Step 54, perform word segmentation on the feature string, such as using Jieba library to segment the text, extract key words appearing in the advertisement, and form a feature list L of the advertisement. feature , for subsequent analysis.
[0107] Step 2: Classify the analysis results according to different dimensions, including the classification process of incitement features and the classification process of advertising content.
[0108] 6. The incitement feature classification process, the specific steps are as follows:
[0109] Step 61, initializing the threshold value TD of the incitement index low , TD high ;
[0110] Step 62: Import the feature list L of the advertisement feature , then the feature list L feature Formatting a list of ad features for classification;
[0111] Step 63: Import the feature list L of the advertisement feature Any attribute a i The frequency of occurrence of inflammatory words F a , and calculate the provocative index L of the advertising feature list Lscore , the calculation formula is
[0112] Step 64: Calculate the incitement index L according to the incitement index threshold. score Discretization processing, when L score <TD low When L score >TD high When L is found to be highly inflammatory, it is deemed that L is a highly inflammatory advertisement; otherwise, it is deemed that L is a generally inflammatory advertisement.
[0113] 7. The specific steps of the advertising content classification process are as follows:
[0114] Step 71: Import the feature list L of the advertisement feature, At this time, the feature list L feature Formatting a list of ad features for classification;
[0115] Step 72: Import the feature list L of the advertisement feature Any attribute a i In each category k The conditional probability P(a i |y k ), according to the naive Bayes posterior probability formula, the advertising feature list L corresponding to each category y is calculated k The belonging probability list P(y k |L), go to step 73;
[0116] Step 73: Take the category y corresponding to the maximum probability of belonging to each category in the advertisement feature list L k As the content classification result of the advertisement feature list L, that is, P(y k |x)=max(P(y1|x),P(y2|x),…,P(y n |x)), x∈y k .
[0117] Step 3: For the classification results of multiple dimensions, assign weighted values according to the importance of the dimensions, mark the maliciousness of the advertisements, and conduct risk assessment. The specific steps are as follows:
[0118] Step 81, weighting the classification results of each dimension according to the importance of the dimension, and calculating the maliciousness of each marked advertisement;
[0119] The weighted assignment operation is calculated using the hierarchical analysis method. The hierarchical analysis method is implemented by weighted summation layer by layer. In this use process, since the example only uses two dimensional indicators, the incitement feature classification process and the advertising content classification process, the calculation process can be simplified as follows:
[0120] A. Give the incitement feature classification process and the advertising content classification process weights W1 and W2 respectively.
[0121] (W1+W2=1,W1,W2≥1).
[0122] B. For any classification process P i , for each category result P of the current classification process i c, give its malicious reference value V i c(0≤V i c≤1).
[0123] C. For advertisements with incitement feature classification result P1c and advertisement content classification result P2c, the malicious value M can be calculated by referring to the formula M=∑ i∈1,2 W i ×V i c.
[0124] Step 82, assess the risk corresponding to the advertisement according to the marked maliciousness level; the lower the maliciousness, the safer the classification and identification results of the corresponding dimensions, and the lower the risk level of the advertisement; conversely, it means that the advertisement is more malicious in important dimensions, the corresponding risk level is higher, and the harm to the terminal user is greater.
[0125] The above description is only for the preferred embodiments of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the scope of the claims of the present invention shall be within the scope of protection of the present invention.
Claims
1. A method for acquiring embedded advertisements in multi-device web pages and identifying maliciousness, characterized in that: The steps include: Step 1: Capture resource records from the browser HTML text, filter out advertising resources using regular expressions according to advertising judgment rules, and parse the image resources and jump link resources in the advertising resources respectively; Step 2: Classify the analysis results according to different dimensions, specifically including: the incitement feature classification process and the advertising content classification process; the incitement feature classification process in step 2 specifically includes: Step 61, initializing the threshold value TD of the incitement index low , TD high ; Step 62, import feature list L feature ; Step 63, import feature list L feature Any attribute a i The frequency of occurrence of inflammatory words F a , and calculate the provocative index L of the advertising feature list L score , the calculation formula is Step 64: Calculate the incitement index L according to the incitement index threshold. score Discretization processing, when L score <TD low When L score >TD high If the advertisement is not inflammatory, L is deemed to be a highly inflammatory advertisement; otherwise, L is deemed to be a generally inflammatory advertisement; The specific steps of the advertisement content classification process in step 2 include: Step 71, import feature list L feature ; Step 72, import feature list L feature Any attribute a i In each category k The conditional probability P(a i |y k ), according to the naive Bayes posterior probability formula, the advertising feature list L corresponding to each category y is calculated k The belonging probability list P(y k |L), go to step 73; Step 73: Take the category y corresponding to the maximum probability of belonging to each category in the advertisement feature list L k As the content classification result of the advertisement feature list L, that is, P(y k |x)=max(P(y1|x),P(y2|x),…,P(y n |x)), x∈y k; Step 3: For the classification results of each dimension in step 2, assign weighted values according to the importance of the dimension, mark the maliciousness of the advertisement, and conduct risk assessment.
2. The method for acquiring and maliciously identifying embedded advertisements in multi-device web pages according to claim 1, characterized in that: The specific steps of step 1 include: Step 1: Crawling process of multi-channel information sources; Step 2: Advertisement identification process; Step 3: Advertisement text extraction process; Step 4: Web page content acquisition process; Step 5: Format preprocessing process.
3. The method for acquiring and identifying malicious embedded advertisements in multi-device web pages according to claim 2, characterized in that: The specific steps of step 1 include: Step 11: Import the information source from the target resource library, clean and remove duplicate information sources, and obtain the processed information source set S source ; Step 12: Import the feature set from the browser feature library, perform Cartesian product combination on the platform feature and the browser identifier, and obtain the feature set S feature , and the feature set S feature With S source Cartesian product combination is performed to construct the crawled message package set S message ; Step 13, S message For any message packet message, import the corresponding crawling rule R from the crawling strategy library message , set the waiting time T wait , initiate a resource request to the target source; Step 14: Determine whether the resource request has received a result. If a response message is received, go to step 5, otherwise delay T wait Then go to step 13; Step 15: parse the response message obtained from the resource request and extract and integrate it into a resource set S according to the keywords resource .
4. The method for acquiring and maliciously identifying embedded advertisements in multi-device web pages according to claim 3, characterized in that: The specific steps of step 2 include: Step 21: Import the decision rule R from the decision rule library detect ; Step 22, take S resource The resource to be determined enters the advertisement identification module; Step 23: For resource resource, use the decision rule set R detect Perform regular matching. If any rule matches the resource successfully, the resource is considered to be an advertising resource and the process goes to step 24. Otherwise, take S resource The next resource to be determined jumps to step 23; Step 24: Record the picture information corresponding to the resource and store it in the picture object database DB img If the resource record has a jump connection, go to step 25, otherwise go to step 26; Step 25: Record the jump link corresponding to the resource record resource and store it in the database DB link middle; Step 26, if S resource If there is a resource to be determined, take resource and go to step 23.
5. The method for acquiring and maliciously identifying embedded advertisements in multi-device web pages according to claim 2, characterized in that: The specific steps of step 3 include: Step 31: Get the image object database DB img The image object img to be extracted enters the OCR text recognition module and goes to step 32; Step 32, check whether the OCR recognition module outputs the recognition result, if there is a result, go to step 33, otherwise delay T detect Then go to step 32; Step 33: Integrate the text resources in the result, remove blanks and escape characters, and retain the key feature string SK of the image img .
6. The method for acquiring and maliciously identifying embedded advertisements in multi-device web pages according to claim 5, characterized in that: The specific steps of step 4 include: Step 41, check the legitimacy of the advertisement jump link, if there is a legitimate service IP address, go to step 42; Step 42, initiate a GET request to the link to obtain the HTTP hypertext resource. If the request obtains a response result, go to step 43; Step 43, parsing the hypertext resource obtained by the request, and extracting the Title description field information therefrom; Step 44: Integrate the description information, clean up the redundancy, discard the incomplete data, and retain the key feature string SK link .
7. The method for acquiring and maliciously identifying embedded advertisements in multi-device web pages according to claim 6, characterized in that: The specific steps of step 5 include: Step 51: Import the key feature string SK of the advertisement image img , if the advertisement has a jump link, go to step 52, otherwise go to step 54; Step 52: Import the advertisement link key feature string SK link , and perform feature integration process, see step 53; Step 53: SK img and SK link The contents are merged, synonymous characters and redundant content text are removed, and the process goes to step 54; Step 54: segment the feature string, extract the key words that appear in the advertisement, and form a feature list L of the advertisement. feature , for subsequent analysis.
8. The method for acquiring and maliciously identifying embedded advertisements in multi-device web pages according to claim 1, characterized in that: The specific steps of step three include: Step 81, weighting the classification results of each dimension according to the importance of the dimension, and calculating the maliciousness of each marked advertisement; Step 82, assess the risk corresponding to the advertisement according to the marked maliciousness level; the lower the maliciousness, the safer the classification and identification results of the corresponding dimensions, and the lower the risk level of the advertisement; conversely, it means that the advertisement is more malicious in important dimensions, the corresponding risk level is higher, and the harm to the terminal user is greater.
