Security policy auditing method and device, and electronic device

By using an automated security policy auditing method, the system obtains user-submitted configuration information and performs validity checks and priority matching, thus solving the problem of low efficiency in firewall policy auditing and achieving efficient and accurate policy auditing and management.

CN123185078APending Publication Date: 2026-11-27INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610901932.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-22
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The low efficiency of firewall policy review leads to a significant increase in maintenance workload, and the reliance on manual operation results in low efficiency.

Method used

By obtaining configuration information that matches the security policies submitted by users, performing validity checks in conjunction with a set of reference configuration information, and matching according to a set of priority reference rules, the review results are automatically determined, reducing manual intervention.

Benefits of technology

The automated review process for firewall policy requests has been implemented, improving review efficiency, ensuring the consistency and rigor of policy execution, and reducing human error.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185078A_ABST
    Figure CN123185078A_ABST
Patent Text Reader

Abstract

The application discloses a kind of security policy auditing method and device, electronic equipment, it is related to the field of financial technology or other related fields, wherein, the method comprises: in the case where receiving the first security policy to be audited that user issues, obtain the first configuration information matched with the first security policy, wherein, the first configuration information is used to indicate the effective time and the object of the first security policy;Reference configuration information set is obtained, and based on reference configuration information set and the first configuration information, the validity of the first security policy is detected;In the case where the first security policy passes validity detection, reference rule set is obtained, at least one reference rule in reference rule set is sorted based on priority;First configuration information is matched with reference rule set;According to the result of matching, the audit result of the first security policy is determined.The application solves the technical problem that the audit efficiency of firewall policy in the prior art is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of financial technology or other related fields, and more specifically, to a method and apparatus for auditing security strategies, and electronic equipment. Background Technology

[0002] In large enterprises, firewalls, as core devices for ensuring network security, face numerous challenges in policy management. As businesses continue to grow, the scale of servers and network equipment increases dramatically, the number of firewall devices grows, and the types of brands become increasingly diverse, leading to a significant increase in the workload of firewall policy maintenance.

[0003] Currently, firewall policy review and management mainly rely on manual operations. Operations personnel need to handle a large number of policy activation and deactivation requests daily, which not only consumes significant manpower and resources but also involves repetitive work, resulting in low efficiency for firewall policy review. Therefore, improving the efficiency of firewall policy review has become an urgent technical problem to be solved.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This invention provides a method, apparatus, and electronic device for auditing security policies, to at least address the technical problem of low auditing efficiency of firewall policies in related technologies.

[0006] To achieve the above objectives, according to one aspect of this application, a method for auditing a security policy is provided, comprising: upon receiving a first security policy to be audited from a user, obtaining first configuration information matching the first security policy, wherein the first configuration information is used to indicate the target object and effective time of the first security policy; obtaining a set of reference configuration information, and performing a validity test on the first security policy based on the set of reference configuration information and the first configuration information; if the first security policy passes the validity test, obtaining a set of reference rules, wherein at least one reference rule in the set of reference rules is sorted based on priority; matching the first configuration information with the set of reference rules; and determining the audit result of the first security policy based on the matching result.

[0007] According to another aspect of the present invention, a security policy review apparatus is also provided, comprising: a first acquisition unit, configured to acquire first configuration information matching the first security policy upon receiving a first security policy to be reviewed from a user, wherein the first configuration information is used to indicate the target object and effective time of the first security policy; a second acquisition unit, configured to acquire a set of reference configuration information and perform validity detection on the first security policy based on the set of reference configuration information and the first configuration information; a third acquisition unit, configured to acquire a set of reference rules if the first security policy passes the validity detection, wherein at least one reference rule in the set of reference rules is sorted based on priority; a matching unit, configured to match the first configuration information with the set of reference rules; and a determining unit, configured to determine the review result of the first security policy based on the matching result.

[0008] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, an auditing method for controlling the device where the computer-readable storage medium is located to execute any of the security policies described above is provided.

[0009] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the auditing method of the security policy described above.

[0010] According to another aspect of the present invention, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps of the auditing method for the security policy described in any one of the above embodiments.

[0011] The embodiments provided in this application obtain first configuration information matching the first security policy submitted by the user, and perform validity detection on the policy in combination with a set of reference configuration information. Then, the policies that pass the detection are matched according to a set of reference rules with priority. Finally, the review result is determined based on the matching result, thereby realizing an automated review process for firewall policy applications. This reduces manual intervention and effectively improves the efficiency of firewall policy review, solving the technical problem of low review efficiency of firewall policies in related technologies. Attached Figure Description

[0012] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0013] Figure 1 A hardware structure block diagram of a computer terminal (or mobile device) for implementing an auditing method for security policies is shown.

[0014] Figure 2 This is a flowchart of an optional security policy auditing method according to an embodiment of the present invention;

[0015] Figure 3 This is a schematic diagram of an optional security policy auditing method according to an embodiment of the present invention;

[0016] Figure 4 This is a flowchart of an optional security policy auditing method according to an embodiment of the present invention;

[0017] Figure 5 This is a schematic diagram of an optional security policy auditing method according to an embodiment of the present invention;

[0018] Figure 6 This is a flowchart of an optional security policy auditing method according to an embodiment of the present invention;

[0019] Figure 7 This is a schematic diagram of an optional security policy auditing method according to an embodiment of the present invention;

[0020] Figure 8 This is a schematic diagram of an auditing device for an optional security strategy according to an embodiment of the present invention;

[0021] Figure 9 This is a structural block diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0022] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0023] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] To facilitate understanding of the present invention by those skilled in the art, some terms or nouns involved in the various embodiments of the present invention are explained below:

[0025] It should be noted that the security policy review method and apparatus in this disclosure can be used in the field of resource application, or in any field other than resource application. This disclosure does not limit the application field of the security policy review method and apparatus.

[0026] It should be noted that the information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, and displayed data) collected in this public disclosure are information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of related data all comply with the relevant laws, regulations, and standards of the relevant regions, necessary confidentiality measures have been taken, and they do not violate public order and good morals. Corresponding operation entry points are provided for users to choose to authorize or refuse. For example, this system has interfaces with relevant users or organizations. Before obtaining relevant information, a request to obtain the information needs to be sent to the aforementioned user or organization through the interface, and the relevant information is obtained only after receiving consent from the aforementioned user or organization.

[0027] It should be noted that in this disclosure, customer information is collected and analyzed, and users are provided with corresponding operation entry points to choose whether to agree to or reject the automated decision results; if the user chooses to reject, the process will proceed to the expert decision-making process.

[0028] The present invention will now be described in detail with reference to various embodiments.

