Application security protection method and device, electronic device and storage medium

By receiving the current operating behavior of the application, determining the entry operating parameters and function calling logic, conducting security analysis and processing, and generating control instructions to intercept potential abnormal behaviors, it solves the problem of difficult protection against malicious code variants and 0day attacks, and improves interception accuracy. efficiency and operational efficiency.

CN115174192BActive Publication Date: 2024-08-27CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210763734.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2024-08-27
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

Malicious code updates quickly, resulting in a large number of variants and 0-day attack codes, making it impossible to accurately block and protect unknown malicious attacks.

Method used

By receiving the current operating behavior of the application, it determines the entry running parameters, obtains pre-configured reference matching rules and function calling logic, conducts security analysis and processing, and generates control instructions to intercept potential abnormal behaviors.

Benefits of technology

Effectively realize interception separation, reduce the main program machine performance occupation, improve operating efficiency, and improve the interception loss and interception accuracy of important business errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115174192B
    Figure CN115174192B
Patent Text Reader

Abstract

The present disclosure is about an application security protection method and device, an electronic device and a computer-readable storage medium, and relates to the field of network security technology. The method includes: receiving the current operation behavior for the application program, determining the entry operation parameters of the current operation behavior; obtaining a pre-configured reference matching rule, comparing the entry operation parameters with the reference matching rule, and obtaining the initial behavior type of the current operation behavior; determining the reference function call logic corresponding to the current operation behavior; and performing security analysis and processing on the current operation behavior according to the reference function call logic and the initial behavior type to generate a control instruction for the current operation behavior. The present disclosure can analyze the security of the current operation behavior in combination with the behavior type of the current operation behavior and the reference function call logic, and realize the interception and separation of potential abnormal behavior types and the security protection of the application program.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the development of the Internet, malicious penetration attacks have become the biggest security risk threatening Internet security. The types of malicious codes, the speed of propagation, the number of infections and the scope of impact are gradually increasing. However, research in recent years has shown that malicious codes are developed based on existing programs. With the acceleration of malicious code updates, a large number of variant malicious codes and 0day attack codes have been generated, which also makes it impossible to accurately block and protect against unknown malicious attacks.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] The purpose of the present disclosure is to provide an application security protection method, an application security protection device, an electronic device and a computer-readable storage medium, thereby at least to a certain extent overcoming the problem that due to the rapid update speed of malicious codes, a large number of variants of malicious codes developed based on existing programs have been generated, resulting in the inability to accurately block and protect against unknown malicious attacks.

