Script audit execution method, system, device and storage medium

By connecting the automated operation and maintenance platform with the security management and control system, the security approval and dual verification of scripts are solved, and the security implementation of scripts is difficult to ensure the security of scripts in the production environment is realized, and the enterprise security specifications and policy approval of scripts are improved. Operation and maintenance security.

CN112464175BActive Publication Date: 2024-12-03CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011253493.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-11
Publication Date
2024-12-03
Estimated Expiration
2040-11-11

AI Technical Summary

Technical Problem

In an automated operation and maintenance platform, the developers and executors of scripts are usually in different roles, which makes it difficult to ensure security when executing scripts in production environments. Especially, illegal actions or incorrect use may cause huge harm to the enterprise, and administrators must also be at the same time. It is difficult to meet the requirements by mastering the operation and maintenance platform and security business specifications.

Method used

By connecting the automated operation and maintenance platform with the security control system within the enterprise, using the API interface, sending the code-reviewed scripts to the security control system for security approval, obtaining an authorization token, and performing two-factor verification during execution, ensuring that the scripts comply with the enterprise Security specifications and policies.

Benefits of technology

It improves the security of automated operation and maintenance execution, avoids the execution of harmful scripts in the production environment, reduces the skills and time requirements of operation and maintenance platform administrators, and enhances the level of security control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112464175B_ABST
    Figure CN112464175B_ABST
Patent Text Reader

Abstract

The present disclosure provides a script review execution method, system, device and storage medium based on an automated operation and maintenance platform and a security management and control system. The script review execution method includes: sending a first script that has undergone code review to the security management and control system through an API interface, and sending a token application to the security management and control system; receiving an authorization token corresponding to the first script that has passed security approval and sent by the security management and control platform through the API interface. The script review execution method provided by the present disclosure combines the automated operation and maintenance platform with the security management and control system within the enterprise through an API interface, thereby executing scripts that comply with both the automated operation and maintenance platform specifications and the security specifications and security policies of third-party enterprises in a production environment, thereby improving the security of automated operation and maintenance execution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and more specifically, to a script audit execution method, system, device and storage medium based on an automated operation and maintenance platform and a security management and control system. Background Art

[0002] Automated operations and maintenance technology, thanks to its efficient batch execution capabilities, can significantly improve operations and reduce costs, making it a popular choice for large enterprises, particularly in sectors with high IT operations and maintenance workloads, such as the IT and financial sectors. Automated operations and maintenance involves batch-distributing user operations and maintenance scripts to production machines to perform a series of actions, such as inspections and changes. This process is triggered simply by clicking an execute button on the interface. In organizations with a strict division of labor, script developers and script executors often have different roles. For example, script development is typically performed by application administrators and developers, while script execution is typically performed by application operations and maintenance personnel. Therefore, script executors cannot fully guarantee that the scripts about to be batch-executed in a production environment are harmless to production.

[0003] Currently, automated operations platforms employ a series of security control strategies to manage the flow of script development and execution, ensuring that any significant changes to production systems are subject to approval and control before they are truly implemented. However, these control schemes are limited to internal control within the automated operations platform, with administrators assigning permissions. This architectural design requires administrators to not only have a thorough understanding of the platform itself but also master the company's security practices and specific security technologies, making it difficult to meet these requirements in terms of both skills and time. However, when users misuse automated operations tools, for example, by including illegal actions in their operations scripts, such as illegally querying user information, or by misusing scripts in inappropriate scenarios, significant harm can occur to the enterprise. Summary of the Invention

[0004] In order to solve the problems or part of the problems existing in the above-mentioned prior art, the embodiments of the present invention provide a script review and execution method, system, device and storage medium based on an automated operation and maintenance platform and a security management and control system. By connecting the automated operation and maintenance platform with the security management and control system within the enterprise, and having the security management and control system perform security review on the scripts sent by the automated operation and maintenance platform, the approval of security specifications and security policies is incorporated into the security management and control of automated operation and maintenance, thereby improving the security of automated operation and maintenance execution.

[0005] According to the first aspect of the present invention, an embodiment of the present invention provides a script review and execution method based on an automated operation and maintenance platform and a security management and control system. The script review and execution method is applied to the automated operation and maintenance platform. The script review and execution method includes: sending a first script that has passed code review to the security management and control system through an API (Application Program Interface) interface, and sending a token application to the security management and control system; receiving an authorization token corresponding to the first script that has passed security approval sent by the security management and control platform through the API interface.

[0006] The above-mentioned embodiment of the present invention sends the first script after code review to the security management system for security approval, so as to obtain a script that complies with the code specifications of the automated operation and maintenance platform and the security specifications and security policies of the third-party enterprise, thereby avoiding the execution of scripts that endanger the security of the enterprise in the production environment, thereby improving the security of the automated operation and maintenance execution.