[0029] Example 1

[0030] According to an embodiment of the present invention, an embodiment of a security policy auditing method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0031] The security policy auditing method provided in Embodiment 1 of this application can be executed on a mobile terminal, computer terminal, or similar computing device. Figure 1 A hardware block diagram of a computer terminal (or mobile device) for implementing an auditing method for security policies is shown. Figure 1 As shown, computer terminal 10 (or mobile device) may include one or more ( Figure 1 The processor 102 (which may include, but is not limited to, a microprocessor MCU (Microcontroller Unit) or a programmable gate array (FPGA)) is shown as 102a, 102b, ..., 102n. It also includes a memory 104 for storing data and a transmission device 106 for communication functions. In addition, it may include: a display, an input / output interface (I / O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0032] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).

[0033] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the security policy auditing method in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby implementing the aforementioned security policy auditing method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0034] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0035] The display can be, for example, a touchscreen liquid crystal display (LCD), which allows the user to interact with the user interface of the computer terminal 10 (or mobile device).

[0036] Under the aforementioned operating environment, this application provides the following: Figure 2 The auditing method for the security policy shown. Figure 2 This is a flowchart of an optional security policy auditing method according to an embodiment of the present invention, such as... Figure 2 As shown, the method includes the following steps:

[0037] S202, upon receiving a first security policy to be reviewed from a user, obtain first configuration information matching the first security policy, wherein the first configuration information is used to indicate the target of the first security policy and the effective time.

[0038] S204, Obtain a reference configuration information set, and perform an effectiveness test on the first security policy based on the reference configuration information set and the first configuration information;

[0039] S206, if the first security policy passes the validity test, a set of reference rules is obtained, wherein at least one reference rule in the set of reference rules is sorted based on priority;

[0040] S208, Match the first configuration information with the reference rule set;

[0041] S210, determine the audit result of the first security policy based on the matching result.

[0042] Optionally, in this embodiment, the first security policy may refer to a user-submitted, pending review request regarding an operation on the firewall, such as granting new access permissions or tightening / deleting existing permissions.

[0043] Optionally, in this embodiment, the first configuration information may be structured data extracted from the first security policy to describe the specific technical parameters of the policy, which may include: source address, destination address, port, protocol, effective time, etc., thereby converting the user's natural language or form requirements into a standard data format that is machine-readable and can be logically judged, providing a basis for subsequent validity detection and rule matching.

[0044] Optionally, in this embodiment, the reference configuration information set can be a dataset stored in the system that represents the current actual operating state of the network, and can include configuration information of security policies that have been successfully deployed and are in effect on the firewall.

[0045] Optionally, in this embodiment, the validity check can be a logical judgment step for auditing. This step compares the first configuration information with a set of reference configuration information. If a policy already exists in the set of reference configuration information and its function is exactly the same as the first configuration information, then the first security policy will be determined to be invalid.

[0046] Optionally, in this embodiment, the reference rule set is a set of judgment criteria pre-defined in the system. These criteria define "what kind of access is absolutely prohibited", "what kind of access is allowed by default", and "what kind of access requires special approval". For example, a rule could be "prohibit all access from the office network segment to the core production database".

[0047] Optionally, in this embodiment, priority can be an attribute attached to each rule in the reference rule set, used to define the rule that will ultimately take effect when the first configuration information matches multiple rules at the same time.

[0048] Optionally, in this embodiment, upon receiving a first security policy to be reviewed from a user, the request is parsed to obtain and structurally extract the first configuration information matching the first security policy.

[0049] Then, a set of reference configuration information representing all currently effective policies of the network will be obtained, and the first configuration information obtained in the first step will be compared with this set to perform an effectiveness test on the first security policy.

[0050] Next, if the first security policy passes the validity test, a pre-defined set of reference rules will be obtained. All reference rules in this set are prioritized and sorted based on their importance or strictness.

[0051] The first configuration information is then matched one by one with the rules in the reference rule set. This process follows the priority order of the rules, matching the more important rules first.

[0052] Based on the matching results between the first configuration information and the reference rule set, the review result of the first security policy is automatically determined, such as "direct rejection", "automatic approval" or "manual intervention required".

[0053] It should be noted that by receiving the user's first security policy, the system first uses a set of reference configuration information representing the current state of the network to perform a validity check on the policy to filter out duplicate requests. Then, for policies that pass the check, the system performs a step-by-step matching based on a set of priority reference rules, thereby automatically and accurately determining the final review result. This achieves efficient, accurate, and compliant automated approval of firewall policy requests in large and complex network environments, avoiding human error and ensuring the consistency and rigor of security policy execution.

[0054] Further examples, such as Figure 3 As shown, after receiving the first security policy 304 sent by the user equipment 302, the first configuration information 306 of the first security policy 304 is obtained. If the first security policy 304 passes the validity verification, the matching result 310 is obtained based on the first configuration information 306 and the reference rule set 308. Finally, the audit result 312 is obtained based on the matching result 310.

[0055] The embodiments provided in this application obtain first configuration information matching the first security policy submitted by the user, and perform validity detection on the policy in combination with a set of reference configuration information. Then, the policies that pass the detection are matched according to a set of reference rules with priority. Finally, the review result is determined based on the matching result, thereby realizing an automated review process for firewall policy applications. This reduces manual intervention and effectively improves the efficiency of firewall policy review, solving the technical problem of low review efficiency of firewall policies in related technologies.

[0056] As an optional approach, a set of reference configuration information is obtained, including:

[0057] S1-1, Obtain configuration information sent by at least one network device and change order information sent by the change management system;

[0058] S1-2, filter the configuration information and change order information sent by all network devices to obtain at least one second configuration information that matches the second security policy, wherein the second configuration information is used to indicate the target and effective time of the second security policy;

[0059] S1-3, Based on all the second configuration information, determine the set of reference configuration information.

[0060] Optionally, in this embodiment, network devices can refer to various firewall devices deployed in an enterprise network. Since firewall devices from different manufacturers and of different models may have different brands and types, their configuration commands and output formats may also differ. Therefore, as the actual execution point of security policies, their internal configuration information reflects the truly effective access control rules and is the basic data source for constructing a comprehensive network policy view. For example, network devices may include firewalls from brand A, firewalls from brand B, etc.

[0061] Optionally, in this embodiment, configuration information may refer to raw data obtained from a network device regarding security policies currently in effect on that device. This data exists in a device-specific format and contains the core elements of the policy. For example, a configuration message obtained from a firewall might be "permit ip from 192.168.1.0 / 24 to 10.0.0.1 port 80," indicating that a specific network segment is allowed to access the HTTP service of a specific server.

