Method and device for verifying operation and maintenance identity security

By verifying the account and operation instructions of the operation and maintenance personnel, it is ensured that they can only perform operations within the scope of authority, which solves the security problems caused by unclear permissions of the operation and maintenance personnel and improves the security and password of the operation and maintenance work. security.

CN118612096AInactive Publication Date: 2024-09-06北京建恒信安科技有限公司

Patent Information

Application Number
CN202410915828.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When operation and maintenance personnel perform operation and maintenance work, due to unclear division of permissions, they may execute high-risk commands due to excessive permissions, threatening system security and affecting the security of operation and maintenance operations.

Method used

Verify the user's account information to ensure that the user can access the target server, and verify the operation and maintenance instructions initiated by the user to ensure that the user can only perform operations within the scope of his authority, using a preset information table and operation and maintenance instruction table Divide permissions to achieve fine control over operation and maintenance operations.

Benefits of technology

The clear permission division mechanism reduces the risk of misoperation or malicious operation due to unclear permissions, improves the security of operation and maintenance work, and improves the security of passwords and accounts through encryption processing and time monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612096A
    Figure CN118612096A
Patent Text Reader

Abstract

The invention discloses a verification method and device for operation and maintenance identity safety, and relates to the technical field of safety protection. In the method, a target access request sent by a user is received, and the target access request is a request for performing operation and maintenance detection on a target server; acquiring first information; judging whether first information exists in a preset information table or not; when the first information exists in the preset information table, confirming that the user can access the target server; determining a first operation and maintenance instruction according to the target access request; judging whether a first operation and maintenance instruction exists in a preset operation and maintenance instruction list or not; and if the first operation and maintenance instruction exists in the preset operation and maintenance instruction table, executing a corresponding operation according to the first operation and maintenance instruction so as to complete operation and maintenance identity verification of the user. By implementing the technical scheme provided by the invention, the operation behavior of the operation and maintenance personnel is more standard due to the clear permission division, the risk of misoperation caused by unclear permission is reduced, and the safety of the operation and maintenance operation is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of security protection technology, specifically to a method and device for verifying the security of operation and maintenance identities. Background Technology

[0002] In the complex and dynamic environment of network operations and maintenance, ensuring the continuous, stable operation and high availability of various technical infrastructures (including key components such as devices, systems, and networks) constitutes an indispensable core mission for operations and maintenance teams. Operations and maintenance experts are committed to using advanced monitoring technologies, implementing proactive maintenance strategies, and continuously optimizing the technical architecture to build a robust and reliable technical platform, thereby providing solid technical support and assurance for the core business processes of organizations or enterprises.

[0003] However, when performing related maintenance work, due to the lack of clear and explicit definition of permissions, maintenance personnel may execute potentially high-risk commands due to excessively broad permissions when performing critical operations such as server management and network infrastructure configuration. If these operations are performed incorrectly, they will directly threaten the security of the entire system and thus affect the security of maintenance operations.

[0004] Therefore, there is an urgent need for a method and device for verifying the security of operation and maintenance identities that can solve the above-mentioned technical problems. Summary of the Invention

[0005] This application provides a method and apparatus for verifying the security of operation and maintenance identities. The method verifies the user's account information to ensure that the user can access the target server, and then verifies the operation and maintenance instructions initiated by the user to ensure that the user can only perform operations within their authorized scope. This clear division of permissions makes the operation behavior of operation and maintenance personnel more standardized, reduces the risk of misoperation due to unclear permissions, and further improves the security of operation and maintenance operations.

[0006] Firstly, this application provides a method for verifying the security of operation and maintenance (O&M) identity, applied in a server. The method includes: receiving a target access request sent by a user, wherein the target access request is a request to perform O&M testing on a target server, and the target server is any device to be tested; obtaining first information, wherein the first information is the user's corresponding account information; determining whether the first information exists in a preset information table, wherein the preset information table contains the account information corresponding to accessing the target server; if the first information exists in the preset information table, then confirming that the user can access the target server; determining a first O&M instruction based on the target access request; determining whether the first O&M instruction exists in a preset O&M instruction table, wherein the preset O&M instruction table contains executable O&M instructions corresponding to the first account information, and the first account information is the account information corresponding to accessing the target server; if the first O&M instruction exists in the preset O&M instruction table, then executing the corresponding operation according to the first O&M instruction to complete the user's O&M identity verification.

[0007] By adopting the above technical solution, the system receives the target access request sent by the user, obtains the first information, and determines whether the first information exists in the preset information table. This ensures that only authenticated accounts can initiate access requests to the target server. Then, based on the target access request, the system determines the first maintenance instruction. By querying the preset maintenance instruction table, the system verifies whether the first maintenance instruction is allowed to be executed by the user account. This achieves fine-grained control over the first maintenance operation, ensuring that users can only perform operations within their authorized scope. Based on the preset information table and the preset maintenance instruction table, the system can clearly define the access permissions and operation permissions of different accounts. This clear permission division mechanism makes the operation behavior of maintenance personnel more standardized, reduces the risk of misoperation or malicious operation caused by unclear permissions, and further improves the security of maintenance work.

[0008] Optionally, when applied to a server, the method includes: receiving a target access request sent by a user, wherein the target access request is a request to perform operation and maintenance testing on a target server, and the target server is any device to be operated and maintained; obtaining first information, wherein the first information is the user's corresponding account information; determining whether the first information exists in a preset information table, wherein the preset information table is the account information corresponding to accessing the target server; if the first information exists in the preset information table, then confirming that the user can access the target server; determining a first operation and maintenance instruction based on the target access request; determining whether the first operation and maintenance instruction exists in a preset operation and maintenance instruction table, wherein the preset operation and maintenance instruction table is the operation and maintenance instruction that can be executed corresponding to the first account information, wherein the first account information is the account information corresponding to accessing the target server; if the first operation and maintenance instruction exists in the preset operation and maintenance instruction table, then executing the corresponding operation according to the first operation and maintenance instruction to complete the user's operation and maintenance identity verification.

