WO2015014169A1 - Method, device, and system for detecting link layer hijacking, user equipment, and analyzing server - Google Patents
Method, device, and system for detecting link layer hijacking, user equipment, and analyzing server Download PDFInfo
- Publication number
- WO2015014169A1 WO2015014169A1 PCT/CN2014/080304 CN2014080304W WO2015014169A1 WO 2015014169 A1 WO2015014169 A1 WO 2015014169A1 CN 2014080304 W CN2014080304 W CN 2014080304W WO 2015014169 A1 WO2015014169 A1 WO 2015014169A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- url
- information
- web page
- link layer
- hijacking
- 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.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1441—Countermeasures against malicious traffic
- H04L63/1466—Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1408—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
- H04L63/1416—Event detection, e.g. attack signature detection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9566—URL specific, e.g. using aliases, detecting broken or misspelled links
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/55—Detecting local intrusion or implementing counter-measures
- G06F21/56—Computer malware detection or handling, e.g. anti-virus arrangements
- G06F21/567—Computer malware detection or handling, e.g. anti-virus arrangements using dedicated hardware
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/101—Access control lists [ACL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/14—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
- H04L63/1408—Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/16—Implementing security features at a particular protocol layer
- H04L63/168—Implementing security features at a particular protocol layer above the transport layer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing 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/2115—Third party
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing 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/2119—Authenticating web pages, e.g. with suspicious links
Definitions
- the invention relates to the field of information security technology, and in particular to a method, a device and a system for detecting a link layer hijacking, a user equipment, and an analyzing server.
- Link layer hijacking refers to a means for inserting malicious codes or Uniform Resource Locators (URL) into a web page on a network transmission physical link, to steal user information. Because of a security danger of leaking user information due to the link layer hijacking, it is necessary to detect the link layer hijacking, thereby to judge whether there are malicious codes or URLs in a web page requested by a user.
- An existing method for detecting a link layer hijacking in a web page includes: providing a detecting device at a bypass in the link to detect the link layer hijacking for a web page, where the detecting device is adapted to determine whether the link layer hijacking occurs in a returned page based on page information obtained and returned to a user. Fig.
- the procedure for detecting a link layer hijacking in the conventional technology includes: sending, by user equipment, a GET/POST request (which is a request in http protocol, where GET is configured to obtain data from a server, and POST is configured to send data to a server) to a sever; replying, by the server, response information to the user based on a type of the request; mirroring the response information by a detecting device to obtain a copy of the information replied by the server, parsing a URL from the copy, compares the parsed URL with a preset white list of URLs, and identifies a malicious URL and a page with the link layer hijacking.
- the detecting device provided at the bypass additionally has a detecting effect limited by a location thereof.
- the detecting device is generally close to a server, and it is difficult to provide the detecting device close to the user equipment.
- the possibility for the link layer hijacking on the transmission link between the detecting device and the user equipment is increased. Therefore, the precision for detecting the link layer hijacking is lowered.
- the link layer hijacking may be missed, so that the effect for detecting the link layer hijacking is lowered.
- a method for detecting a link layer hijacking a device for detecting a link layer hijacking, a user equipment, an analyzing server and a system for detecting a link layer hijacking are provided according to embodiments of the invention, to resolve the problems in the conventional technology that the effect for detecting the link layer hijacking is affected by the location of the detecting device provided additionally, and thus the precision of an analysis of the link layer hijacking is lowered; and the effect for detecting the link layer hijacking is lowered because the link layer hijacking may be missed.
- a technique solution is provided as follows according to the embodiments of the invention.
- a method for detecting a link layer hijacking is provided, which is applied to user equipment and includes:
- HTTP Hypertext Transfer Protocol
- a monitoring script preset on the HTTP server
- parsing, by the analyzing server, URL text information from the information related to the URL and determining, by the analyzing server, whether the link layer hijacking occurs in the received web page information based on the URL text information.
- URL Uniform Resource Locator
- the information related to the URL may include text information in the received web page information, and/or Java script information obtained from the received web page information.
- the parsing, by the analyzing server, URL text information from the information related to the URL may include:
- a method for detecting a link layer hijacking is further provided, which is applied to an analyzing server and includes:
- URL Uniform Resource Locator
- HTTP Hypertext Transfer Protocol
- the information related to the URL may include text information in the received web page information, and/or Java script information obtained from the received web page information.
- the parsing URL text information from the information related to the URL may include:
- the determining whether the link layer hijacking occurs in the received web page information based on the URL text information includes: judging whether a URL corresponding to the URL text information matches a URL in a URL white list; and determining that the link layer hijacking occurs in the received web page information, in the case that the URL corresponding to the URL text information does not match any URL in the URL white list.
- the method further includes: judging whether the URL corresponding to the URL text information matches a URL in a malicious URL database after determining that the link layer hijacking occurs in the received web page information; determining that the link layer hijacking in the received web page information is a malicious hijacking, in the case that the URL corresponding to the URL text information matches a URL in the malicious URL database; and
- the method further includes: after determining that the link layer hijacking occurs in the received web page information, determining a source of the link layer hijacking based on a user's IP and a service identifier.
- the method further includes:
- first warning information to the user equipment based on region information of the user's IP and region information of Internet Server Provider (ISP), after determining that the link layer hijacking occurs in the received web page information; or outputting second warning information to the HTTP server corresponding to a web page, in the case that times the web page is hijacked exceeds a threshold.
- ISP Internet Server Provider
- a device for detecting a link layer hijacking is further provided, which is applied to user equipment and includes: a requesting module configured to request web page information to a Hypertext Transfer Protocol (HTTP) server; a first receiving module configured to receive from the HTTP server the web page information and a monitoring script preset on the HTTP server that are returned; and a sending module configured to send to an analyzing server information related to Uniform Resource Locator (URL) in the received web page information based on the monitoring script, wherein the analyzing server parses URL text information from the information related to the URL and determines whether the link layer hijacking occurs in the received web page information based on the URL text information.
- HTTP Hypertext Transfer Protocol
- URL Uniform Resource Locator
- the information related to the URL may include text information in the received web page information, and/or Java script information obtained from the received web page information.
- a user equipment is further provided, which includes the above device for detecting the link layer hijacking.
- a device for detecting a link layer hijacking is further provided, which is applied to an analyzing server and includes: a second receiving module configured to receive information related to Uniform
- URL Resource Locator
- HTTP Hypertext Transfer Protocol
- a parsing module configured to parse URL text information from the information related to the URL
- an identifying module configured to determine whether the link layer hijacking occurs in the received web page information based on the URL text information.
- the information related to the URL may include text information in the received web page information, and/or Java script information obtained from the received web page information.
- the parsing module may include: a first parsing unit configured to extract the URL text information from the text information based on a URL key word, in the case that the information related to the URL includes the text information in the received web page information; and
- a second parsing unit configured to extract the URL text information nested in the Java script information by a preset Java script monitoring engine, in the case that the information related to the URL includes the Java script information obtained from the received web page information.
- an analyzing server is further provided, which includes the above device for detecting the link layer hijacking.
- a system for detecting a link layer hijacking which includes a Hypertext Transfer Protocol (HTTP) server, user equipment and an analyzing server, the HTTP server is configured to preset a monitoring script, and reply web page information and the monitoring script to the user equipment in response to the request of the user equipment for the web page information; the user equipment is configured to request the web page information to the HTTP server, receive from the HTTP server the web page information and the monitoring script, and send to the analyzing server information related to Uniform Resource Locator (URL) in the received web page information based on the monitoring script; and
- HTTP Hypertext Transfer Protocol
- the HTTP server is configured to preset a monitoring script, and reply web page information and the monitoring script to the user equipment in response to the request of the user equipment for the web page information
- the user equipment is configured to request the web page information to the HTTP server, receive from the HTTP server the web page information and the monitoring script, and send to the analyzing server information related to Uniform Resource Locator (URL) in the received web page information based on the monitoring script
- the analyzing server is configured to parse URL text information from the information related to the URL and determine whether the link layer hijacking occurs in the received web page information based on the URL text information.
- user equipment requests web page information to an HTTP server, receives from the HTTP server the web page information and a monitoring script preset on the HTTP server, and sends to an analyzing server information related to URL in the received web page information based on the monitoring script; the analyzing server parses URL text information from the information related to the URL, and determines whether the link layer hijacking occurs in the received web page information based on the URL text information.
- the detection of the link layer hijacking does not depend on a detecting device provided at a bypass additionally, thus the detection effect is not affected by the location of the detecting device provided at the bypass additionally.
- the analyzing server is configured to determine a state of the link layer hijacking by analyzing the URL text information, i.e., the URL text information in the web page information received by the user equipment. In this way, the precision of the analysis of the link layer hijacking is improved, the number of missed link layer hijackings is reduced, and the effect for detecting the link layer hijacking is improved.
- FIG. 1 is a diagram showing a network topology of a system for detecting a link layer hijacking in the conventional technology
- FIG. 2 is a flowchart of a method for detecting a link layer hijacking according to an embodiment of the invention
- FIG. 3 is another flowchart of a method for detecting a link layer hijacking according to an embodiment of the invention.
- Fig. 4 is a flowchart of a method for determining a link layer hijacking in received web page information according to an embodiment of the invention;
- FIG. 5 is a flowchart of a method for determining a malicious hijacking according to an embodiment of the invention
- FIG. 6 is yet another flowchart of a method for detecting a link layer hijacking according to an embodiment of the invention.
- Fig. 7 is a block diagram showing a structure of a device for detecting a link layer hijacking according to an embodiment of the invention.
- Fig. 8 is a block diagram showing another structure of a device for detecting a link layer hijacking according to an embodiment of the invention.
- Fig. 9 is a block diagram showing a structure of a parsing module according to an embodiment of the invention.
- Fig. 10 is a block diagram showing a structure of an identifying module according to an embodiment of the invention.
- FIG. 11 is a block diagram showing another structure of a device for detecting a link layer hijacking according to an embodiment of the invention.
- FIG. 12 is a block diagram of yet another structure of a device for detecting a link layer hijacking according to an embodiment of the invention.
- Fig. 13 is a block diagram showing a structure of a system for detecting a link layer hijacking according to an embodiment of the invention.
- Fig. 14 is a diagram showing a hardware structure of user equipment according to an embodiment of the invention.
- Fig. 15 is a diagram showing a hardware structure of an analyzing server according to an embodiment of the invention.
- Fig. 2 is a flowchart of a method for detecting a link layer hijacking according to an embodiment of the invention. The method is applied to user equipment, which is performed at a user side. Referring to Fig. 2, the method may include steps SI 00 to SI 30 as follows.
- Step SI 00 includes: requesting web page information to a Hypertext Transfer Protocol (HTTP) server.
- HTTP Hypertext Transfer Protocol
- the user equipment may send a GET/POST request to the HTTP server, to obtain the requested web page information from the HTTP server.
- Step SI 10 includes: receiving from the HTTP server the web page information and a monitoring script preset on the HTTP server.
- the monitoring script may be a monitoring script in JavaScript (JS).
- JavaScript is a prototype-based and object-oriented case sensitive client-side script language with dynamic typing and developed from LiveScript of Netscape.
- the JS monitoring script may be preset on an HTTP server to be monitored.
- the JS monitoring script may be downloaded to the user equipment when the HTTP server replies the web page information to the user equipment.
- an HTTP server corresponding to the web set www.qq.com is preset with a JS script.
- the HTTP server replies the web page information of the web site www.qq.com as well as the JS preset script to the user equipment.
- Step SI 20 includes: sending, to an analyzing server, information related to Uniform Resource Locator (URL) in the received web page information to an analyzing server based on the monitoring script.
- URL Uniform Resource Locator
- Step SI 30 includes: parsing, by the analyzing server, URL text information from the information related to the URL; and determining, by the analyzing server, whether the link layer hijacking occurs in the received web page information based on the URL text information.
- the user equipment After receiving the web page information and the JS monitoring script, the user equipment is not able to determine whether the link layer hijacking occurs in the received web page information or whether malicious codes and URLs are inserted in the received web page information.
- the user equipment sends, to the analyzing server at a network side, information related to the URL in the received web page information based on the received monitoring script.
- the analyzing server parses URL text information from the information related to the URL after receiving the information related to the URL; and identifies a state of the link layer hijacking of the received web page information based on the URL text information.
- the state of the link layer hijacking means that the link layer hijacking does or does not occur in the received web page information.
- the monitoring script is set on the HTTP server corresponding to the site to be monitored in the embodiment.
- the monitoring script will be provided to the user equipment together with the web page information, only when the user equipment requests the web page information to the HTTP server.
- the user equipment may know that the web site corresponding to the requested web page information needs to be monitored, and may send information related to the URL in the received web page information to the analyzing server based on the monitoring script.
- the analyzing server determines whether the link layer hijacking occurs in the received web page information.
- the monitoring script is mainly configured to trigger the user equipment to report to the analyzing server the information related to the URL in the received web page information.
- the user equipment requests the web page information to an HTTP server, receives from the HTTP server the web page information and the monitoring script preset on the HTTP server, and sends the information related to the URL in the received web page information to an analyzing server based on the monitoring script.
- the analyzing server parses URL text information from the information related to the URL, and determines whether the link layer hijacking occurs in the received web page information based on the URL text information.
- the detection of the link layer hijacking does not depend on a detecting device provided at a bypass additionally, thus the detection effect is not affected by the location of the detecting device provided at the bypass additionally.
- the analyzing server is configured to determine a state of the link layer hijacking by analyzing the URL text information, i.e., is the URL text information in the web page information received by the user equipment.
- the information related to the URL may include text information in the received web page information, and/or JS information obtained from the received web page information.
- the URL text information refers to a file for indicating URL carried in the web page information.
- the URL mainly includes: URL in text-type (mainly for static web page) and ULR packed by JS arithmetic, i.e., URL nested by a dynamic JS arithmetic (mainly for dynamic web page).
- the user equipment may send the information related to the URL to the analyzing server by three ways. In the first way, the user equipment may send text information in the received web page information to the analyzing server. In the second way, the user equipment may send JS information obtained from the received web page information to the analyzing server.
- the user equipment may send to the analyzing server both the text information in the received web page information and the JS information obtained from the received web page information.
- the analyzing server may extract URL text information from the text information based on a URL key word.
- the URL key word mainly includes some key words related to the URL, such as frame, iframe, script, and form.
- the analyzing server may extract the nested URL text information from the JS information by a preset JS monitoring engine.
- the preset JS monitoring engine may be spidermonkey engine.
- a method for detecting a link layer hijacking will be described below with respect to an analyzing server.
- the method to be described below corresponds to the method described with respect to the user equipment, which may be referred to the method with respect to the user equipment.
- Fig. 3 is another flowchart of a method for detecting a link layer hijacking according to an embodiment of the invention.
- the method is applied to an analyzing server.
- the analyzing server is a server provided at the network side and configured to process data and logic operations.
- a data communication is provided between the analyzing server and the user equipment.
- the method may include steps S200 to S220.
- Step S200 may include: receiving information related to URL in web page information, where the information related to the URL is sent by user equipment based on a monitoring script, after the user equipment receives from a HTTP server the web page information and the monitoring script preset on the HTTP server.
- Step S210 may include: parsing URL text information from the information related to the URL.
- Step S220 may include: determining whether the link layer hijacking occurs in the received web page information based on the URL text information.
- the detection of a link layer hijacking does not depend on a detecting device provided at a bypass additionally, thus the detection effect is not affected by the location of the detecting device provided at the bypass additionally.
- the analyzing server is configured to determine a state of the link layer hijacking by analyzing the URL text information, i.e., the URL text information in the web page information received by the user equipment. In this way, the precision of the analysis of the link layer hijacking is improved, the number of missed link layer hijackings is reduced, and the effect for detecting the link layer hijacking is improved.
- the information related to the URL may include text information in the received web page information, and/or JS information obtained from the received web page information.
- the analyzing server may extract the URL text information from the text information based on a URL key word.
- the URL key word may includes some key words related to the URL, such as frame, iframe, script, and form.
- the analyzing server may extract the URL text information nested into the JS information by a preset JS monitoring engine.
- the preset JS monitoring engine may be spidermonkey engine.
- the URL text information of both static web page and dynamic web page may be extracted. Therefore, the method for detecting the link layer hijacking may be applied to more types of web page, the number of missed link layer hijackings is reduced, and the effect for detecting the link layer hijacking is improved.
- Fig. 4 is a flowchart of a method for determining a link layer hijacking in received web page information. The method may include steps S221 to S223.
- Step S221 may include: judging whether a URL corresponding to the URL text information matches a URL in a URL white list; if the URL corresponding to the URL text information matches the URL in the URL white list, performing step S222; otherwise, performing step S223.
- Step S222 may include: determining that no link layer hijacking occurs in the received web page information.
- Step S223 may include: determining that a link layer hijacking occurs in the received web page information.
- Fig. 4 may be considered as an optional implementation for the step S220 in Fig. 3.
- the link layer hijacking includes non-malicious hijacking and malicious hijacking.
- the non-malicious hijacking refers to some action with a low risk, such as an insertion of an advertisement page.
- the malicious hijacking includes some action such as an insertion of a code or a URL for stealing user's identity information. Therefore, in the embodiment, after determining the link layer hijacking in the web page information received by the user equipment, the method further includes: judging whether the link layer hijacking is a malicious hijacking. Referring to Fig. 5, the method for determining the malicious hijacking according to an embodiment includes steps S300 to S320.
- Step S300 may include: judging whether the URL corresponding to the URL text information matches a URL in a malicious URL database; if the URL corresponding to the URL text information matches the URL in the malicious URL database, performing step S310; otherwise, performing step S320.
- Step S310 may include: determining that the link layer hijacking in the received web page information is a malicious hijacking.
- Step S223 may include: determining that the link layer hijacking in the received web page information is a non-malicious hijacking.
- the method includes: determining a source of the link layer hijacking, to make a statistic of the sources of link layer hijackings.
- the source of a link layer hijacking may be determined based on a user's Internet Protocol (IP) and a service identifier.
- IP Internet Protocol
- the analyzing server may further output warning information after determining that the link layer hijacking in the web page information received by the user equipment.
- the warning information may be output to either the user equipment or the HTTP server corresponding to the site expected to be monitored.
- the step of outputting the warning to the user equipment may include: outputting first warning information to the user equipment based on region information of the user's IP and region information of Internet Server Provider (ISP).
- ISP Internet Server Provider
- the first warning information may be grouped based on the region information of IP region and the region information of ISP for output.
- the step of outputting the warning to the http server may include: outputting second warning information to the HTTP server corresponding to the web page, in the case that times the web page suffers from the link layer hijacking exceeds a threshold.
- Fig. 6 is yet another flowchart of a method for detecting a link layer hijacking according to an embodiment of the invention. Referring to Fig. 6, the method may include steps S400 to S500.
- Step S400 may include: receiving information related to URL in web page information, where the information related to the URL is sent by user equipment based on a monitoring script, after the user equipment receives from a HTTP server the web page information and the monitoring script preset on the HTTP server.
- Step S410 may include: determining a type of the information related to the URL.
- Step S420 may include: extracting URL text information from text information based on a URL key word, in the case that the information related to the URL includes the text information in the received web page information.
- Step S430 may include: extracting URL text information nested in JS information by a preset JS monitoring engine, in the case that the information related to the URL includes the JS information obtained from the received web page information.
- steps S420 and S430 are different processes for different types of information related to the URL after step S410.
- Step S440 may include: judging whether the URL corresponding to the URL text information matches a URL in a URL white list; if the URL corresponding to the URL text information matches the URL in the URL white list, performing step S450; otherwise, performing step S465.
- Step S450 may include: determining that no link layer hijacking occurs in the received web page information, and ending the process.
- Step S460 may include: determining that the link layer hijacking occurs in the received web page information; judging whether the URL corresponding to the URL text information matches a URL in a malicious URL database, if the URL corresponding to the URL text information does not match any URLs in the malicious URL database, performing step S470; otherwise, performing step S480.
- Step S470 may include: determining that the link layer hijacking in the received web page information is a non-malicious hijack.
- Step S480 may include: determining that the link layer hijacking in the received web page information is a malicious hijack.
- Step S490 may include: determining a source of the link layer hijacking based on a user's IP and a service identifier.
- Step S500 may include: outputting first warning information to the user equipment based on region information of the user's IP and region information of Internet Server Provider (ISP), and/or outputting second warning information to the HTTP server corresponding to a web page when the times the web page is hijacked exceeds a threshold.
- ISP Internet Server Provider
- a device for detecting a link layer hijacking according to an embodiment of the invention is described below with respect to user equipment.
- the device for detecting the link layer hijacking described below corresponds to the method for detecting the link layer hijacking described above with respect to user equipment, which may be referred to the method for detecting the link layer hijacking with respect to user equipment.
- Fig. 7 is a block diagram showing a structure of a device for detecting a link layer hijacking according to the embodiment.
- the device may include: a requesting module 100, a first receiving module 110 and a sending module 120.
- the requesting module 100 is configured to request web page information to an HTTP server.
- the first receiving module 110 is configured to receive from the HTTP server the web page information and a monitoring script preset on the HTTP server.
- the sending module 120 is configured to send to an analyzing server information related to URL in the received web page information based on the monitoring script, where the analyzing server parses URL text information from the information related to the URL and determine whether the link layer hijacking occurs in the received web page information based on the URL text information.
- the detection of the link layer hijacking does not depend on a detecting device provided at a bypass additionally, thus the detection effect is not affected by the location of the detecting device provided at the bypass additionally.
- the analyzing server is configured to determine a state of the link layer hijacking by analyzing the URL text information, i.e., the URL text information in the web page information received by the user equipment. In this way, the precision of the analysis of the link layer hijacking is improved, the number of missed link layer hijackings is reduced, and the effect for detecting the link layer hijacking is improved.
- the information related to the URL may include text information in the received web page information, and/or JS information obtained from the received web page information.
- user equipment is further provided, which includes the device for detecting the link layer hijacking described above with respect to the user equipment.
- a device for detecting a link layer hijacking according to an embodiment of the invention is described below with respect to an analyzing server.
- the device for detecting the link layer hijacking described below corresponds to the method for detecting the link layer hijacking described above with respect to the analyzing server, which may be referred to the method for detecting the link layer hijacking with respect to the analyzing server.
- Fig. 8 is a block diagram showing another structure of a device for detecting a link layer hijacking according to the embodiment.
- the device for detecting the link layer hijacking is applied to an analyzing server.
- the device may include: a second receiving module 200, a parsing module 210, and an identifying module 220.
- the second receiving module 200 is configured to receive information related to URL in web page information, where the information related to the URL is sent by user equipment based on a monitoring script, after the user equipment receives from a HTTP server the web page information and the monitoring script preset on the HTTP server.
- the parsing module 210 is configured to parse URL text information from the information related to the URL.
- the identifying module 220 is configured to determine whether the link layer hijacking occurs in the received web page information based on the URL text information.
- the analyzing server is configured to analyze the URL text information, i.e., the URL text information in the web page information received by the user equipment, to determine a state of the link layer hijacking. In this way, the precision of an analysis of the link layer hijacking is improved, the number of missed link layer hijackings is reduced, and the effect for detecting the link layer hijacking is improved.
- the information related to the URL may include text information in the received web page information, and/or JS information obtained from the received web page information.
- the parsing module 210 may have a structure shown in Fig. 9. Referring to Fig. 9, the parsing module 210 may include: a first parsing unit 211 and a second parsing unit 212.
- the first parsing unit 211 is configured to extract URL text information from the information related to the URL based on a URL key word, in the case that the information related to the URL includes the text information in the received web page information.
- the second parsing unit 212 is configured to extract URL text information nested in JS information by a preset JS monitoring engine, in the case that the information related to the URL includes the JS information obtained from the received web page information.
- Fig. 10 is a block diagram showing a structure of the identifying module 220 according to an embodiment of the invention.
- the identifying module 220 may include: a match judging unit 221, a first hijacking determining unit 222 and a second hijacking determining unit 223
- the match judging unit 221 is configured to judge whether the URL corresponding to the URL text information matches a URL in a URL white list.
- the first hijacking determining unit 222 is configured to determine that no link layer hijacking occurs in the received web page information, if the URL corresponding to the URL text information matches the URL in the URL white list.
- the second hijacking determining unit 223 is configured to determine that the link layer hijacking occurs in the received web page information, if the URL corresponding to the URL text information does not match any URLs in the URL white list.
- the device for detecting the link layer hijacking may have another structure according to an embodiment of the invention.
- Fig. 11 is a block diagram showing another structure of a device for detecting a link layer hijacingk according to an embodiment of the invention. This device differs the device for detecting the link layer hijacking in Fig. 8 in that this device may further include: a malicious hijacking judging module 230, a first malicious hijacking determining module 240, and a second malicious hijacking determining module 250.
- the malicious hijacking judging module 230 is configured to judge whether the URL corresponding to the URL text information matches a URL in a malicious URL database, after it is determined that the link layer hijacking occurs in the received web page information.
- the first malicious hijacking determining module 240 is configured to determine that the link layer hijacking in the received web page information is a malicious hijack, if the URL corresponding to the URL text information matches the URL in the malicious URL database;
- the second malicious hijacking determining module 250 is configured to determine that the link layer hijacking in the received web page information is a non-malicious hijack, if the URL corresponding to the URL text information does not match any URLs in the malicious URL database;
- Fig. 12 is a block diagram showning yet another structure of a device for detecting a link layer hijacking according to an embodiment of the invention. This device differs the device for detecting the link layer hijacking in Fig. 11 in that this device may further include: a hijacking source determining module 260 and a warning information sending module 270.
- the hijacking source determining module 260 is configured to determine a source of the link layer hijacking based on a user's IP and a service identifier, after it is determined that the link layer hijacking occurs in the received web page information.
- the warning information sending module 270 is configured to output first warning information to the user equipment based on region information of the user's IP and region information of Internet Server Provider (ISP), after it is determined that a link layer hijacking occurs in the received web page information; and/or output second warning information to the HTTP server corresponding to the web page in the case that times the web page is hijacked exceeds a threshold.
- ISP Internet Server Provider
- an analyzing server is further provided, which includes the device for detecting the link layer hijacking described above with respect to an analyzing server.
- a system for detecting a link layer hijacking according to an embodiment of the invention is described below.
- the system for detecting the link layer hijacking described below corresponds to the method and device for detecting the link layer hijacking described above with respect to user equipment and an analyzing server, which may be referred to them.
- Fig. 13 is a block diagram showing a structure of a system for detecting a link layer hijacking according to an embodiment of the invention.
- the system for detecting the link layer hijacking may include an HTTP server 10, user equipment 20 and an analyzing server 30.
- the HTTP server 10 is configured to preset a monitoring script, and reply web page information and the monitoring script to the user equipment in response to the request of the user equipment 20 for the web page information.
- the user equipment 20 is configured to request the web page information to the HTTP server 10, receive from the HTTP server the web page information and the monitoring script, and send to the analyzing server 30 information related to URL in the received web page information based on the monitoring script.
- the analyzing server 30 is configured to parse URL text information from the information related to the URL and determine whether the link layer hijacking occurs in the received web page information based on the URL text information.
- a monitoring script is preset at an HTTP server.
- the user equipment requests web page information
- the user equipment receives from the HTTP server the web page information and the monitoring script preset on the HTTP server, and sends information related to the URL in the received web page information to the analyzing server based on the monitoring script.
- the analyzing server parses URL text information from the information related to URL, and determines whether the link layer hijacking occurs in the received web page information based on the URL text information.
- the detection of the link layer hijacking does not depend on a detecting device provided at a bypass additionally, thus the detection effect is not affected by the location of the detecting device provided at the bypass additionally.
- the analyzing server is configured to determine a state of the link layer hijacking by analyzing the URL text information, i.e., the URL text information in the web page information received by the user equipment. In this way, the precision of the analysis of the link layer hijacking is improved, the number of missed link layer hijacks is reduced, and the effect for detecting the link layer hijacking is improved.
- Fig. 14 is a diagram showing a hardware structure of user equipment according to an embodiment of the invention.
- the user equipment may include a communication interface 1, a memory 2, a processor 3 and a communication bus 4.
- a communication interface 1 may be an interface of a communication module, such as an interface of a network card, which is configured to receive and transmit signals between an access server and peripheral equipment.
- a memory 2 may be configured to store software programs and modules.
- a processor 3 performs various function applications and data processes in the access server by running the software programs and modules stored in the memory 2.
- the memory 2 may mainly include a storage region for program and a storage region for data.
- the storage region for program may store operating system, application needed by at least one function (such as an audio playing function, a video playing function) and the like.
- the storage region for data may store data (such as video data, an address book) generated by using the access server and the like.
- the memory 2 may include a high speed random access memory and may further include a non-volatile storage, such as at least one of a disk storage device, a flash memory or other non- volatile solid-state storage device.
- the processor 3 is a control center of the access server, which is connected to various components of the access server through various interfaces and lines.
- the processor 3 performs various functions and data processes by executing or running the software programs and modules stored in the memory 2 and calling the data stored in the memory 2, thereby monitoring the access server.
- the process 3 may include one or more processing unit.
- an application processor and a modem may be integrated into the processor 3, in which the application processor is applied to the operating system and applications, and the modem is applied to a wireless communication. It can be understood that the above modem may further not be integrated into the process 3.
- the communication 1, the memory 2 and the processor 3 communicate with each other through a communication bus 4.
- the processor 3 may further have the following functions: requesting web page information to a HTTP server; receiving from the HTTP server the web page information and a monitoring script preset on the HTTP server; and sending information related to URL in the received web page information to an analyzing server based on the monitoring script, where the analyzing server parses URL text information from the information related to the URL and determines whether the link layer hijacking occurs in the received web page information based on the URL text information.
- Fig. 15 is a diagram showing a hardware structure of an analyzing server according to an embodiment of the invention. Referring to Fig. 15, the analyzing server may include a communication interface 1 ', a memory 2', a processor 3' and a communication bus 4 ' .
- a communication interface ⁇ may be an interface of a communication module, such as an interface of a network card, which is configured to receive and transmit signals between an access server and peripheral equipment.
- a memory 2' may be configured to store software programs and modules.
- a processor 3' performs various function applications and data processes in the access server by running the software programs and modules stored in the memory 2'.
- the memory 2' may mainly include a storage region for program and a storage region for data.
- the storage region for program may store operating system, applications needed by at least one function (such as an audio playing function, a video playing function), and the like.
- the storage region for data may store data (such as video data, an address book) generated by using the access server, and the like.
- the memory 2' may include a high speed random access memory and may further include a non-volatile storage, such as at least one of a disk storage device, a flash memory or other non- volatile solid-state storage device.
- the processor 3' is a control center of the access server, which is connected to various components of the access server through various interfaces and lines.
- the processor 3' performs various functions and data processes by executing or running the software programs and modules stored in the memory 2' and calling the data stored in the memory 2', thereby monitoring the access server.
- the process 3' may include one or more processing unit.
- an application processor and a modem may be integrated into the processor 3, in which the application processor is applied to the operating system and applications, and the modem is applied to a wireless communication. It can be understood that the above modem may further not be integrated into the process 3'.
- the communication ⁇ , the memory 2' and the processor 3' communicate with each other through a communication bus 4'.
- the processor 3 may further have the following functions: receiving information related to URL in web page information, where the information related to the URL is sent by user equipment based on a monitoring script, after the user equipment receives from a HTTP server the web page information and the monitoring script preset on the HTTP server; parsing URL text information from the information related to the URL; and determining whether the link layer hijacking occurs in the received web page information based on the URL text information.
- the embodiments of the invention are described herein in a progressive manner, with an emphasis placed on explaining the difference between each embodiment and the other embodiments; hence, for the same or similar parts among the embodiments, they can be referred to from one another.
- the corresponding descriptions are relatively simple because the device and system correspond to the methods disclosed in the embodiments.
- the relevant portions may be referred to the description for the method parts.
- the steps of the method or the algorithm that are described in conjunction with the embodiment disclosed herein can be implemented by the hardware, the software module performed by the processor or the combination of both the hardware and the software module performed by the processor.
- the software module can be built in the Random Access Memory (RAM), the memory, the Read-Only Memory (ROM), the electrically programmable ROM, the electrically erasable programmable ROM, the register, the hardware, the movable disc, the CD-ROM, or any other forms of storing medium that is well-known in the technical field.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Virology (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
A method for detecting a link layer hijacking includes: requesting web page information to a HTTP server; receiving from the HTTP server the web page information and a monitoring script preset on the HTTP server; sending information related to URL in the received web page information to an analyzing server based on the monitoring script; and parsing, by the analyzing server, URL text information from the information related to the URL and determining, by the analyzing server, whether the link layer hijacking occurs in the received web page information based on the URL text information. Thus, the precision of analysis of the link layer hijacking is improved, the number of missed link layer hijackings is reduced, and the effect for detecting the link layer hijacking is improved.
Description
METHOD, DEVICE, AND SYSTEM FOR DETECTING LINK LAYER HIJACKING, USER EQUIPMENT, AND ANALYZING SERVER
[0001] This application claims priority to Chinese Patent Application No.201310330142.X, entitled "METHOD, DEVICE, AND SYSTEM FOR DETECTING LINK LAYER HIJACKING, USER EQUIPMENT, AND ANALYZING SERVER", filed with the Chinese Patent Office on July 31, 2013, which is incorporated by reference in its entirety herein.
FIELD
[0002] The invention relates to the field of information security technology, and in particular to a method, a device and a system for detecting a link layer hijacking, a user equipment, and an analyzing server.
BACKGROUND
[0003] Link layer hijacking refers to a means for inserting malicious codes or Uniform Resource Locators (URL) into a web page on a network transmission physical link, to steal user information. Because of a security danger of leaking user information due to the link layer hijacking, it is necessary to detect the link layer hijacking, thereby to judge whether there are malicious codes or URLs in a web page requested by a user. [0004] An existing method for detecting a link layer hijacking in a web page includes: providing a detecting device at a bypass in the link to detect the link layer hijacking for a web page, where the detecting device is adapted to determine whether the link layer hijacking occurs in a returned page based on page information obtained and returned to a user. Fig. 1 is a diagram showing a network topology of a system for detecting a link layer hijacking in the conventional technology. Referring to Fig. 1, the procedure for detecting a link layer hijacking in the conventional technology includes: sending, by user equipment, a GET/POST request (which is a request in http protocol, where GET is configured to obtain data from a server, and POST is configured to send data to a server) to a sever; replying, by the server, response information to the user based on a type of the request; mirroring the response information by a detecting device to obtain a copy of the information replied by the server, parsing a URL from the copy, compares the parsed URL with a preset white list of URLs, and identifies a
malicious URL and a page with the link layer hijacking.
[0005] In the conventional technology, there are at least the following technique problems. The detecting device provided at the bypass additionally has a detecting effect limited by a location thereof. The closer the detecting device to the user equipment, the better the effect for detecting the link layer hijacking. However, the detecting device is generally close to a server, and it is difficult to provide the detecting device close to the user equipment. Thus, the possibility for the link layer hijacking on the transmission link between the detecting device and the user equipment is increased. Therefore, the precision for detecting the link layer hijacking is lowered. In addition, the link layer hijacking may be missed, so that the effect for detecting the link layer hijacking is lowered.
SUMMARY
[0006] In view of the above, a method for detecting a link layer hijacking, a device for detecting a link layer hijacking, a user equipment, an analyzing server and a system for detecting a link layer hijacking are provided according to embodiments of the invention, to resolve the problems in the conventional technology that the effect for detecting the link layer hijacking is affected by the location of the detecting device provided additionally, and thus the precision of an analysis of the link layer hijacking is lowered; and the effect for detecting the link layer hijacking is lowered because the link layer hijacking may be missed. [0007] In order to achieve the above objects, a technique solution is provided as follows according to the embodiments of the invention.
[0008] A method for detecting a link layer hijacking is provided, which is applied to user equipment and includes:
requesting web page information to a Hypertext Transfer Protocol (HTTP) server; receiving from the HTTP server the web page information and a monitoring script preset on the HTTP server; sending, to an analyzing server, information related to Uniform Resource Locator (URL) in the received web page information based on the monitoring script; and parsing, by the analyzing server, URL text information from the information related
to the URL; and determining, by the analyzing server, whether the link layer hijacking occurs in the received web page information based on the URL text information.
[0009] The information related to the URL may include text information in the received web page information, and/or Java script information obtained from the received web page information.
[0010] The parsing, by the analyzing server, URL text information from the information related to the URL may include:
extracting, by the analyzing server, the URL text information from the text information based on a URL key word, in the case that the information related to the URL includes the text information in the received web page information; and
extracting, by the analyzing server, the URL text information nested in the Java script information by using a preset Java script monitoring engine, in the case that the information related to the URL includes the Java script information obtained from the received web page information.
[0011] According to an embodiment of the invention, a method for detecting a link layer hijacking is further provided, which is applied to an analyzing server and includes:
receiving information related to Uniform Resource Locator (URL) in web page information after user equipment receives from a Hypertext Transfer Protocol (HTTP) server the web page information and the monitoring script preset on the HTTP server, where the information related to the URL is sent by the user equipment based on a monitoring script;
parsing URL text information from the information related to the URL; and determining whether the link layer hijacking occurs in the received web page information based on the URL text information.
[0012] The information related to the URL may include text information in the received web page information, and/or Java script information obtained from the received web page information.
[0013] The parsing URL text information from the information related to the URL may include:
extracting the URL text information from the text information based on a URL key
word, in the case that the information related to the URL includes the text information in the received web page information; and
extracting the URL text information nested in the Java script information by a preset Java script monitoring engine, in the case that the information related to the URL includes the Java script information obtained from the received web page information.
[0014] The determining whether the link layer hijacking occurs in the received web page information based on the URL text information includes: judging whether a URL corresponding to the URL text information matches a URL in a URL white list; and determining that the link layer hijacking occurs in the received web page information, in the case that the URL corresponding to the URL text information does not match any URL in the URL white list.
[0015] The method further includes: judging whether the URL corresponding to the URL text information matches a URL in a malicious URL database after determining that the link layer hijacking occurs in the received web page information; determining that the link layer hijacking in the received web page information is a malicious hijacking, in the case that the URL corresponding to the URL text information matches a URL in the malicious URL database; and
determining that the link layer hijacking in the received web page information is a non-malicious hijacking, in the case that the URL corresponding to the URL text information does not match any URL in the malicious URL database.
[0016] The method further includes: after determining that the link layer hijacking occurs in the received web page information, determining a source of the link layer hijacking based on a user's IP and a service identifier.
[0017] The method further includes:
outputting first warning information to the user equipment based on region information of the user's IP and region information of Internet Server Provider (ISP), after determining that the link layer hijacking occurs in the received web page information; or outputting second warning information to the HTTP server corresponding to a web
page, in the case that times the web page is hijacked exceeds a threshold.
[0018] According to an embodiment of the invention, a device for detecting a link layer hijacking is further provided, which is applied to user equipment and includes: a requesting module configured to request web page information to a Hypertext Transfer Protocol (HTTP) server; a first receiving module configured to receive from the HTTP server the web page information and a monitoring script preset on the HTTP server that are returned; and a sending module configured to send to an analyzing server information related to Uniform Resource Locator (URL) in the received web page information based on the monitoring script, wherein the analyzing server parses URL text information from the information related to the URL and determines whether the link layer hijacking occurs in the received web page information based on the URL text information.
[0019] The information related to the URL may include text information in the received web page information, and/or Java script information obtained from the received web page information.
[0020] According to an embodiment of the invention, a user equipment is further provided, which includes the above device for detecting the link layer hijacking.
[0021] According to an embodiment of the invention, a device for detecting a link layer hijacking is further provided, which is applied to an analyzing server and includes: a second receiving module configured to receive information related to Uniform
Resource Locator (URL) in web page information, after user equipment receives from a Hypertext Transfer Protocol (HTTP) server the web page information and the monitoring script preset on the HTTP server, wherein the information related to the URL is sent by the user equipment based on a monitoring script;
a parsing module configured to parse URL text information from the information related to the URL; and
an identifying module configured to determine whether the link layer hijacking occurs in the received web page information based on the URL text information.
[0022] The information related to the URL may include text information in the received
web page information, and/or Java script information obtained from the received web page information.
[0023] The parsing module may include: a first parsing unit configured to extract the URL text information from the text information based on a URL key word, in the case that the information related to the URL includes the text information in the received web page information; and
a second parsing unit configured to extract the URL text information nested in the Java script information by a preset Java script monitoring engine, in the case that the information related to the URL includes the Java script information obtained from the received web page information.
[0024] According to an embodiment of the invention, an analyzing server is further provided, which includes the above device for detecting the link layer hijacking.
[0025] According to an embodiment of the invention, a system for detecting a link layer hijacking is further provided, which includes a Hypertext Transfer Protocol (HTTP) server, user equipment and an analyzing server, the HTTP server is configured to preset a monitoring script, and reply web page information and the monitoring script to the user equipment in response to the request of the user equipment for the web page information; the user equipment is configured to request the web page information to the HTTP server, receive from the HTTP server the web page information and the monitoring script, and send to the analyzing server information related to Uniform Resource Locator (URL) in the received web page information based on the monitoring script; and
the analyzing server is configured to parse URL text information from the information related to the URL and determine whether the link layer hijacking occurs in the received web page information based on the URL text information.
[0026] In the method for detecting the link layer hijacking according to the embodiments of the invention, user equipment requests web page information to an HTTP server, receives from the HTTP server the web page information and a monitoring script preset on the HTTP server, and sends to an analyzing server information related to URL in the received web page information based on the monitoring script; the analyzing server parses URL text information
from the information related to the URL, and determines whether the link layer hijacking occurs in the received web page information based on the URL text information. Thus, in the embodiment, the detection of the link layer hijacking does not depend on a detecting device provided at a bypass additionally, thus the detection effect is not affected by the location of the detecting device provided at the bypass additionally. In the embodiments, the analyzing server is configured to determine a state of the link layer hijacking by analyzing the URL text information, i.e., the URL text information in the web page information received by the user equipment. In this way, the precision of the analysis of the link layer hijacking is improved, the number of missed link layer hijackings is reduced, and the effect for detecting the link layer hijacking is improved.
BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings applied to the description of the embodiments or the existing technologies will be described briefly as follows, to clarify the technical solutions according to the embodiments of the invention or the existing technologies. It is obvious that the accompanying drawings in the following description are only some embodiments of the invention. For those skilled in the art, other accompanying drawings may be obtained according to these accompanying drawings without any creative work.
[0028] Fig. 1 is a diagram showing a network topology of a system for detecting a link layer hijacking in the conventional technology;
[0029] Fig. 2 is a flowchart of a method for detecting a link layer hijacking according to an embodiment of the invention;
[0030] Fig. 3 is another flowchart of a method for detecting a link layer hijacking according to an embodiment of the invention; [0031] Fig. 4 is a flowchart of a method for determining a link layer hijacking in received web page information according to an embodiment of the invention;
[0032] Fig. 5 is a flowchart of a method for determining a malicious hijacking according to an embodiment of the invention;
[0033] Fig. 6 is yet another flowchart of a method for detecting a link layer hijacking according to an embodiment of the invention;
[0034] Fig. 7 is a block diagram showing a structure of a device for detecting a link layer hijacking according to an embodiment of the invention;
[0035] Fig. 8 is a block diagram showing another structure of a device for detecting a link layer hijacking according to an embodiment of the invention; [0036] Fig. 9 is a block diagram showing a structure of a parsing module according to an embodiment of the invention;
[0037] Fig. 10 is a block diagram showing a structure of an identifying module according to an embodiment of the invention;
[0038] Fig. 11 is a block diagram showing another structure of a device for detecting a link layer hijacking according to an embodiment of the invention;
[0039] Fig. 12 is a block diagram of yet another structure of a device for detecting a link layer hijacking according to an embodiment of the invention;
[0040] Fig. 13 is a block diagram showing a structure of a system for detecting a link layer hijacking according to an embodiment of the invention; [0041] Fig. 14 is a diagram showing a hardware structure of user equipment according to an embodiment of the invention; and
[0042] Fig. 15 is a diagram showing a hardware structure of an analyzing server according to an embodiment of the invention.
DETAILED DESCRIPTION OF EMBODIMENTS
[0043] In order to make the object, technical solution and advantage according to the embodiments of the invention more clear, the technical solution according to the embodiments of the invention will be described clearly and completely as follows in conjunction with the accompanying drawings in the embodiments of the invention. It is obvious that the described embodiments are only a part of the embodiments according to the invention. All the other embodiments obtained by those skilled in the art based on the embodiments in the invention without any creative work belong to the scope of the invention.
[0044] Fig. 2 is a flowchart of a method for detecting a link layer hijacking according to an embodiment of the invention. The method is applied to user equipment, which is performed at
a user side. Referring to Fig. 2, the method may include steps SI 00 to SI 30 as follows.
[0045] Step SI 00 includes: requesting web page information to a Hypertext Transfer Protocol (HTTP) server.
[0046] The user equipment may send a GET/POST request to the HTTP server, to obtain the requested web page information from the HTTP server.
[0047] Step SI 10 includes: receiving from the HTTP server the web page information and a monitoring script preset on the HTTP server.
[0048] The monitoring script may be a monitoring script in JavaScript (JS). JavaScript is a prototype-based and object-oriented case sensitive client-side script language with dynamic typing and developed from LiveScript of Netscape.
[0049] In an embodiment, the JS monitoring script may be preset on an HTTP server to be monitored. The JS monitoring script may be downloaded to the user equipment when the HTTP server replies the web page information to the user equipment. For example, if a web site www.qq.com needs to be monitored to detect a link layer hijacking in an embodiment, an HTTP server corresponding to the web set www.qq.com is preset with a JS script. When the user equipment requests a web page information of the web site www.qq.com to the HTTP server corresponding to the web set www.qq.com, the HTTP server replies the web page information of the web site www.qq.com as well as the JS preset script to the user equipment.
[0050] Step SI 20 includes: sending, to an analyzing server, information related to Uniform Resource Locator (URL) in the received web page information to an analyzing server based on the monitoring script.
[0051] Step SI 30 includes: parsing, by the analyzing server, URL text information from the information related to the URL; and determining, by the analyzing server, whether the link layer hijacking occurs in the received web page information based on the URL text information.
[0052] After receiving the web page information and the JS monitoring script, the user equipment is not able to determine whether the link layer hijacking occurs in the received web page information or whether malicious codes and URLs are inserted in the received web page information. The user equipment sends, to the analyzing server at a network side, information related to the URL in the received web page information based on the received monitoring
script. The analyzing server parses URL text information from the information related to the URL after receiving the information related to the URL; and identifies a state of the link layer hijacking of the received web page information based on the URL text information. Here, the state of the link layer hijacking means that the link layer hijacking does or does not occur in the received web page information.
[0053] It needs to be noted that the monitoring script is set on the HTTP server corresponding to the site to be monitored in the embodiment. Thus, the monitoring script will be provided to the user equipment together with the web page information, only when the user equipment requests the web page information to the HTTP server. After receiving the monitoring script, the user equipment may know that the web site corresponding to the requested web page information needs to be monitored, and may send information related to the URL in the received web page information to the analyzing server based on the monitoring script. The analyzing server determines whether the link layer hijacking occurs in the received web page information. In the embodiment, the monitoring script is mainly configured to trigger the user equipment to report to the analyzing server the information related to the URL in the received web page information.
[0054] In the method for detecting the link layer hijacking according to the embodiment, the user equipment requests the web page information to an HTTP server, receives from the HTTP server the web page information and the monitoring script preset on the HTTP server, and sends the information related to the URL in the received web page information to an analyzing server based on the monitoring script. The analyzing server parses URL text information from the information related to the URL, and determines whether the link layer hijacking occurs in the received web page information based on the URL text information. In the embodiment, the detection of the link layer hijacking does not depend on a detecting device provided at a bypass additionally, thus the detection effect is not affected by the location of the detecting device provided at the bypass additionally. In the embodiments, the analyzing server is configured to determine a state of the link layer hijacking by analyzing the URL text information, i.e., is the URL text information in the web page information received by the user equipment. In this way, the precision of the analysis of the link layer hijacking is improvided, the number of missed link layer hijacks is reduced, and the effect for detecting the link layer hijacking is improved.
[0055] Optionally, the information related to the URL may include text information in the received web page information, and/or JS information obtained from the received web page information.
[0056] The URL text information refers to a file for indicating URL carried in the web page information. Thus, the state of the link layer hijacking of the received web page information may be identified based on the URL text information. The URL mainly includes: URL in text-type (mainly for static web page) and ULR packed by JS arithmetic, i.e., URL nested by a dynamic JS arithmetic (mainly for dynamic web page). The user equipment may send the information related to the URL to the analyzing server by three ways. In the first way, the user equipment may send text information in the received web page information to the analyzing server. In the second way, the user equipment may send JS information obtained from the received web page information to the analyzing server. In the third way, the user equipment may send to the analyzing server both the text information in the received web page information and the JS information obtained from the received web page information. [0057] In the case that the user equipment send the text information in the received web page information to the analyzing server, the analyzing server may extract URL text information from the text information based on a URL key word. The URL key word mainly includes some key words related to the URL, such as frame, iframe, script, and form.
[0058] In the case that the user equipment sends the JS information obtained from the received web page information to the analyzing server, the analyzing server may extract the nested URL text information from the JS information by a preset JS monitoring engine. The preset JS monitoring engine may be spidermonkey engine.
[0059] A method for detecting a link layer hijacking according to an embodiment will be described below with respect to an analyzing server. The method to be described below corresponds to the method described with respect to the user equipment, which may be referred to the method with respect to the user equipment.
[0060] Fig. 3 is another flowchart of a method for detecting a link layer hijacking according to an embodiment of the invention. The method is applied to an analyzing server. The analyzing server is a server provided at the network side and configured to process data and logic operations. A data communication is provided between the analyzing server and the user equipment. Referring to Fig. 3, the method may include steps S200 to S220.
[0061] Step S200 may include: receiving information related to URL in web page information, where the information related to the URL is sent by user equipment based on a monitoring script, after the user equipment receives from a HTTP server the web page information and the monitoring script preset on the HTTP server.
[0062] Step S210 may include: parsing URL text information from the information related to the URL.
[0063] Step S220 may include: determining whether the link layer hijacking occurs in the received web page information based on the URL text information.
[0064] In the method for detecting the link layer hijacking according to the embodiment, the detection of a link layer hijacking does not depend on a detecting device provided at a bypass additionally, thus the detection effect is not affected by the location of the detecting device provided at the bypass additionally. In the embodiments, the analyzing server is configured to determine a state of the link layer hijacking by analyzing the URL text information, i.e., the URL text information in the web page information received by the user equipment. In this way, the precision of the analysis of the link layer hijacking is improved, the number of missed link layer hijackings is reduced, and the effect for detecting the link layer hijacking is improved.
[0065] Optionally, the information related to the URL may include text information in the received web page information, and/or JS information obtained from the received web page information.
[0066] In the case that the information related to the URL includes the text information, the analyzing server may extract the URL text information from the text information based on a URL key word. The URL key word may includes some key words related to the URL, such as frame, iframe, script, and form.
[0067] In the case that the information related to the URL includes the JS information, the analyzing server may extract the URL text information nested into the JS information by a preset JS monitoring engine. The preset JS monitoring engine may be spidermonkey engine.
[0068] In the embodiment, the URL text information of both static web page and dynamic web page may be extracted. Therefore, the method for detecting the link layer hijacking may be applied to more types of web page, the number of missed link layer hijackings is reduced,
and the effect for detecting the link layer hijacking is improved.
[0069] Fig. 4 is a flowchart of a method for determining a link layer hijacking in received web page information. The method may include steps S221 to S223.
[0070] Step S221 may include: judging whether a URL corresponding to the URL text information matches a URL in a URL white list; if the URL corresponding to the URL text information matches the URL in the URL white list, performing step S222; otherwise, performing step S223.
[0071] Step S222 may include: determining that no link layer hijacking occurs in the received web page information. [0072] Step S223 may include: determining that a link layer hijacking occurs in the received web page information.
[0073] The method shown in Fig. 4 may be considered as an optional implementation for the step S220 in Fig. 3.
[0074] The link layer hijacking includes non-malicious hijacking and malicious hijacking. The non-malicious hijacking refers to some action with a low risk, such as an insertion of an advertisement page. The malicious hijacking includes some action such as an insertion of a code or a URL for stealing user's identity information. Therefore, in the embodiment, after determining the link layer hijacking in the web page information received by the user equipment, the method further includes: judging whether the link layer hijacking is a malicious hijacking. Referring to Fig. 5, the method for determining the malicious hijacking according to an embodiment includes steps S300 to S320.
[0075] Step S300 may include: judging whether the URL corresponding to the URL text information matches a URL in a malicious URL database; if the URL corresponding to the URL text information matches the URL in the malicious URL database, performing step S310; otherwise, performing step S320.
[0076] Step S310 may include: determining that the link layer hijacking in the received web page information is a malicious hijacking.
[0077] Step S223 may include: determining that the link layer hijacking in the received web page information is a non-malicious hijacking.
[0078] Optionally, after determining the link layer hijacking in the received web page information, the method includes: determining a source of the link layer hijacking, to make a statistic of the sources of link layer hijackings. In a particular implementation, the source of a link layer hijacking may be determined based on a user's Internet Protocol (IP) and a service identifier.
[0079] Optionally, the analyzing server may further output warning information after determining that the link layer hijacking in the web page information received by the user equipment. The warning information may be output to either the user equipment or the HTTP server corresponding to the site expected to be monitored. The step of outputting the warning to the user equipment may include: outputting first warning information to the user equipment based on region information of the user's IP and region information of Internet Server Provider (ISP). In an embodiment, the first warning information may be grouped based on the region information of IP region and the region information of ISP for output. The step of outputting the warning to the http server may include: outputting second warning information to the HTTP server corresponding to the web page, in the case that times the web page suffers from the link layer hijacking exceeds a threshold. For example, if the analyzing server finds that the times the web page www.qq.com suffers from the link layer hijacking exceeds a threshold, the analyzing server sends the second warning information to the HTTP server corresponding to www.qq.com, to alter web site operators. [0080] A method for detecting a link layer hijacking is provided below. Fig. 6 is yet another flowchart of a method for detecting a link layer hijacking according to an embodiment of the invention. Referring to Fig. 6, the method may include steps S400 to S500.
[0081] Step S400 may include: receiving information related to URL in web page information, where the information related to the URL is sent by user equipment based on a monitoring script, after the user equipment receives from a HTTP server the web page information and the monitoring script preset on the HTTP server.
[0082] Step S410 may include: determining a type of the information related to the URL.
[0083] Step S420 may include: extracting URL text information from text information based on a URL key word, in the case that the information related to the URL includes the text information in the received web page information.
[0084] Step S430 may include: extracting URL text information nested in JS information by a preset JS monitoring engine, in the case that the information related to the URL includes the JS information obtained from the received web page information.
[0085] It should be noted that steps S420 and S430 are different processes for different types of information related to the URL after step S410.
[0086] Step S440 may include: judging whether the URL corresponding to the URL text information matches a URL in a URL white list; if the URL corresponding to the URL text information matches the URL in the URL white list, performing step S450; otherwise, performing step S465. [0087] Step S450 may include: determining that no link layer hijacking occurs in the received web page information, and ending the process.
[0088] Step S460 may include: determining that the link layer hijacking occurs in the received web page information; judging whether the URL corresponding to the URL text information matches a URL in a malicious URL database, if the URL corresponding to the URL text information does not match any URLs in the malicious URL database, performing step S470; otherwise, performing step S480.
[0089] Step S470 may include: determining that the link layer hijacking in the received web page information is a non-malicious hijack.
[0090] Step S480 may include: determining that the link layer hijacking in the received web page information is a malicious hijack.
[0091] Step S490 may include: determining a source of the link layer hijacking based on a user's IP and a service identifier.
[0092] Step S500 may include: outputting first warning information to the user equipment based on region information of the user's IP and region information of Internet Server Provider (ISP), and/or outputting second warning information to the HTTP server corresponding to a web page when the times the web page is hijacked exceeds a threshold.
[0093] A device for detecting a link layer hijacking according to an embodiment of the invention is described below with respect to user equipment. The device for detecting the link layer hijacking described below corresponds to the method for detecting the link layer hijacking described above with respect to user equipment, which may be referred to the
method for detecting the link layer hijacking with respect to user equipment.
[0094] Fig. 7 is a block diagram showing a structure of a device for detecting a link layer hijacking according to the embodiment. Referring to Fig. 7, the device may include: a requesting module 100, a first receiving module 110 and a sending module 120. [0095] The requesting module 100 is configured to request web page information to an HTTP server.
[0096] The first receiving module 110 is configured to receive from the HTTP server the web page information and a monitoring script preset on the HTTP server.
[0097] The sending module 120 is configured to send to an analyzing server information related to URL in the received web page information based on the monitoring script, where the analyzing server parses URL text information from the information related to the URL and determine whether the link layer hijacking occurs in the received web page information based on the URL text information.
[0098] With the device for detecting the link layer hijacking according to the embodiment, the detection of the link layer hijacking does not depend on a detecting device provided at a bypass additionally, thus the detection effect is not affected by the location of the detecting device provided at the bypass additionally. In the embodiments, the analyzing server is configured to determine a state of the link layer hijacking by analyzing the URL text information, i.e., the URL text information in the web page information received by the user equipment. In this way, the precision of the analysis of the link layer hijacking is improved, the number of missed link layer hijackings is reduced, and the effect for detecting the link layer hijacking is improved.
[0099] Optionally, the information related to the URL may include text information in the received web page information, and/or JS information obtained from the received web page information.
[0100] According to an embodiment of the invention, user equipment is further provided, which includes the device for detecting the link layer hijacking described above with respect to the user equipment.
[0101] A device for detecting a link layer hijacking according to an embodiment of the invention is described below with respect to an analyzing server. The device for detecting the
link layer hijacking described below corresponds to the method for detecting the link layer hijacking described above with respect to the analyzing server, which may be referred to the method for detecting the link layer hijacking with respect to the analyzing server.
[0102] Fig. 8 is a block diagram showing another structure of a device for detecting a link layer hijacking according to the embodiment. The device for detecting the link layer hijacking is applied to an analyzing server. Referring to Fig. 8, the device may include: a second receiving module 200, a parsing module 210, and an identifying module 220.
[0103] The second receiving module 200 is configured to receive information related to URL in web page information, where the information related to the URL is sent by user equipment based on a monitoring script, after the user equipment receives from a HTTP server the web page information and the monitoring script preset on the HTTP server.
[0104] The parsing module 210 is configured to parse URL text information from the information related to the URL.
[0105] The identifying module 220 is configured to determine whether the link layer hijacking occurs in the received web page information based on the URL text information.
[0106] In the embodiment, the analyzing server is configured to analyze the URL text information, i.e., the URL text information in the web page information received by the user equipment, to determine a state of the link layer hijacking. In this way, the precision of an analysis of the link layer hijacking is improved, the number of missed link layer hijackings is reduced, and the effect for detecting the link layer hijacking is improved.
[0107] Optionally, the information related to the URL may include text information in the received web page information, and/or JS information obtained from the received web page information. Correspondingly, the parsing module 210 may have a structure shown in Fig. 9. Referring to Fig. 9, the parsing module 210 may include: a first parsing unit 211 and a second parsing unit 212.
[0108] The first parsing unit 211 is configured to extract URL text information from the information related to the URL based on a URL key word, in the case that the information related to the URL includes the text information in the received web page information.
[0109] The second parsing unit 212 is configured to extract URL text information nested in JS information by a preset JS monitoring engine, in the case that the information related to the
URL includes the JS information obtained from the received web page information.
[0110] Fig. 10 is a block diagram showing a structure of the identifying module 220 according to an embodiment of the invention. Referring to Fig. 10, the identifying module 220 may include: a match judging unit 221, a first hijacking determining unit 222 and a second hijacking determining unit 223
[0111] The match judging unit 221 is configured to judge whether the URL corresponding to the URL text information matches a URL in a URL white list.
[0112] The first hijacking determining unit 222 is configured to determine that no link layer hijacking occurs in the received web page information, if the URL corresponding to the URL text information matches the URL in the URL white list.
[0113] The second hijacking determining unit 223 is configured to determine that the link layer hijacking occurs in the received web page information, if the URL corresponding to the URL text information does not match any URLs in the URL white list.
[0114] The device for detecting the link layer hijacking may have another structure according to an embodiment of the invention. Fig. 11 is a block diagram showing another structure of a device for detecting a link layer hijacingk according to an embodiment of the invention. This device differs the device for detecting the link layer hijacking in Fig. 8 in that this device may further include: a malicious hijacking judging module 230, a first malicious hijacking determining module 240, and a second malicious hijacking determining module 250.
[0115] The malicious hijacking judging module 230 is configured to judge whether the URL corresponding to the URL text information matches a URL in a malicious URL database, after it is determined that the link layer hijacking occurs in the received web page information.
[0116] The first malicious hijacking determining module 240 is configured to determine that the link layer hijacking in the received web page information is a malicious hijack, if the URL corresponding to the URL text information matches the URL in the malicious URL database; and
[0117] The second malicious hijacking determining module 250 is configured to determine that the link layer hijacking in the received web page information is a non-malicious hijack, if the URL corresponding to the URL text information does not match any URLs in the
malicious URL database;
[0118] Fig. 12 is a block diagram showning yet another structure of a device for detecting a link layer hijacking according to an embodiment of the invention. This device differs the device for detecting the link layer hijacking in Fig. 11 in that this device may further include: a hijacking source determining module 260 and a warning information sending module 270.
[0119] The hijacking source determining module 260 is configured to determine a source of the link layer hijacking based on a user's IP and a service identifier, after it is determined that the link layer hijacking occurs in the received web page information.
[0120] The warning information sending module 270 is configured to output first warning information to the user equipment based on region information of the user's IP and region information of Internet Server Provider (ISP), after it is determined that a link layer hijacking occurs in the received web page information; and/or output second warning information to the HTTP server corresponding to the web page in the case that times the web page is hijacked exceeds a threshold. [0121] According to an embodiment of the invention, an analyzing server is further provided, which includes the device for detecting the link layer hijacking described above with respect to an analyzing server.
[0122] A system for detecting a link layer hijacking according to an embodiment of the invention is described below. The system for detecting the link layer hijacking described below corresponds to the method and device for detecting the link layer hijacking described above with respect to user equipment and an analyzing server, which may be referred to them.
[0123] Fig. 13 is a block diagram showing a structure of a system for detecting a link layer hijacking according to an embodiment of the invention. Referring to Fig. 13, the system for detecting the link layer hijacking may include an HTTP server 10, user equipment 20 and an analyzing server 30.
[0124] The HTTP server 10 is configured to preset a monitoring script, and reply web page information and the monitoring script to the user equipment in response to the request of the user equipment 20 for the web page information.
[0125] The user equipment 20 is configured to request the web page information to the HTTP server 10, receive from the HTTP server the web page information and the monitoring
script, and send to the analyzing server 30 information related to URL in the received web page information based on the monitoring script.
[0126] The analyzing server 30 is configured to parse URL text information from the information related to the URL and determine whether the link layer hijacking occurs in the received web page information based on the URL text information.
[0127] In the system for detecting the link layer hijacking according to the embodiment, a monitoring script is preset at an HTTP server. When the user equipment requests web page information, the user equipment receives from the HTTP server the web page information and the monitoring script preset on the HTTP server, and sends information related to the URL in the received web page information to the analyzing server based on the monitoring script. The analyzing server parses URL text information from the information related to URL, and determines whether the link layer hijacking occurs in the received web page information based on the URL text information. In the embodiment, the detection of the link layer hijacking does not depend on a detecting device provided at a bypass additionally, thus the detection effect is not affected by the location of the detecting device provided at the bypass additionally. In the embodiments, the analyzing server is configured to determine a state of the link layer hijacking by analyzing the URL text information, i.e., the URL text information in the web page information received by the user equipment. In this way, the precision of the analysis of the link layer hijacking is improved, the number of missed link layer hijacks is reduced, and the effect for detecting the link layer hijacking is improved.
[0128] In the following, a hardware structure of user equipment is described according to an embodiment of the invention. Fig. 14 is a diagram showing a hardware structure of user equipment according to an embodiment of the invention. Referring to Fig. 14, the user equipment may include a communication interface 1, a memory 2, a processor 3 and a communication bus 4.
[0129] Components of the user equipment are described in detail in conjunction with Fig. 14.
[0130] A communication interface 1 may be an interface of a communication module, such as an interface of a network card, which is configured to receive and transmit signals between an access server and peripheral equipment.
[0131] A memory 2 may be configured to store software programs and modules. A processor 3 performs various function applications and data processes in the access server by running the software programs and modules stored in the memory 2. The memory 2 may mainly include a storage region for program and a storage region for data. The storage region for program may store operating system, application needed by at least one function (such as an audio playing function, a video playing function) and the like. The storage region for data may store data (such as video data, an address book) generated by using the access server and the like. Furthermore, the memory 2 may include a high speed random access memory and may further include a non-volatile storage, such as at least one of a disk storage device, a flash memory or other non- volatile solid-state storage device.
[0132] The processor 3 is a control center of the access server, which is connected to various components of the access server through various interfaces and lines. The processor 3 performs various functions and data processes by executing or running the software programs and modules stored in the memory 2 and calling the data stored in the memory 2, thereby monitoring the access server. Optionally, the process 3 may include one or more processing unit. Preferably, an application processor and a modem may be integrated into the processor 3, in which the application processor is applied to the operating system and applications, and the modem is applied to a wireless communication. It can be understood that the above modem may further not be integrated into the process 3. [0133] The communication 1, the memory 2 and the processor 3 communicate with each other through a communication bus 4.
[0134] In an embodiment of the invention, the processor 3 may further have the following functions: requesting web page information to a HTTP server; receiving from the HTTP server the web page information and a monitoring script preset on the HTTP server; and sending information related to URL in the received web page information to an analyzing server based on the monitoring script, where the analyzing server parses URL text information from the information related to the URL and determines whether the link layer hijacking occurs in the received web page information based on the URL text information.
[0135] A hardware structure of an analyzing server will be described below according to an embodiment of the invention. Fig. 15 is a diagram showing a hardware structure of an analyzing server according to an embodiment of the invention. Referring to Fig. 15, the analyzing server may include a communication interface 1 ', a memory 2', a processor 3' and a communication bus 4 ' .
[0136] The components of the analyzing server are described in detail by referring to Fig. 15.
[0137] A communication interface Γ may be an interface of a communication module, such as an interface of a network card, which is configured to receive and transmit signals between an access server and peripheral equipment.
[0138] A memory 2' may be configured to store software programs and modules. A processor 3' performs various function applications and data processes in the access server by running the software programs and modules stored in the memory 2'. The memory 2' may mainly include a storage region for program and a storage region for data. The storage region for program may store operating system, applications needed by at least one function (such as an audio playing function, a video playing function), and the like. The storage region for data may store data (such as video data, an address book) generated by using the access server, and the like. Furthermore, the memory 2' may include a high speed random access memory and may further include a non-volatile storage, such as at least one of a disk storage device, a flash memory or other non- volatile solid-state storage device.
[0139] The processor 3' is a control center of the access server, which is connected to various components of the access server through various interfaces and lines. The processor 3' performs various functions and data processes by executing or running the software programs and modules stored in the memory 2' and calling the data stored in the memory 2', thereby monitoring the access server. Optionally, the process 3' may include one or more processing unit. Preferably, an application processor and a modem may be integrated into the processor 3, in which the application processor is applied to the operating system and applications, and the modem is applied to a wireless communication. It can be understood that the above modem may further not be integrated into the process 3'. [0140] The communication Γ, the memory 2' and the processor 3' communicate with each other through a communication bus 4'.
[0141] In an embodiment of the invention, the processor 3 may further have the following functions: receiving information related to URL in web page information, where the information related to the URL is sent by user equipment based on a monitoring script, after the user equipment receives from a HTTP server the web page information and the monitoring script preset on the HTTP server; parsing URL text information from the information related to the URL; and determining whether the link layer hijacking occurs in the received web page information based on the URL text information. [0142] The embodiments of the invention are described herein in a progressive manner, with an emphasis placed on explaining the difference between each embodiment and the other embodiments; hence, for the same or similar parts among the embodiments, they can be referred to from one another. For the device and system disclosed in the embodiments, the corresponding descriptions are relatively simple because the device and system correspond to the methods disclosed in the embodiments. The relevant portions may be referred to the description for the method parts.
[0143] Those skilled in the art can further understand that the individual exemplary units and steps that are described in conjunction with the embodiment disclosed herein are able to be implemented in the electronic hardware, the computer software or a combination of both the electronic hardware and the computer software, and the components and the steps of the individual examples have been described according to the function generally in the above description, for describing the interchangeability between the hardware and the software clearly. Whether these functions are implemented in hardware or software is determined by the technical solution-specific application and the design constraint condition. For each specific application, the described function can be implemented by those skilled in the art using different method, but this implementation should not be considered as beyond the scope of the invention.
[0144] The steps of the method or the algorithm that are described in conjunction with the embodiment disclosed herein can be implemented by the hardware, the software module performed by the processor or the combination of both the hardware and the software module
performed by the processor. The software module can be built in the Random Access Memory (RAM), the memory, the Read-Only Memory (ROM), the electrically programmable ROM, the electrically erasable programmable ROM, the register, the hardware, the movable disc, the CD-ROM, or any other forms of storing medium that is well-known in the technical field. [0145] The description of the embodiments herein enables those skilled in the art to implement or use the present invention. Numerous modifications to the embodiments will be apparent to those skilled in the art, and the general principle herein can be implemented in other embodiments without deviation from the spirit or scope of the invention. Therefore, the invention will not be limited to the embodiments described herein, but in accordance with the widest scope consistent with the principle and novel features disclosed herein.
Claims
1. A method for detecting a link layer hijacking, applied to user equipment, wherein the method comprises: requesting web page information to a Hypertext Transfer Protocol (HTTP) server; receiving from the HTTP server the web page information and a monitoring script preset on the HTTP server; sending, to an analyzing server, information related to Uniform Resource Locator (URL) in the received web page information based on the monitoring script; and parsing, by the analyzing server, URL text information from the information related to the URL, and determining, by the analyzing server, whether the link layer hijacking occurs in the received web page information based on the URL text information.
2. The method according to claim 1, wherein the information related to the URL comprises text information in the received web page information, and/or Java script information obtained from the received web page information.
3. The method according to claim 2, wherein the step of parsing, by the analyzing server, URL text information from the information related to the URL comprises: extracting, by the analyzing server, the URL text information from the text information based on a URL key word, in the case that the information related to the URL comprises the text information in the received web page information; and extracting, by the analyzing server, the URL text information nested in the Java script information by using a preset Java script monitoring engine, in the case that the information related to the URL comprises the Java script information obtained from the received web page information.
4. A method for detecting a link layer hijacking, applied to an analyzing server, wherein the method comprises: receiving information related to Uniform Resource Locator (URL) in web page information after user equipment receives the web page information and the monitoring script preset on a Hypertext Transfer Protocol (HTTP) server, wherein the information related to the
URL is sent by the user equipment based on a monitoring script; parsing URL text information from the information related to the URL; and
determining whether the link layer hijacking occurs in the received web page information based on the URL text information.
5. The method according to claim 4, wherein the information related to the URL comprises text information in the received web page information, and/or Java script information obtained from the received web page information.
6. The method according to claim 5, wherein the parsing URL text information from the information related to the URL comprises:
extracting the URL text information from the text information based on a URL key word, in the case that the information related to the URL comprises the text information in the received web page information; and
extracting the URL text information nested in the Java script information by a preset Java script monitoring engine, in the case that the information related to the URL comprises the Java script information obtained from the received web page information.
7. The method according to claim 6, wherein the determining whether the link layer hijacking occurs in the received web page information based on the URL text information comprises:
judging whether a URL corresponding to the URL text information matches a URL in a URL white list; and
determining that the link layer hijacking occurs in the received web page information, in the case that the URL corresponding to the URL text information does not match any URLs in the URL white list.
8. The method according to claim 7, further comprising:
judging whether the URL corresponding to the URL text information matches a URL in a malicious URL database after determining that the link layer hijacking occurs in the received web page information; determining that the link layer hijacking in the received web page information is a malicious hijack, in the case that the URL corresponding to the URL text information matches
a URL in the malicious URL database; and determining that the link layer hijacking in the received web page information is a non-malicious hijack, in the case that the URL corresponding to the URL text information does not match any URLs in the malicious URL database.
9. The method according to claim 7, further comprising: determining a source of the link layer hijacking based on a user's IP and a service identifier, after determining that the link layer hijacking occurs in the received web page information.
10. The method according to any one of claims 7 to 9, further comprising: outputting first warning information to the user equipment based on region information of the user's IP and region information of Internet Server Provider (ISP) after determining that the link layer hijacking occurs in the received web page information; or outputting second warning information to the HTTP server corresponding to the web page, in the case that times the web page is hijacked exceeds a threshold.
11. A device for detecting a link layer hijacking, applied to user equipment, wherein the device comprises: a requesting module configured to request web page information to a Hypertext Transfer Protocol (HTTP) server; a first receiving module configured to receive from the HTTP server the web page information and a monitoring script preset on the HTTP server; and a sending module configured to send to an analyzing server information related to Uniform Resource Locator (URL) in the received web page information based on the monitoring script, wherein the analyzing server parses URL text information from the information related to the URL and determines whether the link layer hijacking occurs in the received web page information based on the URL text information.
12. The device according to claim 11, wherein the information related to the URL comprises text information in the received web page information, and/or Java script information obtained from the received web page information.
13. A user equipment, comprising the device for detecting the link layer hijacking
according to claim 11 or 12.
14. A device for detecting a link layer hijack, applied to an analyzing server, wherein the device comprises: a second receiving module configured to receive information related to Uniform Resource Locator (URL) in web page information, after user equipment receives from a Hypertext Transfer Protocol (HTTP) server the web page information and the monitoring script preset on the HTTP server, wherein the information related to the URL is sent by the user equipment based on a monitoring script; a parsing module configured to parse URL text information from the information related to the URL; and
an identifying module configured to determine whether the link layer hijacking occurs in the received web page information based on the URL text information.
15. The device according to claim 14, wherein the information related to the URL comprises text information in the received web page information, and/or Java script information obtained from the received web page information.
16. The device according to claim 15, wherein the parsing module comprises:
a first parsing unit configured to extract the URL text information from the text information based on a URL key word, in the case that the information related to the URL comprises the text information in the received web page information; and a second parsing unit configured to extract the URL text information nested in the Java script information by a preset Java script monitoring engine, in the case that the information related to the URL comprises the Java script information obtained from the received web page information.
17. An analyzing server, comprising the device for detecting the link layer hijacking according to any one of claims 14 to 16.
18. A system for detecting a link layer hijacking, comprising a Hypertext Transfer Protocol (HTTP) server, user equipment and an analyzing server, wherein the HTTP server is configured to preset a monitoring script, and reply web page information and the monitoring script to the user equipment in response to the request of the
user equipment for the web page information; the user equipment is configured to request the web page information to the HTTP server, receive from the HTTP server the web page information and the monitoring script, and send to the analyzing server information related to Uniform Resource Locator (URL) in the received web page information based on the monitoring script; and the analyzing server is configured to parse URL text information from the information related to the URL and determine whether the link layer hijacking occurs in the received web page information based on the URL text information.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US14/720,400 US20150271202A1 (en) | 2013-07-31 | 2015-05-22 | Method, device, and system for detecting link layer hijacking, user equipment, and analyzing server |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310330142.XA CN104348803B (en) | 2013-07-31 | 2013-07-31 | Link kidnaps detection method, device, user equipment, Analysis server and system |
| CN201310330142.X | 2013-07-31 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US14/720,400 Continuation US20150271202A1 (en) | 2013-07-31 | 2015-05-22 | Method, device, and system for detecting link layer hijacking, user equipment, and analyzing server |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2015014169A1 true WO2015014169A1 (en) | 2015-02-05 |
Family
ID=52430951
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2014/080304 Ceased WO2015014169A1 (en) | 2013-07-31 | 2014-06-19 | Method, device, and system for detecting link layer hijacking, user equipment, and analyzing server |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20150271202A1 (en) |
| CN (1) | CN104348803B (en) |
| WO (1) | WO2015014169A1 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106100936A (en) * | 2016-08-10 | 2016-11-09 | 乐视控股(北京)有限公司 | Webpage method for monitoring performance and device and the webserver, client |
| CN107656954A (en) * | 2017-01-19 | 2018-02-02 | 深圳市谷熊网络科技有限公司 | The acquisition methods and device of information-pushing method, pushed information |
| CN112448931A (en) * | 2019-09-02 | 2021-03-05 | 北京京东尚科信息技术有限公司 | Network hijacking monitoring method and device |
Families Citing this family (20)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105100061B (en) * | 2015-06-19 | 2018-09-04 | 小米科技有限责任公司 | Network address kidnaps the method and device of detection |
| CN105245518B (en) * | 2015-09-30 | 2018-07-24 | 小米科技有限责任公司 | The detection method and device that network address is kidnapped |
| CN105515909B (en) * | 2015-12-15 | 2018-10-19 | 北京奇虎科技有限公司 | A kind of data acquisition test method and apparatus |
| CN107566200B (en) * | 2016-06-30 | 2021-06-01 | 阿里巴巴集团控股有限公司 | A monitoring method, device and system |
| CN106209833A (en) * | 2016-07-08 | 2016-12-07 | 汉柏科技有限公司 | A kind of method preventing webpage from kidnapping and gateway |
| CN106341395B (en) * | 2016-08-12 | 2019-12-13 | 商客通尚景科技(上海)股份有限公司 | Website source analysis system |
| CN107204971B (en) * | 2016-11-03 | 2020-06-05 | 深圳汇网天下科技有限公司 | Web station e-commerce hijacking detection method |
| CN106603575B (en) * | 2017-02-06 | 2020-05-26 | 恒安嘉新(北京)科技股份公司 | Network side-based active internet surfing safety detection and real-time reminding method, device and system |
| RU2638001C1 (en) * | 2017-02-08 | 2017-12-08 | Акционерное общество "Лаборатория Касперского" | System and method of antivirus server productivity reserve part isolation for anti-virus scanning of web-page |
| CN107231271A (en) * | 2017-04-24 | 2017-10-03 | 北京安博通科技股份有限公司 | A kind of detection method and device of shared verification |
| CN108989266B (en) * | 2017-05-31 | 2021-09-10 | 腾讯科技(深圳)有限公司 | Processing method for preventing webpage hijacking, client and server |
| CN107124430B (en) * | 2017-06-08 | 2021-07-06 | 腾讯科技(深圳)有限公司 | Page hijacking monitoring method, device, system and storage medium |
| CN107277027B (en) * | 2017-06-30 | 2020-10-16 | 北京知道未来信息技术有限公司 | Bypass answering device identification method and flow cleaning method |
| CN109218270B (en) * | 2017-07-06 | 2021-08-10 | 北京京东尚科信息技术有限公司 | Method and device for processing hijacked request |
| CN107819789A (en) * | 2017-12-07 | 2018-03-20 | 北京泛融科技有限公司 | A kind of content anti-hijack system and method based on block chain |
| US11269971B2 (en) * | 2020-02-10 | 2022-03-08 | International Business Machines Corporation | Providing reading insight on URLs with unfamiliar content |
| CN111352801A (en) * | 2020-02-26 | 2020-06-30 | 北京九州云动科技有限公司 | Rest service monitoring method and system |
| CN111611582B (en) * | 2020-05-22 | 2023-08-25 | 百度在线网络技术(北京)有限公司 | Method and device for identifying page hijacking behavior |
| CN111818105B (en) * | 2020-09-11 | 2021-01-05 | 北京达佳互联信息技术有限公司 | Domain name abnormity identification method, device, server and storage medium |
| CN114238970A (en) * | 2021-12-06 | 2022-03-25 | 北京天融信网络安全技术有限公司 | Malicious behavior detection optimization method, device, intrusion prevention device and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1420562A2 (en) * | 2002-11-12 | 2004-05-19 | Microsoft Corporation | Automated detection of cross site scripting vulnerabilities |
| CN101820419A (en) * | 2010-03-23 | 2010-09-01 | 北京大学 | Method for automatically positioning webpage Trojan mount point in Trojan linked webpage |
| CN102638448A (en) * | 2012-02-27 | 2012-08-15 | 珠海市君天电子科技有限公司 | Method for judging phishing websites based on non-content analysis |
| CN102663319A (en) * | 2012-03-29 | 2012-09-12 | 奇智软件(北京)有限公司 | Prompting method and device for download link security |
Family Cites Families (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050102358A1 (en) * | 2003-11-10 | 2005-05-12 | Gold Stuart A. | Web page monitoring and collaboration system |
| US9953097B2 (en) * | 2006-03-16 | 2018-04-24 | Ebay Inc. | System and method for managing network traffic routing |
| US20100180192A1 (en) * | 2009-01-09 | 2010-07-15 | Cerner Innovation, Inc. | Dynamically configuring a presentation layer associated with a webpage delivered to a client device |
| CN101901232A (en) * | 2009-05-31 | 2010-12-01 | 西门子(中国)有限公司 | Method and device for processing webpage data |
| CN102469113B (en) * | 2010-11-01 | 2014-08-20 | 北京启明星辰信息技术股份有限公司 | Security gateway and method for forwarding webpage by using security gateway |
| US8689181B2 (en) * | 2010-11-23 | 2014-04-01 | Axeda Corporation | Scripting web services |
| US8521667B2 (en) * | 2010-12-15 | 2013-08-27 | Microsoft Corporation | Detection and categorization of malicious URLs |
| CN102546576B (en) * | 2010-12-31 | 2015-11-18 | 北京启明星辰信息技术股份有限公司 | A kind of web page horse hanging detects and means of defence, system and respective code extracting method |
| CN102214224A (en) * | 2011-06-15 | 2011-10-12 | 中兴通讯股份有限公司 | Network resource access optimizing method, Web page browser and terminal |
| KR101095447B1 (en) * | 2011-06-27 | 2011-12-16 | 주식회사 안철수연구소 | Distributed Denial of Service Attack Blocking Devices and Methods |
| CN102902917A (en) * | 2011-07-29 | 2013-01-30 | 国际商业机器公司 | Method and system for preventing phishing attacks |
| CN102594934B (en) * | 2011-12-30 | 2015-03-25 | 奇智软件(北京)有限公司 | Method and device for identifying hijacked website |
-
2013
- 2013-07-31 CN CN201310330142.XA patent/CN104348803B/en active Active
-
2014
- 2014-06-19 WO PCT/CN2014/080304 patent/WO2015014169A1/en not_active Ceased
-
2015
- 2015-05-22 US US14/720,400 patent/US20150271202A1/en not_active Abandoned
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1420562A2 (en) * | 2002-11-12 | 2004-05-19 | Microsoft Corporation | Automated detection of cross site scripting vulnerabilities |
| CN101820419A (en) * | 2010-03-23 | 2010-09-01 | 北京大学 | Method for automatically positioning webpage Trojan mount point in Trojan linked webpage |
| CN102638448A (en) * | 2012-02-27 | 2012-08-15 | 珠海市君天电子科技有限公司 | Method for judging phishing websites based on non-content analysis |
| CN102663319A (en) * | 2012-03-29 | 2012-09-12 | 奇智软件(北京)有限公司 | Prompting method and device for download link security |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106100936A (en) * | 2016-08-10 | 2016-11-09 | 乐视控股(北京)有限公司 | Webpage method for monitoring performance and device and the webserver, client |
| CN107656954A (en) * | 2017-01-19 | 2018-02-02 | 深圳市谷熊网络科技有限公司 | The acquisition methods and device of information-pushing method, pushed information |
| CN112448931A (en) * | 2019-09-02 | 2021-03-05 | 北京京东尚科信息技术有限公司 | Network hijacking monitoring method and device |
| CN112448931B (en) * | 2019-09-02 | 2023-12-05 | 北京京东尚科信息技术有限公司 | Network hijacking monitoring method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104348803B (en) | 2018-12-11 |
| CN104348803A (en) | 2015-02-11 |
| US20150271202A1 (en) | 2015-09-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2015014169A1 (en) | Method, device, and system for detecting link layer hijacking, user equipment, and analyzing server | |
| CN103607385B (en) | Method and apparatus for security detection based on browser | |
| KR101001132B1 (en) | Method and system for determining vulnerability of web application | |
| CN113301012B (en) | Network threat detection method and device, electronic equipment and storage medium | |
| CN111800412A (en) | Advanced sustainable threat source tracing method, system, computer equipment and storage medium | |
| CN108632219B (en) | Website vulnerability detection method, detection server, system and storage medium | |
| CN101964025A (en) | XSS (Cross Site Scripting) detection method and device | |
| CN113518077A (en) | Malicious web crawler detection method, device, equipment and storage medium | |
| CN104881603A (en) | Method and apparatus for detecting webpage redirection vulnerabilities | |
| CN105635064B (en) | CSRF attack detection method and device | |
| CN108156270B (en) | Domain name request processing method and device | |
| CN112131577A (en) | Vulnerability detection method, device and equipment and computer readable storage medium | |
| CN113923008B (en) | Malicious website interception method, device, equipment and storage medium | |
| CN106550056A (en) | A kind of domain name analytic method and device | |
| CN110674427A (en) | Method, device, equipment and storage medium for responding to webpage access request | |
| CN112202717B (en) | HTTP request processing method and device, server and storage medium | |
| CN111131236A (en) | Web fingerprint detection device, method, equipment and medium | |
| CN114172980A (en) | Method, system, device, equipment and medium for identifying type of operating system | |
| CN114357457A (en) | Vulnerability detection method and device, electronic equipment and storage medium | |
| CN104023046A (en) | Mobile terminal recognition method and device | |
| CN111225038B (en) | Server access method and device | |
| CN106453573A (en) | Method and system for processing CGI request in HTTP server | |
| CN112152993A (en) | Method and device for detecting webpage hijacking, computer equipment and storage medium | |
| CN108259416B (en) | Method and related device for detecting malicious web pages | |
| CN105678161A (en) | Installation monitoring method and apparatus of applications |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 14831370 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 14/07/2016) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 14831370 Country of ref document: EP Kind code of ref document: A1 |