[0062] Optionally, in this embodiment, the change management system can refer to a dedicated system within an enterprise used to record and manage all network change processes. Any modifications to the configuration of network devices, especially the application, approval, and deployment of security policies, will generate corresponding records in this system.

[0063] Optionally, in this embodiment, the change order information may refer to the process data records obtained from the change management system that are related to the security policy change, which record the entire process information such as the application, approval, and planned execution of each policy change.

[0064] Optionally, in this embodiment, the second security policy may refer to a firewall policy that has been actually implemented or is to be implemented on the network device, identified by the data acquisition and processing module after filtering from the original configuration information and change order information.

[0065] Optionally, in this embodiment, the second configuration information may be structured data extracted from the identified second security policy, used to describe the specific technical parameters of the policy, which clarifies what object the policy that has been implemented or is to be implemented applies to and when it takes effect.

[0066] Optionally, in this embodiment, the reference configuration information set can be a dataset composed of all the second configuration information, which can represent the current real policy deployment status on all firewall devices in the network.

[0067] Optionally, in this embodiment, configuration information sent by at least one network device and change order information sent by the change management system are first obtained, thereby collecting raw data related to firewall policies from multiple sources to prepare basic materials for building a network-wide policy view.

[0068] Then, the configuration information and change order information sent by all network devices are filtered to obtain at least one second configuration information that matches each of the second security policies. This allows the collected heterogeneous raw data to be cleaned, translated, and structured, transforming information scattered across different systems and devices into unified, analyzable standard data units.

[0069] Finally, based on all the second configuration information, a reference configuration information set is determined. The purpose of this step is to bring together all standardized policy data units to form a complete dataset that represents the current real policy deployment status of the entire network.

[0070] Through the embodiments provided in this application, by obtaining the configuration information of network devices and the change order information of the change management system, and filtering and processing this information from different sources, standardized second configuration information is obtained. Finally, a set of reference configuration information is determined based on all the second configuration information, thereby realizing the integration of scattered raw data into a unified network-wide policy view.

[0071] As an optional approach, based on the reference configuration information set and the first configuration information, the effectiveness of the first security policy is tested, including:

[0072] S2-1, compare the first configuration information with the reference configuration information set;

[0073] S2-2, If the comparison result indicates that there is configuration information in the reference configuration information set that is completely consistent with the first configuration information, it is determined that the first security policy has failed the validity test;

[0074] S2-3, if the comparison result indicates that there is no configuration information in the reference configuration information set that is completely consistent with the first configuration information, determine that the first security policy has passed the validity test.

[0075] Optionally, in this embodiment, comparison can refer to the operation of comparing two datasets item by item, or it can be the process of precisely matching each element in the first configuration information with each record in the reference configuration information set. For example, the source address A, destination address B, port 8080, and protocol TCP of the first configuration information are compared one by one with the corresponding fields of each record in the reference configuration information set to check if there is a record that is completely identical in all these fields.

[0076] Optionally, in this embodiment, the comparison result may refer to the output generated after the comparison operation is completed, which indicates the relationship between the first configuration information and the reference configuration information set.

[0077] It should be noted that in this embodiment, the comparison result can include the following two situations: there is consistent configuration information or there is no consistent configuration information. For example, if a record is found in the reference configuration information set whose source address A, destination address B, port 8080, and protocol TCP are exactly the same as the first configuration information, then the comparison result is that there is consistent configuration information.

[0078] Optionally, in this embodiment, completely identical configuration information can mean that there exists a record in the reference configuration information set whose key elements are exactly the same as the first configuration information. These key elements may include source address, destination address, port, and protocol. For example, if the first configuration information is source address 192.168.1.1, destination address 10.0.0.1, port 22, and protocol TCP, and a record is found in the reference configuration information set that also has source address 192.168.1.1, destination address 10.0.0.1, port 22, and protocol TCP, then this record is completely identical configuration information.

[0079] Optionally, in this embodiment, the first configuration information is first compared with the reference configuration information set, thereby making a comprehensive and accurate comparison between the user's new application and the deployed policies representing the current state of the network, providing an objective basis for determining whether the application is a duplicate request.

[0080] Then, if the comparison results indicate that there is configuration information in the reference configuration information set that is completely consistent with the first configuration information, it is determined that the first security policy has failed the validity test. Thus, when the test finds that the policy requested by the user has already fully existed and taken effect in the network, the application is directly determined to be invalid, thereby rejecting the request and avoiding meaningless subsequent approval and configuration work.

[0081] Finally, if the comparison results indicate that there is no configuration information in the reference configuration information set that is completely consistent with the first configuration information, the first security policy is determined to have passed the validity test.

[0082] The embodiments provided in this application achieve automated identification of whether user applications are duplicated by accurately comparing the first configuration information requested by the user with a set of reference configuration information representing the policies deployed across the entire network, and determining whether the first security policy passes the validity test based on whether there is completely identical configuration information. This improves the efficiency of security policy review.

[0083] As an optional approach, the first configuration information is matched against a set of reference rules, including at least one of the following:

[0084] S3-1, Obtain the first rule set and parse the first rule set to obtain the first target information set corresponding to the first rule set, wherein the first rule set is used to indicate rules that are prohibited from being implemented, and the reference rule set includes the first rule set; Match the first configuration information with the first target information set to obtain the first matching result;

[0085] S3-2, Obtain the second rule set and parse the second rule set to obtain the second target information set corresponding to the second rule set. The second rule set is used to indicate the rules that are allowed to be implemented. The reference rule set includes the second rule set. The first rule set has a higher priority than the second rule set. Match the first configuration information with the second target information set to obtain the second matching result.

[0086] S3-3, obtain the third rule set and parse the third rule set to obtain the third target information set corresponding to the third rule set. The third rule set is used to indicate the rules that need special review. The reference rule set includes the third rule set. The second rule set has a higher priority than the third rule set. Match the first configuration information with the third target information set to obtain the third matching result.

[0087] Optionally, in this embodiment, the first rule set may refer to a set of firewall policy rules set by the enterprise according to security management requirements for explicitly prohibiting their implementation. For example, the first rule set may include a rule that prohibits all traffic from office network segment A to core database network segment B.

[0088] Optionally, in this embodiment, the first target information set can be obtained by parsing each rule in the first rule set, and can be used to precisely match the first configuration information. For example, after parsing the rule to block all traffic from office network segment A to access core database network segment B, the first target information set can be obtained, which includes elements such as source address range A, destination address range B, arbitrary port, and arbitrary protocol.