[0009] By adopting the above technical solution, the system receives the user's input of a second account information and a first password information. The second account information is verified to ensure that it is an existing account. The user's input of the first password information is encrypted to generate a first ciphertext, ensuring the security of the password during transmission and storage. The user's input of the first ciphertext is compared with the second ciphertext to verify the correctness of the password. The ciphertext-based verification method ensures the accuracy of the verification and avoids direct comparison of plaintext passwords, further improving the security of the user login process.

[0010] Optionally, when the first ciphertext and the second ciphertext are the same, the login operation is confirmed to be performed so that the user sends the target access request to the server. The method further includes: obtaining the target duration, which is the total duration corresponding to the use of the first password information; determining whether the target duration is less than a preset duration; when the target duration is greater than or equal to the preset duration, confirming to send a change message to the user, the change message being used to prompt the user to change the first password information in a timely manner.

[0011] By adopting the above technical solution, the total time of use of the first password information is monitored to obtain the target duration. The target duration is then compared with the preset duration. When the target duration is greater than or equal to the preset duration, it is confirmed that the user has not changed the password for a long time. Using the same password for a long time increases the risk of the first password information being cracked. By sending a password change message, users are encouraged to change their passwords regularly, thereby reducing the possibility of password being cracked. This further enhances password security and improves users' security awareness and account security.

[0012] Optionally, the first password information is encrypted to obtain the first ciphertext, which specifically includes: Obtain the first password information; obtain the second information corresponding to the user; combine the first password information and the second information to obtain the target combination information; encrypt the target combination information to obtain the first ciphertext.

[0013] By adopting the above technical solution, the first password information is combined with the second information, which increases the difficulty of cracking the password and obtains the target combination information. The target combination information is then encrypted to obtain the first ciphertext. By encrypting the target combination information, the security of the account is effectively enhanced. The entire process is automated, reducing the need for manual operation and further improving the processing speed.

[0014] Optionally, the first password information and the second information are combined to obtain target combined information, specifically including: obtaining target identity information, which is the identity information corresponding to the user; combining the target identity information with the first password information to obtain the first combined information; encrypting the first combined information to obtain the second password information; obtaining the target timestamp, which is the time point corresponding to the receipt of the first password information; combining the second password information with the target timestamp to obtain the second combined information; and outputting the second combined information as the target combined information.

[0015] By adopting the above technical solution, the target identity information is combined with the first password information to obtain the first combined information. The first combined information is then encrypted to generate the second password information. The second password information is then combined with the target timestamp, so that each generated password information is unique and time-related. By introducing the target identity information and the target timestamp, the user's identity and the timeliness of the login request can be accurately verified, which helps to prevent unauthorized access and improve overall security.

[0016] Optionally, after determining whether the first maintenance instruction exists in the preset maintenance instruction table, the method further includes: if the first maintenance instruction does not exist in the preset maintenance instruction table, then confirm that the first maintenance instruction cannot be executed, send a warning message to the user, so as to resend the second maintenance instruction according to the warning message.

[0017] By adopting the above technical solution, the system checks whether the first maintenance instruction exists in the preset maintenance instruction table. When the first maintenance instruction does not exist in the preset maintenance instruction table, it is confirmed that the first maintenance instruction cannot be executed, and a preset prompt message is sent to the user. The user can receive the warning message that the first maintenance instruction cannot be executed in a timely manner and resend the correct second maintenance instruction, thereby reducing errors caused by incorrect instructions.

[0018] Optionally, before determining whether the first maintenance instruction exists in the preset maintenance instruction table, the method further includes: obtaining a target time point, where the target time point is the time point corresponding to receiving the first maintenance instruction; determining the target access method based on the first maintenance instruction; determining whether the target time point exists in the preset time schedule, where the preset time schedule is the time schedule corresponding to the target access method; if the target time point exists in the preset time schedule, then determining whether the first maintenance instruction exists in the preset maintenance instruction table.

[0019] By adopting the above technical solution, the target time point is obtained, the target access method is determined according to the first maintenance instruction, and it is determined whether the target time point exists in the preset time schedule to ensure that the maintenance operation must comply with the preset time limit. After confirming that the target time point exists in the preset time schedule, it is then determined whether the first maintenance instruction exists in the preset maintenance instruction table. By limiting the time of maintenance operation through the preset time schedule, resources can be arranged and scheduled more reasonably, which helps to avoid maintenance operation during unnecessary time periods.

[0020] In a second aspect, this application provides a device for verifying the security of operation and maintenance (O&M) identities. The device is a server, comprising an acquisition unit, a processing unit, and a confirmation unit. The acquisition unit receives a target access request sent by a user, the target access request being a request to perform O&M testing on a target server, the target server being any device to be tested; acquires first information, the first information being the user's corresponding account information; the processing unit determines whether the first information exists in a preset information table, the preset information table being the account information corresponding to accessing the target server; if the first information exists in the preset information table, it confirms that the user can access the target server; determines a first O&M instruction based on the target access request; determines whether a first O&M instruction exists in a preset O&M instruction table, the preset O&M instruction table being the O&M instructions executable corresponding to the first account information, the first account information being the account information corresponding to accessing the target server; and the confirmation unit, if the first O&M instruction exists in the preset O&M instruction table, executes the corresponding operation according to the first O&M instruction to complete the user's O&M identity verification.

