The invention discloses a malicious advertisement
attack detection method. URL information in a to-be-detected website is extracted by utilizing an open-source crawler Nutch; compared with a commercial
search engine, the Nutch can grab billions of web pages per month and provide high-quality retrieval results; only URL links related to advertisements are extracted in URL extraction; the detection efficiency can be improved;
phishing detection is realized through a Google Safe Browser API; a to-be-detected URL is sent to the API for performing
verification; whether the URL is secure or not can be judged according to response information; a
library is realized by Google search and an international anti-
phishing union, is very huge in scale and can detect a large amount of
attack behaviors; for an
attack URL confirmed by the API, the URL needs to be extracted from a to-be-detected set and information of the URL is recorded in a log file; the log
record of the URL information is realized through Log4j; a flexible
record way is provided; an output position, an output format and a log level of a log can be configured separately; malicious advertisement attack behaviors detected in log analysis are displayed in the form of a
pie chart and a bar chart, so that a detection result can be vividly displayed; and the detection method is complete in rule, is based on a
client, and not only realizes unified detection of malicious advertisement attacks but also has a good detection effect.