[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present invention.

[0006] According to the first aspect of the present disclosure, there is provided an application security protection method, comprising: receiving a current operation behavior for an application program, and determining an entry operation parameter of the current operation behavior; obtaining a pre-configured reference matching rule, and comparing the entry operation parameter with the reference matching rule to obtain an initial behavior type of the current operation behavior; determining a reference function call logic corresponding to the current operation behavior; and performing security analysis processing on the current operation behavior according to the reference function call logic and the initial behavior type to generate a control instruction for the current operation behavior.

[0007] In an exemplary embodiment of the present disclosure, the reference matching rules are stored in a rule matching library that is dynamically updated in real time; the entry operating parameters are compared with the reference matching rules to obtain the initial behavior type of the current operating behavior, including: parsing the entry operating parameters to obtain corresponding parsed operating parameters; comparing the parsed operating parameters with the reference matching rules to determine abnormal analysis results of the parsed operating parameters; and determining the initial behavior type of the current operating behavior based on the abnormal analysis results.

[0008] In an exemplary embodiment of the present disclosure, the reference function call logic is obtained based on a function call logic set; the function call logic set is generated based on the following steps: obtaining a pre-configured enhanced class library, and determining a function content set based on the enhanced class library; determining an operation behavior log based on the function content set; the operation behavior log includes a historical behavior identifier and a historical behavior timestamp corresponding to the historical user operation behavior; according to the historical behavior identifier and the historical behavior timestamp, the functions corresponding to the historical user operation behavior are time-sorted to obtain a function chain call sequence; and the function call logic set is generated according to multiple function chain call sequences.

[0009] In an exemplary embodiment of the present disclosure, the enhanced class library is generated by the following steps: determining the class to be enhanced from the initial enhanced class library; the initial enhanced class library includes the association relationship between the class to be enhanced and the enhanced extension class; encapsulating the class to be enhanced to obtain corresponding encapsulated class data; the encapsulated class data includes one or more of the class type, input parameters and class objects; taking the original function to be enhanced as the basic parent class; writing the encapsulated class data into the proxy function, and rewriting the function to be enhanced in the class to be enhanced based on the basic parent class; the rewriting process includes generating a new function of the basic parent class; modifying the function name of the enhanced function that has undergone the rewriting process to obtain the enhanced extension function; generating the enhanced class library based on the enhanced extension function.

[0010] In an exemplary embodiment of the present disclosure, determining the reference function call logic corresponding to the current operation behavior includes: in response to a program call instruction corresponding to the current operation behavior, using a reflection mechanism to obtain transmission data of the program call instruction; the transmission data includes an operation identifier and an operation timestamp of the current operation behavior; and determining the reference function call logic corresponding to the current operation behavior from a function call logic set based on the operation identifier and the operation timestamp.

[0011] In an exemplary embodiment of the present disclosure, the current operation behavior is subjected to security analysis processing according to the reference function call logic and the initial behavior type to generate control instructions for the current operation behavior, including: if the initial behavior type is a potential abnormal behavior type, determining a source of front data corresponding to the current operation behavior according to the reference function call logic; performing security analysis processing on the front data source to obtain a security analysis result; and generating a control instruction for the current operation behavior according to the security analysis result.

[0012] In an exemplary embodiment of the present disclosure, the control instruction includes an interception instruction, and the method further includes: if the control instruction is an interception instruction, intercepting the current operation behavior and generating corresponding behavior interception data; the behavior interception data includes an interception notification message; sending the interception notification message to a designated server, and storing the behavior interception data in a knowledge repository.

[0013] According to a second aspect of the present disclosure, an application security protection device is provided, including: a parameter acquisition module, used to receive a current operation behavior for an application program, and determine an entry operation parameter of the current operation behavior; an initial type determination module, used to obtain a pre-configured reference matching rule, and compare the entry operation parameter with the reference matching rule to obtain the initial behavior type of the current operation behavior; a call logic determination module, used to determine a reference function call logic corresponding to the current operation behavior; a security analysis module, used to perform security analysis processing on the current operation behavior according to the reference function call logic and the initial behavior type, so as to generate a control instruction for the current operation behavior.

[0014] In an exemplary embodiment of the present disclosure, the reference matching rules are stored in a rule matching library that is dynamically updated in real time; the initial type determination module includes an initial type determination unit, which is used to parse the entry operating parameters to obtain corresponding parsed operating parameters; compare the parsed operating parameters with the reference matching rules to determine abnormal analysis results of the parsed operating parameters; and determine the initial behavior type of the current operating behavior based on the abnormal analysis results.

[0015] In an exemplary embodiment of the present disclosure, the reference function call logic is obtained based on a function call logic set; the application security protection device includes a call logic generation module, which is used to obtain a pre-configured enhanced class library and determine a function content set based on the enhanced class library; determine an operation behavior log based on the function content set; the operation behavior log includes a historical behavior identifier and a historical behavior timestamp corresponding to the historical user operation behavior; according to the historical behavior identifier and the historical behavior timestamp, the functions corresponding to the historical user operation behavior are time-sorted to obtain a function chain call sequence; and the function call logic set is generated according to multiple function chain call sequences.

[0016] In an exemplary embodiment of the present disclosure, the call logic generation module includes an enhanced class library generation unit, which is used to determine the class to be enhanced from the initial enhanced class library; the initial enhanced class library includes the association relationship between the class to be enhanced and the enhanced extension class; the class to be enhanced is encapsulated to obtain corresponding encapsulated class data; the encapsulated class data includes one or more of the class type, input parameters and class objects; the original function to be enhanced is used as the basic parent class; the encapsulated class data is written to the proxy function, and the function to be enhanced in the class to be enhanced is rewritten based on the basic parent class; the rewriting process includes generating a new function of the basic parent class; modifying the function name of the enhanced function that has undergone the rewriting process to obtain the enhanced extension function; and generating the enhanced class library based on the enhanced extension function.

[0017] In an exemplary embodiment of the present disclosure, the call logic determination module includes a call logic determination unit, which is used to respond to the program call instruction corresponding to the current operation behavior and adopt a reflection mechanism to obtain the transmission data of the program call instruction; the transmission data includes an operation identifier and an operation timestamp of the current operation behavior; based on the operation identifier and the operation timestamp, determine the reference function call logic corresponding to the current operation behavior from a function call logic set.

[0018] In an exemplary embodiment of the present disclosure, the security analysis module includes a security analysis unit, which is used to determine the source of front-end data corresponding to the current operation behavior according to the reference function call logic if the initial behavior type is a potential abnormal behavior type; perform security analysis processing on the front-end data source to obtain a security analysis result; and generate control instructions for the current operation behavior according to the security analysis result.

[0019] In an exemplary embodiment of the present disclosure, the control instruction includes an interception instruction, and the application security protection device also includes an interception processing module, which is used to intercept the current operation behavior if the control instruction is an interception instruction, and generate corresponding behavior interception data; the behavior interception data includes an interception notification message; the interception notification message is sent to a designated server, and the behavior interception data is stored in a knowledge repository.

[0020] According to a third aspect of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the application security protection method according to any one of the above items is implemented.

[0021] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the application security protection method according to any one of the above items is implemented.

[0022] The technical solution provided by the present disclosure may have the following beneficial effects:

[0023] The application security protection method in the exemplary embodiment of the present disclosure, on the one hand, can effectively realize interception separation, reduce the main program machine performance occupancy, and improve operation efficiency by extracting the entry operation parameters of the current operation behavior and using the entry operation parameters as the analysis basis of the current operation behavior. On the other hand, security analysis of the current operation behavior based on the reference function call logic can effectively reduce the error interception loss of important business and improve the interception accuracy.

[0024] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0026] Figure 1 The flowchart of the safety detection of abnormal codes in the prior art is schematically shown;

[0027] Figure 2 A flowchart of an application security protection method according to an exemplary embodiment of the present disclosure is schematically shown;

[0028] Figure 3 The overall flow chart of security detection of abnormal behavior according to an exemplary embodiment of the present disclosure is schematically shown;