[0021] Optionally, the acquisition unit is used to receive the second account information and the first password information input by the user; the processing unit is used to encrypt the first password information to obtain the first ciphertext if the second account information already exists; determine whether the first ciphertext and the second ciphertext are the same, wherein the second ciphertext is the password information corresponding to the second account information that has been stored in advance; and the confirmation unit is used to confirm the execution of the login operation when the first ciphertext and the second ciphertext are the same, so that the user can send a target access request to the server.

[0022] Optionally, the acquisition unit is used to acquire the target duration, which is the total duration corresponding to the use of the first password information; the processing unit is used to determine whether the target duration is less than the preset duration; when the target duration is greater than or equal to the preset duration, the unit confirms sending a replacement message to the user, which is used to prompt the user to replace the first password information in a timely manner.

[0023] Optionally, the acquisition unit is used to acquire first password information; acquire second information corresponding to the user; the processing unit is used to combine the first password information and the second information to obtain target combined information; and encrypt the target combined information to obtain first ciphertext.

[0024] Optionally, the acquisition unit is used to acquire target identity information, which is the identity information corresponding to the user; the processing unit is used to combine the target identity information with the first password information to obtain the first combined information; encrypt the first combined information to obtain the second password information; the acquisition unit is used to acquire the target timestamp, which is the time point corresponding to the receipt of the first password information; the processing unit is used to combine the second password information with the target timestamp to obtain the second combined information, and output the second combined information as the target combined information.

[0025] Optionally, the processing unit is used to confirm that the first maintenance instruction cannot be executed when it is not found in the preset maintenance instruction table, and to send a warning message to the user so that the second maintenance instruction can be resent according to the warning message.

[0026] Optionally, the acquisition unit is used to acquire the target time point, which is the time point corresponding to the receipt of the first maintenance instruction; the processing unit is used to determine the target access method according to the first maintenance instruction; determine whether the target time point exists in the preset time schedule, which is the time schedule corresponding to the target access method; if the target time point exists in the preset time schedule, then determine whether the first maintenance instruction exists in the preset maintenance instruction table.

[0027] In a third aspect, this application provides an electronic device including a processor, a memory, a user interface, and a network interface. The memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory, causing the electronic device to perform any of the methods described above in this application.

[0028] In a fourth aspect, this application provides a computer-readable storage medium storing instructions that, when executed, perform any of the methods described above in this application.

[0029] In summary, one or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages: 1. Receive the target access request sent by the user, obtain the first information, and determine whether the first information exists in the preset information table to ensure that only authenticated accounts can initiate access requests to the target server. Then, determine the first maintenance instruction based on the target access request and verify whether the first maintenance instruction is allowed by the user account by querying the preset maintenance instruction table. This achieves fine-grained control over the first maintenance operation, ensuring that users can only perform operations within their authorized scope. Based on the preset information table and the preset maintenance instruction table, the access permissions and operation permissions of different accounts can be clearly defined. This clear permission division mechanism makes the operation behavior of maintenance personnel more standardized, reduces the risk of misoperation or malicious operation caused by unclear permissions, and further improves the security of maintenance work.

[0030] 2. Receive the user's input of a second account information and a first password information. Verify the second account information to ensure it is an existing account. Encrypt the user's input of the first password information to generate a first ciphertext, ensuring the security of the password during transmission and storage. Compare the user's input of the first ciphertext with the second ciphertext to verify the correctness of the password. The ciphertext-based verification method ensures the accuracy of the verification while avoiding direct comparison of plaintext passwords, further improving the security of the user login process.

[0031] 3. Obtain the target time point, determine the target access method based on the first maintenance instruction, and check whether the target time point exists in the preset time schedule to ensure that the maintenance operation complies with the preset time limit. After confirming that the target time point exists in the preset time schedule, check whether the first maintenance instruction exists in the preset maintenance instruction table. By limiting the time of maintenance operations through the preset time schedule, resources can be arranged and scheduled more reasonably, which helps to avoid maintenance operations during unnecessary time periods. Attached Figure Description

[0032] Figure 1 This is a flowchart illustrating a method for verifying the security of operation and maintenance identities provided in an embodiment of this application; Figure 2 This is a schematic diagram of a verification device for operation and maintenance identity security provided in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application.

[0033] Explanation of reference numerals in the attached drawings: 201, acquisition unit; 202, processing unit; 203, confirmation unit; 300, electronic device; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. Detailed Implementation

[0034] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.

[0035] In the description of the embodiments of this application, the words "for example" or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design that is described as "for example" or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design options. Rather, the use of the words "for example" or "for instance" is intended to present the relevant concepts in a specific manner.

[0036] In the description of the embodiments of this application, the term "multiple" means two or more. For example, multiple systems means two or more systems, and multiple screen terminals means two or more screen terminals. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the indicated technical features. Thus, a feature defined with "first" or "second" may explicitly or implicitly include one or more of that feature. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.

[0037] In the complex and dynamic environment of network operations and maintenance, ensuring the continuous, stable operation and high availability of various technical infrastructures (including key components such as devices, systems, and networks) constitutes an indispensable core mission for operations and maintenance teams. Operations and maintenance experts are committed to using advanced monitoring technologies, implementing proactive maintenance strategies, and continuously optimizing the technical architecture to build a robust and reliable technical platform, thereby providing solid technical support and assurance for the core business processes of organizations or enterprises.

[0038] However, when operations and maintenance personnel perform related operations and maintenance work, the increase in the number of users and the simultaneous maintenance of multiple systems can lead to a lack of clear and explicit definition of permissions. When performing critical operations such as server management and network infrastructure configuration, operations and maintenance personnel may execute potentially high-risk commands due to excessively broad permissions. If these operations are performed incorrectly, they will directly threaten the security of the entire system and thus affect the security of operations and maintenance.