[0007] In some embodiments of the present invention, the script review and execution method also includes: obtaining an operation and maintenance script corresponding to the operation and maintenance requirements in the first script according to the operation and maintenance requirements of the business system that needs to be operated and maintained; performing execution approval on the operation and maintenance script, and obtaining a second script in the operation and maintenance script that has passed the execution approval and corresponding transfer information.

[0008] The above-mentioned embodiment of the present invention selects operation and maintenance scripts corresponding to operation and maintenance requirements and performs execution approval, so that application managers and business leaders can review whether the execution actions are reasonable and whether the risks are controllable, thereby improving the security of executing operation and maintenance scripts.

[0009] In some embodiments of the present invention, the transferred information includes: a user account for executing the second script, a target machine for executing the second script, a system account used when executing the second script, and an authorization token corresponding to the second script in the first script.

[0010] In some embodiments of the present invention, the script audit execution method further includes: sending the transfer information of the second script to the security management system for verification through the API interface; when the result of the verification is passed, executing the second script.

[0011] The above-mentioned embodiment of the present invention adds verification of the security management system to the scripts that have passed the code review and execution approval in the automated operation and maintenance platform, thereby improving the security of the automated operation and maintenance execution.

[0012] In some embodiments of the present invention, the script audit execution method also includes: prompting sensitive commands in the development script to remind testers to pay attention to whether the sensitive commands are used correctly; performing environmental testing on the development script; and performing the code audit on the development script that passes the environmental test.

[0013] The above-mentioned embodiment of the present invention configures sensitive commands on the automated operation and maintenance platform, thereby reminding testers to focus on whether the use of sensitive commands is correct / compliant during environmental testing, thereby improving the security of automated operation and maintenance execution.

[0014] According to the second aspect of the present invention, an embodiment of the present invention provides a script review and execution method based on an automated operation and maintenance platform and a security management and control system. The script review and execution method is applied to the security management and control system. The script review and execution method includes: receiving a first script and a token application sent by the automated operation and maintenance platform through an API interface; performing security review on the first script; and for the first script that passes the security review, sending an authorization token corresponding to the first script to the automated operation and maintenance platform through the API interface.

[0015] The above-described embodiments of the present invention implement security approval for scripts sent by the automated operation and maintenance platform, thereby ensuring compliance with enterprise security regulations and security policies, and improving the security of automated operation and maintenance execution. Furthermore, an authorization token is returned to scripts that have passed security approval by the security control system, providing a foundation for the subsequent execution of scripts that have passed the control of the automated operation and maintenance platform and the security control system, as well as for integrating the automated operation and maintenance platform with the security control system.

[0016] In some embodiments of the present invention, the script review execution method also includes: receiving delivery information sent by the automated operation and maintenance platform through the API interface, wherein the delivery information includes: the user account for executing the second script in the first script, the target machine for executing the second script, and the system account used when executing the second script; verifying the user's permissions and verifying the authorization token, obtaining the verification result and sending the verification result to the automated operation and maintenance platform.

[0017] The above-mentioned embodiment of the present invention adds double verification of the security control system to the scripts controlled by the automated operation and maintenance platform, which can improve the security of the automated operation and maintenance execution.

[0018] According to the third aspect of the present invention, an embodiment of the present invention provides an automated operation and maintenance platform, including: a first data sending module, used to send a first script that has passed code review to a security management system through an API interface, and send a token application to the security management system; a second data receiving module, used to receive an authorization token corresponding to the first script that has passed security approval and sent by the security management platform through the API interface.

[0019] The automated operation and maintenance platform in the above-mentioned embodiment of the present invention sends the first script after code review to the security management system for security approval through the API interface, and can obtain a script that complies with both the code specifications of the automated operation and maintenance platform and the security specifications and security policies of third-party enterprises, thereby avoiding the execution of scripts that endanger enterprise security in the production environment, thereby improving the security of automated operation and maintenance execution.

[0020] In some embodiments of the present invention, the automated operation and maintenance platform also includes an execution approval module for performing the following operations: obtaining an operation and maintenance script corresponding to the operation and maintenance requirements in the first script according to the operation and maintenance requirements of the business system that needs to be operated and maintained; performing execution approval on the operation and maintenance script, and obtaining a second script in the operation and maintenance script that has passed the execution approval and the corresponding transfer information.

[0021] The above-mentioned embodiment of the present invention selects operation and maintenance scripts corresponding to operation and maintenance requirements and performs execution approval, so that application managers and business leaders can review whether the execution actions are reasonable and whether the risks are controllable, thereby improving the security of executing operation and maintenance scripts.

