Improved malware detection method and system

By adding a predetermined code set to the web page before the web page is executed, and comparing web page attributes to detect malware, the problem of inability to effectively identify malware in the existing technology is solved, and security detection and alarm functions for client devices are realized to ensure Security of user data.

CN112673371BActive Publication Date: 2024-10-29JPMORGAN CHASE BANK NA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201980035333.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-05-23
Publication Date
2024-10-29
Estimated Expiration
2039-05-23

AI Technical Summary

Technical Problem

Existing computer systems lack effective tools for specific web pages when detecting malware, resulting in the inability to effectively identify and prevent malware added through the network, especially when web pages are executed, which may cause users to inadvertently leak confidential information.

Method used

By adding a predetermined set of code to the web page before it is executed, a modified web page is generated and compared to expected properties to determine whether malware is present on the client device, thereby sending an alert or storing related information.

Benefits of technology

It achieves effective detection and identification of malware on client devices, prevents the execution of malware, and ensures user data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112673371B_ABST
    Figure CN112673371B_ABST
Patent Text Reader

Abstract

The present application provides a system and method for detecting malware. The method includes: receiving a request for a web page; determining expected properties of the web page; generating a modified web page by combining the web page with a code for detecting malware; sending the modified web page to a client device; receiving data collected from an executed version of the modified web page; determining properties of the executed version of the modified web page; comparing the expected properties with the properties of the executed version of the modified web page; and determining whether the malware exists on the client device based on the comparison.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to U.S. Application No. 16 / 400,087, filed on May 1, 2019, which claims the benefit of U.S. Provisional Patent Application No. 62 / 676,559, filed on May 25, 2018, the contents of each of which are incorporated herein by reference in their entirety. Technical Field

[0003] The present technology generally relates to methods and systems for detecting malware, and more particularly, to methods and systems for comparing expected web content with executed and rendered web content in real time to detect malware present on a client device. Background Art

[0004] There are increasing attacks against various entities, including individuals, financial services organizations and networks, and other commercial entities, by malicious actors who target end-user devices by utilizing malware to hijack user sessions or surreptitiously obtain confidential information, such as identification information associated with personal or financial accounts. In some cases, web pages are modified by using network-added malware to alter the execution of client-side web pages so that fraudulent web pages are presented in the web browser of an unsuspecting user. As a result, an unsuspecting user who engages with the malicious content of the modified web page may unknowingly provide confidential information to a third party.

[0005] Although conventional computer systems may already have installed commercial software designed to detect computer viruses, such as antivirus software, such software is intended for general use and is therefore not tailored to any particular type of web page. As a result, such software may be ineffective. Therefore, there is a need for a tool designed to detect malware targeting a specific web page. Summary of the invention

[0006] The present disclosure, through one or more of its various aspects, embodiments and / or specific features or subcomponents, provides various systems, servers, devices, methods, media, programs and platforms for adding client code to a web page to detect malware before the web page is executed. Various aspects, embodiments, features and / or subcomponents provide an optimized process for adding client code to a web page to detect malware before the web page is executed.

[0007] According to one aspect of the present disclosure, a method for detecting malware is provided. The method is implemented by a processor on a computing device. The method includes: the processor receives a request for a first web page; the processor determines at least one expected attribute of the first web page; the processor generates a modified web page by combining the first web page with a predetermined code set, and the predetermined code set is configured to detect whether the malware exists on a client device; the modified web page is sent to the client device; an execution version of the modified web page is received from the client device; the processor determines at least one attribute of the execution version of the modified web page; the processor compares the at least one expected attribute of the first web page with the at least one attribute of the execution version of the modified web page; and the processor determines whether the malware exists on the client device based on the result of the comparison.

[0008] The method may further include sending an alert message to the client device indicating the presence of the malware on the client device.

[0009] The at least one expected attribute of the first web page may include a first number of JavaScript elements associated with the first web page.Determining whether the malware is present on the client device may further include: comparing the first number of JavaScript elements with a second number of JavaScript elements, the second number of JavaScript elements being associated with an executed version of the modified web page.

[0010] The at least one expected attribute of the first web page may include a first set of identifiers corresponding to JavaScript elements associated with the first web page. Determining whether the malware is present on the client device may further include comparing the first set of identifiers to a second set of identifiers corresponding to JavaScript elements associated with the executed version of the modified web page.

[0011] The at least one expected attribute of the first web page may include a first resource set consisting of JavaScript elements associated with the first web page. Determining whether the malware is present on the client device may further include comparing the first resource set to a second resource set consisting of JavaScript elements associated with an executed version of the modified web page.

[0012] The at least one expected attribute of the first webpage may include a first set of uniform resource identifiers (URLs) associated with the first webpage. Determining whether the malware is present on the client device may further include comparing the first set of uniform resource identifiers with a second set of uniform resource identifiers, the second set of uniform resource identifiers being composed of uniform resource identifiers associated with an execution version of the modified webpage.

[0013] The at least one expected attribute of the first web page may include a first JavaScript function name set consisting of JavaScript function names associated with the first web page. Determining whether the malware is present on the client device may further include: comparing the first JavaScript function name set with a second JavaScript function name set consisting of JavaScript function names associated with an execution version of the modified web page.

[0014] The at least one expected attribute of the first web page may include first information about a JavaScript event handler associated with the first web page.Determining whether the malware is present on the client device may further include comparing the first information with second information about a JavaScript event handler associated with an executed version of the modified web page.