[0039] Therefore, how to solve the problem of poor security in operation and maintenance operations caused by unclear permission division when operation and maintenance personnel perform related operation and maintenance work? This application provides a method for verifying the security of operation and maintenance personnel identities, applied to a server. The server in this application can be a platform providing operation and maintenance services. Figure 1 This is a flowchart illustrating a method for verifying the security of operation and maintenance identities provided in an embodiment of this application. (Refer to...) Figure 1 The method includes the following steps S101-S107.

[0040] S101: Receives a target access request sent by a user. The target access request is a request to perform operation and maintenance testing on a target server. The target server is any device to be operated and maintained.

[0041] In step S101 above, the user submits an operation and maintenance (O&M) test request for the target server through a dedicated O&M management interface. This test request typically includes the target server's identifier (such as IP address and port), the request type (such as CPU test or memory test), and any additional parameters that may be required. The server receives the target access request sent by the user. The user refers to any O&M personnel, the target access request is a request to perform O&M tests on the target server, and the target server is any device to be accessed, meaning it is to be accessed for O&M.

[0042] Furthermore, before receiving a user's target access request, the server must verify the user's identity to ensure that the user is an operations and maintenance (O&M) personnel who can log in to the O&M management interface. Authentication specifically includes: receiving the user's input of a second account and a first password; if the second account already exists, encrypting the first password to obtain a first ciphertext; determining whether the first ciphertext and the second ciphertext are the same, where the second ciphertext is the pre-stored password corresponding to the second account; if they are the same, then confirming the login operation to allow the user to send a target access request to the server. Specifically, on the login interface, the user is required to enter an account (second account information) and a password (first password information). This is typically implemented using an HTML form, where the user enters this information in the corresponding fields. After the user submits the form, the server receives this input data. Using the user-input second account information as a query condition, the server checks the database to see if the account exists. The account in this application refers to the primary account. Each operations and maintenance (O&M) personnel corresponds to one primary account. Based on the O&M personnel's identity, the access permissions corresponding to the primary account are granted to that O&M personnel. The primary account can also be associated with secondary accounts to facilitate authorization association, allowing access to the resources of other secondary accounts based on the primary account. If the query results return a record for the account, it means that the secondary account information already exists. If no record is returned, it means that the secondary account information does not exist, and the user needs to be prompted to perform the corresponding operation (such as the administrator creating a primary account for the user, i.e., registering a new account). The primary password information is then encrypted to obtain the primary ciphertext. If the secondary account information exists, the server encrypts the password entered by the user, i.e., encrypts the primary password information. Encryption is usually performed using a secure hash function or encryption algorithm. The encryption process converts the original password into ciphertext (primary ciphertext) that cannot be directly read. This ciphertext will be used for subsequent comparison operations. The system determines whether the first ciphertext and the second ciphertext are the same. It retrieves the stored ciphertext (second ciphertext) associated with the second account information from the database. The second ciphertext is also obtained by encrypting the stored plaintext password; the encryption method is similar to the encryption process for the first password. This can be done by searching the password field associated with the second account information in the database query results. The first ciphertext generated from the user's input first password is compared with the second ciphertext retrieved from the database. If the first ciphertext and the second ciphertext are the same, the user's input first password is confirmed to be correct. Once the user's input password is confirmed to be correct (i.e., the first ciphertext and the second ciphertext are the same), the login operation is performed. After confirming successful user login, a target access request can be sent by interacting with the server. The entire process ensures that the user must be authenticated before sending a target access request to the server, thereby improving security.If the first ciphertext is different from the second ciphertext, the user's password is considered incorrect, and the user needs to re-enter the password information so that the re-entered password information can be verified again.

[0043] Furthermore, how to encrypt the first password information? Obtaining the first ciphertext specifically includes: acquiring the first password information; acquiring the user's corresponding second information; combining the first password information and the second information to obtain the target combined information; and encrypting the target combined information to obtain the first ciphertext. Specifically, when a user logs in or performs password-related operations, the password entered by the user is acquired, i.e., the first password information. After the user completes the input, the first password information can be submitted to the server. After the user enters the first password information, the second information associated with the user is acquired. The second information is any unique identifier or additional information of the user, such as the user's email address, mobile phone number, user ID, or other information closely related to the user's account. This information should be unique enough to increase the complexity of the encryption process. The first password information and the second information are then combined. The combination method can be a simple string concatenation or a more complex algorithm, such as interleaving the first password information and the second information, using delimiters, etc. The combined information is the target combined information, which will be used as the input for encryption to increase the security of password storage and verification. Encrypting the target combination information yields the first ciphertext. A national cryptographic algorithm can be selected. National cryptographic algorithms, also known as Chinese cryptographic algorithms, refer to a series of cryptographic standards formulated and promulgated by the State Cryptography Administration. These algorithms are nationally recognized domestic cryptographic algorithms, designed to ensure the secure transmission of important national information in fields such as finance and healthcare. National cryptographic algorithms include various types, such as SM1, SM2, SM3, SM4, SM7, and SM9, each with its specific application scenarios and security characteristics. Encryption algorithms, such as SM4, are block symmetric key algorithms where plaintext, key, and ciphertext are all 16 bytes (128 bits). Encryption and decryption are achieved through a non-linear iterative round function with 32 iterations, offering high efficiency and security. Digital signature and key exchange algorithms, such as SM2, are public-key cryptographic algorithms based on elliptic curve cryptography, used for digital signatures, key negotiation, and encryption / decryption, offering high security and computational efficiency. Hash algorithms, such as SM3, are cryptographic hash functions with an output length of 256 bits, used to ensure data integrity and authenticity. The selected encryption algorithm is used to encrypt the target combination information to generate the first ciphertext. After encryption is complete, the generated first ciphertext is stored in the database, replacing the original password information.