[0022] In some embodiments of the present invention, the transferred information includes: a user account for executing the second script, a target machine for executing the second script, a system account used when executing the second script, and an authorization token corresponding to the second script in the first script.

[0023] In some embodiments of the present invention, the automated operation and maintenance platform also includes: a third data sending module, used to send the transmission information of the second script to the security management system for verification through the API interface; and an execution module, used to execute the second script that passes the verification.

[0024] The above-mentioned embodiment of the present invention adds verification of the security control system to the scripts that pass the code review and execution approval in the automated operation and maintenance platform, and executes the scripts for security control through the automated operation and maintenance platform and the security control system. It can combine the control of the automated operation and maintenance platform with the security approval of the security control system, thereby improving the security of automated operation and maintenance execution.

[0025] In some embodiments of the present invention, the automated operation and maintenance platform also includes: an environment testing module, which is used to perform environment testing on development scripts and send development scripts that pass the environment testing to a code review module; the code review module is used to receive the development scripts that pass the environment testing and perform the code review; wherein, sensitive commands are prompted in the development scripts to remind testers to pay attention to whether the sensitive commands are used correctly.

[0026] The above-mentioned embodiment of the present invention configures sensitive commands on the automated operation and maintenance platform, thereby reminding testers to focus on whether the use of sensitive commands is correct / compliant during environmental testing, thereby improving the security of automated operation and maintenance execution.

[0027] According to the fourth aspect of the present invention, an embodiment of the present invention provides a security management and control system, including: a first data receiving module, used to receive a first script and a token application sent by an automated operation and maintenance platform through an API interface; a security approval module, used to perform security approval on the first script; a second data sending module, used to send the authorization token corresponding to the first script to the automated operation and maintenance platform through the API interface for the first script that passes the security approval.

[0028] The above-described embodiments of the present invention implement security approval for scripts sent by the automated operation and maintenance platform, thereby ensuring compliance with enterprise security regulations and security policies, and improving the security of automated operation and maintenance execution. Furthermore, an authorization token is returned to scripts that have passed security approval by the security control system, providing a foundation for the subsequent execution of scripts that have passed the control of the automated operation and maintenance platform and the security control system, as well as for integrating the automated operation and maintenance platform with the security control system.

[0029] In some embodiments of the present invention, the script review and execution system also includes: a third data receiving module, used to receive the transmission information sent by the automated operation and maintenance platform through the API interface, wherein the transmission information includes: the user account for executing the second script in the first script, the target machine for executing the second script, and the system account used when executing the second script; a verification module, used to verify the user's permissions, and verify the authorization token, obtain the verification result and send the verification result to the automated operation and maintenance platform.

[0030] The above-mentioned embodiment of the present invention adds double verification of the security control system to the scripts controlled by the automated operation and maintenance platform, which can improve the security of the automated operation and maintenance execution.

[0031] According to the fifth aspect of the present invention, an embodiment of the present invention provides a computer storage medium having computer-readable instructions stored thereon. When the computer-readable instructions are executed by a processor, the computer performs the following operations: the operations include the steps included in the script audit execution method described in any one of the above embodiments.

[0032] According to the sixth aspect of the present invention, an embodiment of the present invention provides a computer device including a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, can implement the script audit execution method described in any one of the above embodiments.

[0033] From the above, it can be seen that the script review execution method, system, storage medium and device provided by the embodiments of the present invention combine the automated operation and maintenance platform with the security management and control system within the enterprise through the API interface, thereby executing scripts in the production environment that comply with both the automated operation and maintenance platform specifications and the security specifications and security policies of third-party enterprises, thereby improving the security of automated operation and maintenance execution. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is a flow chart of a script review execution method applied to an automated operation and maintenance platform according to an embodiment of the present invention;

[0035] Figure 2 This is a flowchart of a script audit execution method applied to a security management and control system according to an embodiment of the present invention;

[0036] Figure 3A This is a flowchart of a script development process of a script review execution method based on an automated operation and maintenance platform and a security management and control system according to an embodiment of the present invention;

[0037] Figure 3B This is a flowchart of a script execution process in a script review execution method based on an automated operation and maintenance platform and a security management and control system according to an embodiment of the present invention;

[0038] Figure 4 is a system architecture diagram of an automated operation and maintenance platform according to an embodiment of the present invention;

[0039] Figure 5 is a system architecture diagram of a security management and control system according to an embodiment of the present invention;