[0015] The at least one expected attribute of the first web page may include a first cookie set consisting of cookies associated with the first web page.Determining whether the malware is present on the client device may further include comparing the first cookie set with a second cookie set consisting of cookies associated with an executed version of the modified web page.

[0016] The method may further include: when it is determined that malware is not present on the client device, storing information related to the first web page in a first database storing a first list of requested and unmodified web pages and content; and when it is determined that malware is stored on the client device, storing information related to the first web page in a second database storing a second list of requested and modified web pages and content.

[0017] According to another aspect of the present disclosure, a computing device is provided, the computing device being configured to implement the execution of a method for detecting malware. The computing device includes: a display screen; a processor; a memory; and a communication interface, each coupled to the processor, the memory, and the display screen. When the method is executed, the processor is configured to: receive a request for a first web page via the communication interface; determine at least one expected attribute of the first web page; generate a modified web page by combining the first web page with a predetermined code set, the predetermined code set being configured to detect whether the malware exists on a client device; send the modified web page to the client device via the communication interface; receive an executed version of the modified web page from the client device via the communication interface; determine at least one attribute of the executed version of the modified web page; compare the at least one expected attribute of the first web page with the at least one attribute of the executed version of the modified web page; and determine whether the malware exists on the client device based on the result of the comparison.

[0018] The processor may be further configured to send an alert message to the client device via the communication interface indicating the presence of the malware on the client device.

[0019] The at least one expected attribute of the first web page may include a first number of JavaScript elements associated with the first web page. The processor may be further configured to determine whether the malware is present on the client device by comparing the first number of JavaScript elements with a second number of JavaScript elements associated with an executed version of the modified web page.

[0020] The at least one expected attribute of the first web page may include a first set of identifiers corresponding to JavaScript elements associated with the first web page. The processor may be further configured to determine whether the malware is present on the client device by comparing the first set of identifiers to a second set of identifiers corresponding to JavaScript elements associated with an executed version of the modified web page.

[0021] The at least one expected attribute of the first web page may include a first resource set consisting of JavaScript elements associated with the first web page. The processor may be further configured to determine whether the malware is present on the client device by comparing the first resource set with a second resource set consisting of JavaScript elements associated with an executed version of the modified web page.

[0022] The at least one expected attribute of the first webpage may include a first set of uniform resource identifiers (URLs) associated with the first webpage. The processor may be further configured to determine whether the malware is present on the client device by comparing the first set of uniform resource identifiers with a second set of uniform resource identifiers, the second set of uniform resource identifiers being composed of uniform resource identifiers associated with an execution version of the modified webpage.

[0023] The at least one expected attribute of the first webpage may include a first JavaScript function name set consisting of JavaScript function names associated with the first webpage. The processor may be further configured to determine whether the malware is present on the client device by comparing the first JavaScript function name set with a second JavaScript function name set consisting of JavaScript function names associated with an execution version of the modified webpage.

[0024] The at least one expected attribute of the first web page may include first information about a JavaScript event handler associated with the first web page. The processor may be further configured to determine whether the malware is present on the client device by comparing the first information with second information about a JavaScript event handler associated with an executed version of the modified web page.

[0025] The at least one expected attribute of the first web page may include a first cookie set consisting of cookies associated with the first web page. The processor may be further configured to determine whether the malware is present on the client device by comparing the first cookie set with a second cookie set consisting of cookies associated with an executed version of the modified web page.

[0026] When it is determined that there is no malware on the client device, the processor may be further configured to store information related to the first web page in the memory in a first database, the first database storing a first list of safe web pages. When it is determined that malware is stored on the client device, the processor may be further configured to store information related to the first web page in the memory in a second database, the second database storing a second list of unsafe web pages. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In the following detailed description, the present disclosure is further described by way of non-limiting examples of preferred embodiments of the present disclosure, with reference to the several accompanying drawings mentioned, wherein like reference numerals represent like elements throughout the several views of the drawings.

[0028] Figure 1 An exemplary computer system for implementing a method for detecting malware is shown.

[0029] Figure 2 An exemplary diagram of a network environment is shown.

[0030] Figure 3 An exemplary system for implementing a method for detecting malware is shown.

[0031] Figure 4 is a flow chart of an exemplary process for implementing a method for detecting malware. DETAILED DESCRIPTION

[0032] One or more of the various aspects, embodiments, and / or specific features or subcomponents of the present disclosure are intended to provide one or more advantages as particularly described above and pointed out below.

[0033] The examples may also be embodied as one or more non-transitory computer-readable media having stored thereon instructions for one or more aspects of the present technology described and illustrated by the examples herein. The instructions in some examples include executable code that, when executed by one or more processors, causes the processors to perform the steps necessary to implement the example methods of the present technology described and illustrated herein.

[0034] Figure 1 is an exemplary system for use in accordance with embodiments described herein. System 100 is generally shown and may include computer system 102 , generally referred to as such.

[0035] The computer system 102 may include an instruction set that can be executed to cause the computer system 102 to perform any one or more methods or computer-based functions disclosed herein, either alone or in combination with other described devices. The computer system 102 may operate as a standalone device or may be connected to other systems or peripherals. For example, the computer system 102 may include or be included in any one or more computers, servers, systems, communication networks, or cloud environments. Further, the instructions may operate in such a cloud-based computing environment.