[0089] Optionally, in this embodiment, the second rule set may refer to a set of firewall policy rules that are explicitly permitted to be implemented, set by the enterprise according to security management requirements. For example, the second rule set may include a rule that allows access from the backup system server C to a specific backup port D of all production servers.

[0090] Optionally, in this embodiment, the second target information set can be obtained by parsing each rule in the second rule set, and can be used to precisely match the first configuration information. For example, after parsing the rule that allows access to the backup port D of all production servers from the backup system server C, the second target information set can be obtained, which includes elements such as source address C, destination address range of all production servers, port D, and protocol TCP.

[0091] Optionally, in this embodiment, the first matching result may refer to the output result generated after matching the first configuration information with the first target information set. This result is used to indicate whether the first configuration information matches a certain rule in the first rule set. For example, if the source address, destination address, port, and protocol of the first configuration information fall completely or partially within the scope of a certain rule in the first target information set, then the first matching result is a successful match; otherwise, it is a failed match.

[0092] Optionally, in this embodiment, the third rule set may refer to a set of firewall policy rules set by the enterprise according to security management requirements, used to specify firewall policy rules that require special review. This set corresponds to a special approval list. For example, the third rule set may include a rule that requires the security manager to approve the first access request between security domain levels A and B.

[0093] Optionally, in this embodiment, the third target information set can be obtained by parsing each rule in the third rule set, and can be used to accurately match the first configuration information. For example, after parsing the rule that the first access request needs to be approved across security domain levels A and B, the third target information set can be obtained, which includes elements such as source security domain level A, destination security domain level B, and first request identifier.

[0094] Optionally, in this embodiment, the second matching result may refer to the output result generated after performing a matching operation between the first configuration information and the second target information set. This result is used to indicate whether the first configuration information matches a certain rule in the second rule set. For example, if the source address, destination address, port, and protocol of the first configuration information completely fall within the scope of a certain rule in the second target information set, then the second matching result is a successful match; otherwise, it is a failed match.

[0095] Optionally, in this embodiment, the third matching result may refer to the output result generated after matching the first configuration information with the third target information set. This result is used to indicate whether the first configuration information matches a certain rule in the third rule set. For example, if the source security domain and the destination security domain of the first configuration information conform to the range set by a certain rule in the third target information set, then the third matching result is a successful match; otherwise, it is a failed match.

[0096] Through the embodiments provided in this application, the first rule set representing prohibited rules, the second rule set representing permitted rules, and the third rule set representing special review rules are parsed and converted into target information sets. Then, the first configuration information is matched with these target information sets in sequence according to the order that the first rule set has a higher priority than the second rule set, and the second rule set has a higher priority than the third rule set, and the corresponding matching results are obtained. This realizes the automated review of user applications according to the enterprise's preset multi-level security rule system, ensuring that the strictest security policies are executed first, while taking into account the flexible management needs of automated approval and special scenarios that require manual intervention.

[0097] As an optional approach, the audit result of the first security policy is determined based on the matching results, including:

[0098] S4-1, if the first matching result indicates that the first target information set and the first configuration information are successfully matched, it is determined that the first security policy audit has failed;

[0099] S4-2, if the first matching result indicates that the matching failed, and the second matching result indicates that the second target information set and the first configuration information are successfully matched, then the first security policy audit is determined to be successful.

[0100] S4-3, if the second matching result indicates that the matching failed, and the third matching result indicates that the third target information set matches the first configuration information successfully, a prompt message is sent, wherein the prompt message is used to indicate that the first security policy needs to be specially reviewed.

[0101] Optionally, in this embodiment, the notification message can refer to a notification message sent by the system to relevant personnel when it determines that the first security policy requires special review. This message may include details of the first security policy, which special review rule has been triggered, and who needs to complete the review. For example, the system may send a notification message to the security manager's email address stating that user E has applied to enable access from A to B, triggering a special cross-domain access review rule, and requesting that the user log in to the system for approval.

[0102] Optionally, in this embodiment, special review may refer to an approval method that requires manual judgment for first security policies that hit specific scenarios in the third rule set. It should be noted that this review differs from fully automated approval or rejection; it requires personnel with the appropriate permissions to make decisions based on the specific circumstances. For example, for applications involving first-time access between security domains A and B, the system cannot automatically decide whether to allow it and needs to submit it to a security committee member for manual review.

[0103] Optionally, in this embodiment, if the first matching result indicates that the first target information set and the first configuration information are successfully matched, the first security policy review is determined to be unsuccessful. Thus, a final decision is made based on the highest priority matching result. If the application violates any prohibition rule, the process is immediately terminated and a negative conclusion is given.

[0104] Then, if the first matching result indicates a failed match, and the second matching result indicates a successful match between the second target information set and the first configuration information, the first security policy review is determined to be successful. Thus, on the premise of confirming that no prohibition rules have been violated, a decision is made based on the matching result of the second priority. When the application meets any allowable rule, the application is automatically approved, achieving highly efficient automated approval.

[0105] Finally, if the second matching result indicates a failed match, and the third matching result indicates a successful match between the third target information set and the first configuration information, a prompt message is sent. This prompt message indicates that the first security policy requires special review. The purpose of this step is to pause automated decision-making and notify relevant personnel to intervene when an application neither violates prohibition rules nor meets automatic approval rules, but falls under a scenario requiring special review. This ensures that complex or sensitive scenarios receive appropriate human judgment.

[0106] The embodiments provided in this application, by judging step by step according to the priority order of the first matching result, the second matching result, and the third matching result, directly determine the review failure in the scenario of the first rule set that matches successfully, directly determine the review success in the scenario of the first rule set that matches successfully but fails to match, and send a prompt message to initiate special review in the scenario of the first and second rule sets that match successfully but fails to match. This realizes the automated and differentiated approval processing of firewall policy applications according to a preset multi-level rule system, which not only ensures the rigid execution of the strictest security rules, but also realizes the rapid automatic approval of regular applications, while retaining the necessary manual intervention links for special scenarios.

[0107] As an optional approach, after determining the audit result of the first security policy based on the matching results, the following steps are also included:

[0108] S5-1, Obtain at least one third security policy and the third configuration information matched by each third security policy, wherein the third security policy is an approved security policy;

[0109] S5-2, based on third-party configuration information, detects each third-party security policy;

[0110] S5-3, maintain security policies based on the test results.

[0111] Optionally, in this embodiment, the third security policy may refer to a firewall policy that has passed the aforementioned review process, been approved for implementation, or has been successfully deployed on the firewall. These policies represent the access rules that are actually allowed in the network. For example, a third security policy may be a previously approved request allowing server A to access server B's port 3306, and this policy has been successfully configured on the firewall.