[0029] Figure 4 A flowchart of parsing and processing inlet operation parameters according to an exemplary embodiment of the present disclosure is schematically shown;

[0030] Figure 5 Schematically shows a matching flow chart of a function call method chain according to an exemplary embodiment of the present disclosure;

[0031] Figure 6 A block diagram of an application security protection device according to an exemplary embodiment of the present disclosure is schematically shown;

[0032] Figure 7 A block diagram schematically shows an electronic device according to an exemplary embodiment of the present disclosure;

[0033] Figure 8 A schematic diagram of a computer-readable storage medium according to an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0034] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0035] In addition, the described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known structures, methods, devices, implementations, materials or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.

[0036] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or these functional entities or parts of functional entities may be implemented in one or more software hardened modules, or these functional entities may be implemented in different networks and / or processor devices and / or microcontroller devices.

[0037] Since the existing malicious code is developed based on existing programs, and with the acceleration of malicious code update speed, a large number of variant malicious code and 0day attack code have been generated, making it impossible to accurately block and protect against unknown malicious attacks. Figure 1In the existing application protection scheme, in step S110, the runtime application self-protection (rasp) program 110 performs data extraction and Uniform Resource Locator (URL) extraction process; in step S120, the extracted data is analyzed and matched with rules; after the matching is completed, in step S130, the abnormal code determination process is performed. If an abnormality is detected in the code, in step S140, an interception process is performed, and the interception process result is sent to the network application end 120 to perform security protection on the network application.

[0038] Based on this, in this example embodiment, an application security protection method is first provided. The application security protection method of the present disclosure can be implemented using a server, or the method described in the present disclosure can be implemented using a terminal device, wherein the terminals described in the present disclosure may include mobile terminals such as mobile phones, tablet computers, laptops, PDAs, personal digital assistants (PDAs), and fixed terminals such as desktop computers. Figure 2 The following is a schematic diagram of the application security protection method process according to some embodiments of the present disclosure. Figure 2 , the application security protection method may include the following steps:

[0039] Step S210, receiving the current operation behavior for the application program, and determining the entry operation parameters of the current operation behavior.

[0040] According to some exemplary embodiments of the present disclosure, the application may be an application running on a network (web). The current operation behavior may be an operation behavior for the application, for example, an operation behavior for logging into the application, or an operation behavior for certain data of the application. The entry operation parameter may be an operation parameter of the current operation behavior acting on the application obtained by using a hook mechanism.

[0041] refer to Figure 3 , Figure 3 The overall flow chart of security detection of abnormal behavior according to an exemplary embodiment of the present disclosure is schematically shown. Figure 3The network application terminal 311 in the network application terminal 311 runs a network application. For the network application of the network application terminal 311, operations such as logging in, browsing, and data input can be performed. When an operation behavior for the application is detected, the operation behavior is determined as the current operation behavior, and the entry operation parameters of the current operation behavior are determined. The present disclosure can embed a rasp library in the form of an agent in the application, wherein rasp is a new application security protection technology that injects a protection program into the application to detect and block security attacks in real time.

[0042] In this embodiment, a rasp library in the form of an agent can be embedded in the application, and a runtime program self-protection hook 312 is used to extract the entry operation parameters of the application code during runtime in the form of hooks. For example, an agent method that is externally mounted on the application can be used to obtain entry operation parameters, such as extracting some parameters from the main application through the code of the Java Virtual Machine (JVM). For example, the extracted entry operation parameters may include parameters passed in from the outside and fixed parameters passed in by the application code itself, such as parameters in the form of strings, numbers, and objects; taking the user login operation behavior as an example, the entry operation parameters may include user names and passwords, etc. Since the entry operation parameters are extracted in the form of hooks, the attack surface management (ASM) can be implemented to extract the operation parameters without intruding the source code.

[0043] Step S220, obtaining a pre-configured reference matching rule, comparing the entry operation parameter with the reference matching rule, and obtaining an initial behavior type of the current operation behavior.

[0044] According to some exemplary embodiments of the present disclosure, the reference matching rule may be a matching rule for determining whether an entry operation parameter is abnormal. The initial behavior type may be a type of whether the current operation behavior is abnormal, for example, the initial behavior type may include a potential abnormal behavior type and a normal behavior type.

[0045] After obtaining the entry operation parameters, you can obtain the pre-configured reference matching rules for analyzing the entry operation parameters to determine the initial behavior type of the operation behavior. Figure 3 In step S310, the obtained entry operation parameters are compared with the reference matching rules (rasp rules) to obtain the initial behavior type corresponding to the current operation behavior. The reference matching rules can be obtained based on the cloud rule library 320.

[0046] Generally, the initial behavior type may include a potential abnormal behavior type and a normal behavior type. After comparing the inlet operation parameters with the reference matching rules, if it is determined that the initial behavior type of the current operation behavior is a potential abnormal behavior type, the current operation behavior needs to be further analyzed.

[0047] Step S230, determining the reference function calling logic corresponding to the current operation behavior.

[0048] According to some exemplary embodiments of the present disclosure, the function call logic may be the call logic generated by mutual calls between different functions when the application is running. The reference function call logic may be the function call logic corresponding to the current operation behavior.