[0036] In a network deployment, the computer system 102 can operate as a server, or as a client user computer in a server-client user network environment, as a client user computer in a cloud computing environment, or as a peer computer system in a peer-to-peer (or distributed) network environment. The computer system 102 or parts thereof can be implemented as or incorporated into various devices, such as a personal computer, a tablet computer, a set-top box, a personal digital assistant, a mobile device, a handheld computer, a portable computer, a desktop computer, a communication device, a wireless smart phone, a personal trusted device, a wearable device, a global positioning satellite (GPS) device, a Web device, or any other machine capable of executing a set of instructions (in sequence or otherwise) for the actions to be performed by the specified machine. In addition, although a single computer system 102 is shown, other embodiments may include any collection of systems or subsystems that execute instructions or perform functions individually or collectively. In the present disclosure, the term "system" should be considered to include any collection of systems or subsystems that execute one or more sets of instructions individually or collectively to perform one or more computer functions.

[0037] like Figure 1As shown, the computer system 102 may include at least one processor 104. The processor 104 is tangible and non-transitory. As used herein, the term "non-transitory" is not interpreted as a permanent feature of a state, but rather as a feature of a state that will last for a period of time. The term "non-transitory" particularly does not have a fleeting characteristic, such as a specific carrier or signal or other forms of characteristics that only exist temporarily at any time and anywhere. The processor 104 is a manufactured product and / or machine component. The processor 104 is configured to execute software instructions in order to perform the functions described in the various embodiments of this article. The processor 104 may be a general-purpose processor, or may be part of an application-specific integrated circuit (ASIC). The processor 104 may also be a microprocessor, a microcomputer, a processor chip, a controller, a microcontroller, a digital signal processor (DSP), a state machine, or a programmable logic device. The processor 104 may also be a programmable gate array (PGA) logic circuit including a field programmable gate array (FPGA), or may be another type of circuit including discrete gates and / or transistor logic. The processor 104 may be a central processing unit (CPU), a graphics processing unit (GPU), or both. Additionally, any processor described herein may include multiple processors, parallel processors, or both. Multiple processors may be included in or coupled to a single device or multiple devices.

[0038] The computer system 102 may also include a computer memory 106. The computer memory 106 may include static memory, dynamic memory, or both of them in communication connection. The memory described herein is a tangible storage medium that can store data and executable instructions, and is non-transitory during the time when the instructions are stored therein. Again, the term "non-transitory" used herein should not be interpreted as a permanent feature of a state, but rather as a feature of a state that will last for a period of time. The term "non-transitory" does not particularly have a fleeting characteristic, such as a specific carrier or signal or other forms of characteristics that only exist temporarily at any time and anywhere. The memory is a manufactured product and / or a machine component. The memory described herein is a computer-readable medium from which a computer can read data and executable instructions. The memory described herein may be a random access memory (RAM), a read-only memory (ROM), a flash memory, an electrically programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard disk, a cache, a removable disk, a tape, a compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a floppy disk, a Blu-ray disc, or any other form of storage medium known in the art. The memory may be volatile or non-volatile, secure and / or encrypted, unsecure and / or unencrypted.Of course, the computer memory 106 may include any combination of memories or a single memory.

[0039] Computer system 102 may further include a display 108, such as a liquid crystal display (LCD), an organic light emitting diode (OLED), a flat panel display, a solid state display, a cathode ray tube (CRT), a plasma display, or any other type of display, examples of which are well known to skilled artisans.

[0040] The computer system 102 may also include at least one input device 110, such as a keyboard, a touch-sensitive input screen or tablet, voice input, a mouse, a remote control device with a wireless keyboard, a microphone coupled to a voice recognition engine, a camera (e.g., a video camera or a still camera), a cursor control device, a global positioning system (GPS) device, an altimeter, a gyroscope, an accelerometer, a proximity sensor, or any combination thereof. It will be appreciated by those skilled in the art that various embodiments of the computer system 102 may include a plurality of input devices 110. Furthermore, it will be appreciated by those skilled in the art that the exemplary input devices 110 listed above are not meant to be exhaustive, and the computer system 102 may include any other or alternative input devices 110.

[0041] The computer system 102 may also include a media reader 112 configured to read any one or more sets of instructions, such as software, from any memory described herein. The instructions, when executed by a processor, may be used to perform one or more of the methods and processes described herein. In certain embodiments, the instructions may reside completely or at least partially within the memory 106, the media reader 112, and / or the processor 110 during execution by the computer system 102.

[0042] Additionally, computer system 102 may include any other devices, components, parts, peripherals, hardware, software, or any combination thereof that are generally known and understood to be included in or within a computer system, such as, but not limited to, a network interface 114 and an output device 116. Output device 116 may be, but is not limited to, a speaker, an audio output, a video output, a remote control output, a printer, or any combination thereof.

[0043] Each component of computer system 102 can be interconnected and communicate via bus 118 or other communication links. Figure 1 As shown, the components can be interconnected and communicate via an internal bus. However, those skilled in the art will appreciate that any component can also be connected via an expansion bus. In addition, the bus 118 can enable communication via any commonly known and understood standard or other specification, such as but not limited to peripheral component interconnect, peripheral component interconnect express, parallel advanced technology attachment, serial advanced technology attachment, etc.