[0040] Figure 6 This is an architectural diagram of a script audit execution system based on an automated operation and maintenance platform and a security management and control system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The various aspects of the present invention are described in detail below in conjunction with the accompanying drawings and specific embodiments. Among them, well-known modules, units and their connections, links, communications or operations are not shown or described in detail. In addition, the described features, architectures or functions can be combined in any manner in one or more embodiments. It should be understood by those skilled in the art that the various embodiments described below are only for illustration and are not intended to limit the scope of protection of the present invention. It can also be easily understood that the modules or units or processing methods in the various embodiments described herein and shown in the drawings can be combined and designed in various different configurations.

[0042] The following is a brief explanation of the terms used in this article.

[0043] Token: A token represents the authority to perform certain operations.

[0044] HTTP: A request-response protocol.

[0045] Figure 1 It is a flowchart of a script review execution method applied to an automated operation and maintenance platform according to an embodiment of the present invention.

[0046] like Figure 1 As shown, in one embodiment of the present invention, the method may include: step S11 and step S12, and the above steps are described in detail below.

[0047] In step S11, the first script that has undergone code review is sent to the security management system via the API interface, and a token request is sent to the security management system. In an optional embodiment, technical experts in the specific operation and maintenance field conduct code review of the scripts released by developers, and a multi-level approval process is set up to implement manual approval according to the requirements of different enterprises.

[0048] In step S12, the authorization token corresponding to the first script that has passed security approval and is sent by the security management and control platform is received through the API interface. In an optional embodiment, based on the transmission information and callback address agreed upon by the automated operation and maintenance platform and the security management and control system of the third-party enterprise, information exchange is carried out through HTTP requests, wherein the transmission information that needs to be transmitted may include but is not limited to the following: the automated operation and maintenance platform will remind you of the previous sensitive commands, the test environment test status, the conclusion of the manual code approval process, and the basic information of the user-written script. The basic information of the user-written script includes the script's functional description, business requirements, script content, etc.

[0049] Optionally, the security review of the script by the security management and control system includes: code review based on the security specifications and security policies of the specific operation and maintenance field and / or the third-party enterprise.

[0050] By adopting the above-mentioned method of the embodiment of the present invention, the automated operation and maintenance platform is combined with the security management system within the enterprise through the API interface, and the first script after code review is sent to the security management system for security approval. A script that complies with the code specifications of the automated operation and maintenance platform and the security specifications and security policies of third-party enterprises can be obtained, thereby avoiding the execution of scripts that endanger enterprise security in the production environment, thereby improving the security of automated operation and maintenance execution.

[0051] In an optional embodiment, based on the operation and maintenance requirements of the business system requiring operation and maintenance, an operation and maintenance script corresponding to the operation and maintenance requirement is obtained from the first script; the operation and maintenance script is approved for execution, and a second script in the operation and maintenance script that has passed the execution approval and corresponding transfer information are obtained. Optionally, the transfer information corresponding to the second script that has passed the execution approval includes, but is not limited to: the user account executing the second script, the target machine executing the second script, the system account used when executing the second script, and the authorization token corresponding to the second script in the first script.

[0052] By selecting operation and maintenance scripts that correspond to operation and maintenance requirements and conducting execution approval, application managers and business leaders can review whether the execution actions are reasonable and whether the risks are controllable, thereby improving the security of executing operation and maintenance scripts.

[0053] In another optional embodiment, the transmission information of the second script is sent to the security management system through the API interface for verification; when the result of the verification is passed, the second script is executed. Optionally, the security management system obtains user information through the API interface and verifies the user's permissions in the security management system to verify whether the user has the permission to perform automated operation and maintenance operations on the target machine. Secondly, it verifies whether the authorization token of the script to be executed is correct. When both of the above two verifications are passed, the script is executed in the production environment.

[0054] For scripts that have passed code review and execution approval in the automated operation and maintenance platform, double verification of the security management system is added, so that the scripts executed in the production environment can comply with both the specifications of the automated operation and maintenance platform and the security specifications and security policies of third-party companies, thereby improving the security of automated operation and maintenance execution.

[0055] In other optional implementations, sensitive commands are prompted in the development script to remind testers to pay attention to whether the sensitive commands are used correctly; environmental testing is performed on the development script; and code review is performed on the development script that passes the environmental test.

[0056] By configuring sensitive commands on the automated operation and maintenance platform, testers are reminded to focus on whether the use of sensitive commands is correct / compliant during environmental testing, thereby improving the security of automated operation and maintenance execution.

[0057] Figure 2 It is a flowchart of a script audit execution method applied to a security management and control system according to an embodiment of the present invention.

[0058] like Figure 2 As shown, in one embodiment of the present invention, the method may include: step S21, step S22 and step S23, and the above steps are described in detail below.