[0112] Optionally, in this embodiment, the third configuration information may refer to structured data extracted from the third security policy that describes the specific technical parameters of the policy. It clarifies the target object, effective date, and other related information of the effective policy. For example, the third configuration information extracted from the aforementioned third security policy may include firewall device ID as device C, source address as server A, destination address as server B, port 3306, protocol as TCP, activation date as January 1, 2024, and change order number as CHG001.

[0113] Optionally, in this embodiment, detection can refer to the system's periodic or real-time analysis and inspection process of the effective third security policy. This process can include checks across multiple dimensions, such as checking for policies that do not comply with enterprise security management rules, for redundant or expired policies, and for whether the actual deployed policy configuration matches the application requirements. For example, the system can detect whether the activation time of a policy has expired, or detect whether there are two redundant policies with completely identical rules.

[0114] Optionally, in this embodiment, the detection result can refer to the output generated after the detection operation is completed, which reveals the specific type of problem existing in the third security policy. The detection result can include various situations such as compliance anomalies, policy redundancy, policy expiration, and inconsistencies between configuration and application. For example, after detecting a set of policies, the detection result may be that policies X and Y are redundant, or that the activation time of policy Z has expired.

[0115] Optionally, in this embodiment, security policy maintenance can refer to subsequent management operations performed on effective firewall policies based on the detection results. These operations may include initiating new policy tightening requests, deleting redundant or expired policies, and correcting policies with inconsistent configurations. For example, when the detection results find that a policy has expired, the system can automatically initiate a policy tightening request. After the approval process, the expired policy can be deleted from the firewall through the automated configuration module.

[0116] Optionally, in this embodiment, at least one third security policy and the third configuration information matched by each third security policy are first obtained, wherein the third security policy is a security policy that has passed the audit.

[0117] Then, based on the third configuration information, each third security policy is tested. By using preset testing rules, each effective policy is scanned from multiple dimensions to proactively discover potential compliance issues, redundancy issues, expiration issues, or configuration inconsistency issues.

[0118] Finally, security policy maintenance is performed based on the detection results. This step involves triggering corresponding automated processing flows based on the different types of problems discovered, such as initiating policy deletion requests or policy modification requests, thereby continuously optimizing and cleaning up the firewall policy set.

[0119] Through the embodiments provided in this application, after the review process, the approved third security policy and its third configuration information are obtained, and these effective policies are continuously tested. Then, the security policies are automatically maintained based on the test results, thereby realizing closed-loop management of the entire life cycle of firewall policies. It can proactively discover and handle redundant, expired or inconsistent policies after policy deployment, continuously optimize the compliance and simplicity of the policy set, and avoid excessive expansion of the policy library and potential security risks.

[0120] As an optional approach, each third security policy is detected based on third-party configuration information, including at least one of the following:

[0121] S6-1 detects each third configuration information through preset management rules, where preset management rules are used to detect security policies that allow unauthorized access.

[0122] S6-2 detects each third security policy by using the effective duration and hit data. The hit data indicates the status of the third security policy being triggered by network traffic. The third configuration information includes the effective duration and hit data.

[0123] S6-3 detects the third security policy by using the third configuration information and the application information of each third security policy. The application information includes the application requirements and review records of the third security policy.

[0124] Optionally, in this embodiment, the preset management rules may refer to a series of detection rules pre-set according to security management systems and industry regulatory requirements, used to determine whether firewall policies are compliant. These rules may cover regulatory requirements, industry security standards, and risk concerns. For example, a preset management rule may be to detect whether there is a firewall policy that allows direct access to the core production database from the office network.

[0125] Optionally, in this embodiment, the effective duration can refer to the length of time that the third security policy has been in effect from its deployment to the present time, or the validity period set by the policy itself. This information reflects the lifecycle status of the policy. For example, the effective duration of a policy may be 90 days after deployment, or the policy may have a validity period of 30 days that has now expired.

[0126] Optionally, in this embodiment, the hit data may refer to statistical information on the third security policy being triggered by actual network traffic during its effective period. This data reflects the actual usage of the policy, including the number of times it was matched and the time of the most recent match. For example, the hit data of a policy may show that it was matched 0 times in the past 30 days, or that the most recent match occurred 90 days ago.

[0127] Optionally, in this embodiment, the application information may refer to all recorded data related to the original application and approval process of the third security policy. This information includes the policy's application requirement description, applicant, reason for application, approver, approval opinion, approval time, associated change order number, etc. For example, the application information for a policy may include the applicant being user A, the reason for application being the need for business system B to go online, the approver being security manager C, and the approval time being January 1, 2024.

[0128] Optionally, in this embodiment, unauthorized access can refer to network access behavior that does not comply with preset management rules, i.e., access paths that should not exist but are permitted by firewall policies. For example, if there is a preset management rule that prohibits access to the core database from the office network segment, and detection reveals that such a permitted policy does exist on the firewall, then the access permitted by that policy is unauthorized access.

[0129] Optionally, in this embodiment, the application requirement and the review record can refer to two core components of the application information. The application requirement refers to the access content that needs to be enabled as described in the original application, and the review record refers to all operational traces and conclusions left during the approval process. For example, the application requirement for a policy could be to allow server D to access server E's port 443, and the review record could include security manager F approving the application on January 1st.

[0130] Optionally, in this embodiment, each third configuration information can be detected by preset management rules, wherein the preset management rules are used to detect security policies that allow unauthorized access.

[0131] Each third-party security policy can also be tested using its effective duration and hit data. The effective duration indicates when the third-party security policy takes effect, while the hit data indicates when the third-party security policy is triggered by network traffic matching. The third-party configuration information includes both the effective duration and the hit data. This step analyzes the policy from two dimensions: its lifecycle and actual usage, identifying expired or long-unused redundant policies and providing a basis for policy cleanup.

[0132] The third security policies can also be tested by comparing the third configuration information with the application information for each third security policy. The application information includes the application requirements and review records for the third security policy. The purpose of this step is to compare the actual policy configuration deployed on the firewall with the original application requirements to identify any abnormalities such as configuration errors, expanded scope, or discrepancies with the approved content.

[0133] The embodiments provided in this application detect unauthorized access policies by pre-setting management rules, detect redundant policies by comparing the effective duration and hit data, and detect abnormal configuration policies by comparing the consistency of third-party configuration information with application information. This enables multi-dimensional and comprehensive compliance monitoring of effective firewall policies, and can comprehensively discover various problems such as violations, redundancy, and configuration errors, providing precise target guidance for subsequent policy maintenance and risk management.