[0044] The computer system 102 can communicate with one or more additional computer devices 120 via a network 122. The network 122 can be, but is not limited to, a local area network, a wide area network, the Internet, a telephone network, a short-range network, or any other network generally known and understood in the art. Short-range networks may include, for example, Bluetooth, Zigbee, infrared, near field communication, hyperband, or any combination thereof. It should be understood by those skilled in the art that additional networks 122 known and understood may be used in addition or in lieu thereof, and that the exemplary network 122 is not limiting or exhaustive. Furthermore, although in Figure 1 The network 122 is shown as a wireless network, but those skilled in the art should understand that the network 122 may also be a wired network.

[0045] Additional computer equipment 120 in Figure 1 102 is shown as a personal computer. However, it will be appreciated by those skilled in the art that in alternative embodiments of the present disclosure, the computer device 120 may be a laptop computer, a tablet PC, a personal digital assistant, a mobile device, a handheld computer, a desktop computer, a communication device, a wireless phone, a personal trusted device, a Web device, a server, or any other device capable of executing, in sequence or otherwise, a set of instructions for the actions to be performed by a specified device. Of course, it will be appreciated by those skilled in the art that the devices listed above are merely exemplary devices, and the device 120 may be any other device or apparatus known and understood in the art without departing from the scope of the present application. For example, the computer device 120 may be the same as or similar to the computer system 102. In addition, it will be similarly appreciated by those skilled in the art that the device may be any combination of devices and apparatuses.

[0046] Of course, those skilled in the art will appreciate that the above components of computer system 102 are merely exemplary and are not intended to be exhaustive and / or comprehensive. In addition, the examples of components listed above are also intended to be exemplary and are similarly not intended to be exhaustive and / or comprehensive.

[0047] According to various embodiments of the present disclosure, a hardware computer system that executes a software program can be used to implement the methods described herein. In addition, in an exemplary non-limiting embodiment, implementations may include distributed processing, component / object distributed processing, and parallel processing. A virtual computer system process can be constructed to implement one or more of the methods or functions described herein, and the processor described herein can be used to support a virtual processing environment.

[0048] As described herein, various embodiments provide an optimized process for implementing a method for detecting malware.

[0049] Reference Figure 2, a schematic diagram of an exemplary network environment 200 for implementing a method for detecting malware is shown. In an exemplary embodiment, the test framework can be executed on any networked computer platform, for example, a wireless mobile communication device, ie, a smart phone.

[0050] The method for detecting malware can be implemented by a malware detection (MD) device 202. The malware detection device 202 can be used with respect to Figure 1 The malware detection device 202 may be the same or similar to the computer system 102 described herein. The malware detection device 202 may store one or more applications including executable instructions that, when executed by the malware detection device 202, cause the malware detection device 202 to perform actions such as sending, receiving, or otherwise processing network messages, for example, performing other actions described and illustrated below with reference to the figures. The applications may be implemented as modules or components of other application programs. In addition, the applications may be implemented as operating system extensions, modules, plug-ins, etc.

[0051] Further, one or more applications may operate in a cloud-based computing environment. The application may be executed within or as a virtual machine or virtual server that can be managed in a cloud-based computing environment. Moreover, the application, and even the malware detection device 202 itself, may be located in a virtual server running in a cloud-based computing environment, rather than being tied to one or more specific physical network computing devices. Moreover, the application may run in one or more virtual machines (VMs) executed on the malware detection device 202. In addition, in one or more embodiments of the present technology, the virtual machines running on the malware detection device 202 may be managed or supervised by a hypervisor.

[0052] exist Figure 2 In the network environment 200, a malware detection device 202 is coupled to a plurality of server devices 204(1)-204(n) hosting a plurality of databases 206(1)-206(n), and is also coupled to a plurality of client devices 208(1)-208(n) via a communication network 210. The communication interface of the malware detection device 202, for example Figure 1 The network interface 114 of the computer system 102 is operably coupled and communicated between the malware detection device 202, the server devices 204(1)-204(n) and / or the client devices 208(1)-208(n), all of which are coupled together via a communication network 210, although other types and / or numbers of communication networks or systems having other types and / or numbers of connections and / or other configurations of devices and / or elements may also be used.

[0053] The communication network 210 may be the same or similar network 122, such as for Figure 1 As described, although malware detection device 202, server devices 204(1)-204(n), and / or client devices 208(1)-208(n) may be coupled together via other topologies. In addition, network environment 200 may include other network devices, such as one or more routers and / or switches, which are well known in the art and will not be described herein. The present technology provides many advantages, including methods, non-transitory computer-readable media, and malware detection devices that can effectively add client code to a web page before executing the web page to detect malware present on a client device.

[0054] By way of example only, the one or more communication networks 210 may include one or more local area networks (LANs) or one or more wide area networks (WANs), and may use TCP / IP and industry standard protocols over Ethernet, although other types and / or numbers of protocols and / or communication networks may be used. The communication network 210 in this example may employ any suitable interface mechanism and network communication technology, including, for example, telecommunication services in any suitable form (e.g., voice, modem, etc.), a public switched telephone network (PSTN), a packet data network (PDN) based on Ethernet, and combinations thereof, etc.

