Program function processing method and related device
By obtaining and filtering action verification configuration information, verifying and processing the execution actions of application functions, the problem of insufficient application security is solved, and efficient security improvement and universality is achieved.
Patent Information
- Application Number
- CN202310634546.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-03
AI Technical Summary
The insufficient security of existing applications has led to attackers being able to bypass the process of program functions, resulting in data leakage, and different developers have different understandings of security, resulting in inconsistent improvement, resulting in insufficient security.
By obtaining the action verification request for the current function execution action of the program function in the application, filter out the target action verification configuration information corresponding to the current function execution action, perform verification processing, and extract the functional safety processing strategy corresponding to the action verification information, adaptability handles program functions to improve application security.
It effectively avoids data leakage caused by attackers bypassing the process, improves the security of the application, and is universal, and does not need to develop verification logic separately for each program function.
Smart Images

Figure CN119066644A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of application processing, and in particular to a program function processing method and related devices, wherein the related devices include a program function processing device, a computer device, a computer-readable storage medium, and a computer program product. Background Art
[0002] As applications develop, they can provide more and more program functions to realize services. Attackers will attack applications based on these program functions, which will make applications insecure. In response to the problem of attackers attacking applications, developers will improve the logic of program functions to improve the security of applications. However, due to different understandings of application security by different developers, the degree of improvement of program functions is different, which will lead to insufficient security of applications.
[0003] In summary, there is currently a problem of insufficient security of applications. Summary of the invention
[0004] The embodiments of the present application provide a program function processing method and related devices, which can improve the security of application programs.
[0005] A program function processing method, comprising:
[0006] Obtain an action verification request for executing an action of a current function of a program function in an application program, and obtain an action verification configuration information set of the program function, wherein the action verification configuration information set includes action verification configuration information corresponding to each execution action of a function guide in the program function;
[0007] According to the action verification request, the target action verification configuration information corresponding to the current function execution action is filtered out from the action verification configuration information set;
[0008] According to the target action verification configuration information, the current function execution action is verified and processed to obtain the action verification information of the current function execution action under the function guidance;
[0009] The functional safety processing strategy corresponding to the action verification information is extracted, and the program function is processed according to the functional safety processing strategy.
[0010] Accordingly, an embodiment of the present application provides a program function processing device, including:
[0011] An acquisition unit may be used to acquire an action verification request for executing an action of a current function of a program function in an application program, and acquire an action verification configuration information set of the program function, wherein the action verification configuration information set includes action verification configuration information corresponding to each execution action of a function guide in the program function;
[0012] The screening unit may be used to screen out target action verification configuration information corresponding to the current function execution action from the action verification configuration information set according to the action verification request;
[0013] The verification unit can be used to verify the current function execution action according to the target action verification configuration information, and obtain the action verification information of the current function execution action under the function guidance;
[0014] The processing unit can be used to extract the functional safety processing strategy corresponding to the action verification information, and process the program function according to the functional safety processing strategy.
[0015] In some embodiments, the program function processing device also includes a construction unit, which can be specifically used to obtain the execution action of the program function in the application under the guidance of the function; configure the execution action to obtain action verification configuration information of the execution action; and construct an action verification configuration information set based on the execution action and the action verification configuration information.
[0016] In some embodiments, the construction unit can be specifically used to perform information configuration processing on the execution action to obtain sub-action verification configuration information of the execution action; and perform fusion processing on the sub-action verification configuration information to obtain action verification configuration information of the execution action.
[0017] In some embodiments, the construction unit can be specifically used to obtain a configuration template for executing an action, the configuration template including initial sub-verification configuration information for executing the action; in response to a configuration operation for the initial sub-verification configuration information, sub-action configuration verification information for the execution action is obtained.
[0018] In some embodiments, the verification unit can be specifically used to extract the action information to be verified of the currently executed action according to the action verification request; verify the current function execution action according to the target action verification configuration information and the action information to be verified, and obtain the action verification information of the current function execution action under the guidance of the function.
[0019] In some embodiments, the verification unit can be specifically used to verify the sub-action information to be verified in the action information to be verified according to the target sub-action verification configuration information in the target action verification configuration information, and obtain sub-action verification information corresponding to the sub-action information to be verified; based on the sub-action verification information, verify the current function execution action to obtain the action verification information of the current function execution action under the guidance of the function.
[0020] In some embodiments, the verification unit can be specifically used to extract action trigger object information from the action to be verified information, where the action trigger object information is the object information that triggers the current function to execute the action; the action trigger object information is verified using the target action verification configuration information to verify the current function execution action, and obtain the action verification information of the current function execution action under the guidance of the function.
[0021] In some embodiments, the processing unit can be specifically used to obtain the next function execution action for the program function if the functional safety processing strategy is a strategy that represents the execution of a program function, and use the next function execution action as the current function execution action, and return to execute the step of "obtaining an action verification request for the current function execution action of the program function in the application program"; if the functional safety processing strategy is a strategy that represents the termination of execution of the program function, then the program function is terminated.
[0022] In addition, an embodiment of the present application also provides a computer device, including a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute any program function processing method provided in the embodiment of the present application.
[0023] In addition, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for loading by a processor to execute any program function processing method provided in the embodiment of the present application.
[0024] In addition, an embodiment of the present application also provides a computer program product, including a computer program, which implements any program function processing method provided in the embodiment of the present application when the computer program is executed by a processor.
[0025] The present application can obtain an action verification request for the current function execution action of the program function in the application, and obtain an action verification configuration information set of the program function, the action verification configuration information set including the action verification configuration information corresponding to each execution action of the function guidance in the program function; according to the action verification request, filter out the target action verification configuration information corresponding to the current function execution action from the action verification configuration information set; according to the target action verification configuration information, perform verification processing on the current function execution action to obtain the action verification information of the current function execution action under the function guidance; extract the functional safety processing strategy corresponding to the action verification information, and process the program function according to the functional safety processing strategy. Since the present application can use the target action verification configuration information filtered out from the action verification configuration information to perform verification processing on the current function execution action after obtaining the action verification request for the current function execution action of the program function in the application to obtain the action verification information, the functional safety processing strategy corresponding to the action verification information can be used to adaptively process the program function, thereby avoiding the current function execution action from attacking the application, thus improving the security of the application. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 It is a scenario diagram of the program function processing method provided in the embodiment of the present application;
[0028] Figure 2 It is a flowchart of a program function processing method provided in an embodiment of the present application;
[0029] Figure 3 FIG2 is a flowchart of a program function processing method provided in an embodiment of the present application;
[0030] Figure 4 is a schematic diagram of a processing module on a computer device provided in an embodiment of the present application;
[0031] Figure 5 is a schematic diagram of a configuration template provided in an embodiment of the present application;
[0032] Figure 6 It is a timing diagram of the program function processing method provided in the embodiment of the present application;
[0033] Figure 7is a schematic diagram of the structure of a program function processing device provided in an embodiment of the present application;
[0034] Figure 8 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0036] The embodiment of the present application provides a program function processing method, device, computer equipment and computer readable storage medium. The program function processing device can be integrated in a computer equipment, which can be a server or a terminal.
[0037] Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The terminal can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, car terminal, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0038] For example, see Figure 1 Taking the program function processing device integrated in the computer device as an example, the computer device can obtain an action verification request for the current function execution action of the program function in the application, and obtain an action verification configuration information set of the program function; according to the action verification request, filter out the target action verification configuration information corresponding to the current function execution action from the action verification configuration information set; according to the target action verification configuration information, verify the current function execution action to obtain the action verification information of the current function execution action under the guidance of the function; extract the functional safety processing strategy corresponding to the action verification information, and process the program function according to the functional safety processing strategy.
[0039] The program function may refer to a function implemented by an application program, for example, the program function may be a call function, a login function, etc. The program function may be represented in the form of code.
[0040] The current function execution action may refer to the action performed by the device to implement the program function according to the instruction. The device may refer to the aforementioned computer device, or may refer to other devices connected to the computer device.
[0041] The action verification configuration information set includes action verification configuration information corresponding to each execution action of the function guide in the program function. The function guide may refer to an operation guide for enabling a device to implement a program function. For example, an operation instruction may be represented as a process of the program function. The execution action may refer to an action performed by a device to implement a program function according to an instruction. For example, the execution action may be represented as a specific step in the process. The action verification configuration information may refer to configuration information configured for the execution action and used to verify the execution action of the current function.
[0042] The functional safety processing strategy may refer to a strategy for processing program functions to improve the safety of the application program.
[0043] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0044] This embodiment will be described from the perspective of a program function processing device, which can be specifically integrated in a computer device, which can be a server or a terminal. The terminal can include a tablet computer, a laptop computer, a personal computer (PC), a wearable device, a virtual reality device, or other smart devices that can acquire data.
[0045] like Figure 2 As shown, the specific process of the program function processing method is as follows: step S201 to step S204:
[0046] S201, obtaining an action verification request for executing an action for a current function of a program function in an application, and obtaining an action verification configuration information set of the program function.
[0047] In some application embodiments, a method for obtaining an action verification request for executing an action on a current function of a program function in an application may be: receiving action information for executing an action on a current function of a program function in an application; and triggering an action verification request for executing an action on a current function of a program function in the application based on the action information.
[0048] The action information may be related information generated by the current function execution action.
[0049] The action verification configuration information set includes action verification configuration information corresponding to each execution action of the function guide in the program function.
[0050] In an application embodiment, a method for obtaining an action verification configuration information set of a program function may be: obtaining functional feature information of the program function; and extracting an action verification configuration information set of the program function according to the functional feature information.
[0051] The functional feature information may be represented as a unique identifier of the program function.
[0052] Among them, the action verification configuration information set of the program function can be extracted from the cloud or local storage space according to the functional feature information.
[0053] In some application embodiments, the present application may set an action verification configuration information set in advance. The method of setting the action verification configuration information set in the present application may be as shown in steps S2011 to S2023:
[0054] S2011. Obtain execution actions of program functions in the application under function guidance.
[0055] In one example, the method of obtaining the execution action of the program function in the application under the function guidance may be: in response to an input operation for the function guidance in the program function, generating the execution action of the program function in the application under the function guidance.
[0056] Specifically, the present application can display an action setting interface for function guidance, the action setting interface including multiple action setting areas; in response to input operations in the action setting areas, an execution action of a program function in the application under the function guidance is generated.
[0057] S2012: Perform configuration processing on the execution action to obtain action verification configuration information of the execution action.
[0058] In one example, the method of performing configuration processing on the execution action and obtaining action verification configuration information of the execution action can be: performing information configuration processing on the execution action to obtain sub-action verification configuration information of the execution action; and performing fusion processing on the sub-action verification configuration information to obtain action verification configuration information of the execution action.
[0059] In one example, the sub-action verification configuration information is merged to obtain the action verification configuration information of the execution action by: obtaining the logical configuration information for the sub-action verification configuration information; and merging the sub-action verification configuration information according to the logical configuration information to obtain the action verification configuration information of the execution action.
[0060] The logic configuration information may refer to information used to perform logic configuration on at least two sub-action verification configuration information. Specifically, the logic configuration information may be characterized as a logic operator.
[0061] For example, the sub-action verification configuration information corresponding to the same execution action includes the first execution action configuration information, the second execution action configuration information, and the third execution action configuration information. The logical configuration information may include an "AND" logical operator. The present application may use the "AND" logical operator to associate the first execution action configuration information, the second execution action configuration information, and the third execution action configuration information to form the action verification configuration information of the execution action.
[0062] In an example, the method of obtaining the logic configuration information for the sub-action verification configuration information may be: obtaining candidate logic configuration information for the sub-action verification configuration information; and obtaining the logic configuration information for the sub-action verification configuration information in response to a selection operation on the candidate logic configuration information.
[0063] In one example, information configuration processing is performed on an execution action, and a method for obtaining sub-action verification configuration information of the execution action may be: obtaining a configuration template for the execution action, the configuration template including initial sub-verification configuration information of the execution action; and obtaining sub-action configuration verification information of the execution action in response to a configuration operation for the initial sub-verification configuration information.
[0064] The configuration template may refer to a template used to configure verification information for configuring a sub-action of an execution action.
[0065] The initial sub-authentication configuration information may refer to initialized sub-authentication configuration information.
[0066] In one example, a configuration template for executing the action may be extracted from a cloud or a temporary storage space according to action feature information of the execution action, wherein the action feature information may be represented as a unique identifier of the execution action.
[0067] In one example, in response to a configuration operation on the initial sub-verification configuration information, the sub-action configuration verification information of the execution action is obtained by: in response to an input operation on the initial sub-verification configuration information, the sub-action configuration verification information of the execution action is obtained.
[0068] S2013. Construct an action verification configuration information set according to the execution action and the action verification configuration information.
[0069] In an example, according to the execution action and the action verification configuration information, the action verification configuration information set may be constructed by associating the execution action and the action verification configuration information to obtain the action verification configuration information set.
[0070] S202: According to the action verification request, select target action verification configuration information corresponding to the current function execution action from the action verification configuration information set.
[0071] In some application embodiments, according to an action verification request, the method for filtering out the target action verification configuration information corresponding to the current function execution action from the action verification configuration information set can be: according to the action verification request, determining the target execution action corresponding to the current function execution action from the action verification configuration information set; according to the action verification configuration information set and the target execution action, obtaining the target action verification matching information corresponding to the target execution action from the action verification configuration information; and using the target action verification matching information as the target action verification configuration information corresponding to the current function execution action.
[0072] S203: Verify the current function execution action according to the target action verification configuration information to obtain action verification information of the current function execution action under the function guidance.
[0073] In some application embodiments, according to the target action verification configuration information, the current function execution action is verified, and the method of obtaining the action verification information of the current function execution action under the function guidance can be as shown in steps S2031 to S2032:
[0074] S2031. According to the action verification request, extract the action to be verified information of the currently executed action.
[0075] The action verification information may refer to information corresponding to the currently executed action and used for verification.
[0076] In one example, according to the action verification request, the method of extracting the action information to be verified of the currently executed action may be: according to the action feature information of the currently executed action carried in the action verification request, extracting the action information to be verified of the currently executed action from a preset storage space.
[0077] The preset storage space may be a local storage space of the computer or a cloud storage space.
[0078] S2032: Verify the current function execution action according to the target action verification configuration information and the action to be verified information, and obtain action verification information of the current function execution action under the function guidance.
[0079] The action verification information may indicate that the current function execution action verification has passed, or the current function execution action verification has failed.
[0080] In one example, the current function execution action is verified according to the target action verification configuration information and the action to be verified information, and the method for obtaining the action verification information of the current function execution action under the function guidance can be: according to the target sub-action verification configuration information in the target action verification configuration information, the sub-action to be verified information in the action to be verified information is verified to obtain the sub-action verification information corresponding to the sub-action to be verified information; according to the sub-action verification information, the current function execution action is verified to obtain the action verification information of the current function execution action under the function guidance.
[0081] In one example, the sub-action to be verified information in the action to be verified information is verified according to the target sub-action verification configuration information in the target action verification configuration information, and the method for obtaining the sub-action verification information corresponding to the sub-action to be verified information can be: matching the target sub-action verification configuration information in the target action verification configuration information with the sub-action to be verified information in the action to be verified information, and obtaining the sub-action verification information corresponding to the sub-action to be verified information.
[0082] Among them, if the target sub-action verification configuration information matches the sub-action to be verified information, it is determined that the sub-action verification information represents that the current function execution action verification has passed; if the target sub-action verification configuration information does not match the sub-action to be verified information, it is determined that the sub-action verification information represents that the current function execution action verification has failed.
[0083] Based on the above, when the target sub-action verification configuration information is the same as the sub-action information to be verified, this situation can be called that the target sub-action verification configuration information matches the sub-action information to be verified; when the target sub-action verification configuration information is different from the sub-action information to be verified, this situation can be called that the target sub-action verification configuration information does not match the sub-action information to be verified.
[0084] Based on the above, when the configuration parameters in the target sub-action verification configuration information are the same as the configuration parameters in the sub-action information to be verified, this situation can be called that the target sub-action verification configuration information matches the sub-action information to be verified; when the configuration parameters in the target sub-action verification configuration information are different from the configuration parameters in the sub-action information to be verified, this situation can be called that the target sub-action verification configuration information does not match the sub-action information to be verified.
[0085] In one example, the current function execution action is verified based on the sub-action verification information, and the method for obtaining the action verification information of the current function execution action under the function guidance can be: if each sub-action verification information of the same current function execution action indicates that the current function execution action verification is passed, then it is determined that the action verification information of the current function execution action under the function guidance indicates that the current function execution action verification is passed; if any sub-action verification information in the sub-action verification information of the same current function execution action indicates that the current function execution action verification is failed, then it is determined that the action verification information of the current function execution action under the function guidance indicates that the current function execution action verification is failed.
[0086] For example, the target sub-action verification configuration information in the target action verification configuration information includes the first target sub-action verification configuration information, the second target sub-action verification configuration information and the third sub-action verification configuration information; accordingly, the sub-action to-be-verified information includes the first sub-action to-be-verified information, the second sub-action to-be-verified information and the third sub-action to-be-verified information. The present application can use the first target sub-action verification configuration information to verify the first sub-action to-be-verified information to obtain the first sub-action verification information; use the second target sub-action verification configuration information to verify the second sub-action to-be-verified information to obtain the second sub-action verification information; use the third target sub-action verification configuration information to verify the third sub-action to-be-verified information to obtain the third sub-action verification information; if the first sub-action verification information, the second sub-action verification information and the third sub-action verification information all indicate that the current function execution action verification is passed, then it is determined that the action verification information indicates that the current function execution action verification is passed.
[0087] In one example, the current function execution action is verified based on the target action verification configuration information and the action to be verified information, and the method for obtaining the action verification information of the current function execution action under the guidance of the function can be: extracting the action trigger object information in the action to be verified information; using the target action verification configuration information to verify the action trigger object information, so as to verify the current function execution action, and obtain the action verification information of the current function execution action under the guidance of the function.
[0088] The action triggering object information may be the object information that triggers the current function to perform the action. For example, the action triggering object information may be a unique identifier that represents the identity of the object.
[0089] It can be understood here that the present application can bind each functional guideline to a specific user or role, and only authorized users or roles can execute the functional guideline, thereby preventing unauthorized users or roles from bypassing the process.
[0090] Based on the above, in one example, the target action verification configuration information is used to verify the action trigger object information so as to verify the current function execution action. The method for obtaining the action verification information of the current function execution action under the guidance of the function can be: judging whether the action trigger object information is the same as the preset object information in the target action verification configuration information; if so, determining that the action verification information indicates that the current function execution action verification has passed; if not, determining that the action verification information indicates that the current function execution action verification has failed.
[0091] S204: extracting the functional safety processing strategy corresponding to the action verification information, and processing the program function according to the functional safety processing strategy.
[0092] In some application embodiments, the method for extracting the functional safety processing strategy corresponding to the action verification information can be: obtaining the association relationship between the action verification information and the functional safety processing strategy; and extracting the functional safety processing strategy corresponding to the action verification information based on the association relationship and the action verification information.
[0093] In some application embodiments, according to the functional safety processing strategy, the program function can be processed in the following manner: if the functional safety processing strategy is a strategy that represents the execution of the program function, then the next function execution action for the program function is obtained, and the next function execution action is used as the current function execution action, and the step of "obtaining an action verification request for the current function execution action of the program function in the application program" is returned to execute; if the functional safety processing strategy is a strategy that represents the termination of the execution of the program function, then the program function is terminated.
[0094] If the functional safety processing strategy is a strategy that represents the execution of a program function, and the program function does not have a next function execution action, the program function is terminated.
[0095] Specifically, the functional safety processing strategy includes a first functional safety processing strategy and a second functional safety processing strategy; if the action verification information indicates that the current function execution action verification has passed, then based on the association relationship and the action verification information, the first functional safety processing strategy corresponding to the action verification information is extracted, wherein the first functional safety processing strategy is a strategy representing the execution of the program function; if the action verification information indicates that the current function execution action verification has failed, then based on the association relationship and the action verification information, the second functional safety processing strategy corresponding to the action verification information is extracted, wherein the second functional safety processing strategy is a strategy representing the termination of execution of the program function.
[0096] Among them, when the action verification information indicates that the current function execution action has passed the verification, it means that the current function execution action is a compliant action, indicating that the application is currently safe. At this time, the next function execution action for the program function can be obtained, and the next function execution action is used as the current function execution action, and the step of "obtaining an action verification request for the current function execution action of the program function in the application" is returned to return to step S201 to step S204. When the action verification information indicates that the current function execution action has not passed the verification, it means that the current function execution action is an illegal action, indicating that the current function execution action poses a risk to the application, and the program function can be terminated at this time.
[0097] The present application can obtain an action verification request for the current function execution action of the program function in the application, and obtain an action verification configuration information set of the program function, the action verification configuration information set including the action verification configuration information corresponding to each execution action of the function guidance in the program function; according to the action verification request, filter out the target action verification configuration information corresponding to the current function execution action from the action verification configuration information set; according to the target action verification configuration information, perform verification processing on the current function execution action to obtain the action verification information of the current function execution action under the function guidance; extract the functional safety processing strategy corresponding to the action verification information, and process the program function according to the functional safety processing strategy. Since the present application can use the target action verification configuration information filtered out from the action verification configuration information to perform verification processing on the current function execution action after obtaining the action verification request for the current function execution action of the program function in the application to obtain the action verification information, the functional safety processing strategy corresponding to the action verification information can be used to adaptively process the program function, thereby avoiding the current function execution action from attacking the application, thus improving the security of the application.
[0098] According to the method described in the above embodiment, the following is further described in detail with examples.
[0099] It should be noted here that in the existing related technologies, there are situations where attackers attack applications. For example, malicious users will bypass the steps in the process of program functions in the application to obtain the data of the application, which will lead to data leakage. In response to the problem of attackers attacking applications, developers will improve the logic of program functions to improve the security of the application. However, due to different understandings of application security by different developers, the degree of improvement of program functions is different, which will lead to insufficient security of the application.
[0100] Moreover, in the existing related technologies, developers perform separate logic improvement for program functions one by one. If the number of program functions is large, developers are required to repeat the development. For example, if there are 10 program functions that need to be logically improved, developers are required to develop them 10 times, which is not universal.
[0101] Based on the above problems, Figure 3 As shown, a program function processing method, the specific process is shown in steps S301 to S310:
[0102] In this embodiment, the program function processing device is specifically integrated into a computer device, and the computer device is a server.
[0103] First of all, it should be noted that the present application can set multiple processing modules on a computer device, and the processing module can be a code set for implementing a preset function. Figure 4 As shown, the processing module may include an acquisition module 41 , a transaction registration module 42 , a verification module 43 , an application management module 44 and a configuration module 45 .
[0104] The acquisition module 41 may be used at least to acquire an action verification request for executing a current function of a program function in the application program, and to start a verification process, wherein the verification process may specifically include the following steps S305 to S310.
[0105] Among them, the flow registration module 42 can be used at least to record the action details of each current function execution action. For example, it can be used to save action verification requests and action verification information, and can record the execution status of each current function execution action, including execution time, executor, execution results and other information, so as to facilitate the platform to manage and audit in the request or business dimension. Once an attacker is detected trying to bypass the process, action can be taken to prevent potential security vulnerabilities.
[0106] The application management module 44 may at least be used to access the program details of the application, such as the services involved in the application, the functional guidelines of the program functions in the application, and the execution steps corresponding to the functional guidelines.
[0107] The configuration module 45 may at least be used to verify the configuration information set for the configuration action of the program function in the application.
[0108] Among them, the verification module 43 can be used at least to call the application management module 44 to obtain program details, and call the configuration module 45 to obtain a configuration action verification configuration information set, to verify the current function execution action, for example, to verify whether the current function execution action is executed in the defined order, and for example, to check whether the preconditions and postconditions of each current function execution action are met; to obtain the historical function execution actions of the current function execution action from the flow registration module 42, and the historical function execution action may refer to the function execution action obtained before the current function execution action; to return the action verification information obtained by the verification processing of the current function execution action to the flow registration module 42 and the acquisition module 41; to extract the functional safety processing strategy corresponding to the action verification information, and process the program function according to the functional safety processing strategy.
[0109] S301. A computer device obtains an execution action of a program function in an application program under function guidance.
[0110] The present application can assign a unique identifier to the application through the acquisition module 41, and obtain the function guide of the program function in the application, and assign a unique identifier to the function guide, and then define the required execution action for the function guide.
[0111] Based on the above, in one example, the method of obtaining the execution action of the program function in the application under the function guidance can be: in response to the input operation for the function guidance in the program function, generate the execution action of the program function in the application under the function guidance. In this way, the execution action is defined for the function guidance, and then a unique identifier is assigned to each execution action.
[0112] S302: The computer device performs configuration processing on the execution action to obtain action verification configuration information of the execution action.
[0113] The present application performs configuration processing on the execution action, and the method for obtaining the action verification configuration information of the execution action can be: performing information configuration processing on the execution action to obtain the sub-action verification configuration information of the execution action; performing fusion processing on the sub-action verification configuration information to obtain the action verification configuration information of the execution action.
[0114] The configuration module 45 of the computer device may be used to perform configuration processing on the execution action to obtain action verification configuration information of the execution action.
[0115] Based on the above, the present application performs information configuration processing on the execution action, and the method for obtaining the sub-action verification configuration information of the execution action can be: obtaining the configuration template of the execution action, the configuration template includes the initial sub-verification configuration information of the execution action; in response to the configuration operation for the initial sub-verification configuration information, obtaining the sub-action configuration verification information of the execution action.
[0116] The configuration template can be Figure 5 As shown, the configuration template may include multiple initial sub-verification configuration information, for example, the initial sub-verification configuration information may include a pre-step preStep, a pre-condition preCondition, a post-condition nextCondition, and a next step nextStep. The developer may perform configuration operations on the initial sub-verification configuration information, based on which the computer device may obtain sub-action configuration verification information for executing the action in response to the configuration operation on the initial sub-verification configuration information. Figure 5 As shown, the obtained sub-action configuration verification information may be: the pre-step preStep is step init; the pre-condition preCondition is $ctx.init.condition1=$ctx.step1.condition2; the post-condition nextCondition is $ctx.step1.status=1; and the next step nextStep is step step2.
[0117] It should be noted here that Figure 5 It means: when the current execution action is step1, the status of stepinit needs to be completed. The condition1 in step init needs to be consistent with the condition2 in step1, and step1.status = 1, in order to pass the verification and jump to the next step step2.
[0118] S303: The computer device constructs an action verification configuration information set according to the execution action and the action verification configuration information.
[0119] In an example, according to the execution action and the action verification configuration information, the action verification configuration information set may be constructed by associating the execution action and the action verification configuration information to obtain the action verification configuration information set.
[0120] Among them, the configuration module 45 of the computer device can be used to construct an action verification configuration information set according to the execution action and the action verification configuration information.
[0121] It can be understood here that the present application can complete the creation of an action verification configuration information set in a processing module on a computer device, so that the action verification configuration information set can be applied to multiple program functions with or without fine-tuning, which is universal and does not require the development of verification logic for each program function separately.
[0122] S304: The computer device obtains an action verification request for executing an action for a current function of a program function in the application program.
[0123] In some application embodiments, a method for obtaining an action verification request for executing an action on a current function of a program function in an application may be: receiving action information for executing an action on a current function of a program function in an application; and triggering an action verification request for executing an action on a current function of a program function in the application based on the action information.
[0124] S305: The computer device obtains a set of action verification configuration information of the program function.
[0125] The action verification configuration information set includes action verification configuration information corresponding to each execution action of the function guide in the program function.
[0126] In an application embodiment, a method for obtaining an action verification configuration information set of a program function may be: obtaining functional feature information of the program function; and extracting an action verification configuration information set of the program function according to the functional feature information.
[0127] S306: The computer device selects target action verification configuration information corresponding to the current function execution action from the action verification configuration information set according to the action verification request.
[0128] S307: The computer device verifies the current function execution action according to the target action verification configuration information, and obtains action verification information of the current function execution action under the function guidance.
[0129] In some application embodiments, the current function execution action is verified according to the target action verification configuration information, and the method for obtaining the action verification information of the current function execution action under the function guidance can be: according to the action verification request, extracting the action to be verified information of the current execution action; according to the target action verification configuration information and the action to be verified information, the current function execution action is verified, and the action verification information of the current function execution action under the function guidance is obtained.
[0130] In one example, the current function execution action is verified according to the target action verification configuration information and the action to be verified information, and the method for obtaining the action verification information of the current function execution action under the function guidance can be: according to the target sub-action verification configuration information in the target action verification configuration information, the sub-action to be verified information in the action to be verified information is verified to obtain the sub-action verification information corresponding to the sub-action to be verified information; according to the sub-action verification information, the current function execution action is verified to obtain the action verification information of the current function execution action under the function guidance.
[0131] S308. The computer device obtains the association relationship between the action verification information and the functional safety processing strategy.
[0132] S309: The computer device extracts, according to the association relationship, a functional safety processing strategy corresponding to the action verification information as a second functional safety processing strategy.
[0133] The second functional safety processing strategy represents a strategy for terminating execution of a program function.
[0134] S310: The computer device terminates the program function according to the second function security processing strategy.
[0135] Based on the above steps S301 to S310, a practical example is further used here for illustration. Here, the program function of the application is an example of a forgotten password function, wherein the computer device of the present application can be the following security verification server, specifically as follows: Figure 6 Steps 1 to 17 are shown below:
[0136] Step 1: In response to a click operation on a password modification link, the terminal sends a password modification request to a web server.
[0137] The object performs a click operation on the web page of the terminal, so that the terminal responds to the click operation on the password modification link and sends a password modification request to the web server.
[0138] Step 2: The web server generates first verification page data for the password change link according to the password change request.
[0139] Step 3: The web server returns the first verification page data to the terminal.
[0140] Step 4: The terminal displays the first verification page data.
[0141] Step 5: The web server obtains and sends to the security verification server a first generation record representing a generation process of the first verification page data.
[0142] Here, the first generated record may be used as the current function execution action, and then the aforementioned steps S301 to S308 are executed.
[0143] Among them, on the basis of step S308, if the functional safety processing strategy corresponding to the action verification information extracted according to the association relationship is the first functional safety processing strategy, wherein the first functional safety processing strategy represents the strategy for executing the program function, then the step of "obtaining the next functional execution action for the program function, and taking the next functional execution action as the current functional execution action" is executed, wherein "obtaining the next functional execution action for the program function" can refer to the following steps S6 to S11.
[0144] Step S6: The security verification server returns first verification pass information to the terminal according to the first generated record.
[0145] Step S7: The terminal receives first verification success information.
[0146] Step S8: The terminal generates password verification data in response to the input operation on the first verification page data.
[0147] Step S9: The terminal sends password verification data to the web server.
[0148] Step S10: The web server verifies the password verification data and generates a second generation record representing a verification process of the password verification data.
[0149] Step S11: The web server sends a second generation record to the security verification server.
[0150] Here, the second generation record may be used as the aforementioned next function execution action, and the next function execution action may be used as the current function execution action, and the aforementioned steps S301 to S308 may be returned to be executed.
[0151] Among them, on the basis of step S308, if the functional safety processing strategy corresponding to the action verification information extracted according to the association relationship is the first functional safety processing strategy, wherein the first functional safety processing strategy represents the strategy for executing the program function, then the step of "obtaining the next functional execution action for the program function, and taking the next functional execution action as the current functional execution action" is executed, wherein "obtaining the next functional execution action for the program function" can refer to the following steps S12 to S15.
[0152] Step S12: The security verification server returns second verification pass information to the web server according to the second generation record.
[0153] Step S13: The web server receives the second verification pass information.
[0154] Step S14: The web server generates an email verification code and sends the email verification code to the email system.
[0155] Step S15: The web server generates and sends a third generation record representing a record of generating the email verification code to the security verification server.
[0156] Among them, the third generation record can be used as the aforementioned next function execution action, and the next function execution action can be used as the current function execution action, and the aforementioned steps S301 to S308 can be returned to be executed.
[0157] Then, based on step S308, the computer device extracts the functional safety processing strategy corresponding to the action verification information as the second functional safety processing strategy according to the association relationship. It can be understood here that the third generated record is triggered by a malicious user. Based on this, in order to ensure the security of the application, the computer device executes step S310 to terminate the program function.
[0158] Step S16: The security verification server returns verification failure information to the terminal.
[0159] Step S17: The terminal displays an error page based on the verification failure information.
[0160] Based on the above, it can be understood that before the user submits a new password for reset, there is no need to verify whether the user has passed the verification. It is only necessary to forward the current execution action triggered by the user to the security verification service, and decide on the subsequent execution logic or terminate the execution based on the security verification service.
[0161] In summary, the present application has the advantages of high versatility and high security.
[0162] In terms of universality, the present application applies action verification configuration information sets to multiple program functions with or without minor adjustments, which is universal and does not require the development of verification logic for each program function separately.
[0163] In terms of security, this application provides a unified set of regular action verification configuration information maintenance and bottom-line protection by computer devices. As the attacker's attack methods are upgraded, the computer device side can perform action analysis based on the current functions to discover abnormal behavior, thereby avoiding continued bypass due to imperfect business verification logic and solving the problem of insufficient security.
[0164] The present application can obtain an action verification request for the current function execution action of the program function in the application, and obtain an action verification configuration information set of the program function, the action verification configuration information set including the action verification configuration information corresponding to each execution action of the function guidance in the program function; according to the action verification request, filter out the target action verification configuration information corresponding to the current function execution action from the action verification configuration information set; according to the target action verification configuration information, perform verification processing on the current function execution action to obtain the action verification information of the current function execution action under the function guidance; extract the functional safety processing strategy corresponding to the action verification information, and process the program function according to the functional safety processing strategy. Since the present application can use the target action verification configuration information filtered out from the action verification configuration information to perform verification processing on the current function execution action after obtaining the action verification request for the current function execution action of the program function in the application to obtain the action verification information, the functional safety processing strategy corresponding to the action verification information can be used to adaptively process the program function, thereby avoiding the current function execution action from attacking the application, thus improving the security of the application.
[0165] In order to better implement the above method, an embodiment of the present application also provides a program function processing device, which can be integrated into a computer device, such as a server or terminal, and the terminal may include a tablet computer, a laptop computer and / or a personal computer, etc.
[0166] For example, Figure 7 As shown, the program function processing device may include an acquisition unit 301, a screening unit 302, a verification unit 303, a processing unit 304 and a construction unit 305, as follows:
[0167] (1) Acquisition unit;
[0168] The acquisition unit can be used to obtain an action verification request for executing the current function of a program function in an application, and to obtain an action verification configuration information set of the program function, wherein the action verification configuration information set includes action verification configuration information corresponding to each execution action of the function guidance in the program function.
[0169] (2) screening unit;
[0170] The screening unit may be used to screen out target action verification configuration information corresponding to the current function execution action from the action verification configuration information set according to the action verification request.
[0171] (3) verification unit;
[0172] The verification unit can be used to verify the current function execution action according to the target action verification configuration information, and obtain the action verification information of the current function execution action under the function guidance.
[0173] In some application embodiments, the verification unit can be specifically used to extract the action information to be verified of the currently executed action based on the action verification request; verify the current function execution action based on the target action verification configuration information and the action information to be verified, and obtain the action verification information of the current function execution action under the guidance of the function.
[0174] In some application embodiments, the verification unit can be specifically used to verify the sub-action information to be verified in the action information to be verified according to the target sub-action verification configuration information in the target action verification configuration information, and obtain the sub-action verification information corresponding to the sub-action information to be verified; based on the sub-action verification information, verify the current function execution action to obtain the action verification information of the current function execution action under the guidance of the function.
[0175] In some application embodiments, the verification unit can be specifically used to extract action trigger object information from the action to be verified information, where the action trigger object information is the object information that triggers the current function to execute the action; the action trigger object information is verified using the target action verification configuration information to verify the current function execution action, thereby obtaining the action verification information of the current function execution action under the guidance of the function.
[0176] (4) Processing unit;
[0177] The processing unit can be used to extract the functional safety processing strategy corresponding to the action verification information, and process the program function according to the functional safety processing strategy.
[0178] In some application embodiments, the processing unit can be used to obtain the next function execution action for the program function if the functional safety processing strategy is a strategy that represents the execution of a program function, and use the next function execution action as the current function execution action, and return to execute the step of "obtaining an action verification request for the current function execution action of the program function in the application"; if the functional safety processing strategy is a strategy that represents the termination of execution of the program function, the program function is terminated.
[0179] (5) building blocks;
[0180] The construction unit can be specifically used to obtain the execution action of the program function in the application under the function guidance; configure the execution action to obtain the action verification configuration information of the execution action; and construct an action verification configuration information set according to the execution action and the action verification configuration information.
[0181] In some application embodiments, the construction unit can be specifically used to perform information configuration processing on the execution action to obtain sub-action verification configuration information of the execution action; and perform fusion processing on the sub-action verification configuration information to obtain action verification configuration information of the execution action.
[0182] In some application embodiments, the construction unit can be specifically used to obtain a configuration template for executing an action, where the configuration template includes initial sub-verification configuration information for the execution action; in response to a configuration operation on the initial sub-verification configuration information, sub-action configuration verification information for the execution action is obtained.
[0183] As can be seen from the above, the acquisition unit of the present application can be used to obtain an action verification request for the current function execution action of the program function in the application, and to obtain an action verification configuration information set of the program function, the action verification configuration information set including the action verification configuration information corresponding to each execution action of the function guidance in the program function; the screening unit can be used to filter out the target action verification configuration information corresponding to the current function execution action from the action verification configuration information set according to the action verification request; the verification unit can be used to verify the current function execution action according to the target action verification configuration information, and obtain the action verification information of the current function execution action under the function guidance; the processing unit can be used to extract the functional safety processing strategy corresponding to the action verification information, and process the program function according to the functional safety processing strategy. Since the present application can use the target action verification configuration information filtered out from the action verification configuration information to verify the current function execution action after obtaining the action verification request for the current function execution action of the program function in the application, and obtain the action verification information, so that the functional safety processing strategy corresponding to the action verification information can be used to adaptively process the program function, thereby avoiding the current function execution action from attacking the application, thus improving the security of the application.
[0184] The present application also provides a computer device, such as Figure 8 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
[0185] The computer device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Figure 8 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0186] The processor 401 is the control center of the computer device, and uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the computer device and processes data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and computer programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0187] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0188] The computer device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0189] The computer device may further include an input unit 404, which may be used to receive input digital or character information communications and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0190] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the computer device will load the executable files corresponding to the processes of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 will run the computer programs stored in the memory 402, thereby realizing various functions, as follows:
[0191] The present application can obtain an action verification request for the current function execution action of a program function in an application, and obtain an action verification configuration information set of the program function, the action verification configuration information set including action verification configuration information corresponding to each execution action of the function guidance in the program function; according to the action verification request, filter out the target action verification configuration information corresponding to the current function execution action from the action verification configuration information set; according to the target action verification configuration information, perform verification processing on the current function execution action to obtain the action verification information of the current function execution action under the function guidance; extract the functional safety processing strategy corresponding to the action verification information, and process the program function according to the functional safety processing strategy.
[0192] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0193] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0194] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute any program function processing method provided in the embodiment of the present application.
[0195] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0196] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0197] Since the instructions stored in the computer-readable storage medium can execute the steps in any program function processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any program function processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0198] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the various optional implementations provided in the above embodiments.
[0199] The above is a detailed introduction to a program function processing method, device, computer equipment, computer-readable storage medium and computer program product provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A program function processing method, characterized in that: include: Obtaining an action verification request for executing a current function of a program function in an application program, and obtaining an action verification configuration information set of the program function, wherein the action verification configuration information set includes action verification configuration information corresponding to each execution action of a function guide in the program function; According to the action verification request, filtering out target action verification configuration information corresponding to the current function execution action from the action verification configuration information set; According to the target action verification configuration information, the current function execution action is verified to obtain action verification information of the current function execution action under the guidance of the function; A functional safety processing strategy corresponding to the action verification information is extracted, and the program function is processed according to the functional safety processing strategy.
2. The program function processing method according to claim 1, characterized in that: Before obtaining the action verification configuration information set of the program function, the method further includes: Obtain the execution action of the program function in the application under the guidance of the function; Performing configuration processing on the execution action to obtain action verification configuration information of the execution action; The action verification configuration information set is constructed according to the execution action and the action verification configuration information.
3. The program function processing method according to claim 2, characterized in that: The configuring the execution action to obtain the action verification configuration information of the execution action includes: Performing information configuration processing on the execution action to obtain sub-action verification configuration information of the execution action; The sub-action verification configuration information is fused to obtain the action verification configuration information of the execution action.
4. The program function processing method according to claim 3, characterized in that: The performing information configuration processing on the execution action to obtain sub-action verification configuration information of the execution action includes: Acquire a configuration template for the execution action, wherein the configuration template includes initial sub-verification configuration information for the execution action; In response to the configuration operation for the initial sub-verification configuration information, sub-action configuration verification information of the execution action is obtained.
5. The program function processing method according to claim 1, characterized in that: The step of performing verification processing on the current function execution action according to the target action verification configuration information to obtain action verification information of the current function execution action under the guidance of the function includes: Extracting the action to be verified information of the currently executed action according to the action verification request; The current function execution action is verified according to the target action verification configuration information and the action to be verified information to obtain action verification information of the current function execution action under the guidance of the function.
6. The program function processing method according to claim 5, characterized in that: The step of performing verification processing on the current function execution action according to the target action verification configuration information and the action to be verified information to obtain action verification information of the current function execution action under the guidance of the function includes: According to the target sub-action verification configuration information in the target action verification configuration information, verification processing is performed on the sub-action to-be-verified information in the action to-be-verified information to obtain the sub-action verification information corresponding to the sub-action to-be-verified information; The current function execution action is verified according to the sub-action verification information to obtain action verification information of the current function execution action under the guidance of the function.
7. The program function processing method according to claim 5, characterized in that: The step of performing verification processing on the current function execution action according to the target action verification configuration information and the action to be verified information to obtain action verification information of the current function execution action under the guidance of the function includes: Extracting action triggering object information from the action to be verified information, where the action triggering object information is object information that triggers the current function to execute the action; The target action verification configuration information is used to verify the action trigger object information, so as to verify the current function execution action and obtain the action verification information of the current function execution action under the guidance of the function.
8. The program function processing method according to any one of claims 1 to 7, characterized in that: Processing the program function according to the functional safety processing strategy includes: If the functional safety processing strategy is a strategy that represents the execution of the program function, then obtaining the next functional execution action for the program function, and using the next functional execution action as the current functional execution action, and returning to execute the step of "obtaining an action verification request for the current functional execution action of the program function in the application program"; If the functional safety processing strategy is a strategy indicating the termination of execution of the program function, the program function is terminated.
9. A program function processing device, characterized in that: include: an acquisition unit, configured to acquire an action verification request for executing an action of a current function of a program function in an application program, and acquire an action verification configuration information set of the program function, wherein the action verification configuration information set includes action verification configuration information corresponding to each execution action of a function guide in the program function; A screening unit, configured to screen out target action verification configuration information corresponding to the current function execution action from the action verification configuration information set according to the action verification request; A verification unit, configured to verify the current function execution action according to the target action verification configuration information, and obtain action verification information of the current function execution action under the guidance of the function; The processing unit is used to extract the functional safety processing strategy corresponding to the action verification information, and process the program function according to the functional safety processing strategy.
10. A computer device, characterized in that: It comprises a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the program function processing method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the program function processing method according to any one of claims 1 to 8.
12. A computer program product, characterized in that The computer program product stores a computer program, and the computer program is suitable for being loaded by a processor to execute the application processing method according to any one of claims 1 to 8.