[0049] After determining the initial behavior type of the current operation behavior, you can further determine the reference function call logic corresponding to the current operation behavior. Figure 3 In step S320, a security analysis is performed on the current operation behavior by referring to the function call logic. The security analysis method based on the reference function call logic may include dynamic context analysis and log method operation analysis.

[0050] Step S240: Perform security analysis on the current operation behavior according to the reference function call logic and the initial behavior type to generate a control instruction for the current operation behavior.

[0051] According to some exemplary embodiments of the present disclosure, the security analysis process may be a process of analyzing the security of the current operation behavior. The control instruction may be an instruction to control whether the current operation behavior continues, and the control instruction may include an interception instruction, which may refer to an instruction to intercept the current operation behavior if there is a security risk in the current operation behavior.

[0052] Continue to refer Figure 3 , after performing security analysis on the current operation behavior according to the reference function call logic and the initial behavior type, in step S330, the current operation behavior is judged as abnormal behavior to obtain the abnormal behavior judgment result of the current operation behavior. In step S340, the current operation behavior is managed by the user hook rule, and a control instruction for the current operation behavior is generated, including an interception instruction and a non-interception instruction. If the generated control instruction is an interception instruction, the current operation behavior is intercepted in step S350. Otherwise, in step S360, the current operation behavior is not intercepted.

[0053] According to the application security protection method in this example embodiment, on the one hand, by extracting the entry operation parameters of the current operation behavior and using the entry operation parameters as the analysis basis of the current operation behavior, interception separation can be effectively achieved, the main program machine performance occupancy can be reduced, and the operation efficiency can be improved. On the other hand, security analysis of the current operation behavior based on the reference function call logic can effectively reduce the error interception loss of important business and improve the interception accuracy.

[0054] Next, the application security protection method in steps S210 to S240 of this example embodiment will be further described.

[0055] In an exemplary embodiment of the present disclosure, reference matching rules are stored in a rule matching library that is dynamically updated in real time; the entry operation parameters are compared with the reference matching rules to obtain an initial behavior type of the current operation behavior, including: parsing the entry operation parameters to obtain corresponding parsed operation parameters; comparing the parsed operation parameters with the reference matching rules to determine abnormal analysis results of the parsed operation parameters; and determining the initial behavior type of the current operation behavior based on the abnormal analysis results.

[0056] The rule matching library, also known as the cloud rule library, may be a database for storing reference matching rules. The parsing process may be a process of converting the entry operation parameters into parsing operation parameters. The parsing operation parameters may be parameters obtained after parsing the entry operation parameters. The abnormal analysis result may be a result of determining whether there is an abnormality in the parsing operation parameters.

[0057] refer to Figure 4 , Figure 4 The flowchart of parsing the entry operation parameters according to the exemplary embodiment of the present disclosure is schematically shown. In step S410, the entry operation parameters are parsed to obtain the corresponding parsed operation parameters. Since the obtained entry operation parameters can be the parameter format used when the application is executed, such as the entry operation parameters can be in ciphertext form, such as bytecode form. The extracted bytecode is transmitted to the rasp rule configuration end, and the bytecode corresponding to the entry operation parameter is parsed into the corresponding operation function and operation parameter, that is, the operation parameter is parsed.

[0058] In step S420, the parsed operation parameters are compared with the reference matching rules to determine the abnormal analysis results of the parsed operation parameters. After obtaining the parsed operation parameters, the reference matching rules can be obtained from the cloud rule library, and the cloud rule library can use patches and versions to update the matching rules stored therein in real time. The rasp rule configuration server includes a knowledge repository and a vulnerability library, such as the Common Vulnerabilities Exposures library, to perform security comparison analysis for subsequent potential dangerous behaviors. The obtained parsed operation parameters are compared with the rule matching library to obtain the corresponding abnormal analysis results. Specifically, the comparison process of the parsed operation parameters and the rule matching library can be a regular matching process.

[0059] In step S430, the initial behavior type of the current operation behavior is determined according to the abnormal analysis result. For example, during the comparative analysis process, if a potentially abnormal function or potentially abnormal parameter with a danger is matched, the initial behavior type of the current operation behavior can be determined as a potentially abnormal behavior type. Through the above processing, it can be determined whether the current operation behavior is a potentially abnormal behavior type.

[0060] In an exemplary embodiment of the present disclosure, a class to be enhanced is determined from an initial enhanced class library; the initial enhanced class library includes an association relationship between the class to be enhanced and an enhanced extension class; the class to be enhanced is encapsulated to obtain corresponding encapsulated class data; the encapsulated class data includes one or more of the class type, input parameters and class object; the original function to be enhanced is used as the basic parent class; the encapsulated class data is written to the proxy function, and the function to be enhanced in the class to be enhanced is rewritten based on the basic parent class; the rewriting process includes generating a new function of the basic parent class; modifying the function name of the enhanced function that has been rewritten to obtain the enhanced extension function; and generating an enhanced class library based on the enhanced extension function.