[0055] Malware detection device 202 may be a standalone device, or may be integrated with one or more other devices or apparatuses, for example, with one or more of server devices 204(1)-204(n). In one particular example, malware detection device 202 may include or be hosted by one of server devices 204(1)-204(n), and other arrangements are possible. In addition, for example, one or more devices of malware detection device 202 may be in the same or different communication networks, including one or more public networks, private networks, or cloud networks.

[0056] The plurality of server devices 204(1)-204(n) may be the same as or similar to computer system 102 or computer device 120, such as for example Figure 1 The invention also provides a method for detecting malware using a malware detection device 202 that can be used to detect malware using a malware detection device 202. The method further provides a method for detecting malware using a malware detection device 202 that can be used to detect ...

[0057] The server devices 204(1)-204(n) may be hardware or software, or may represent a system having multiple servers in a pool, which may include an internal or external network. The server devices 204(1)-204(n) host databases 206(1)-206(n), which are configured to store protected web page data, analysis data, and other data related to the malware detection method.

[0058] Although server devices 204(1)-204(n) are illustrated as a single device, one or more actions of each of server devices 204(1)-204(n) may be distributed across one or more different network computing devices that together comprise one or more server devices 204(1)-204(n). Furthermore, server devices 204(1)-204(n) are not limited to a particular configuration. Thus, server devices 204(1)-204(n) may comprise a plurality of network computing devices that operate using a master / slave approach, whereby one of the network computing devices of server devices 204(1)-204(n) operates to manage and / or coordinate the operations of the other network computing devices.

[0059] For example, server devices 204(1)-204(n) may operate as multiple network computing devices within a cluster architecture, a peer-to-peer architecture, a virtual machine, or a cloud architecture. Thus, the technology disclosed herein should not be construed as limited to a single environment, and other configurations and architectures are also contemplated.

[0060] The plurality of client devices 208(1)-208(n) may also be the same as or similar to the computer system 102 or the computer device 120, such as for Figure 1 The method for detecting malware may be performed as described herein, including any feature or combination of features described therefor. For example, in this example, client devices 208(1)-208(n) may include any type of computing device capable of facilitating execution of the method for detecting malware. Thus, client devices 208(1)-208(n) may be mobile computing devices, desktop computing devices, notebook computing devices, tablet computing devices, tablet computers, virtual machines (including cloud-based computers), etc., hosting, for example, chat, email, or speech-to-text applications. In an exemplary embodiment, at least one client device 208 is a wireless mobile communication device, i.e., a smart phone.

[0061] Client devices 208(1)-208(n) may run an interface application such as a standard web browser or a stand-alone client application that may provide an interface to communicate with malware detection device 202 via communications network 210 to communicate user requests. Client devices 208(1)-208(n) may include, among other features, a display device such as a display screen or a touch screen, and / or an input device such as a keyboard.

[0062] Although an exemplary network environment 200 having a malware detection device 202, server devices 204(1)-204(n), client devices 208(1)-208(n), and a communication network 210 is described and illustrated herein, other types and / or numbers of systems, devices, components, and / or elements in other topologies may be used. It should be understood that the example systems described herein are for exemplary purposes, as many variations of the specific hardware and software used to implement the examples are possible, as will be appreciated by those skilled in the relevant art.

[0063] For example, one or more devices depicted in network environment 200, such as malware detection device 202, server devices 204(1)-204(n), or client devices 208(1)-208(n), may be configured to run as virtual instances on the same physical machine. In other words, one or more of malware detection device 202, server devices 204(1)-204(n), or client devices 208(1)-208(n) may run on the same physical device, rather than as separate devices that communicate over communication network 210. Figure 2 There may be more or fewer malware detection devices 202, server devices 204(1)-204(n), or client devices 208(1)-208(n) than shown.

[0064] In addition, in any example, two or more computing systems or devices can replace any one system or device. Therefore, the principles and advantages of distributed processing such as redundancy and replication can also be implemented as needed to improve the robustness and performance of the example devices and systems. The examples can also be implemented on a computer system extended on any suitable network using any suitable interface mechanism and business technology, including, for example, telecommunications services in any suitable form (e.g., voice and modem), wireless business networks, cellular traffic networks, packet data networks (PDNs), the Internet, intranets, and combinations thereof.

[0065] Malware detection device 202 Figure 3302, although it may include, for example, other rules, policies, modules, databases, or applications. As will be described below, the malware detection module 302 is configured to add client code to a web page before the web page is executed in order to detect malware present on a client device in an automated, efficient, scalable, and reliable manner. Based on a comparison between expected properties of the web page and properties of the modified web page determined after its execution, the malware detection module 302 determines whether malware is present on the client device.

[0066] exist Figure 3 The example shown in Figure 1 is used to Figure 2 An exemplary process 300 for implementing a method for detecting malware in a network environment of a computer program product. Specifically, a first client device 208(1) and a second client device 208(2) are shown as communicating with a malware detection device 202. In this regard, the first client device 208(1) and the second client device 208(2) may be "clients" of the malware detection device 202 and are described herein. However, it should be known and understood that the first client device 208(1) and / or the second client device 208(2) are not necessarily "clients" of the malware detection device 202, or any entities described in association with the present invention. Any additional or alternative relationship may exist between one or both of the first client device 208(1) and the second client device 208(2) and the malware detection device 202, or no relationship may exist.