[0044] Furthermore, the process of combining the first password information with the second information to obtain the target combined information includes: obtaining the target identity information, which is the user's identity information; combining the target identity information with the first password information to obtain the first combined information; encrypting the first combined information to obtain the second password information; obtaining the target timestamp, which is the time point corresponding to the receipt of the first password information; combining the second password information with the target timestamp to obtain the second combined information; and outputting the second combined information as the target combined information. Specifically, when the user inputs a username as a query condition, the database queries the corresponding user record, and the user's identity information is extracted from the query results. The identity information can be the username itself, user ID, email address, or mobile phone number, depending on the user's design and requirements. After obtaining the user's target identity information, it is combined with the first password information. The combination method can be a simple string concatenation or a more complex algorithm, such as interleaving the identity information and password information using separators. The combined information constitutes the first set of information, which will serve as the input for encryption to enhance the security of password storage and verification. A secure encryption algorithm is chosen to encrypt the first set of information. Common encryption algorithms include AES, RSA (although RSA is typically used to encrypt smaller blocks of data or keys, rather than directly encrypting large amounts of data), and algorithms specifically designed for password storage such as bcrypt. The first set of information is then encrypted using the selected encryption algorithm to generate the second set of password information. When the server receives the first set of password information from the user, it records the current time. This time can be the server's time or a synchronized, accurate time. The current time is then converted to a timestamp format. A timestamp is typically an integer representing the number of seconds or milliseconds since a specific point in time, but in this case, it can be understood as a time period. The second set of password information is then combined with the target timestamp. This combination can be done through simple string concatenation or by using delimiters. The resulting information is the second set of information, which contains the encrypted password information and the timestamp, and can be used for subsequent verification or storage. The second combination of information is then output as the target combination of information for encryption to obtain the first ciphertext. In this application, since the time point corresponding to the user's input of the first password information is unique, after obtaining the target timestamp, the second ciphertext, which is encrypted with the password information pre-stored in the database, is obtained. The first timestamp for combining the second ciphertext is then obtained. Since the generation method of the second ciphertext is the same as that of the first ciphertext, i.e., the pre-stored password information is first obtained, and the pre-stored password information is combined with the target identity information to obtain the third combination of information. The third combination of information is then encrypted to obtain the third password information.Next, compare the first timestamp with the target timestamp. If the target timestamp is different from the first timestamp, the target timestamp must be replaced with the first timestamp. Then, recombine it with the third password information and encrypt the combined information to obtain the latest second ciphertext. That is, when comparing the first ciphertext and the second ciphertext, the time period corresponding to the target timestamp must be monitored at all times to determine whether the second ciphertext stored in the database is the latest password based on the time period.

[0045] For example, when the server receives the first password information input by the user (the first password information is D), it obtains the time corresponding to the receipt of the first password information and determines whether the current time is within a preset time period, which is the timestamp corresponding to the generation of the second ciphertext. If the current time is within the preset time period, it confirms that the current time is converted into the target timestamp. The user's ID is obtained; the ID address is 3524852, meaning the ID address corresponds to the user's target identity information. The first password information is combined with the target identity information by simple concatenation, resulting in the first combined information, D3524852. This first combined information is then encrypted to obtain the second password information, Y. The target timestamp t corresponding to the preset time period is then obtained. The second password information Y is combined with the target timestamp t to obtain the second combined information YT. This second combined information is then encrypted to obtain the first ciphertext Z. Since the second ciphertext H, which is pre-stored in the database, is also obtained by encrypting the pre-stored password information based on the above steps, the first ciphertext and the second ciphertext are compared to determine whether the user's identity information has been verified correctly.

[0046] In one possible implementation, the system monitors the duration of the user's initial password information usage and promptly reminds the user to change the password when needed, thereby improving system security. The process involves: obtaining a target duration, which is the total duration of using the initial password information; determining if the target duration is less than a preset duration; and confirming that a password change message is sent to the user when the target duration is greater than or equal to the preset duration, prompting the user to change the initial password information. Specifically, the system records the first time the user initially enters the initial password information, then obtains the current time. The total duration of using the initial password information, i.e., the target duration, is calculated by comparing the current time with the first time. Alternatively, the system can record the current time when the user logs in or completes an operation, and compare and accumulate this time with the previously recorded time. The system then determines if the target duration is less than the preset duration, which is used to determine whether the initial password information needs to be changed. This preset duration can be set according to the device's security policy and industry standards. Finally, the system compares the read target duration with the preset duration. If the target duration is less than the preset duration, the initial password information is confirmed to be secure and does not need to be changed. If the target duration is greater than or equal to the preset duration, it is considered that the initial password information has been used for a relatively long time and is at risk of being cracked. Therefore, the user needs to be prompted to change the password. Once it is determined that the user needs to change the password, a change message will be generated. This message should clearly inform the user of the initial password information and the fact that it has been used for a relatively long time, and suggest that the user change it as soon as possible.

[0047] For example, the preset duration can be set to 90 days. The target duration corresponding to the first password information is obtained. If the target duration is 92 days, and the target duration is longer than the preset duration, it is confirmed that the first password information is at risk of being cracked. A replacement message is sent to the user so that the user can change the first password information according to the replacement message.

[0048] S102: Obtain the first information, which is the user's corresponding account information.

[0049] In S102 above, when the server receives the target access request sent by the user, it extracts the user's account information when the user submits the target access request. The account information usually includes unique identifiers such as username and user ID.

[0050] S103: Determine whether the first information exists in the preset information table. The preset information table contains the account information corresponding to the target server.