[0061] Among them, the initial enhanced class library can be a database composed of classes to be enhanced. The class to be enhanced can be a class that needs to be enhanced. The enhanced extension class can be a class generated after the class to be enhanced is enhanced and extended. The encapsulated class data can be the data obtained after the class to be enhanced is encapsulated. The class type can be the specific type of the class contained in the encapsulated data. The input parameter can be the entry operation parameter of the class to be enhanced. The class object can be an object generated based on the class to be enhanced. The basic parent class can be the parent class that the function to be enhanced depends on when rewriting, and other functions to be enhanced can be generated based on the basic parent class. The proxy function can be a function that achieves the purpose of the proxy. The function name can be the name corresponding to the function after the function to be enhanced is rewritten. The enhanced extension function can be a function obtained after the above-mentioned enhancement processing steps.

[0062] refer to Figure 5 , Figure 5 The matching flow chart of the function call method chain according to the exemplary embodiment of the present disclosure is schematically shown. Based on the agent entry (i.e., agent entry) 510 of the application, the agent main function (agent main) 520 is entered through the agent tool instrument, and the agent main supports the attachment interface (attach api) mode. In step S510, the class to be enhanced is processed, and the class to be enhanced is determined in the initial enhanced class library (enhancerMap) 530 through class name matching. The enhancerMap stores the relationship between the class name to be enhanced and the enhanced extension class.

[0063] The process of enhancing the class to be enhanced can be analogous to the way dynamic proxy is executed. The class to be enhanced that needs to be proxied is encapsulated to obtain encapsulated class data. The encapsulated class data may include class type, input parameters, object and other data. The encapsulated class data is brought into the proxy function, and the function to be enhanced can be rewritten. When rewriting a function, the function before rewriting can be used as the base class and the corresponding function name can be modified. Through the above processing steps, the corresponding enhanced extension function can be obtained, and an enhanced class library can be generated based on the generated enhanced extension function.

[0064] In this process, the function can be processed later, and when the application calls it, a reflection operation can be performed in real time to obtain the transmission data, so as to perform subsequent security analysis and processing based on the transmission data.

[0065] In an exemplary embodiment of the present disclosure, a preconfigured enhanced class library is obtained, and a function content set is determined based on the enhanced class library; an operation behavior log is determined based on the function content set; the operation behavior log includes a historical behavior identifier and a historical behavior timestamp corresponding to the historical user operation behavior; according to the historical behavior identifier and the historical behavior timestamp, the functions corresponding to the historical user operation behavior are time-sorted to obtain a function chain call sequence; and a function call logic set is generated according to multiple function chain call sequences.

[0066] Among them, the enhanced class library can be a database composed of functions and parameters contained in multiple enhanced classes. The function content collection can be a collection of related content for storing user operation behaviors. The operation behavior log can be a log file corresponding to the operation behaviors performed by users on the application in the past time period. Historical user operation behaviors can be the operation behaviors performed by users on the application in the past. The historical behavior identifier can be a unique identifier of the user's operation behaviors on the application in the past. The historical behavior timestamp can be the timestamp corresponding to the historical user operation behavior. The function chain call sequence can be the call sequence between multiple functions involved in the operation process of the application. The function call logic collection can be a content collection composed of multiple different function chain call sequences and other logical data.

[0067] Continue to refer Figure 5 When generating a function call logic set, the pre-configured enhancement class library 530 (enhancerMap) can be obtained first. The enhancement class library stores the relationship between the enhancement class name and the enhancement extension class. From the obtained enhancement class library, the function content set 540 (method content array) can be determined, and the operation behavior log can be determined from the function content set. The operation behavior log contains the historical user identifier and the historical behavior timestamp corresponding to the user's historical operation behavior generated by the user's past operation on the application. The historical user operation behavior is determined from the operation behavior log, that is, the function 550 whose timestamp is before the identifier.

[0068] After obtaining the above information on the user's historical operation behavior for the application, the function chain call sequence can be obtained by sorting the functions corresponding to the historical user operation behavior according to the above information by event. For example, the function chain call sequence may include information such as function A calling function B, function B calling function C, and so on. After obtaining the function call sequence corresponding to all historical user operation behaviors, the user can configure the permissions of different function running chains, for example, to intercept or not intercept the corresponding functions; in addition, the user can also determine the importance level of different functions, such as determining the importance level of multiple function call chains during the program running process, and configuring the corresponding weights according to the importance level. In combination with the user's permission configuration, a function call logic set can be generated based on the generated multiple function call sequences.

[0069] In an exemplary embodiment of the present disclosure, in response to a program call instruction corresponding to a current operation behavior, a reflection mechanism is used to obtain transmission data of the program call instruction; the transmission data includes an operation identifier and an operation timestamp of the current operation behavior; based on the operation identifier and the operation timestamp, a reference function call logic corresponding to the current operation behavior is determined from a function call logic set.

[0070] The program call instruction may be an instruction for calling other functions corresponding to the current operation behavior. The transmission data may be data related to the current operation behavior obtained by using a reflection mechanism. The operation identifier may be a unique identifier corresponding to the current operation behavior. The operation timestamp may be a timestamp corresponding to the current operation behavior.

[0071] Continue to refer Figure 5 , in step S510, a proxy mechanism is used to obtain transmission data. In response to the program call instruction corresponding to the current operation behavior, a reflection mechanism is used to obtain the transmission data corresponding to the program call instruction. For example, the transmission data includes an operation identifier and an operation timestamp corresponding to the current operation behavior. The operation identifier can indicate multiple functions executed by the current operation behavior during the operation process, and the operation timestamp can show the sequence of execution time between multiple functions. The function call sequence chain 560 of the current operation behavior during the execution process can be determined by the operation identifier and the operation timestamp. Therefore, according to the operation identifier and the operation timestamp in the transmission data, the reference function call logic corresponding to the current operation behavior can be determined from the function 550 whose timestamp is before the identifier contained in the function call logic set, so as to further perform a security analysis on the current operation behavior based on the reference function call logic.