[0059] In step S21, a first script and token request are received from the automated operation and maintenance platform via an API. In an optional embodiment, the first script sent by the automated operation and maintenance platform is a script developed by a developer that has undergone environmental testing and code review. Code review is performed by technical experts in the specific operation and maintenance field, and a multi-level approval process is implemented to implement manual approval based on the requirements of different enterprises.

[0060] In step S22, the first script is subject to security review and approval. In an optional embodiment, relevant personnel of the security management and control system review and approve the script based on the security specifications and security policies of the specific operation and maintenance field and / or the third-party enterprise.

[0061] In step S23, for the first script that has passed the security approval, an authorization token corresponding to the first script is sent to the automated operation and maintenance platform through the API interface.

[0062] The above-described method of the embodiment of the present invention allows for security approval of scripts sent by the automated operation and maintenance platform, thereby ensuring compliance with enterprise security regulations and security policies, and improving the security of automated operation and maintenance execution. Furthermore, an authorization token is returned to scripts that have passed security approval by the security control system, providing a foundation for the subsequent execution of scripts that have passed the control of the automated operation and maintenance platform and the security control system, as well as for integrating the automated operation and maintenance platform with the security control system.

[0063] In an optional embodiment, the delivery information sent by the automated operation and maintenance platform is received through the API interface, wherein the delivery information includes: the user account for executing the second script in the first script, the target machine for executing the second script, and the system account used when executing the second script; verifying the user's permissions and validating the authorization token, obtaining the verification result and sending the verification result to the automated operation and maintenance platform.

[0064] For scripts managed by the automated operation and maintenance platform, double verification of the security control system is added, so that the scripts executed in the production environment can comply with both the specifications of the automated operation and maintenance platform and the security specifications and security policies of third-party companies, thereby improving the security of automated operation and maintenance execution.

[0065] Figure 3A It is a flowchart of a script development process of a script review execution method based on an automated operation and maintenance platform and a security management and control system according to an embodiment of the present invention.

[0066] like Figure 3A As shown, in one embodiment of the present invention, the method may include: step S31, step S32, step S33 and step S34, and the above steps are described in detail below.

[0067] In step S31, sensitive commands are configured in the automated operation and maintenance platform, and the sensitive commands are highlighted in the test environment to remind testers to focus on whether the use of sensitive commands is correct and compliant.

[0068] In step S32, technical experts in the operation and maintenance field conduct code review on the scripts written by developers, and set up a multi-level approval process to implement manual approval according to the requirements of different enterprises.

[0069] In step S33, the security management system performs security approval. Exemplarily, the security approval includes the following steps:

[0070] (1) The automated operation and maintenance platform and the security management and control system of the third-party enterprise are connected through the API interface. The two parties exchange information through HTTP requests based on the agreed transmission information and callback address. The transmission information that needs to be transmitted may include but is not limited to the following: the automated operation and maintenance platform will remind you of the sensitive commands in the early stage, the test results of the test environment, the conclusions of the manual code review process, and the basic information of the user-written script. The basic information of the user-written script includes the function description of the script, business requirements, script content, etc.

[0071] (2) The security management and control system monitors service requests from the automated operation and maintenance platform. When a token application is received, the relevant personnel of the security management and control system conduct security approval in accordance with security business specifications.

[0072] (3) When the security review is passed, the script executable token code is returned through the callback address agreed upon by both parties.

[0073] In step S34, the automated operation and maintenance platform saves each authorization Token code obtained through security approval. The authorization code is encrypted and stored and is invisible to the user.

[0074] Figure 3B It is a flowchart of the script execution link of the script review execution method based on the automated operation and maintenance platform and the security management and control system according to an embodiment of the present invention.

[0075] like Figure 3B As shown, in one embodiment of the present invention, the method may include: step S35, step S36 and step S37, and the above steps are described in detail below.

[0076] In step S35, the operation and maintenance personnel select the automated operation and maintenance script that needs to be executed based on the operation and maintenance requirements of the business system being operated and maintained, and perform the approval process for the automated operation and maintenance script. The corresponding application manager and business leader of the business system will review whether the action of executing the automated operation and maintenance script is reasonable and whether the risks are controllable.

[0077] In step S36, the authorization token code of the automated operation and maintenance script is verified with the security management system. Exemplarily, step S36 specifically includes the following steps:

[0078] (1) The automated operation and maintenance platform and the security management system exchange data via HTTP based on the API interface. The information that needs to be exchanged between the two parties includes: ① the user account that executes the script, the target machine for the script execution, the system account used during execution, and the script authorization token code; ② the opinions and results of manual review.