[0051] In step S103 above, it is determined whether the first information exists in the preset information table. The preset information refers to a database table that stores the account information of all authorized users who can access the target server to perform specific operations. Since the target access request is a request for operation and maintenance testing of the target server, the preset information table is constructed based on the information of multiple accounts that can normally access the target server. The extracted first information is used as a query condition to query the preset information table. If the first information exists in the query results, it is confirmed that the user has the right to access the target server. Having the right to access the target server means that the user has the right to connect to the port corresponding to the target server.

[0052] S104: If the first information exists in the preset information table, then it is confirmed that the user can access the target server.

[0053] In step S104 above, if the first piece of information is confirmed to exist in the preset information table, the user is considered to have permission to access the target server. Conversely, if the first piece of information is not present in the preset information table, the user is deemed not to have permission to connect to the port corresponding to the target server, the user's request to access the target server is rejected, and an error message is returned to the user.

[0054] S105: Determine the first maintenance instruction based on the target access request.

[0055] In step S105 above, the target access request is further parsed to determine the operation and maintenance operation (i.e., the first operation and maintenance instruction) that the user wants to perform. Based on the parsing result, the corresponding operation and maintenance instruction is generated. The operation and maintenance instruction includes file operation instructions, process management instructions, disk and file system instructions, system and user management instructions, network and service instructions, and database operation instructions. File operation instructions include downloading files, viewing file content, moving and deleting files; process management instructions include viewing processes and terminating processes; disk and file system instructions include viewing disk space and mounting disks; system and user management instructions include adding users and modifying user permissions; network and service instructions include viewing network status and managing services; and database operations include MySQL database operations.

[0056] Furthermore, after determining the first maintenance instruction, the target time point corresponding to the user is obtained, and it is determined whether the target time point exists in the preset time schedule corresponding to the target access method, in order to determine whether the first maintenance instruction can be executed within the target time point. Specifically, this includes: obtaining the target time point, which is the time point corresponding to the receipt of the first maintenance instruction; determining the target access method based on the first maintenance instruction; determining whether the target time point exists in the preset time schedule, which is the time schedule corresponding to the target access method; if the target time point exists in the preset time schedule, then determining whether the first maintenance instruction exists in the preset maintenance instruction table. Specifically, upon receiving the first maintenance instruction sent by the user, the current time point is automatically recorded as the target time point, which can be accurate to the second to ensure accuracy. The recorded time point can also be formatted for subsequent comparison and querying. The target access method is determined based on the first maintenance instruction, and the first maintenance instruction is parsed to determine its type and intent, typically involving analysis of the instruction content, which may include the instruction ID, name, and parameters. A mapping table can be constructed to map different types of maintenance instructions to corresponding target access methods. The target access method may refer to the network protocol, API port, and command-line interface required for executing the first maintenance command. Based on the parsing results and mapping table, the target access method associated with the first maintenance command is determined. It is then determined whether a target time point exists in the preset schedule. Based on the target access method, the corresponding preset schedule is determined. This preset schedule may be a database table used to record the time periods or specific times during which specific types of maintenance commands are allowed to be executed. The target time point is compared with the time records in the preset schedule to ensure that it falls within the allowed time range for executing the first maintenance command, or is within a specific allowed time point. Based on the comparison results, it is determined whether the target time point exists in the preset schedule. If the target time point is within the allowed time range, it is considered to exist. If the target time point is not within the allowed time range, it is considered not to exist. If the target time point exists in the preset schedule, the target access method is confirmed to be within the preset schedule, meaning the user can access the target server using the target access method at the target time point.

[0057] S106: Determine whether a first maintenance instruction exists in the preset maintenance instruction table. The preset maintenance instruction table consists of the maintenance instructions that can be executed corresponding to the first account information. The first account information is the account information corresponding to the target server.

[0058] In step S106 above, after determining that the target time point falls within a preset time schedule, it is checked whether a first maintenance instruction exists in the preset maintenance instruction table. The preset maintenance instruction table lists executable maintenance instructions corresponding to the first account information. The first account information refers to the account information corresponding to the user who can access the target server; in this case, the first account information can be understood as the user's account information. The preset maintenance instruction table is a table that stores the mapping relationship between user accounts and executable maintenance instructions, defining which maintenance instructions a given account can execute. The first maintenance instruction is used as the query condition to search the preset maintenance instruction table.

[0059] S107: If a first maintenance instruction exists in the preset maintenance instruction table, then the corresponding operation is executed according to the first maintenance instruction in order to complete the user's maintenance identity verification.

[0060] In step S107 above, when a first maintenance instruction exists in the preset maintenance instruction table, the user is confirmed to have the right to execute the first maintenance instruction, and the corresponding server or script is invoked to execute the first maintenance instruction. The execution log of the first maintenance instruction is recorded, including execution time, execution result, and other information, for subsequent auditing and tracking. The user's maintenance identity verification process is complete, and the user can securely execute authorized maintenance operations. The entire process, from receiving the target access request sent by the user to executing the first maintenance instruction, ensures that only authorized users can perform maintenance checks on the target server.

[0061] Furthermore, if the first maintenance instruction does not exist in the preset maintenance instruction table, it is confirmed that the first maintenance instruction cannot be executed, and a warning message is sent to the user so that the second maintenance instruction can be resent based on the warning message. Specifically, the first maintenance instruction is used as a query condition to search for a matching record in the preset maintenance instruction table. If the first maintenance instruction does not exist in the preset maintenance instruction table, it is confirmed that the user does not have permission to execute the first maintenance instruction on the target server, and a warning message is generated to inform the user that the first maintenance instruction cannot be executed and to explain the reason. The warning message can be sent to the user using an appropriate communication method (such as email, SMS, instant messaging, etc.), and the sending method can depend on the user's preferences and system configuration. After receiving the warning message, the user can resend the second maintenance instruction based on the warning message. The second maintenance instruction is a modified instruction based on the warning message. The server parses the second maintenance instruction sent by the user again and repeats the above query and judgment process to ensure the validity and executability of the instruction. If the second maintenance instruction is executed and the execution conditions are met, the second maintenance instruction will be executed, and the execution result will be returned to the user.