[0072] In an exemplary embodiment of the present disclosure, if the initial behavior type is a potential abnormal behavior type, the source of the preceding data corresponding to the current operating behavior is determined based on the reference function call logic; a security analysis is performed on the preceding data source to obtain a security analysis result; and a control instruction for the current operating behavior is generated based on the security analysis result.

[0073] The potential abnormal behavior type may be the type corresponding to the operation behavior with potential abnormality. The source of the pre-data may be the data source of the pre-data corresponding to the current operation behavior, for example, the source of the relevant data transmitted to the function corresponding to the current operation behavior. The security analysis result may be the analysis result on security obtained by analyzing whether the current operation behavior has abnormality.

[0074] Since the reference function call logic contains the calling relationships between multiple functions, the calling relationships between functions can contain relevant information such as data flow. Therefore, the current abnormal analysis result is that the initial behavior type is a potential abnormal behavior type, and the source of the preceding data corresponding to the current operation behavior can be further determined based on the reference function call logic. Perform security analysis on the preceding data source to analyze whether the preceding data source is safe, determine the data security of the preceding sources of functions such as exec and readFile that have potential abnormalities, and obtain security analysis results.

[0075] For example, for a current operation behavior, a potential abnormal behavior type is detected. The function corresponding to the current operation behavior corresponds to a preceding function A. Function A passes a parameter a to the running function of the current operation behavior. At this time, it can be determined whether the parameter a passed by this function A is dangerous or safe. If the preceding function A is an abnormal function, the parameter a passed can also be considered to be risky. At this time, the call chain of this function is a malicious call chain.

[0076] Based on the security analysis results, determine whether to intercept the current operation behavior and generate a corresponding control instruction for the current operation behavior. If the current operation behavior is considered to have an abnormal risk after the security analysis of the previous data source, the control instruction for the current operation behavior generated is an interception instruction; if the current operation behavior is considered to have no abnormal risk after the security analysis of the previous data source, the control instruction is a continue operation instruction.

[0077] In an exemplary embodiment of the present disclosure, if the control instruction is an interception instruction, the current operation behavior is intercepted and corresponding behavior interception data is generated; the behavior interception data includes an interception notification message; the interception notification message is sent to a designated server, and the behavior interception data is stored in a knowledge repository.

[0078] The interception instruction may be an instruction to intercept the current operation behavior. The behavior interception data may be relevant data generated when the current operation behavior is intercepted. The interception notification message may be a message indicating that the current operation behavior is intercepted. The designated server may be a user terminal that receives the interception notification message. The knowledge repository may be a database for storing intercepted operation behaviors.

[0079] If the generated control instruction is an interception instruction, the current operation behavior acting on the application is intercepted to ensure the security protection of the application. When the current operation behavior is intercepted, the corresponding behavior interception data is generated. For example, the generated behavior interception data includes a notification message of intercepting the current operation behavior, and the interception notification message can be sent to a designated server in the form of an email, such as the server corresponding to the operation and maintenance personnel. In addition, the behavior interception data generated when the current operation behavior is intercepted can also be stored in the knowledge repository.

[0080] It is easy for those skilled in the art to understand that other methods may be used to send the interception notification message to the designated server, and the present disclosure does not impose any special limitation on the specific form of the interception notification message.

[0081] In summary, the current operation behavior for the application is received, and the entry operation parameters of the current operation behavior are determined; the pre-configured reference matching rules are obtained, and the entry operation parameters are compared with the reference matching rules to obtain the initial behavior type of the current operation behavior; the reference function call logic corresponding to the current operation behavior is determined; according to the reference function call logic and the initial behavior type, the current operation behavior is subjected to security analysis and processing to generate the control instructions of the current operation behavior. On the one hand, by extracting the entry operation parameters of the current operation behavior and using the entry operation parameters as the analysis basis of the current operation behavior, the interception separation can be effectively realized, the performance occupancy of the main program machine can be reduced, and the operation efficiency can be improved. On the other hand, the security analysis of the current operation behavior based on the reference function call logic can effectively improve the error interception loss of important business and improve the interception accuracy. On the other hand, after determining that the operation behavior needs to be intercepted, the generated interception data can be stored in the knowledge repository, and the knowledge repository can be updated to further improve the subsequent interception accuracy.

[0082] It should be noted that, although the steps of the method of the present invention are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0083] In addition, in this exemplary embodiment, an application security protection device is also provided. Figure 6 The application security protection device 600 may include: a parameter acquisition module 610, an initial type determination module 620, a call logic determination module 630 and a security analysis module 640.

[0084] Specifically, the parameter acquisition module 610 is used to receive the current operation behavior for the application and determine the entry operation parameters of the current operation behavior; the initial type determination module 620 is used to obtain the pre-configured reference matching rules, compare the entry operation parameters with the reference matching rules, and obtain the initial behavior type of the current operation behavior; the call logic determination module 630 is used to determine the reference function call logic corresponding to the current operation behavior; the security analysis module 640 is used to perform security analysis on the current operation behavior according to the reference function call logic and the initial behavior type to generate control instructions for the current operation behavior.