[0067] In addition, malware detection device 202 is shown as being able to access protected web page repository 206(1) and analysis database 206(2). Malware detection module 302 may be configured to access these databases to implement methods for detecting malware.

[0068] The first client device 208(1) may be, for example, a smartphone. Of course, the first client device 208(1) may be any other device described herein. The second client device 208(2) may be, for example, a personal computer (PC). Of course, the second client device 208(2) may also be any other device described herein.

[0069] The present process may be performed via communication network 210, which may include a plurality of networks as described above. For example, in an exemplary embodiment, one or both of first client device 208(1) and second client device 208(2) may communicate with malware detection device 202 via broadband or cellular communications. Of course, these embodiments are exemplary only and are not intended to be limiting or exhaustive.

[0070] After startup, the malware detection module 302 performs a process for adding client code to a web page before the web page executes in order to detect malware present on the client device. Figure 4 At flowchart 400 in FIG. 4 , an exemplary process for implementing a method for detecting malware is generally indicated.

[0071] exist Figure 4 In process 400 of , at step S402, malware detection module 302 receives a web page request from client device 208. The web page request may refer to any number of web pages. The web page may be associated with a financial services organization such as a bank, although any other type of web page may be requested. In an exemplary embodiment, malware detection module may access protected web page repository 206(1) to determine whether the requested web page corresponds to a web page to be protected.

[0072] At step S404, the malware detection module determines an expected set of attributes of the requested web page. In an exemplary embodiment, the requested web page may have any one or more of the following attributes: a plurality of related JavaScript elements; a corresponding set of identifiers corresponding to the JavaScript elements associated with the web page; a corresponding set of resources corresponding to the JavaScript elements associated with the web page; a set of uniform resource identifiers (URIs) corresponding to the web page; a set of JavaScript function names associated with the web page; information corresponding to JavaScript event handlers associated with the web page; and a set of cookies associated with the web page.

[0073] In step S406, the malware detection module generates a modified version of the requested web page by adding the client code to the web page. The client code is implemented as JavaScript, which is linked or embedded into the web page. In an exemplary embodiment, when the request includes multiple web pages, the client code can be embedded into specific pages, such as a login page and a landing page. Alternatively, when the request includes multiple web pages, the client code can be linked to or embedded in all pages. Then, in step S408, after the modified version of the web page has been generated, the modified web page is sent to the client device 208.

[0074] At step S410, after the client device has executed the modified web page, the malware detection module 302 receives the results of the execution version of the modified web page. Then, at step S412, the malware detection module 302 determines the properties of the execution version of the modified web page. Similar to the above discussion with respect to step S404, the properties to be determined may include any one or more of the following properties: a plurality of related JavaScript elements; a corresponding set of identifiers corresponding to the JavaScript elements associated with the web page; a corresponding set of resources corresponding to the JavaScript elements associated with the web page; a set of uniform resource identifiers corresponding to the web page; a set of JavaScript function names associated with the web page; information corresponding to JavaScript event handlers associated with the web page; and a set of cookies associated with the web page.

[0075] In step S414, malware detection module 302 compares the properties of the executed version of the modified web page determined in step S412 with the expected properties of the web page determined in step S404. Then, in step S416, it is determined whether malware exists on client device 208 based on the comparison result.

[0076] When the malware detection module 302 determines that malware is not present on the client device 208, information corresponding to the web page and the client device is stored in the database at step S418. However, when the malware detection module 302 determines that malware is present on the client device 208, an alert is optionally sent to the client device 208 at step S420, and relevant information (i.e., information related to the web page, the client device, and the found malware) is stored in the database at step S422.

[0077] Therefore, using the present technology, an optimization process for implementing a method for detecting malware is provided. The optimization process requires adding client code to a web page before executing the web page to detect malware present on a client device by comparing expected web content with actual web content.

[0078] Although the present invention has been described with reference to several exemplary embodiments, it should be understood that the words that have been used are words of description and illustration, rather than words of limitation. As presently stated and amended, changes may be made within the scope of the appended claims without departing from the scope and spirit of the present disclosure in its various aspects. Although the present disclosure has been described with reference to specific means, materials, and embodiments, the present disclosure is not intended to be limited to the details disclosed; on the contrary, the present disclosure extends to all functionally equivalent structures, methods, and uses within the scope of the appended claims.

[0079] For example, although a computer-readable medium may be described as a single medium, the term "computer-readable medium" includes a single medium or multiple media, such as a centralized or distributed database, and / or associated caches and servers storing one or more instruction sets. The term "computer-readable medium" should also include any medium that can store, encode, or carry an instruction set for execution by a processor or cause a computer system to perform any one or more embodiments disclosed herein.

[0080] The computer-readable medium may include one or more non-transitory computer-readable media, and / or include one or more transient computer-readable media. In a specific non-limiting exemplary embodiment, the computer-readable medium may include a solid-state memory, such as a memory card or other package storing one or more non-volatile read-only memories. In addition, the computer-readable medium may be a random access memory or other volatile rewritable memory. In addition, the computer-readable medium may include magneto-optical or optical media such as a disk or tape or other storage devices for capturing carrier signals such as signals transmitted through a transmission medium. Therefore, the present disclosure is considered to include any computer-readable medium or other equivalents and successor media in which data or instructions can be stored.