[0062] This application also provides a device for verifying the identity of operation and maintenance personnel. Figure 2This is a schematic diagram of a verification device for operation and maintenance identity security provided in an embodiment of this application. (Refer to...) Figure 2 The device is a server, which includes an acquisition unit 201, a processing unit 202, and a confirmation unit 203.

[0063] The acquisition unit 201 receives a target access request sent by the user. The target access request is a request to perform operation and maintenance testing on a target server. The target server is any device to be operated and maintained. The first information is the user's account information.

[0064] Processing unit 202 determines whether first information exists in a preset information table, where the preset information table contains account information corresponding to the target server; if first information exists in the preset information table, it confirms that the user can access the target server; determines a first maintenance instruction based on the target access request; and determines whether a first maintenance instruction exists in a preset maintenance instruction table, where the preset maintenance instruction table contains executable maintenance instructions corresponding to the first account information, where the first account information is the account information corresponding to the target server.

[0065] If the first maintenance instruction exists in the preset maintenance instruction table, the confirmation unit 203 will execute the corresponding operation according to the first maintenance instruction in order to complete the user's maintenance identity verification.

[0066] In one possible implementation, the acquisition unit 201 is used to receive the second account information and the first password information input by the user; the processing unit 202 is used to encrypt the first password information to obtain the first ciphertext if the second account information already exists; determine whether the first ciphertext and the second ciphertext are the same, wherein the second ciphertext is the password information corresponding to the second account information that has been stored in advance; and the confirmation unit 203 is used to confirm the execution of the login operation when the first ciphertext and the second ciphertext are the same, so that the user can send a target access request to the server.

[0067] In one possible implementation, the acquisition unit 201 is used to acquire the target duration, which is the total duration corresponding to the use of the first password information; the processing unit 202 is used to determine whether the target duration is less than a preset duration; when the target duration is greater than or equal to the preset duration, it confirms that a replacement message is sent to the user, which is used to prompt the user to replace the first password information in a timely manner.

[0068] In one possible implementation, the acquisition unit 201 is used to acquire first password information; acquire second information corresponding to the user; the processing unit 202 is used to combine the first password information and the second information to obtain target combination information; and encrypt the target combination information to obtain first ciphertext.

[0069] In one possible implementation, the acquisition unit 201 is used to acquire target identity information, which is the identity information corresponding to the user; the processing unit 202 is used to combine the target identity information with the first password information to obtain the first combined information; encrypt the first combined information to obtain the second password information; the acquisition unit 201 is used to acquire the target timestamp, which is the time point corresponding to receiving the first password information; the processing unit 202 is used to combine the second password information with the target timestamp to obtain the second combined information, and output the second combined information as the target combined information.

[0070] In one possible implementation, the processing unit 202 is used to confirm that the first maintenance instruction cannot be executed when the first maintenance instruction does not exist in the preset maintenance instruction table, and send a warning message to the user so that the second maintenance instruction can be resent according to the warning message.

[0071] In one possible implementation, the acquisition unit 201 is used to acquire a target time point, which is the time point corresponding to receiving the first maintenance instruction; the processing unit 202 is used to determine the target access method according to the first maintenance instruction; determine whether the target time point exists in the preset time schedule, which is the time schedule corresponding to the target access method; if the target time point exists in the preset time schedule, then determine whether the first maintenance instruction exists in the preset maintenance instruction table.

[0072] It should be noted that the above embodiments of the apparatus are only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0073] This application also discloses an electronic device. (See reference...) Figure 3 , Figure 3 This application provides a schematic diagram of the structure of an electronic device. The electronic device 300 may include: at least one processor 301, at least one network interface 304, a user interface 303, a memory 305, and at least one communication bus 302.

[0074] The communication bus 302 is used to enable communication between these components.

[0075] The user interface 303 may include a display screen and a camera. Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0076] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0077] The processor 301 may include one or more processing cores. The processor 301 connects to various parts of the server using various interfaces and lines, and performs various server functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 305, and by calling data stored in the memory 305. Optionally, the processor 301 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 301 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and application requests; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 301 and may be implemented as a separate chip.

[0078] The memory 305 may include random access memory (RAM) or read-only memory. Optionally, the memory 305 may include a non-transitory computer-readable storage medium. The memory 305 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 305 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), instructions for implementing the various method embodiments described above, etc.; the data storage area may store data involved in the various method embodiments described above, etc. Optionally, the memory 305 may also be at least one storage device located remotely from the aforementioned processor 301.

[0079] like Figure 3 As shown, the memory 305, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an application program for verifying the identity and security of maintenance personnel.

[0080] exist Figure 3 In the electronic device 300 shown, the user interface 303 is mainly used to provide an interface for users to input data and obtain user input data; while the processor 301 can be used to call the application program stored in the memory 305 for verifying the security of operation and maintenance identity. When executed by one or more processors, the electronic device performs one or more of the methods described in the above embodiments.

[0081] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

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

[0083] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, 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 couplings, direct couplings, or communication connections may be through some service interfaces; indirect couplings or communication connections between devices or units may be electrical or other forms.

[0084] 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 network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0085] Furthermore, the functional units in the various embodiments of this application 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.