[0079] (2) After receiving the user information, the security control system first verifies the user's permissions in the security control system to verify whether the user has the permission to perform automated operation and maintenance operations on the target machine. Secondly, it verifies whether the token code of the script to be executed is correct.

[0080] (3) The security control system returns the verification results of the aforementioned execution permission verification and token verification to the caller. Only when both verifications pass can the script be executed in the production environment.

[0081] In step S37, when executing the script, the execution personnel pay attention to the execution status and business verification, etc.

[0082] In addition, it should be noted that Figure 3A and 3B Scripts in development are executed in the development and test environment, while scripts in release are executed in the production environment. Furthermore, the development and test environments and production environments are network-restricted, preventing arbitrary access. This prevents unnecessary errors caused by test scripts being executed in the production environment.

[0083] The above-described method, implemented in this embodiment of the present invention, integrates the approval of security specifications and policies into the security management and control of automated operations by connecting the automated operations platform with the security management and control systems of third-party enterprises. This approach does not increase the number of manual approval steps and does not reduce the efficiency of automated operations and maintenance tools. Furthermore, by having security specification approval handled by professionals and specialized systems and integrating it with the technical approval of the automated operations and maintenance platform, the level of security management and control is enhanced, preventing the execution of scripts that could endanger enterprise security in production environments.

[0084] Figure 4 It is a system architecture diagram of an automated operation and maintenance platform according to an embodiment of the present invention.

[0085] like Figure 4 As shown, the automated operation and maintenance platform includes:

[0086] The environment testing module 410 is used to perform environment testing on the development script and send the development script that passes the environment testing to the code review module 420. Among them, sensitive commands are highlighted in the development script to remind the tester to pay attention to whether the use of the sensitive commands is correct and compliant.

[0087] The code review module 420 is used to receive development scripts that have passed environmental testing and perform code review. In an optional embodiment, technical experts in the operation and maintenance field can review the scripts. According to the requirements of different enterprises, a multi-level approval process can be set to achieve manual approval.

[0088] The first data sending module 430 is used to send the first script that has undergone code review to the security management and control system through the API interface, and send a token application to the security management and control system. In an optional embodiment, the automated operation and maintenance platform and the security management and control system of the third-party enterprise exchange information through HTTP requests based on the agreed transmission information and callback address. Among them, the transmission information that needs to be transmitted may include but is not limited to the following: the automated operation and maintenance platform will remind you of the early sensitive commands, the test status of the test environment, the conclusion of the manual approval link of the code, and the basic information of the user-written script. Among them, the basic information of the user-written script includes the functional description of the script, business requirements, script content, etc.

[0089] The second data receiving module 440 is configured to receive, via an API interface, an authorization token corresponding to a first script that has passed security approval, sent by the security management and control platform system. In an optional embodiment, the security management and control system's security approval of the script includes code approval based on the security specifications and security policies of the specific operation and maintenance domain and / or a third-party enterprise.

[0090] Execution and approval module 450 is configured to perform the following operations: based on the operation and maintenance requirements of the business system requiring operation and maintenance, obtain an operation and maintenance script from the first script that corresponds to the operation and maintenance requirements; perform execution and approval on the operation and maintenance script, and obtain a second script from the operation and maintenance script that has passed the execution and approval, along with corresponding transfer information. In an optional embodiment, the execution and approval may include a review by the application manager or business leader of the business system to determine whether the execution of the operation and maintenance script is reasonable and whether the risks are controllable.

[0091] The third data sending module 460 is configured to send the second script's transmission information to the security management system for verification via the API interface. In an optional embodiment, the second script's transmission information may include, but is not limited to, the following: the user account executing the second script, the target machine executing the second script, the system account used when executing the second script, and the authorization token corresponding to the second script in the first script.

[0092] The execution module 470 is configured to execute the second script that has passed the verification. In an optional embodiment, when executing the second script that has passed the verification, the execution personnel pay attention to the execution status and business verification.

[0093] The automated operation and maintenance platform using the implementation method of the present invention incorporates the security approval executed by the third-party enterprise's security management and control system into the security management and control of automated operation and maintenance through the API interface, and then executes scripts in the production environment that comply with both the management and control specifications of the automated operation and maintenance platform and the security specifications and security policies of the third-party enterprise, avoiding the execution of scripts that endanger enterprise security in the production environment, thereby improving the security of automated operation and maintenance execution.

[0094] Figure 5 It is a system architecture diagram of a security management and control system according to an embodiment of the present invention.

[0095] like Figure 5 As shown, the security management and control system includes:

[0096] The first data receiving module 510 is configured to receive a first script and token request from the automated operation and maintenance platform via an API interface. In an optional embodiment, the first script sent by the automated operation and maintenance platform is a script developed by a developer that has undergone environmental testing and code review. Code review is performed by technical experts in the specific operation and maintenance field, and a multi-level approval process is established to implement manual approval based on the requirements of different enterprises.

[0097] The security approval module 520 is configured to perform security approval on the first script. In an optional embodiment, relevant personnel of the security management and control system perform security approval on the script according to the security specifications and security policies of the specific operation and maintenance field and / or the third-party enterprise.

[0098] The second data sending module 530 is configured to send, for the first script that has passed security approval, an authorization token corresponding to the first script to the automated operation and maintenance platform through an API interface.

[0099] The third data receiving module 540 is used to receive the transmission information sent by the automated operation and maintenance platform through the API interface, wherein the transmission information includes: the user account for executing the second script in the first script, the target machine for executing the second script, and the system account used when executing the second script.

[0100] Verification module 550 is used to verify the user's permissions and the authorization token, obtain the verification result, and send the verification result to the automated operation and maintenance platform. In an optional embodiment, the user's permissions in the security management and control system are first verified to verify whether the user has the permission to perform automated operation and maintenance operations on the target machine; secondly, the token code of the script to be executed is verified to be correct.

[0101] The security management and control system of the embodiment of the present invention performs security approval and dual authority verification on scripts approved by the automated operation and maintenance platform, which can implement enterprise security specifications and security policy approval of scripts and improve the security of automated operation and maintenance execution.

[0102] Figure 6 This is an architectural diagram of a script audit execution system based on an automated operation and maintenance platform and a security management and control system according to an embodiment of the present invention.

[0103] like Figure 6 As shown, the script audit execution system includes Figure 4 The automated operation and maintenance platform shown in Figure 5 The security control system shown in FIG. The automated operation and maintenance platform and the security control system interact with each other through an API structure, and the modules included in the automated operation and maintenance platform and the security control system are connected. Figure 4 and Figure 5 The modules in are the same, so they will not be described in detail.

[0104] The system, using the embodiments of the present invention, integrates the automated operations and maintenance platform with the security management and control systems of third-party enterprises, integrating the approval of security specifications and policies into the automated operations and maintenance security management. This eliminates the need for additional manual approval steps and reduces the efficiency of automated operations and maintenance tools. Furthermore, by having security specification approval handled by professionals and specialized systems, and integrating it with the technical approval of the automated operations and maintenance platform, the level of security management is enhanced, preventing the execution of scripts that could compromise enterprise security in production environments.

[0105] Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by combining software with a hardware platform. Based on this understanding, all or part of the contribution of the technical solution of the present invention to the background art can be embodied in the form of a software product. This computer software product can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention or certain parts of the embodiments.

[0106] Correspondingly, an embodiment of the present invention further provides a computer-readable storage medium having computer-readable instructions or a program stored thereon. When the computer-readable instructions or program are executed by a processor, the computer performs the following operations: the operations include the steps included in the script audit execution method described in any of the above embodiments, which are not further described here. The storage medium may include, for example, an optical disk, a hard disk, a floppy disk, a flash memory, a magnetic tape, etc.

[0107] In addition, embodiments of the present invention further provide a computer device comprising a memory and a processor, wherein the memory is configured to store one or more computer instructions or programs, wherein the one or more computer instructions or programs, when executed by the processor, can implement the script audit execution method described in any of the above embodiments. The computer device may be, for example, a server, a desktop computer, a laptop computer, or the like.

[0108] Finally, it should be noted that the above embodiments are intended only to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the technical solutions described in the above embodiments may be modified or some of the technical features thereof may be replaced with equivalents. Such modifications or replacements do not deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention. Therefore, the scope of protection of the present invention shall be determined by the claims.

Claims

1. A script audit execution method based on an automated operation and maintenance platform and a security management and control system. It is characterized in that The script review execution method is applied to the automated operation and maintenance platform, and the script review execution method includes: Prompt sensitive commands in the development script to remind testers to pay attention to whether the sensitive commands are used correctly; Performing environmental testing on the development script; For the development script that has passed the environmental test, the first script that has undergone code review is sent to the security management and control system through the API interface, and a token application is sent to the security management and control system; Receiving, through the API interface, an authorization token corresponding to the first script that has passed security approval and is sent by the security management and control system; The security review and approval of the first script by the security management and control system includes: code review and approval based on security specifications and security policies.

2. The script audit execution method according to claim 1, It is characterized in that The script audit execution method also includes: According to the operation and maintenance requirements of the business system that needs operation and maintenance, obtaining the operation and maintenance script corresponding to the operation and maintenance requirement in the first script; The operation and maintenance script is subject to execution approval, and a second script in the operation and maintenance script that has passed the execution approval and corresponding transfer information are obtained.