[0085] In an exemplary embodiment of the present disclosure, reference matching rules are stored in a rule matching library that is dynamically updated in real time; the initial type determination module 620 includes an initial type determination unit, which is used to parse the entry operating parameters to obtain corresponding parsed operating parameters; compare the parsed operating parameters with the reference matching rules to determine abnormal analysis results of the parsed operating parameters; and determine the initial behavior type of the current operating behavior based on the abnormal analysis results.

[0086] In an exemplary embodiment of the present disclosure, a reference function call logic is obtained based on a function call logic set; the application security protection device 600 includes a call logic generation module, which is used to obtain a pre-configured enhanced class library, and determine a function content set based on the enhanced class library; an operation behavior log is determined based on the function content set; the operation behavior log includes a historical behavior identifier and a historical behavior timestamp corresponding to the historical user operation behavior; according to the historical behavior identifier and the historical behavior timestamp, the functions corresponding to the historical user operation behavior are time-sorted to obtain a function chain call sequence; and a function call logic set is generated according to multiple function chain call sequences.

[0087] In an exemplary embodiment of the present disclosure, the call logic generation module includes an enhanced class library generation unit, which is used to determine the class to be enhanced from the initial enhanced class library; the initial enhanced class library includes the association relationship between the class to be enhanced and the enhanced extension class; the class to be enhanced is encapsulated to obtain corresponding encapsulated class data; the encapsulated class data includes one or more of the class type, input parameters and class objects; the original function to be enhanced is used as the basic parent class; the encapsulated class data is written to the proxy function, and the function to be enhanced in the class to be enhanced is rewritten based on the basic parent class; the rewriting process includes generating a new function of the basic parent class; modifying the function name of the enhanced function that has been rewritten to obtain the enhanced extension function; and generating an enhanced class library based on the enhanced extension function.

[0088] In an exemplary embodiment of the present disclosure, the call logic determination module 630 includes a call logic determination unit, which is used to respond to the program call instruction corresponding to the current operation behavior and adopt a reflection mechanism to obtain the transmission data of the program call instruction; the transmission data includes the operation identifier and operation timestamp of the current operation behavior; according to the operation identifier and the operation timestamp, determine the reference function call logic corresponding to the current operation behavior from the function call logic set.

[0089] In an exemplary embodiment of the present disclosure, the security analysis module 640 includes a security analysis unit, which is used to determine the source of preceding data corresponding to the current operation behavior according to the reference function call logic if the initial behavior type is a potential abnormal behavior type; perform security analysis processing on the preceding data source to obtain a security analysis result; and generate control instructions for the current operation behavior according to the security analysis result.

[0090] In an exemplary embodiment of the present disclosure, the control instruction includes an interception instruction, and the application security protection device 600 also includes an interception processing module, which is used to intercept the current operation behavior if the control instruction is an interception instruction, and generate corresponding behavior interception data; the behavior interception data includes an interception notification message; the interception notification message is sent to a designated server, and the behavior interception data is stored in a knowledge repository.

[0091] The specific details of the virtual modules of each of the above-mentioned application security protection devices have been described in detail in the corresponding application security protection methods, so they will not be repeated here.

[0092] It should be noted that, although several modules or units of the application safety protection device are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.

[0093] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0094] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: complete hardware embodiments, complete software embodiments (including firmware, microcode, etc.), or embodiments combining hardware and software aspects, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0095] Reference below Figure 7 hereinafter describes an electronic device 700 according to such an embodiment of the present disclosure. Figure 7 The electronic device 700 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0096] like Figure 7 As shown, the electronic device 700 is in the form of a general computing device. The components of the electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one storage unit 720, a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710), and a display unit 740.

[0097] The storage unit stores program codes, which can be executed by the processing unit 710, so that the processing unit 710 executes the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.

[0098] The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 721 and / or a cache memory unit 722 , and may further include a read-only memory unit (ROM) 723 .

[0099] The storage unit 720 may include a program / utility 724 having a set (at least one) of program modules 725, such program modules 725 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0100] Bus 730 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0101] The electronic device 700 may also communicate with one or more external devices 770 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 700, and / or communicate with any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 750. Furthermore, the electronic device 700 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 760. As shown, the network adapter 760 communicates with other modules of the electronic device 700 via a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0102] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.

[0103] Among them, the network device can be a device for communicating with a mobile device. The network device can be an access point (AP) in WLAN, a base station (Base Transceiver Station, BTS) in GSM or CDMA, a base station (NodeB, NB) in WCDMA, an evolved base station (Evolutional Node B, eNB or eNodeB) in LTE, or a relay station or access point, or a vehicle-mounted device, a wearable device, and a network device or base station (gNB) in a 5G network, or a network device in a future evolved PLMN network, etc.

