Baseline detection method and device, system, and computer storage medium
By automatically detecting the version and encryption information of the SNMP protocol and generating a baseline detection report, it solves the security risks of the SNMP protocol and the time-consuming and labor-intensive baseline configuration inspection, and improves the security and management efficiency of network equipment.
Patent Information
- Application Number
- CN202410920017.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-10
AI Technical Summary
In the existing technology, the SNMP protocol has security risks and is susceptible to man-in-the-middle attacks, data tampering and vulnerability attacks, and baseline configuration checks need to be performed manually, which is time-consuming, labor-intensive and error-prone.
By sending a version acquisition request to the server configured with the SNMP protocol, it detects whether the protocol version is greater than the preset version, queries the authentication encryption information and encryption algorithm information, and generates a baseline detection report to implement automated baseline configuration checks.
It improves the security and stability of network equipment, reduces network operation and maintenance costs, and improves network management efficiency through automated inspections.
Smart Images

Figure CN118473939B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of baseline detection technology, specifically to technical fields such as assisted driving, and more particularly to a baseline detection method and device, system, electronic device, and computer-readable storage medium. Background Art
[0002] SNMP (Simple Network Management Protocol) is the abbreviation of Simple Network Management Protocol, which is a standard network management protocol widely used in TCP / IP networks. This protocol can support network management systems to monitor whether there are any situations that cause management concerns for devices connected to the network. SNMP uses a polling mechanism and provides the most basic function set, which is suitable for small, fast, and low-cost environments.
[0003] In the prior art, the baseline configuration information of SNMP is generally collected and sorted manually, but manual information collection is not only time-consuming and labor-intensive, but also prone to errors. Summary of the invention
[0004] The present disclosure provides a baseline detection method and device, a system, and a computer-readable storage medium.
[0005] According to a first aspect, a baseline detection method is provided, the method comprising: sending a version acquisition request including a version identifier to a server configured with a simple network management protocol; based on a version response message fed back by the server, detecting whether the protocol version of the server is greater than a preset version; in response to detecting that the protocol version of the server is greater than the preset version, querying the authentication encryption information of the user configured on the server; based on the authentication encryption information, querying the encryption algorithm information of the user; and generating a baseline detection report based on the protocol version, the authentication encryption information and the encryption algorithm information.
[0006] According to the second aspect, a baseline detection device is provided, which includes: a version acquisition unit, configured to send a version acquisition request including a version identifier to a server configured with a simple network management protocol; a version detection unit, configured to detect whether the protocol version of the server is greater than a preset version based on a version response message fed back by the server; a query level unit, configured to query the authentication encryption information of the user configured on the server in response to detecting that the protocol version of the server is greater than the preset version; a query algorithm unit, configured to query the encryption algorithm information of the user based on the authentication encryption information; and a generation unit, configured to generate a baseline detection report based on the protocol version, the authentication encryption information and the encryption algorithm information.
[0007] According to a third aspect, a baseline detection system is provided, the system comprising: a client and a server configured with a simple network management protocol. The client is used to send a version acquisition request including a version identifier to the server; based on a version response message fed back by the server, detect whether the protocol version of the server is greater than a preset version; in response to detecting that the protocol version of the server is greater than the preset version, query the authentication encryption information of the user configured by the server; based on the authentication encryption information, query the encryption algorithm information of the user; based on the protocol version, the authentication encryption information and the encryption algorithm information, generate a baseline detection report.
[0008] According to a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, where the computer instructions are used to cause a computer to execute the method described in any implementation of the first aspect.
[0009] The baseline detection method and device provided by the embodiments of the present disclosure first send a version acquisition request including a version identifier to a server configured with a simple network management protocol; secondly, based on the version response message fed back by the server, detect whether the protocol version of the server is greater than the preset version; thirdly, in response to detecting that the protocol version of the server is greater than the preset version, query the authentication encryption information of the user configured by the server; then, based on the authentication encryption information, query the encryption algorithm information of the user; finally, based on the protocol version, authentication encryption information and encryption algorithm information, generate a baseline detection report. Thus, the automated inspection of the baseline configuration is realized, and through the automated baseline configuration inspection, the network management efficiency is improved and the network operation and maintenance cost is reduced.
[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0012] Figure 1 is a flow chart of an embodiment of a baseline detection method according to the present disclosure;
[0013] Figure 2 is a structural schematic diagram of an embodiment of a baseline detection device according to the present disclosure;
[0014] Figure 3 is a schematic structural diagram of an embodiment of a baseline detection system according to the present disclosure;
[0015] Figure 4 It is a block diagram of an electronic device used to implement the baseline detection method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0016] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known modes and structures are omitted in the following description.
[0017] SNMP (Simple Network Management Protocol) is the abbreviation of Simple Network Management Protocol, which is a standard network management protocol widely used in TCP / IP networks. This protocol can support network management systems to monitor whether there are any situations that cause management concerns for devices connected to the network. SNMP uses a polling mechanism and provides the most basic function set, which is suitable for small, fast, and low-cost environments.
[0018] The traditional SNMP protocol has the following security issues:
[0019] Vulnerable to man-in-the-middle attacks: The SNMP protocol is carried by User Datagram Protocol (UDP) messages and is vulnerable to man-in-the-middle attacks. Attackers can forge SNMP messages to steal or tamper with the configuration information of network devices.
[0020] Request data is easily tampered with: The SNMP protocol does not provide a data encryption mechanism, and request data is easily tampered with, resulting in inconsistent or incorrect network device configuration information.
[0021] Network devices are vulnerable to vulnerability attacks: The SNMP protocol itself has some vulnerabilities that attackers can exploit to attack network devices and gain control of the devices.
[0022] Improper configuration can easily lead to intrusion and exploitation: If the SNMP protocol is improperly configured, such as not enabling the authentication and authorization mechanism or using weak passwords, attackers can easily invade network devices, causing serious security consequences.
[0023] Traditional baseline configuration checking methods usually require manual collection and organization of baseline configuration information, which is not only time-consuming and labor-intensive, but also prone to errors. Therefore, there is a lack of an effective method for detecting SNMP network baselines.
[0024] In view of the above defects, the present disclosure proposes a baseline detection method, which comprehensively checks the configuration of the SNMP network baseline of the network device to find the potential safety hazards in the configuration, thereby improving the security and stability of the network device. Figure 1A process 100 according to an embodiment of a baseline detection method of the present disclosure is shown. The baseline detection method comprises the following steps:
[0025] Step 101: Send a version acquisition request including a version identifier to a server configured with a simple network management protocol.
[0026] In this embodiment, the execution subject on which the baseline detection method runs can communicate with the server configured with the simple network management protocol and send a version acquisition request including a version identifier. The protocol for communicating with the server is the simple network management protocol, and the content sent is a request including a version identifier, the purpose of which is to obtain the protocol version of the server.
[0027] In this embodiment, the version acquisition request is a request for obtaining version information, and the version acquisition request includes a version identifier, which is an object identifier for obtaining version information. OID (object identifier) is a system for international data standardization created by ITU (International Telecommunication Union) and ISO (International Organization for Standardization). It is not only used for network monitoring or SNMP, but also a standard for various data, and is a key value with a unique identifier provided by the SNMP agent.
[0028] Step 102: Based on the version response message fed back by the server, detect whether the protocol version of the server is greater than the preset version.
[0029] In this embodiment, when the execution subject receives a version response message from the server, the version response message is parsed to obtain the protocol version of the server. The execution subject on which the baseline detection method runs itself stores a preset protocol version. The execution subject reads the predetermined protocol version from itself, compares the protocol version of the server with the preset protocol version, and detects whether the protocol version of the server is greater than the preset version.
[0030] Optionally, when the protocol version of the server is less than or equal to a preset version, no baseline detection report is generated.
[0031] Step 103, in response to detecting that the protocol version of the server is greater than the preset version, query the authentication encryption information of the user configured on the server.
[0032] In this embodiment, the user configured by the server can be a user who has accessed the server, and the user can include a user who needs to be authenticated on the server, and the user can also include a user who does not need to be authenticated on the server. It should be noted that for a server configured with a simple network management protocol, only a protocol version greater than SNMPv2 has a security mechanism and access control.
[0033] In this embodiment, the authentication and encryption information is information reflecting the user authentication and encryption status. For example, the authentication and encryption information includes: not using authentication and encryption, using authentication but not using encryption, and using authentication and encryption.
[0034] In this embodiment, it is detected that the protocol version of the server is greater than the preset version, and it is necessary to further send a request to the server to query the authentication and encryption information of the user configured on the server. After receiving the request, the server returns a message including the user information. The execution subject parses the user information from the message returned by the server, and further analyzes the user information to obtain the user's authentication level information. For example, the user authentication information is represented by numbers, which are 1: no authentication and encryption, 2: authentication but no encryption, and 3: authentication and encryption.
[0035] Step 104: Based on the authentication encryption information, query the user's encryption algorithm information.
[0036] In this embodiment, the encryption algorithm information is information reflecting the encryption algorithm, and the encryption algorithm information includes: the name of the encryption algorithm, the user of each encryption algorithm, and the encryption principle of each encryption algorithm.
[0037] In this embodiment, the execution subject on which the baseline detection method runs interacts with the SNMP server as a client to obtain the user's configuration information, and further queries the user's encryption algorithm information based on the authentication encryption information. For example: query the snmpAuthProtocols (SNMP message authorization and authentication protocol) object corresponding to the OID path (1.3.6.1.6.3.15.1.2.2.1.5), which contains the SNMP authentication protocol type. By parsing the returned type according to the MIB specification, the authentication encryption algorithm used by the user currently configured by the SNMP server can be obtained. The encryption algorithm is specifically shown in Table 1:
[0038]
[0039] Optionally, after obtaining the encryption algorithm, the execution entity also sets different security levels for different encryption algorithms and gives suggestions based on the encryption algorithm information. If 1.3.6.1.6.3.10.1.1.1 or 1.3.6.1.6.3.10.1.1.2 is returned, it can be concluded that the server-side authentication process is insecure.
[0040] Step 105, generating a baseline detection report based on the protocol version, authentication encryption information and encryption algorithm information.
[0041] In this embodiment, the client interacts with the SNMP server and generates a baseline detection report based on the protocol version obtained in step 101, the authentication encryption information obtained in step 103, and the encryption algorithm information obtained in step 104.
[0042] The baseline detection method provided by the embodiment of the present disclosure first sends a version acquisition request including a version identifier to a server configured with a simple network management protocol; secondly, based on the version response message fed back by the server, detects whether the protocol version of the server is greater than the preset version; thirdly, in response to detecting that the protocol version of the server is greater than the preset version, queries the authentication encryption information of the user configured by the server; then, based on the authentication encryption information, queries the encryption algorithm information of the user; finally, based on the protocol version, authentication encryption information and encryption algorithm information, generates a baseline detection report. Thus, the automated inspection of the baseline configuration is realized, and through the automated baseline configuration inspection, the network management efficiency is improved and the network operation and maintenance cost is reduced.
[0043] Optionally, the above-mentioned baseline detection method may also include: checking whether the message format of the version response message is qualified; responding to the qualified message format; inserting or modifying various fields of the protocol in the message of the message format to detect the response of the server, thereby verifying the server's ability to handle abnormal messages, and adding the detection results to the baseline detection report.
[0044] Optionally, the above-mentioned baseline detection method may also include: sending a TLS (Transport Layer Security) encrypted message of the server's protocol version to the server, and based on the message returned by the server, checking whether the message returned by the server is normal, so as to determine whether the server supports the latest protocol version.
[0045] In some embodiments of the present disclosure, the above method further includes: determining the security level of the user based on the encryption algorithm information; and adding the security level to the baseline detection report.
[0046] In this optional implementation, the security level is a level that reflects different levels of security. The security level can be determined by an encryption algorithm. For example, in Table 1, the security levels include: unsafe, general, and secure.
[0047] In this embodiment, the client sends a query request to a server configured with a simple network management protocol, and then determines the encryption algorithm information based on the message content returned by the server. By searching the corresponding table based on the encryption algorithm information, the security level corresponding to the encryption algorithm information can be obtained, and then the security level of the user corresponding to the encryption algorithm information can be determined. For example, by comparing the contents of Table 1, the security level corresponding to each encryption algorithm can be found, and then the security level is added to the baseline detection report for network management personnel to view.
[0048] The baseline detection method provided by this optional implementation determines the user's security level based on encryption algorithm information, and adds the security level to the baseline detection report, thereby improving the comprehensiveness of the baseline detection report information in terms of encryption security.
[0049] In some embodiments of the present disclosure, the above method further includes: obtaining a configuration file of the server; determining the read and write permission information of the user based on the configuration file; and adding the read and write permission information to the baseline detection report.
[0050] In this embodiment, a configuration file is a file that contains information required for the successful operation of a program. This information is structured in a specific way and is usually stored in a plain text file. They are not hard-coded settings in the program, but are user-configurable, allowing users to customize the behavior of the application according to their needs. Read and write permission information refers to the permission information for reading or writing the configuration file on the server side.
[0051] In this embodiment, the execution subject on which the baseline detection method runs can obtain the configuration file of the server by accessing the corresponding interface of the server or the system installed on the server, determine the user's permission descriptor in the configuration file, and determine users with different permissions and the read and write permission information of each user according to the user's permission descriptor.
[0052] The following are the descriptions of the configuration items in the configuration file:
[0053] Taking the protocol version SNMPv3 as an example, the syntax format in the configuration file is generally: rouser [-sSECMODEL] USER [noauth|auth|priv [OID | -V VIEW CONTEXT]]]; rwuser [-sSECMODEL] USER [noauth|auth|priv [OID | -V VIEW [CONTEXT]]]
[0054]
[0055] By listing the OIDs corresponding to the user permission descriptors, you can find out which users on the server have read and write permissions.
[0056] The baseline detection method provided in this embodiment obtains a configuration file of the server, determines the user's read and write permission information based on the configuration file, and adds the read and write permission information to the baseline detection report, thereby improving the comprehensiveness of the baseline detection report in terms of the user's read and write rights.
[0057] In some embodiments of the present disclosure, the above method also includes: determining a user who does not require authentication and has read and write permissions based on read and write permission information and authentication encryption information; generating authentication configuration prompt information for the user; and adding the authentication configuration prompt information to the baseline detection report.
[0058] In this embodiment, the content of Table 2 is compared with the message to obtain the read and write permission information of each user, wherein the message is the message returned by the server after receiving the request to query the configuration file.
[0059] In this embodiment, the authentication configuration prompt information is used to prompt whether to configure authentication for the user. It should be noted that the authentication configuration prompt information is for users who need to configure authentication. For some users who have not configured authentication and are configured with read and write permissions, it is unsafe for the user to read the information on the server. By prompting the user to configure authentication through the authentication configuration prompt information, the security of the server can be effectively guaranteed.
[0060] In this embodiment, based on the authentication encryption information, it is detected whether each user needs authentication; if it is detected that a user does not need authentication, based on the read and write permission information of the user, it is detected whether the user has read and write permissions; if it is detected that the user has read and write permissions, it is determined that the user does not need authentication and has read and write permissions. This user configuration is unsafe, and authentication configuration prompt information for the user is generated, and the authentication configuration prompt information for the user is added to the baseline detection report.
[0061] The baseline detection method provided in this embodiment generates authentication configuration prompt information for the user after determining a user who does not require authentication and has read and write permissions; the authentication configuration prompt information is added to the baseline detection report, and unsafe users can be marked in the baseline detection report, providing multi-faceted data support for baseline detection.
[0062] In some embodiments of the present disclosure, the above method also includes: sending a usage acquisition request including a usage identifier to a server; in response to receiving a usage response message fed back by the server, determining the CPU usage of the server based on the usage response message; generating CPU check prompt information based on the CPU usage; and adding the CPU check prompt information to the baseline detection report.
[0063] In this embodiment, the CPU usage is the ratio between the workload of the computer's central processing unit (CPU) and its available processing power, and the CPU usage of the server may be the average CPU usage within a specified time period, for example, the average CPU usage within 5 seconds, or the average CPU usage within 5 minutes.
[0064] In this embodiment, the usage acquisition request is a request to the server to obtain the CPU usage within a specified time period. The usage acquisition request includes a usage identifier. The execution entity on which the baseline detection method runs sends the usage identifier to the server. The server queries the average CPU usage within the specified time period based on the usage identifier and returns it to the execution entity.
[0065] In this embodiment, the usage identifier is an object identifier for querying CPU usage. The average CPU usage in a specified time period can be queried through the usage identifier. For example: one usage identifier is 1.3.6.1.4.1.2021.11.9.0 (UCD-SNMP-MIB), which is used to identify the 5-minute average CPU usage of the device, and the return value is a percentage. For another example, another usage identifier is 1.3.6.1.4.1.2021.11.10.0, which is used to identify the average CPU usage for 1 minute; another usage identifier is 1.3.6.1.4.1.2021.11.11.0, which is used to identify the average CPU usage for 5 seconds.
[0066] In this embodiment, the CPU check prompt information refers to information including the CPU usage of the server under different thresholds and the recommended measures when the CPU usage of the server exceeds the threshold. Specific operating indicators, thresholds and recommendations are shown in Table 3:
[0067]
[0068] In Table 3, when the CPU usage of the server exceeds 80%, the CPU check prompt message suggests checking whether there are abnormal processes to optimize resource allocation; when the CPU usage of the server exceeds 90%, the CPU check prompt message suggests restarting certain processes or devices.
[0069] The baseline detection method provided in this embodiment first sends a usage acquisition request including a usage identifier to the server, then determines the CPU usage of the server based on the response message of the CPU usage efficiency of the server, generates CPU check prompt information including the CPU usage, and adds the CPU check prompt information to the baseline detection report. Thus, the CPU usage of the server is determined, and the CPU check prompt information is added to the baseline detection report, providing multi-faceted data support for baseline detection.
[0070] In some embodiments of the present disclosure, the above method also includes: sending a temperature acquisition request including a temperature identifier to the server; in response to receiving a temperature response message fed back by the server, determining the temperature of the server based on the temperature response message; generating temperature prompt information based on the temperature of the server; and adding the temperature prompt information to the baseline detection report.
[0071] In this embodiment, the temperature of the server is the reading of a temperature sensor of the server, and the unit may be millidegrees Celsius.
[0072] In this embodiment, the temperature acquisition request is a request to the server to obtain the reading of the temperature sensor of the device corresponding to the server. The temperature acquisition request includes a temperature identifier. The execution entity on which the baseline detection method runs sends the temperature identifier to the server. The server obtains the reading of the temperature sensor of the device of the server based on the temperature identifier and returns it to the execution entity.
[0073] In this embodiment, the temperature identifier is an object identifier for querying the temperature of the server. The temperature identifier can be used to query the reading of the temperature sensor of the server. For example, a temperature identifier uses 1.3.6.1.4.1.2021.13.16.2.1.3 (UCD-SNMP-MIB) to obtain the temperature sensor reading of the device. The return value is millidegrees Celsius. The return value needs to be divided by 1000 to get the actual temperature value (Celsius).
[0074] Example return value:
[0075] iso.3.6.1.4.1.2021.13.16.2.1.3.1 = Gauge32: 30000 (meaning 30.000 degrees Celsius)
[0076] iso.3.6.1.4.1.2021.13.16.2.1.3.13 = Gauge32: 39850 (meaning 39.850 degrees Celsius)
[0077] In this embodiment, the temperature check prompt information refers to information including the temperature of the server under different thresholds and the recommended measures when the temperature of the server exceeds the threshold. The specific operating indicators and thresholds and the recommended measures are shown in Table 3. In Table 3, when the temperature of the device on the server exceeds 40 degrees Celsius, the temperature prompt information provides recommended measures to take cooling measures, such as adding heat dissipation equipment or reducing workload; when the temperature of the device on the server exceeds 50 degrees Celsius, the temperature prompt information provides recommended measures to take emergency cooling measures, which may require shutting down some devices.
[0078] The baseline detection method provided in this embodiment first sends a temperature acquisition request to the server, then determines the temperature of the server based on the temperature response message of the server, generates temperature check prompt information containing the device, and adds the temperature check prompt information of the device to the baseline detection report.
[0079] The baseline detection method provided in this embodiment determines the temperature of the server and adds temperature check prompt information to the baseline detection report, thereby providing multi-faceted data support for the baseline detection.
[0080] In some embodiments of the present disclosure, the above method also includes: sending a total memory acquisition request including a total memory identifier to the server; sending an available memory acquisition request including an available memory identifier to the server; in response to receiving a total memory response message and an available memory response message feedback from the server, calculating the memory usage rate based on the total memory response message and the available memory response message; generating a memory usage prompt text based on the memory usage rate; and adding the memory usage prompt text to the baseline detection report.
[0081] In this embodiment, the total memory acquisition request is to obtain the total memory of the server from the server, and the total memory acquisition request includes obtaining the total memory identifier of the device. The execution entity on which the baseline detection method runs sends the total memory acquisition request including the total memory identifier to the server. The server obtains the total memory of the server stored in the database based on the total memory identifier in the total memory acquisition request, and returns it to the execution entity in the form of a total memory response message, wherein the total memory response message includes the total memory.
[0082] In this embodiment, the available memory acquisition request is to obtain the available memory of the server from the server, and the available memory acquisition request includes obtaining the available memory identifier of the device. The execution entity on which the baseline detection method runs sends the available memory acquisition request including the available memory identifier to the server. The server obtains the available memory of the server stored in the database based on the available memory identifier in the available memory acquisition request, and returns it to the execution entity in the form of an available memory response message, wherein the available memory is included in the available memory.
[0083] In this embodiment, the execution entity obtains the memory utilization rate by subtracting the available memory in the available memory response message from the total memory in the total memory response message and dividing the result by the total memory, that is, memory utilization rate = (total memory - available memory) / total memory, to obtain the memory utilization rate of the device.
[0084] In this embodiment, the total memory identifier is an object identifier that uniquely obtains the total memory from the server. For example, the total memory identifier 1.3.6.1.4.1.2021.4.5.0 (UCD-SNMP-MIB) is used to obtain the total memory of the device.
[0085] In this embodiment, the available memory identifier is an object identifier for uniquely obtaining available memory from the server. For example, the available memory identifier 1.3.6.1.4.1.2021.4.6.0 (UCD-SNMP-MIB) is used to obtain the available memory of the device.
[0086] In this embodiment, the memory usage prompt information refers to information including the memory usage of the server under different thresholds and the recommended measures when the memory usage of the server exceeds the threshold. The specific operating indicators, thresholds and suggestions are shown in Table 3. When the memory usage of the server exceeds 90%, the memory usage prompt text gives recommended measures to release unnecessary memory resources and check whether there is a memory leak; when the memory usage of the server exceeds 95%, the memory usage prompt text gives recommended measures to immediately release memory, and it may be necessary to restart certain applications or services.
[0087] The baseline detection method provided in this embodiment first sends a total memory acquisition request to the server, and then determines the total memory of the server based on the response message of the total memory of the server. Send an available memory acquisition request to the server, and then determine the available memory of the server based on the response message of the available memory of the server. The memory usage rate of the server is calculated by a formula, and memory check prompt information containing the memory usage rate of the device is generated, and the memory check prompt information of the device is added to the baseline detection report, thereby determining the memory usage rate of the server, and adding the memory check prompt information to the baseline detection report, providing multi-faceted data support for baseline detection.
[0088] The baseline detection method provided by the present disclosure can simultaneously monitor the CPU usage, temperature and memory usage of the server, and draw conclusions about the server's operating status by comprehensively analyzing these operating indicators. This multi-dimensional status detection method significantly improves the efficiency of network management and the reliability of server operation, fills the gap in the existing technology in key status monitoring of equipment during operation, and provides effective support for baseline configuration detection.
[0089] Further references Figure 2 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a baseline detection device, which is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0090] like Figure 2 As shown, the baseline detection device 200 provided in this embodiment includes: an acquisition unit 201, a detection unit 202, an authentication query unit 203, an algorithm query unit 204, and a generation unit 205. The acquisition unit 201 can be configured to send a version acquisition request including a version identifier to a server configured with a simple network management protocol; the detection unit 202 can be configured to detect whether the protocol version of the server is greater than the preset version based on the version response message fed back by the server; the authentication query unit 203 can be configured to query the authentication encryption information of the user configured by the server in response to detecting that the protocol version of the server is greater than the preset version; the algorithm query unit 204 can be configured to query the encryption algorithm information of the user based on the authentication encryption information; the generation unit 205 can be configured to generate a baseline detection report based on the protocol version, the authentication encryption information and the encryption algorithm information.
[0091] In this embodiment, the specific processing of the acquisition unit 201, the detection unit 202, the authentication query unit 203, the algorithm query unit 204, and the generation unit 205 and the technical effects thereof can be referred to respectively. Figure 1 The relevant descriptions of step 101, step 102, step 103, step 104, and step 105 in the corresponding embodiments are not repeated here.
[0092] In some optional implementations of this embodiment, the above-mentioned device 300 also includes: a level determination unit (not shown in the figure), and the above-mentioned level determination unit is configured to determine the user's security level based on encryption algorithm information; and add the security level to the baseline detection report.
[0093] In some optional implementations of this embodiment, the above-mentioned device 300 also includes: a read-write determination unit (not shown in the figure), which is configured to obtain a configuration file of the server; determine the user's read-write permission information based on the configuration file; and add the read-write permission information to the baseline detection report.
[0094] In some optional implementations of the present embodiment, the above-mentioned device 300 also includes: a configuration prompt unit (not shown in the figure), which is configured to determine a user who does not need authentication and has read and write permissions based on read and write permission information and authentication encryption information; generate authentication configuration prompt information for the user; and add the authentication configuration prompt information to the baseline detection report.
[0095] In some optional implementations of this embodiment, the above-mentioned device 300 also includes: an inspection unit (not shown in the figure), which is configured to send a usage acquisition request including a usage identifier to the server; in response to receiving a usage response message fed back by the server, determine the CPU usage of the server based on the usage response message; based on the CPU usage, generate CPU inspection prompt information; and add the CPU inspection prompt information to the baseline detection report.
[0096] In some optional implementations of this embodiment, the above-mentioned device 300 also includes: a temperature control unit (not shown in the figure), which is configured to send a temperature acquisition request including a temperature identifier to the server; in response to receiving a temperature response message fed back by the server, determine the temperature of the server based on the temperature response message; generate a temperature prompt text based on the temperature of the server; and add the temperature prompt text to the baseline detection report.
[0097] In some optional implementations of the present embodiment, the above-mentioned device 300 also includes: a memory control unit (not shown in the figure), the above-mentioned memory control unit is configured to send a total memory acquisition request including a total memory identifier to the server; send an available memory acquisition request including an available memory identifier to the server; in response to receiving a total memory response message and an available memory response message fed back by the server, calculate the memory usage rate based on the total memory response message and the available memory response message; based on the memory usage rate, generate a memory usage prompt text; and add the memory usage prompt text to the baseline detection report.
[0098] The baseline detection device provided by the embodiment of the present disclosure, first, the acquisition unit 201 sends a version acquisition request including a version identifier to the server configured with the simple network management protocol; secondly, the detection unit 202 detects whether the protocol version of the server is greater than the preset version based on the version response message fed back by the server; thirdly, the authentication query unit 203 queries the authentication encryption information of the user configured by the server in response to detecting that the protocol version of the server is greater than the preset version; then, the algorithm query unit 204 queries the encryption algorithm information of the user based on the authentication encryption information; finally, the generation unit 205 generates a baseline detection report based on the protocol version, authentication encryption information and encryption algorithm information. Thus, the automated inspection of the baseline configuration is realized, and through the automated baseline configuration inspection, the network management efficiency is improved and the network operation and maintenance cost is reduced.
[0099] Further references Figure 3 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a baseline detection system. Figure 1 The method embodiments shown correspond.
[0100] like Figure 3 As shown, the baseline detection system 300 provided in this embodiment includes: a client 301 and a server 302 configured with a simple network management protocol, the client 301 is used to send a version acquisition request including a version identifier to the server 302; based on the version response message fed back by the server 302, detect whether the protocol version of the server 302 is greater than the preset version; in response to detecting that the protocol version of the server 302 is greater than the preset version, query the authentication encryption information of the user configured by the server 302; based on the authentication encryption information, query the encryption algorithm information of the user; based on the protocol version, the authentication encryption information and the encryption algorithm information, generate a baseline detection report.
[0101] In this embodiment, in the baseline detection system 300: the specific processing of the client 301 and the technical effects thereof can be referred to respectively. Figure 1 The relevant descriptions of step 101, step 102, step 103, step 104, and step 105 in the corresponding embodiments are not repeated here.
[0102] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0103] Figure 4A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their modes are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0104] like Figure 4 As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0105] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0106] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as the baseline detection method. For example, in some embodiments, the baseline detection method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the baseline detection method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the baseline detection method in any other appropriate manner (e.g., by means of firmware).
[0107] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0108] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable baseline detection device, so that the program code, when executed by the processor or controller, causes the mode / operation specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0109] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0110] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0111] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0112] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0113] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0114] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A baseline detection method, the method include: Sending a version acquisition request including a version identifier to a server configured with a simple network management protocol; Based on the version response message fed back by the server, detecting whether the protocol version of the server is greater than a preset version; In response to detecting that the protocol version of the server is greater than a preset version, querying the authentication encryption information of the user configured on the server; Based on the authentication encryption information, query the encryption algorithm information of the user; Generate a baseline detection report based on the protocol version, the authentication encryption information and the encryption algorithm information; The method further comprises: Determining the security level of the user based on the encryption algorithm information; adding the security level to the baseline detection report; The method further comprises: Obtaining a configuration file of the server; Based on the configuration file, determining the read and write permission information of the user; Adding the read and write permission information to the baseline detection report; the method further comprises: Based on the read-write permission information and the authentication encryption information, determining a user who does not need authentication and has read-write permission; Generate authentication configuration prompt information for the user; The authentication configuration prompt information is added to the baseline detection report.
2. The method according to claim 1, further comprising: include: Sending a usage rate acquisition request including a usage rate identifier to the server; In response to receiving the usage response message fed back by the server, determining the CPU usage of the server based on the usage response message; Based on the CPU usage, generate CPU check prompt information; The CPU check prompt information is added to the baseline detection report.
3. The method according to claim 1, further comprising: include: Sending a temperature acquisition request including a temperature identifier to the server; In response to receiving a temperature response message fed back by the server, determining the temperature of the server based on the temperature response message; Generate a temperature prompt text based on the temperature of the server; The temperature prompt text is added to the baseline detection report.
4. The method according to claim 1, further comprising: include: Sending a total memory amount acquisition request including a total memory amount identifier to the server; Sending an available memory acquisition request including an available memory identifier to the server; In response to receiving the total memory response message and the available memory response message fed back by the server, calculate the memory usage rate based on the total memory response message and the available memory response message; Based on the memory usage rate, generate a memory usage prompt text; The memory usage prompt text is added to the baseline detection report.
5. A baseline detection device, the device include: An acquisition unit, configured to send a version acquisition request including a version identifier to a server configured with a simple network management protocol; A detection unit, configured to detect whether the protocol version of the server is greater than a preset version based on the version response message fed back by the server; an authentication query unit, configured to query authentication encryption information of a user configured on the server in response to detecting that the protocol version of the server is greater than a preset version; an algorithm query unit, configured to query the encryption algorithm information of the user based on the authentication encryption information; A generating unit, configured to generate a baseline detection report based on the protocol version, the authentication encryption information and the encryption algorithm information; Also included is: a level determination unit; the level determination unit is configured to determine the security level of the user based on the encryption algorithm information; and add the security level to the baseline detection report; A read / write determination unit, the read / write determination unit being configured to obtain a configuration file of the server; determine the read / write permission information of the user based on the configuration file; and add the read / write permission information to the baseline detection report; A configuration prompt unit is configured to determine a user who does not need authentication and has read and write permissions based on the read and write permission information and the authentication encryption information; generate authentication configuration prompt information for the user; and add the authentication configuration prompt information to the baseline detection report.
6. A baseline detection system, the system include: Configured with SNMP client and server The client is used to send a version acquisition request including a version identifier to the server; Based on the version response message fed back by the server, detecting whether the protocol version of the server is greater than the preset version; in response to detecting that the protocol version of the server is greater than the preset version, querying the authentication encryption information of the user configured by the server; Based on the authentication encryption information, query the encryption algorithm information of the user; Generate a baseline detection report based on the protocol version, the authentication encryption information and the encryption algorithm information; determine the security level of the user based on the encryption algorithm information; adding the security level to the baseline detection report; Obtaining a configuration file of the server; Based on the configuration file, determining the read and write permission information of the user; Adding the read and write permission information to the baseline detection report; Based on the read-write permission information and the authentication encryption information, determining a user who does not need authentication and has read-write permission; Generate authentication configuration prompt information for the user; The authentication configuration prompt information is added to the baseline detection report.
7. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 4.