[0134] The following is a detailed description with reference to another embodiment.

[0135] This embodiment addresses the following issues by designing an automated approval and management method for firewalls in large enterprises:

[0136] Improve processing efficiency. By automating and streamlining the management and configuration of firewall policies, large enterprises with huge operational and maintenance needs can reduce repetitive operations, which can greatly improve work efficiency and save human resources and time costs.

[0137] Reduce error rates. Manual operation is prone to errors, especially in large enterprises where complex firewall policies and rules and heavy configuration tasks are required. Compared to manual approval and policy configuration, automated approval and implementation can effectively reduce the risk of human judgment and operational errors.

[0138] Strengthen the consistency of firewall rules. Large enterprises may deploy multiple brands and types of firewall devices due to varying security needs. Configuration commands for different types of devices may differ. Centralized management of firewall policies and rules can significantly reduce situations where enterprise security management requirements do not cover all firewall devices or where discrepancies arise in actual implementation. This asset portfolio should be reviewed and managed centrally by the management department, including security assessments. If outdated equipment is not supported due to reasons such as obsolescence, upgrades or replacements are recommended. These firewall devices should not be deployed in core areas, and at least device logs should be centrally uploaded. Compliance testing templates should still cover such situations.

[0139] Enhance compliance monitoring capabilities and improve security. The firewall's automated approval and management methods can record application, approval, and deployment policy information, facilitating subsequent tracing and analysis.

[0140] Optionally, in this embodiment, as Figure 4 As shown, the system may include a policy control and interaction module 402, a data support module 404, and external systems and devices 406.

[0141] Optionally, such as Figure 5 As shown, the policy control and interaction module 402 includes a display and processing module 502, a firewall policy application and approval module 504, a firewall approval rule management module 506, a firewall policy automatic configuration module 508, and a firewall policy compliance monitoring module 510.

[0142] Optionally, such as Figure 6 As shown, the data support module 404 may include a data storage module 602 and a data acquisition and processing module 604.

[0143] Optionally, such as Figure 7 As shown, external systems and devices 406 may include an email system 702, a change management system 704, a server 706, and a network device 708.

[0144] It should be noted that the data acquisition and processing module is responsible for the unified integration of data. Configuration information from various network devices and change order information from the change management system are sent to the data acquisition and processing module in real time. This module aggregates, filters, and transforms the sent data, translating it into data such as: an actual firewall configuration policy information table containing elements such as source address, destination address, port, protocol, activation time, firewall device ID, and change order number; a firewall policy application table containing elements such as source address, destination address, port, protocol, activation time, change order number, change approval status, and change window time; and a topology routing information table containing source address, destination address, and firewall device IDs to be traversed. The data records containing each element are then transmitted to the data storage module.

[0145] Data storage module: Responsible for centralized storage of data for use and analysis by various modules, including all information received from the data acquisition and processing module, allowed lists, prohibited lists, special approval lists, etc. received from the firewall approval rule management module, and real-time detection results received from the firewall policy compliance monitoring module.

[0146] Firewall Policy Request and Approval Module: This module automates the approval of firewall policy activation requests. Based on user-submitted request information such as source address, destination address, port, protocol, and activation time, as well as firewall configuration policy information from the data storage module, the system automatically performs validity checks. If the system detects that the requested firewall policy is already in effect, the request is rejected, and a notification is sent to the display and processing module. If the system detects that the firewall policy is not yet in effect, it continues to compare the request with firewall policy rules in the data storage module, including prohibited lists, allowed lists, and special approval lists. If a prohibited list policy is matched, the request is rejected, and a notification is sent to the display and processing module. If an allowed list policy is matched, a change order and policy data are automatically generated. If a special approval list policy is matched, an approval notification email is sent to relevant personnel for further review. Once approved, a change order and policy data are generated. The comparison between the prohibited and permitted lists is part of the automatic policy review phase, while the validity check is done during the policy proposal phase. Since access permission depends on the effects of all deployed policies, the proposal phase first checks the validity of the request. If it's verified that the requested request already allows access based on deployed policies, then it's a request that doesn't need implementation and is rejected, with the user notified. If it's verified that the current policy doesn't currently allow access, and the user applies for permission, then the process moves to the next stage. The prohibited list contains rules that disallow access, the permitted list contains rules that allow access, and the special approval list contains rule scenarios that allow special review processes. Of course, rules have priorities. The tool comprehensively evaluates the prohibited and permitted lists to determine the final decision on whether to allow implementation and grant access.

[0147] Firewall Approval Rule Management Module: Enables unified management of firewall policy rules. Based on the enterprise's security strategy needs, it allows for multi-dimensional rule settings based on factors such as source address, destination address, port, protocol, and activation time. It allows setting up a blocked list to block access requests that the enterprise needs to restrict, setting up an allowed list to specify permitted network access, and setting up a special approval list to define firewall policy access requests requiring specific approval.

[0148] The firewall policy automation configuration module enables the automatic distribution and configuration of firewall policies. Based on data from the data storage module, including a firewall policy request form containing elements such as source address, destination address, port, protocol, activation time, change order number, change approval status, and change window time, and a topology routing information table containing source address, destination address, and the IDs of the firewall devices to be traversed, the module automatically distributes requests when the change window time arrives, adding or deleting policy configuration information in the configurations of the relevant firewall devices.

[0149] Firewall Policy Compliance Monitoring Module: This module dynamically monitors the compliance of firewall policies. Based on firewall rules and actual firewall configuration policy information data from the data storage module, it monitors and confirms in real time: 1) whether there are policies that do not comply with the enterprise's firewall management rules; 2) whether there are redundant or expired firewall policies; and 3) whether there are discrepancies between the actual deployed firewall policy configuration and the application requirements. If any anomalies are found, alarms are sent to the display and handling module. The entire system is based on automation. Rules need to be updated as needed. The firewall approval rule management module updates and maintains this information. Rules are updated according to the enterprise's regulations and requirements (which should cover national regulations, industry requirements, and risks that the enterprise is concerned about). Tools identify scenarios and requirements.

[0150] The display and handling module is responsible for the centralized display of returned information and the centralized management of alarm handling rules. It receives alarm or handling result information from four modules, including the firewall policy compliance monitoring module, in real time, and issues handling commands to the four modules according to the handling rules.

[0151] The entire system's usage process and handling methods.

[0152] The data acquisition and processing module aggregates and integrates data sent from various network devices, servers, etc.