[0104] It is worth noting that the technology described in the embodiments of the present disclosure is not limited to LTE (Long Term Evolution) / LTE-A (LTE-Advanced, LTE evolution) systems, but can also be used in other wireless communication systems, such as CDMA (Code Division Multiple Access), TDMA (Time Division Multiple Access), FDMA (Frequency Division Multiple Access), OFDMA (Orthogonal Frequency Division Multiple Access), SC-FDMA (Single-carrier Frequency-Division Multiple Access) and other systems. The terms "system" and "network" in the embodiments of the present disclosure are often used interchangeably, and the described technology can be used for the above-mentioned systems and radio technologies as well as other systems and radio technologies. However, the following description describes a 5G system for example purposes, and 5G terms are used in most of the following descriptions, although these technologies can also be applied to applications other than 5G system applications, such as 6G (6th Generation) communication systems.

[0105] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0106] refer to Figure 8 As shown, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0107] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0108] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0109] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0110] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0111] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0112] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0113] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An application security protection method, It is characterized in that include: Receiving a current operation behavior for an application program, and determining an entry operation parameter of the current operation behavior; Obtaining a pre-configured reference matching rule, comparing the entry operation parameter with the reference matching rule, and obtaining an initial behavior type of the current operation behavior; Determine a reference function call logic corresponding to the current operation behavior, wherein the reference function call logic is obtained based on a function call logic set; Performing security analysis on the current operation behavior according to the reference function call logic and the initial behavior type to generate a control instruction for the current operation behavior; The function call logic set is generated based on the following steps: Acquire a pre-configured enhanced class library, and determine a function content set based on the enhanced class library; Determine an operation behavior log based on the function content set; the operation behavior log includes a historical behavior identifier and a historical behavior timestamp corresponding to the historical user operation behavior; According to the historical behavior identifier and the historical behavior timestamp, the functions corresponding to the historical user operation behavior are sorted in time to obtain a function chain calling sequence; The function call logic set is generated according to a plurality of function chain call sequences.

2. The method according to claim 1, It is characterized in that The reference matching rule is stored in a rule matching library that is dynamically updated in real time; the entry operation parameter is compared with the reference matching rule to obtain the initial behavior type of the current operation behavior, including: Parsing the input operation parameters to obtain corresponding parsed operation parameters; Comparing the parsed operation parameters with the reference matching rules to determine abnormal analysis results of the parsed operation parameters; An initial behavior type of the current operation behavior is determined according to the abnormal analysis result.

3. The method according to claim 1, It is characterized in that The enhanced class library is generated by the following steps: Determine a class to be enhanced from an initial enhanced class library; the initial enhanced class library includes an association relationship between the class to be enhanced and the enhanced extension class; Encapsulating the class to be enhanced to obtain corresponding encapsulated class data; the encapsulated class data includes one or more of a class type, an input parameter, and a class object; Take the original function to be enhanced as the base parent class; The encapsulation class data is written into the proxy function, and the function to be enhanced in the class to be enhanced is rewritten based on the basic parent class; the rewriting process includes generating a new function of the basic parent class; Modifying the function name of the enhanced function that has undergone the rewriting process to obtain an enhanced extended function; The enhanced class library is generated based on the enhanced extension function.

4. The method according to claim 1, It is characterized in that The determining of the reference function calling logic corresponding to the current operation behavior includes: In response to a program call instruction corresponding to the current operation behavior, a reflection mechanism is used to obtain transmission data of the program call instruction; the transmission data includes an operation identifier and an operation timestamp of the current operation behavior; According to the operation identifier and the operation timestamp, a reference function call logic corresponding to the current operation behavior is determined from a function call logic set.

5. The method according to claim 1, It is characterized in that The performing security analysis processing on the current operation behavior according to the reference function call logic and the initial behavior type to generate a control instruction for the current operation behavior includes: If the initial behavior type is a potential abnormal behavior type, determining the source of the preceding data corresponding to the current operation behavior according to the reference function call logic; Performing security analysis on the source of the front-end data to obtain a security analysis result; A control instruction for the current operation behavior is generated according to the safety analysis result.

6. The method according to claim 1 or 5, It is characterized in that The control instruction includes an interception instruction, and the method further includes: If the control instruction is an interception instruction, the current operation behavior is intercepted to generate corresponding behavior interception data; the behavior interception data includes an interception notification message; The interception notification message is sent to a designated server, and the behavior interception data is stored in a knowledge repository.

7. An application safety protection device, It is characterized in that include: A parameter acquisition module, used to receive the current operation behavior for the application program and determine the entry operation parameters of the current operation behavior; An initial type determination module, used to obtain a pre-configured reference matching rule, compare the entry operation parameter with the reference matching rule, and obtain an initial behavior type of the current operation behavior; A calling logic determination module, used to determine a reference function calling logic corresponding to the current operation behavior, wherein the reference function calling logic is obtained based on a function calling logic set; A security analysis module, used to perform security analysis processing on the current operation behavior according to the reference function call logic and the initial behavior type, so as to generate a control instruction for the current operation behavior; The calling logic determination module is further used to obtain a pre-configured enhanced class library and determine a function content set based on the enhanced class library; Determine an operation behavior log based on the function content set; the operation behavior log includes a historical behavior identifier and a historical behavior timestamp corresponding to the historical user operation behavior; According to the historical behavior identifier and the historical behavior timestamp, the functions corresponding to the historical user operation behavior are sorted in time to obtain a function chain calling sequence; The function call logic set is generated according to a plurality of function chain call sequences.

8. An electronic device, It is characterized in that include: processor; as well as A memory having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by the processor, implement the application security protection method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the application security protection method according to any one of claims 1 to 6.