[0081] Although the present application describes a specific embodiment that can be implemented as a computer program or code segment in a computer-readable medium, it should be understood that dedicated hardware implementations such as application-specific integrated circuits, programmable logic arrays, and other hardware devices can be constructed to implement one or more embodiments described herein. The application that can include the various embodiments set forth herein can widely include various electronic and computer systems. Therefore, the present application can cover software, firmware, and hardware implementations or combinations thereof. Anything in this application should not be interpreted as being implemented or achievable only by software rather than hardware.

[0082] Although this document describes components and functions that can be implemented in specific embodiments with reference to specific standards and protocols, the present disclosure is not limited to these standards and protocols. Such standards are regularly replaced by faster or more efficient equivalents that have substantially the same functions. Therefore, alternative standards and protocols with the same or similar functions are considered equivalent.

[0083] The illustrations of the embodiments described herein are intended to provide a general understanding of various embodiments. These illustrations are not intended to be used as a complete description of all elements and features of the devices and systems utilizing the structures or methods described herein. When reading this disclosure, many other embodiments may be obvious to those skilled in the art. Other embodiments may be utilized and derived from this disclosure, so that structural and logical replacements and changes can be made without departing from the scope of this disclosure. In addition, these illustrations are only representative and may not be drawn to scale. Certain proportions in the illustrations may be enlarged, while other proportions may be minimized. Therefore, this disclosure and the accompanying drawings should be considered illustrative rather than restrictive.

[0084] In this article, one or more embodiments of the present disclosure may be referred to individually and / or collectively by the term "invention" for convenience purposes only, without intending to limit the scope of the present application to any particular invention or inventive concept. In addition, although specific embodiments have been illustrated and described herein, it should be understood that any subsequent arrangements designed to achieve the same or similar purposes may replace the specific embodiments shown. The present disclosure is intended to cover any and all subsequent modifications or variations of the various embodiments. Combinations of the above embodiments not specifically described herein and other embodiments will be apparent to those skilled in the art upon reading the specification.

[0085] The abstract of the present disclosure is submitted with the understanding that it will not be used to interpret or limit the scope or meaning of the claims. In addition, in the above detailed description, various features may be combined together or described in a single embodiment in order to simplify the present disclosure. The present disclosure should not be interpreted as reflecting the following intention: the claimed embodiments require more features than the features explicitly stated in each claim. On the contrary, as reflected in the accompanying claims, the inventive subject matter may be directed to less than all features of any one of the disclosed embodiments. Therefore, the accompanying claims are incorporated into the detailed description, and each claim independently defines the subject matter claimed for protection.

[0086] The subject matter disclosed above should be considered illustrative rather than restrictive, and the appended claims are intended to cover all such modifications, improvements, and other embodiments that fall within the true spirit and scope of the present disclosure. Therefore, to the maximum extent allowed by law, the scope of the present disclosure is to be determined by the broadest permissible interpretation of the appended claims and their equivalents, and shall not be restricted or limited by the foregoing detailed description.

Claims

1. A method for detecting malware, the method being implemented by a processor on a computing device, the method comprising: The processor receives a request for a first webpage; The processor determines at least one expected attribute of the first web page; the processor generating a modified web page by combining the first web page with a predetermined set of codes configured to detect the presence of the malware on a client device; sending the modified web page to the client device; receiving, from the client device, data collected from an executed version of the modified web page; The processor determines at least one attribute of an execution version of the modified web page; The processor compares the at least one expected attribute of the first web page to the at least one attribute of the executed version of the modified web page; as well as The processor determines whether the malware exists on the client device based on the result of the comparison, Among them, the at least one expected attribute of the first web page includes one or more of the following: a first number of JavaScript elements associated with the first web page; a first identifier set consisting of identifiers corresponding to the JavaScript elements associated with the first web page; a first resource set consisting of JavaScript elements associated with the first web page; a first uniform resource identifier set consisting of uniform resource identifiers associated with the first web page; a first JavaScript function name set consisting of JavaScript function names associated with the first web page; first information about a JavaScript event handler associated with the first web page; and a first cookie set consisting of cookies associated with the first web page.

2. The method of claim 1, further comprising: An alert message is sent to the client device indicating the presence of the malware on the client device.

3. The method of claim 1, wherein: In a case where the at least one expected attribute of the first web page includes a first number of JavaScript elements associated with the first web page, determining whether the malware is present on the client device further includes comparing the first number of JavaScript elements with a second number of JavaScript elements associated with an execution version of the modified web page.

4. The method of claim 1, wherein: In a case where the at least one expected attribute of the first web page includes a first set of identifiers consisting of identifiers corresponding to JavaScript elements associated with the first web page, Determining whether the malware is present on the client device further includes comparing the first set of identifications to a second set of identifications consisting of identifications corresponding to JavaScript elements associated with the executed version of the modified web page.

5. The method of claim 1, wherein: In a case where at least one expected attribute of the first web page includes a first resource set consisting of JavaScript elements associated with the first web page, determining whether the malware is present on the client device further includes: comparing the first resource set with a second resource set, wherein the second resource set consists of JavaScript elements associated with an execution version of the modified web page.

6. The method of claim 1, wherein: In a case where at least one expected attribute of the first web page includes a first uniform resource identifier set consisting of uniform resource identifiers associated with the first web page, determining whether the malware is present on the client device further includes: comparing the first uniform resource identifier set with a second uniform resource identifier set, wherein the second uniform resource identifier set consists of uniform resource identifiers associated with an execution version of the modified web page.