[0153] The processed data, containing information such as source address, destination address, port, protocol, activation time, change order number, change approval status, change window time, and firewall device IDs to be passed through, is transmitted in real time from the data acquisition and processing module to the data storage module for access by various modules. Processing continues the aggregation and integration of data acquisition and processing. Data from network devices, server configuration files, etc., is filtered and processed into standard data based on the information required for our automated processing, for use by subsequent modules.

[0154] Each module performs integrated automated management operations on firewall policies based on data stored in the data storage module, including policy application and approval, rule management, configuration distribution, and compliance monitoring. The execution results are then sent to the display and handling module. Examples of such actions include the firewall policy application and approval module rejecting a user's request to enable access to policies on the prohibited list, the firewall policy automated configuration module successfully implementing firewall policy deployment, and the firewall policy compliance monitoring module detecting redundant policies.

[0155] The display and handling module shows the execution results of each module and returns the corresponding execution steps for each module according to the handling rules. For example, if the firewall policy compliance monitoring module detects redundant policies, it requests tightening of the relevant policies through the firewall policy application and approval module. After the approval process is completed, the firewall policy automated configuration module reclaims the relevant firewall policies. The handling rules are maintained in this module and are formulated based on enterprise policies and management requirements. For each type of alarm or situation generated by other modules, a handling process is defined in this module, and the system processes it according to the preset process.

[0156] Firewall tightening can be understood as disabling or deleting a policy. For example, a detection tool might automatically identify redundant policies, such as those whose activation period has expired. The tool would then automatically initiate a deletion request, which would be reviewed by the administrator and implemented through the firewall policy automation configuration module.

[0157] The embodiments provided in this application present an automated approval and management method for firewalls in large enterprises. This method links firewall policy application and approval, policy security management rules, policy deployment, and policy activation monitoring, reflecting the entire lifecycle of firewall policy management from multiple dimensions. It effectively addresses challenges such as heavy workload in policy deployment and maintenance, and inconsistent policy rule management. Furthermore, by linking multiple modules, it promotes centralized resource management, significantly reduces manpower maintenance costs, improves overall work efficiency, effectively reduces the risk of operational errors, and powerfully enhances network security capabilities.

[0158] Example 2

[0159] The security policy auditing device provided in this embodiment includes multiple implementation units, each of which corresponds to a specific implementation step in Embodiment 1 above. The specific implementation method and beneficial effects can be referred to the aforementioned method embodiment, and will not be repeated here.

[0160] Figure 8 This is a schematic diagram of an auditing device for an optional security policy according to an embodiment of the present invention, such as... Figure 4 As shown, the auditing device for this security policy may include:

[0161] The first acquisition unit 802 is used to acquire first configuration information matching the first security policy when it receives a first security policy to be reviewed from a user, wherein the first configuration information is used to indicate the target of the first security policy and the effective time.

[0162] The second acquisition unit 804 is used to acquire a set of reference configuration information and to perform validity testing on the first security policy based on the set of reference configuration information and the first configuration information.

[0163] The third acquisition unit 806 acquires a set of reference rules when the first security policy passes the validity test, wherein at least one reference rule in the set of reference rules is sorted based on priority.

[0164] Matching unit 808 is used to match the first configuration information with the reference rule set;

[0165] The determining unit 810 is used to determine the audit result of the first security policy based on the matching result.

[0166] As an optional solution, the device further includes: a first acquisition module, used to acquire configuration information sent by at least one network device and change order information sent by the change management system; a filtering module, used to filter the configuration information and change order information sent by all network devices to obtain second configuration information matching at least one second security policy, wherein the second configuration information is used to indicate the target and effective time of the second security policy; and a first determination module, used to determine a set of reference configuration information based on all the second configuration information.

[0167] As an optional solution, the device further includes: a comparison module for comparing the first configuration information with a set of reference configuration information; a second determination module for determining that the first security policy has failed the validity test if the comparison result indicates that there is configuration information in the set of reference configuration information that is completely consistent with the first configuration information; and a third determination module for determining that the first security policy has passed the validity test if the comparison result indicates that there is no configuration information in the set of reference configuration information that is completely consistent with the first configuration information.

[0168] As an optional solution, the device further includes: a second acquisition module, configured to acquire a first rule set, parse the first rule set to obtain a first target information set corresponding to the first rule set, wherein the first rule set is used to indicate rules that are prohibited from being implemented, and a reference rule set includes the first rule set; and match the first configuration information with the first target information set to obtain a first matching result; a third acquisition module, configured to acquire a second rule set, parse the second rule set to obtain a second target information set corresponding to the second rule set, wherein the second rule set is used to indicate rules that are allowed to be implemented, and a reference rule set includes the second rule set, with the first rule set having a higher priority than the second rule set; and match the first configuration information with the second target information set to obtain a second matching result; and a fourth acquisition module, configured to acquire a third rule set, parse the third rule set to obtain a third target information set corresponding to the third rule set, wherein the third rule set is used to indicate rules that require special review, and a reference rule set includes the third rule set, with the second rule set having a higher priority than the third rule set; and match the first configuration information with the third target information set to obtain a third matching result.

[0169] As an optional solution, the device further includes: a fourth determining module, configured to determine that the first security policy audit failed when the first matching result indicates that the first target information set and the first configuration information match successfully; a fifth determining module, configured to determine that the first security policy audit succeeded when the first matching result indicates that the matching failed and the second matching result indicates that the second target information set and the first configuration information match successfully; and a sending module, configured to send a prompt message when the second matching result indicates that the matching failed and the third matching result indicates that the third target information set and the first configuration information match successfully, wherein the prompt message is used to indicate that the first security policy needs to be specially audited.

[0170] As an optional solution, the device further includes: a fifth acquisition module, used to acquire at least one third security policy and third configuration information matched by each third security policy, wherein the third security policy is an approved security policy; a first detection module, used to detect each third security policy based on the third configuration information; and a maintenance module, used to maintain the security policy according to the detection results.

[0171] As an optional solution, the device further includes: a second detection module, used to detect each third configuration information according to preset management rules, wherein the preset management rules are used to detect security policies with unauthorized access; a third detection module, used to detect each third security policy according to the effective duration and hit data, wherein the hit data is used to indicate the status of the third security policy being triggered by network traffic matching, and the third configuration information includes the effective duration and hit data; and a fourth detection module, used to detect the third security policy according to the third configuration information and the application information of each third security policy, wherein the application information includes the application requirements and review records of the third security policy.

[0172] The aforementioned security policy review device may also include a processor and a memory. The first acquisition unit 802, the second acquisition unit 804, the third acquisition unit 806, the matching unit 808, the determination unit 810, etc., are all stored in the memory as program units, and the processor executes the aforementioned program units stored in the memory to realize the corresponding functions.