3. The script audit execution method as claimed in claim 2, It is characterized in that The transmission information includes: a user account for executing the second script, a target machine for executing the second script, a system account used when executing the second script, and an authorization token corresponding to the second script in the first script.

4. The script audit execution method as claimed in claim 3, It is characterized in that The script audit execution method also includes: Sending the transmission information of the second script to the security management and control system for verification through the API interface; When the result of the verification is passed, the second script is executed.

5. A script audit execution method based on an automated operation and maintenance platform and a security management and control system. It is characterized in that The script audit execution method is applied to the security management and control system, and the script audit execution method includes: Receiving a first script and a token application sent by the automated operation and maintenance platform through an API interface, wherein the first script is a development script that has passed the environmental test, and a sensitive command is prompted in the development script to remind the tester to pay attention to whether the sensitive command is used correctly; Performing security review on the first script, the security review comprising: performing code review based on security specifications and security policies; For the first script that has passed the security approval, an authorization token corresponding to the first script is sent to the automated operation and maintenance platform through the API interface.

6. The script audit execution method as claimed in claim 5, It is characterized in that The script audit execution method also includes: Receiving, through the API interface, the transmission information sent by the automated operation and maintenance platform, wherein the transmission information includes: a user account for executing the second script in the first script, a target machine for executing the second script, and a system account used when executing the second script; Verify the user's authority and authenticate the authorization token, obtain the verification result and send the verification result to the automated operation and maintenance platform.

7. An automated operation and maintenance platform, It is characterized in that The automated operation and maintenance platform includes: An environment testing module is used to perform an environment test on the development script and send the development script that passes the environment test to the code review module, wherein sensitive commands are prompted in the development script to remind the tester to pay attention to whether the sensitive commands are used correctly; The code review module is used to receive the development script that has passed the environmental test and perform the code review; A first data sending module, used to send the first script that has undergone code review to the security management and control system through an API interface, and send a token application to the security management and control system; A second data receiving module is used to receive, through the API interface, an authorization token corresponding to the first script that has passed security approval and is sent by the security management and control system; The security review and approval of the first script by the security management and control system includes: code review and approval based on security specifications and security policies.

8. The automated operation and maintenance platform according to claim 7, It is characterized in that The automated operation and maintenance platform also includes an execution and approval module for performing the following operations: According to the operation and maintenance requirements of the business system that needs operation and maintenance, obtaining the operation and maintenance script corresponding to the operation and maintenance requirement in the first script; The operation and maintenance script is subject to execution approval, and a second script in the operation and maintenance script that has passed the execution approval and corresponding transfer information are obtained.

9. The automated operation and maintenance platform according to claim 8, It is characterized in that The transmission information includes: a user account for executing the second script, a target machine for executing the second script, a system account used when executing the second script, and an authorization token corresponding to the second script in the first script.

10. The automated operation and maintenance platform according to claim 9, It is characterized in that The automated operation and maintenance platform also includes: A third data sending module, used to send the transmission information of the second script to the security management and control system for verification through the API interface; An execution module is used to execute the second script that passes the verification.

11. A security control system, It is characterized in that The safety management and control system includes: A first data receiving module is used to receive a first script and a token application sent by the automated operation and maintenance platform through an API interface, wherein the first script is a development script that has passed the environmental test, and a sensitive command is prompted in the development script to remind the tester to pay attention to whether the sensitive command is used correctly; A security approval module, used for performing security approval on the first script, wherein the security approval includes: performing code approval based on security specifications and security policies; The second data sending module is used to send the authorization token corresponding to the first script that has passed the security approval to the automated operation and maintenance platform through the API interface.

12. The security management and control system according to claim 11, It is characterized in that The safety management and control system also includes: A third data receiving module is used to receive the transmission information sent by the automated operation and maintenance platform through the API interface, wherein the transmission information includes: a user account for executing the second script in the first script, a target machine for executing the second script, and a system account used when executing the second script; The verification module is used to verify the user's authority and validate the authorization token, obtain the verification result and send the verification result to the automated operation and maintenance platform.

13. A computer storage medium storing computer software instructions, It is characterized in that The computer software instructions are executed by a processor to implement the script review execution method as described in any one of claims 1 to 4 or the script review execution method as described in claim 5 or 6.

14. A computer device comprising a memory and a processor; It is characterized in that The memory is used to store one or more computer instructions, and the processor executes the one or more computer instructions to implement the script review execution method as described in any one of claims 1 to 4 or the script review execution method as described in claim 5 or 6.