[0086] 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 device (CMD). Based on this understanding, the technical solution of this application, 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 memory 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 this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, portable hard drives, magnetic disks, or optical disks.

[0087] The above description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Those skilled in the art will readily conceive of other embodiments of this disclosure upon considering the specification and the disclosure of practical truths. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described in this disclosure.

Claims

1. A method for verifying the security of operation and maintenance identity, characterized in that: Applied in a server, the method comprises: Receive a target access request sent by a user, where the target access request is a request for operation and maintenance detection of a target server, where the target server is any device to be operated and maintained; Acquire first information, where the first information is account information corresponding to the user; Determine whether the first information exists in a preset information table, where the preset information table is account information corresponding to accessing the target server; When the first information exists in the preset information table, confirming that the user can access the target server; Determining a first operation and maintenance instruction according to the target access request; Determine whether the first operation and maintenance instruction exists in a preset operation and maintenance instruction table, where the preset operation and maintenance instruction table is an executable operation and maintenance instruction corresponding to the first account information, and the first account information is account information corresponding to accessing the target server; If the first operation and maintenance instruction exists in the preset operation and maintenance instruction table, a corresponding operation is performed according to the first operation and maintenance instruction to complete the operation and maintenance identity verification of the user.

2. The method according to claim 1, characterized in that Before receiving the target access request sent by the user, the method further includes: Receiving the second account information and the first password information input by the user; If the second account information already exists, encrypt the first password information to obtain a first ciphertext; Determining whether the first ciphertext is identical to a second ciphertext, where the second ciphertext is pre-stored password information corresponding to the second account information; When the first ciphertext is identical to the second ciphertext, it is confirmed that a login operation is performed so that the user sends the target access request to the server.

3. The method according to claim 2, characterized in that After confirming that the login operation is performed when the first ciphertext is the same as the second ciphertext, so that the user sends the target access request to the server, the method further includes: Obtaining a target duration, where the target duration is a total duration corresponding to using the first password information; Determine whether the target duration is less than a preset duration; When the target duration is greater than or equal to the preset duration, it is confirmed that a change information is sent to the user, where the change information is used to prompt the user to change the first password information in a timely manner.

4. The method according to claim 2, characterized in that: The encrypting the first password information to obtain a first ciphertext specifically includes: Obtaining the first password information; Acquire second information corresponding to the user; Combining the first password information with the second information to obtain target combination information; The target combination information is encrypted to obtain the first ciphertext.

5. The method according to claim 4, characterized in that The combining the first password information with the second information to obtain target combination information specifically includes: Acquire target identity information, where the target identity information is identity information corresponding to the user; Combining the target identity information with the first password information to obtain first combination information; Encrypting the first combination information to obtain second password information; Obtaining a target timestamp, where the target timestamp is a time point corresponding to receiving the first password information; The second password information is combined with the target timestamp to obtain second combined information, and the second combined information is output as the target combined information.

6. The method according to claim 1, characterized in that After determining whether the first operation and maintenance instruction exists in the preset operation and maintenance instruction table, the method further includes: When the first operation and maintenance instruction does not exist in the preset operation and maintenance instruction table, it is confirmed that the first operation and maintenance instruction cannot be executed, and a warning prompt information is sent to the user so that a second operation and maintenance instruction can be resent according to the warning prompt information.

7. The method according to claim 1, characterized in that Before determining whether the first operation and maintenance instruction exists in the preset operation and maintenance instruction table, the method further includes: Obtaining a target time point, where the target time point is a time point corresponding to receiving the first operation and maintenance instruction; Determining a target access mode according to the first operation and maintenance instruction; Determine whether the target time point exists in a preset schedule, where the preset schedule is a schedule corresponding to the target access mode; If the target time point exists in the preset time table, it is determined whether the first operation and maintenance instruction exists in the preset operation and maintenance instruction table.

8. A device for verifying the security of operation and maintenance identity, characterized in that: The device is a server, and the server comprises an acquisition unit (201), a processing unit (202) and a confirmation unit (203); The acquisition unit (201) receives a target access request sent by a user, wherein the target access request is a request for operation and maintenance detection of a target server, and the target server is any device to be operated and maintained; Acquire first information, where the first information is account information corresponding to the user; The processing unit (202) determines whether the first information exists in a preset information table, wherein the preset information table is account information corresponding to accessing the target server; When the first information exists in the preset information table, confirming that the user can access the target server; Determine a first operation and maintenance instruction according to the target access request; determine whether the first operation and maintenance instruction exists in a preset operation and maintenance instruction table, the preset operation and maintenance instruction table is an executable operation and maintenance instruction corresponding to the first account information, and the first account information is the account information corresponding to accessing the target server; The confirmation unit (203) performs a corresponding operation according to the first operation and maintenance instruction if the first operation and maintenance instruction exists in the preset operation and maintenance instruction table, so as to complete the operation and maintenance identity verification of the user.

9. An electronic device, characterized in that: The electronic device (300) comprises a processor (301), a memory (305), a user interface (303) and a network interface (304), wherein the memory (305) is used to store instructions, the user interface (303) and the network interface (304) are used to communicate with other devices, and the processor (301) is used to execute the instructions stored in the memory (305) so that the electronic device (300) executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.

Citation Information

Patent Citations

  • Authentication method and system and terminal equipment

    CN110266653A

  • Operation and maintenance auditing method and device and medium

    CN112383524A

  • Operation and maintenance system login verification method, device and equipment and computer storage medium

    CN112651011A

  • Service access method and system, storage medium and terminal

    CN118264420A

Cited By

  • Service flow switching method and related device

    CN119211370A

  • Field operation and maintenance management and control method, system, equipment and medium

    CN119520317A