[0173] The aforementioned processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and security policy-based auditing can be implemented by adjusting kernel parameters.

[0174] The aforementioned memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0175] Example 3

[0176] Embodiments of this application may provide an electronic device. Figure 9 This is a structural block diagram of an electronic device for implementing an auditing method for a security policy, according to an embodiment of this application. Figure 9 As shown, the electronic device may include: one or more ( Figure 9 (Only one is shown) processor 902, memory 904, memory controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0177] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the security policy auditing method and apparatus in this application embodiment. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby implementing the aforementioned security policy auditing method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0178] The processor can invoke information and applications stored in the memory through the transmission device to perform the following steps: obtaining a cross-chain request triggered on the first link through the first adapter, wherein the cross-chain request is used to request a first resource transaction with the second link, the first link is deployed with the first adapter, the second link is deployed with the second adapter, and the cross-chain request carries cross-chain information for the first resource transaction; forwarding the cross-chain information from the first adapter to the second adapter, wherein the second adapter is used to forward the cross-chain information to the second link for the first resource transaction, and obtaining the transaction information obtained after the second link completes the first resource transaction; obtaining the transaction information forwarded by the second adapter through the first adapter, and forwarding the transaction information to the first link.

[0179] Those skilled in the art will understand that Figure 9 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones, tablets, handheld computers, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 9 This does not limit the structure of the aforementioned electronic device. For example, electronic devices may also include components that are more... Figure 9 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 9 The different configurations shown.

[0180] Those skilled in the art will understand that all or part of the steps in the auditing methods of various security strategies in the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0181] Example 4

[0182] Embodiments of this application also provide a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the auditing method of the security policy provided in Embodiment 1.

[0183] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is running, the auditing method controls the device where the computer-readable storage medium is located to execute any of the security policies in the first embodiment above.

[0184] Optionally, in this embodiment, the storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.

[0185] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the auditing method for the security policy described in various embodiments of this application.

[0186] This application also provides a computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the auditing method of the security policy described in various embodiments of this application.

[0187] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0188] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0189] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0190] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0191] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0192] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0193] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for auditing security policies, characterized in that, include: Upon receiving a first security policy pending review from a user, first configuration information matching the first security policy is obtained, wherein the first configuration information is used to indicate the target of the first security policy and the effective time. Obtain a set of reference configuration information, and perform an effectiveness test on the first security policy based on the set of reference configuration information and the first configuration information; If the first security policy passes the validity test, a set of reference rules is obtained, wherein at least one reference rule in the set of reference rules is sorted based on priority; Match the first configuration information with the reference rule set; The audit result of the first security policy is determined based on the matching results.

2. The method according to claim 1, characterized in that, Obtain a set of reference configuration information, including: Obtain configuration information sent by at least one network device and change order information sent by the change management system; The configuration information sent by all the network devices and the change order information are filtered to obtain at least one second configuration information that matches the second security policy. The second configuration information is used to indicate the target and effective time of the second security policy. Based on all the second configuration information, the reference configuration information set is determined.

3. The method according to claim 2, characterized in that, Based on the reference configuration information set and the first configuration information, the effectiveness of the first security policy is tested, including: The first configuration information is compared with the reference configuration information set; If the comparison result indicates that there is configuration information in the reference configuration information set that is completely consistent with the first configuration information, it is determined that the first security policy has failed the validity test; If the comparison result indicates that there is no configuration information in the reference configuration information set that is completely consistent with the first configuration information, the first security policy is determined to have passed the validity test.

4. The method according to claim 1, characterized in that, Matching the first configuration information with the reference rule set includes at least one of the following: Obtain a first rule set and parse the first rule set to obtain a first target information set corresponding to the first rule set, wherein the first rule set is used to indicate rules that are prohibited from being implemented, and the reference rule set includes the first rule set; match the first configuration information with the first target information set to obtain a first matching result; Obtain a second rule set and parse the second rule set to obtain a second target information set corresponding to the second rule set, wherein the second rule set is used to indicate the rules that are allowed to be implemented, the reference rule set includes the second rule set, and the first rule set has a higher priority than the second rule set; match the first configuration information with the second target information set to obtain a second matching result; Obtain a third rule set and parse the third rule set to obtain a third target information set corresponding to the third rule set. The third rule set is used to indicate rules that require special review. The reference rule set includes the third rule set, and the second rule set has a higher priority than the third rule set. Match the first configuration information with the third target information set to obtain a third matching result.

5. The method according to claim 4, characterized in that, The audit result of the first security policy is determined based on the matching results, including: If the first matching result indicates that the first target information set and the first configuration information are successfully matched, it is determined that the first security policy audit has failed. If the first matching result indicates a matching failure, and the second matching result indicates that the second target information set and the first configuration information are successfully matched, then the first security policy review is determined to be successful. If the second matching result indicates a matching failure, and the third matching result indicates that the third target information set matches the first configuration information successfully, a prompt message is sent, wherein the prompt message is used to indicate that the first security policy needs to be specially reviewed.

6. The method according to any one of claims 1 to 5, characterized in that, After determining the audit result of the first security policy based on the matching results, the process also includes: Obtain at least one third security policy and third configuration information matched by each of the third security policies, wherein the third security policy is an approved security policy; Based on the third configuration information, each of the third security policies is detected; Security policies are maintained based on the test results.

7. The method according to claim 6, characterized in that, Based on the third configuration information, each of the third security policies is detected, including at least one of the following: Each of the third configuration information is detected by a preset management rule, wherein the preset management rule is used to detect security policies that allow unauthorized access; Each third security policy is detected by using the effective duration and hit data, wherein the hit data is used to indicate the status of the third security policy being triggered by network traffic matching, and the third configuration information includes the effective duration and the hit data; The third security policy is detected by combining the third configuration information with the application information of each third security policy. The application information includes the application requirements and review records of the third security policy.

8. A security policy auditing device, characterized in that, include: The first acquisition unit is configured to acquire first configuration information matching the first security policy when it receives a first security policy to be reviewed from a user, wherein the first configuration information is used to indicate the target of the first security policy and the effective time. The second acquisition unit is used to acquire a set of reference configuration information and, based on the set of reference configuration information and the first configuration information, perform an effectiveness test on the first security policy. The third acquisition unit is used to acquire a set of reference rules when the first security policy passes the validity test, wherein at least one reference rule in the set of reference rules is sorted based on priority. A matching unit is used to match the first configuration information with the reference rule set; The determining unit is used to determine the audit result of the first security policy based on the matching result.

9. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the auditing method of the security policy according to any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the auditing method for the security policy according to any one of claims 1 to 7.