7. The method of claim 1, wherein: where the at least one expected attribute of the first web page includes a first JavaScript function name set consisting of JavaScript function names associated with the first web page, and Determining whether the malware is present on the client device further includes comparing the first set of JavaScript function names to a second set of JavaScript function names, the second set of JavaScript function names consisting of JavaScript function names associated with an execution version of the modified web page.

8. The method of claim 1, wherein: In a case where at least one expected attribute of the first web page includes first information about a JavaScript event handler associated with the first web page, determining whether the malware is present on the client device further includes comparing the first information with second information about the JavaScript event handler associated with an execution version of the modified web page.

9. The method of claim 1, wherein: In a case where at least one expected attribute of the first web page includes a first cookie set consisting of cookies associated with the first web page, determining whether the malware is present on the client device further includes comparing the first cookie set with a second cookie set consisting of cookies associated with an executed version of the modified web page.

10. The method of claim 1, further comprising: When it is determined that no malware is present on the client device, storing information related to the first webpage and the client device in a first database; as well as When it is determined that malware is stored on the client device, information related to the first webpage, the client device, and the malware is stored in a second database.

11. A computing device configured to implement execution of a method for detecting malware, the computing device comprising: Display screen; processor; Memory; as well as a communication interface, coupled to the processor, the memory and the display screen respectively, Wherein, when the method is executed, the processor is configured to: receiving, via the communication interface, a request for a first webpage; determining at least one expected attribute of the first webpage; generating a modified web page by combining the first web page with a predetermined set of codes configured to detect the presence of the malware on a client device; sending the modified webpage to the client device via the communication interface; receiving, from the client device via the communication interface, data collected from an executed version of the modified webpage; determining at least one property of an executed version of the modified web page; comparing the at least one expected attribute of the first web page to the at least one attribute of the executed version of the modified web page; and determining whether the malware exists on the client device based on the result of the comparison, Among them, the at least one expected attribute of the first web page includes one or more of the following: a first number of JavaScript elements associated with the first web page; a first identifier set consisting of identifiers corresponding to the JavaScript elements associated with the first web page; a first resource set consisting of JavaScript elements associated with the first web page; a first uniform resource identifier set consisting of uniform resource identifiers associated with the first web page; a first JavaScript function name set consisting of JavaScript function names associated with the first web page; first information about a JavaScript event handler associated with the first web page; and a first cookie set consisting of cookies associated with the first web page.

12. The computing device of claim 11, wherein: The processor is further configured to: An alert message is sent to the client device via the communication interface indicating the presence of the malware on the client device.

13. The computing device of claim 11, wherein: In a case where the at least one expected attribute of the first web page includes a first number of JavaScript elements associated with the first web page, the processor is further configured to determine whether the malware is present on the client device by comparing the first number of JavaScript elements with a second number of JavaScript elements, wherein the second number of JavaScript elements is associated with an executed version of the modified web page.

14. The computing device of claim 11, wherein: In a case where at least one expected attribute of the first web page includes a first set of identifiers corresponding to JavaScript elements associated with the first web page, the processor is further configured to determine whether the malware is present on the client device by comparing the first set of identifiers with a second set of identifiers corresponding to JavaScript elements associated with an executed version of the modified web page.

15. The computing device of claim 11, wherein: In a case where at least one expected attribute of the first web page includes a first resource set consisting of JavaScript elements associated with the first web page, the processor is further configured to determine whether the malware is present on the client device by comparing the first resource set with a second resource set consisting of JavaScript elements associated with an executed version of the modified web page.

16. The computing device of claim 11, wherein: where the at least one expected attribute of the first web page comprises a first set of uniform resource identifiers consisting of uniform resource identifiers associated with the first web page, and The processor is further configured to determine whether the malware is present on the client device by comparing the first set of uniform resource identifiers to a second set of uniform resource identifiers, the second set of uniform resource identifiers consisting of uniform resource identifiers associated with the executed version of the modified web page.

17. The computing device of claim 11, wherein: In a case where at least one expected attribute of the first web page includes a first JavaScript function name set consisting of JavaScript function names associated with the first web page, the processor is further configured to determine whether the malware is present on the client device by comparing the first JavaScript function name set with a second JavaScript function name set consisting of JavaScript function names associated with an execution version of the modified web page.

18. The computing device of claim 11, wherein: In a case where at least one expected attribute of the first web page includes first information about a JavaScript event handler associated with the first web page, the processor is further configured to determine whether the malware is present on the client device by comparing the first information with second information about the JavaScript event handler associated with an executed version of the modified web page.

19. The computing device of claim 11, wherein: In a case where the at least one expected attribute of the first web page includes a first cookie set consisting of cookies associated with the first web page, the processor is further configured to determine whether the malware is present on the client device by comparing the first cookie set with a second cookie set consisting of cookies associated with an executed version of the modified web page.

20. The computing device of claim 11, wherein: When it is determined that malware is not present on the client device, the processor is further configured to store information related to the first webpage and the client device in a first database in the memory; as well as When it is determined that malware is stored on the client device, the processor is further configured to store information related to the first webpage, the client device, and the malware in a second database in the memory.

Citation Information

Patent Citations

  • Method and system for improved malware detection

    US11102237B2

  • System and method for identifying internet attacks

    US20160142428A1