Security control method and system based on independent dynamic password
By generating and dynamically updating privileged account passwords based on basemac in Linux system network devices, the problem of easy leakage of traditional passwords is solved, and high-security, unique and dynamically changing privileged account access control is realized to prevent illegal access and data leakage.
Patent Information
- Application Number
- CN202410830137.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-06
AI Technical Summary
The privileged accounts and passwords of traditional network devices running Linux systems are easily leaked, and security cannot be effectively ensured, resulting in a high risk of illegal access to the device and leakage of important data.
An independent dynamic password is generated based on the device basemac, and the password ciphertext is generated through hash algorithm calculation. Combined with the dynamic factor and the preset update cycle and login status, the privileged account password is dynamically updated to ensure the uniqueness and high strength of the password, only through the designated server. Or obtain it through cloud management.
It greatly improves the security of device privileged accounts, prevents illegal access and tampering, ensures that the privileged account password of each device is unique and changes dynamically, and avoids password prediction and replay attacks.
Smart Images

Figure CN118611960A
Abstract
Description
Technical Field
[0001] The invention relates to network security technology, and in particular to a security control technology based on independent dynamic passwords. Background Art
[0002] Glossary:
[0003] Privileged account: Also known as the Root account, it is the user account with the highest privileges in the Linux system. The Root account has full control over the system and can perform key tasks and operations of the system, such as installing software, modifying system configurations, and accessing sensitive files.
[0004] Ordinary account: A user account that encapsulates a unified configuration command line style and has limited permissions. It can only operate things within the scope of the product manual, such as configuring certain functions and displaying some information.
[0005] In today's network environment, network security has always faced great challenges, and the advancement of hacker technology has also brought greater threats to network security. At the same time, the security of network devices is equally important, especially the security of privileged accounts of network devices running Linux systems. Privileged accounts have the highest operating permissions of the device. Once illegally accessed, the consequences are disastrous. For device manufacturers, the configuration may be modified at the least, and the device system may crash and the device may become bricked; for users, important data leakage and network paralysis are all very serious security issues.
[0006] Furthermore, the privileged account password of traditional network devices running Linux systems generally uses the same password during use. Although the password has a high password strength, the password may be leaked over time, and the security of the privileged account cannot be ensured.
[0007] As described above, in order to cope with these risks, how to effectively enhance the security of privileged accounts is an issue that needs to be urgently addressed in this field. Summary of the invention
[0008] In view of the security problems of device privileged accounts in the existing network system running the Linux system, the purpose of the present invention is to provide a security control solution based on independent dynamic passwords, which can provide an independent and dynamically changing password control solution for the device privileged accounts in the network system, thereby greatly improving the security of the device privileged accounts.
[0009] In order to achieve the above-mentioned objectives, on the one hand, the present invention provides a security control method based on an independent dynamic password. The security control method uses the basemac of the device as a part of the password plaintext to generate an independent password for the device privileged account, and configures dynamic update rules to dynamically generate dynamic factors, and uses the dynamic factors to calculate and update the independent password of the device privileged account.
[0010] In some embodiments of the present invention, the security control method reads the device basemac during the device startup process, and uses the basemac as a part of the password plaintext to generate an independent password for the device privileged account.
[0011] In some embodiments of the present invention, the security control method uses the read basemac as a part of the password plaintext to generate a password ciphertext as the final password string through a hash algorithm.
[0012] In some implementations of the present invention, the security control method configures dynamic update rules by presetting an update period.
[0013] In some implementations of the present invention, the security control method configures dynamic update rules according to the login status of the privileged account.
[0014] In some embodiments of the present invention, the security control method configures the method for obtaining the device privileged access password to be only obtained through a preset designated server, AC or cloud management.
[0015] In order to achieve the above object, the present invention provides a security control system based on independent dynamic passwords, the security control system comprising:
[0016] An independent password generation module, wherein the independent password generation module is configured to generate an independent password for a privileged account of the device using the basemac of the device as a plaintext portion of the password;
[0017] A dynamic factor generation module, wherein the dynamic factor generation module is configured to dynamically generate a dynamic factor according to a set dynamic update rule;
[0018] An independent password updating module is configured to interact with the independent password generating module and the dynamic factor generating module, and can dynamically update the independent password generated by the independent password generating module according to the dynamic factor generated by the dynamic factor generating module.
[0019] In some embodiments of the present invention, the security control system is further provided with an independent password update trigger module, and the independent password update trigger module can be configured with dynamic update rules that trigger the dynamic factor generation module.
[0020] In some embodiments of the present invention, the independent password update trigger module configures dynamic update rules by presetting an update period and / or according to a login status of a privileged account.
[0021] In some embodiments of the present invention, a device privileged access password acquisition module is further provided in the security control system, and the device privileged access password acquisition module is configured to obtain the device privileged access password through a preset designated server, AC or cloud management.
[0022] The solution provided by the present invention innovatively constructs the device privileged account password based on the device basemac, and further realizes dynamic update, which greatly improves the security of the device privileged account and prevents the device from being illegally accessed and tampered with important data. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.
[0024] Figure 1 The present invention is a flowchart of setting independent dynamic passwords for privileged accounts in an example of the present invention.
[0025] Figure 2 This is an operation diagram for obtaining the privileged account password of an AP device through an AC device in an example of the present invention. DETAILED DESCRIPTION
[0026] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below with reference to specific diagrams.
[0027] The privileged account is a super user account of the Linux system. The Linux shell is used to log in to the device with this account. All operations on the device system can be performed, including high-risk operations such as formatting the disk.
[0028] Aiming at the security of privileged accounts of Linux system network devices, the solution of the present invention innovatively generates independent dynamic passwords based on the basemac of the network device, thereby enhancing the security of the privileged accounts.
[0029] Based on this, the present invention constructs a security control method based on independent dynamic passwords, thereby achieving independent and dynamic changes in the access passwords of privileged accounts of various network devices.
[0030] The security control method based on independent dynamic password provided by the present invention takes the basemac of the network device as a part of the password plaintext, and generates an independent password for the privileged account of the network device therefrom; and on this basis, configures dynamic update rules to dynamically generate dynamic factors, and further uses the dynamic factors to calculate and update the independent password of the privileged account of the device, thereby realizing the dynamic change of the independent password.
[0031] As a further explanation, the security control method is preferably configured to read the basemac of each network device during the startup process of each network device, and use the basemac as part of the password plaintext to calculate and generate the initial independent password of each network device privileged account.
[0032] The device basemac here is the mac base address of the network device, and the default mac of the device network port is generated based on basemac.
[0033] For example, the mac corresponding to the nth network port is basemac+n. The basemac of each device is unique in the world and can be used as a device identifier to generate the initial independent password for the privileged account of the network device. This can ensure the independence of the calculated password and avoid duplicate passwords.
[0034] The startup process of each network device described here refers specifically to the first startup of each network device after leaving the factory, and the initial independent password of each network device privileged account generated thereby is the independent default factory password of each network device privileged account.
[0035] As a further explanation, an initial independent password is automatically generated when the network device is started for the first time after leaving the factory, ensuring the uniqueness of the privileged account password of each network device and implementing one code for one machine.
[0036] In some implementations, the network device does not involve dynamic factors when generating the initial password, so that the production line department can test the product. As an example, the network device is configured so that the privileged account password generated within a certain period of time after booting does not involve dynamic factors, so that it is convenient for production line personnel to use production testing software to log in to the device for verification and inspection.
[0037] As a further explanation, in this security control method, when basemac is used as part of the password plaintext to calculate and generate the initial independent password of each privileged account of each network device, it is preferred to use basemac as part of the password plaintext, and calculate the password ciphertext as the final password string through a hash algorithm. The password calculated in this way and the device identification are bound to each other, so that one machine and one code can be achieved to ensure security.
[0038] As an example, this security control method can complete the privileged account password calculation through the following scheme:
[0039] First, convert the basemac character into an integer, perform double-byte addition and left shift operations, and then use mod4096 to calculate the key_string to be used;
[0040] Next, SHA256 encrypts the basemac+dynamic factor (dynamic factor is not involved in the initial password calculation) string and encodes it in Base64. The first 16 characters are intercepted and XORed with key_string according to the ASICII value to obtain the new 16 characters.
[0041] Next, the new 16 characters are checked and the characters that are not in the range of uppercase and lowercase letters, numbers and special characters are added or subtracted to make them fall in the range of uppercase and lowercase letters, numbers and special characters. The final string is the final password string.
[0042] Among them, key_string is 4096 different random strings embedded in the password control program. Each string is 16 characters long and is used to increase the complexity of the password generation process and weaken the regularity of password generation, preventing the password generation logic from being easily copied and simulated, thereby improving the security of the device's privileged account password.
[0043] As a further example, the length of the final password string of the privileged account calculated here is preferably 16 characters, and contains uppercase and lowercase letters, numbers and special characters, which is a high-strength password format. For example, the initial password of the privileged account of the device with basemac of 84:79:73:2c:ac:b8 is nO63CqIrELZ! 2~ae.
[0044] As a further explanation, in the present security control method, for generating an initial independent password, when configuring a dynamic update rule to trigger the dynamic generation of a dynamic factor, the dynamic update rule can be configured by a preset update period.
[0045] According to this dynamic update rule, after generating an initial independent password for a privileged account for a network device, this security control method periodically updates the dynamic factor according to the configuration period, and calculates a new password based on the updated dynamic factor to update the device privileged account access password.
[0046] As an example, the dynamic factor here is generated in the form of a random number. After the new password is calculated according to the aforementioned privileged account password calculation process, the password control program can modify and update the Linux system privileged account password by executing the passwd command to achieve the effect of dynamic password update.
[0047] Here, the dynamic factor is replaced periodically to update the privileged account password, effectively avoiding password prediction and replay attacks.
[0048] As a further explanation, in this security control method, for generating an initial independent password, when configuring a dynamic update rule to trigger the dynamic generation of a dynamic factor, the dynamic update rule is also configured according to the login status of the privileged account.
[0049] According to this dynamic update rule, after generating an initial independent password for a privileged account for a network device, this security control method monitors whether the privileged account is logged in, generates a new dynamic factor based on the login event, and calculates and updates the device privileged account password based on the updated dynamic factor.
[0050] As an example, the account login notification of the Linux bash program is used here to implement the privileged account login trigger event.
[0051] The above solution can be used to calculate and update the device privileged account password based on the updated dynamic factor, and will not be elaborated here.
[0052] Here, password updates are triggered by logging in with a privileged account to ensure that the password is only valid for a certain period of time and becomes invalid upon use.
[0053] As a further explanation, this security control method preferably combines the above two dynamic update rule schemes, that is, simultaneously configuring the periodic replacement of dynamic factors, and instantly triggering the replacement of dynamic factors by monitoring the login status of privileged accounts, thereby further improving the dynamic security of independent passwords of privileged accounts.
[0054] As a further explanation, after this security control method generates a dynamic independent password for a privileged account for a network device, the acquisition of the dynamic independent password for the privileged account of the network device is preferably configured to be only obtainable through a specific server, AC or cloud management, and sent by email, and the destination mailbox must be an internal mailbox.
[0055] In the specific implementation, the interaction between network devices and AC and cloud management network does not directly involve password information, so that only some basemac information is available, and the access password of the privileged account of the network device (that is, the dynamic independent password) cannot be cracked, thereby ensuring the security of the privileged account of the network device.
[0056] Furthermore, the specific server involved here is an internal server in a private network and is not open to the outside world. For devices that are not connected to the cloud, a specific server is used to obtain the privileged account password of the device.
[0057] Furthermore, the obtained access password information is sent here by email, and the target email address is verified to be an internal (bdcom) email address before it is sent, otherwise it will not be sent. At the same time, the email is sent using the SMTPS (SMTP-over-SSL) protocol to prevent email leakage during network transmission.
[0058] The security control method based on independent dynamic password provided by the solution of the present invention can constitute a corresponding software program in specific application to form a corresponding security control system based on independent dynamic password. When the software program is running, it will execute the above-mentioned security control method based on independent dynamic password and store it in the corresponding storage medium for the processor to call and execute.
[0059] The security control system based on independent dynamic password formed in this way mainly includes three functional modules: independent password generation module, dynamic factor generation module and independent password update module.
[0060] The independent password generation module is configured to generate an independent password for a privileged account of the device by using the basemac of the device as a plain text part of the password;
[0061] In coordination therewith, the dynamic factor generation module is configured to dynamically generate dynamic factors according to set dynamic update rules;
[0062] The independent password updating module is configured to interact with the independent password generating module and the dynamic factor generating module data, and can dynamically update the independent password generated by the independent password generating module according to the dynamic factor generated by the dynamic factor generating module.
[0063] In some implementations, an independent password update trigger module is further provided in the security control system, and the independent password update trigger module can be configured with dynamic update rules that trigger the dynamic factor generation module.
[0064] As a further explanation, the independent password update trigger module here configures the dynamic update rules by presetting the update cycle and / or according to the login status of the privileged account.
[0065] The specific implementation scheme for configuring the dynamic update rules by presetting the update cycle and / or according to the login status of the privileged account is as described above and will not be elaborated here.
[0066] In some embodiments, a device privileged access password acquisition module is further provided in the security control system, which is used to safely and effectively obtain the independent dynamic password (i.e., access password) of the network device privileged account after the independent dynamic password of the network device privileged account is set.
[0067] Specifically, the device privileged access password acquisition module is configured to acquire the device privileged access password through a preset designated server, AC or cloud management.
[0068] The security control system based on independent dynamic passwords thus formed can, during operation, implement security control of privileged accounts of network devices through two schemes: setting independent dynamic passwords for privileged accounts of network devices and obtaining independent passwords for privileged accounts of network devices.
[0069] See also Figure 1 , which shows the implementation process of this security control system to perform secure access control on privileged accounts of network devices based on independent dynamic passwords.
[0070] First, when the security control system is implemented, a password control program is formed and configured in the corresponding network device when the network device leaves the factory. In this way, independent dynamic password setting for the device privileged account can be realized based on the password control program.
[0071] In this way, when a network device configured with a password control program is powered on for the first time after leaving the factory, the device basemac is read during the device startup process, and the basemac is used as part of the password plaintext through a hash algorithm to calculate the independent default factory password of the privileged account of the network device.
[0072] On this basis, the dynamic factors are further updated regularly according to the configuration cycle to calculate the new password to update the device privileged account access password. At the same time, the account login notification of the Linux bash program is used to instantly trigger the password update.
[0073] At the same time, during the operation of network equipment, the independent password of the privileged account of the network equipment controlled by the running password control program can only be obtained through a specific server, AC or cloud management.
[0074] For network devices connected to AC or cloud management, the basic information of the device including basemac will be reported to AC or cloud management, and the dynamic factor random number will also be implicitly reported. Based on this, when obtaining the independent password of the privileged account of the network device, it is configured to enter the destination email address by clicking on the hidden page triggered by AC or cloud management WEB, and then the password control program in the background calculates the privileged account password of the corresponding device based on the latest reported information.
[0075] As a further explanation, the AC or cloud management WEB front-end monitors the click action event to trigger the hidden page and the network device corresponding to the click point. After the destination email address is entered and the submit button is clicked, the WEB back-end extracts the email address and the basemac and dynamic factors stored in the database of the corresponding device (click point perception) as parameters to execute the password control program's external commands. After that, the password control program calculates the privileged account password according to the aforementioned privileged account password calculation process.
[0076] For devices that are not connected to AC and not managed by the cloud, a specific server in the private network provides password acquisition services for these devices. Based on this, when obtaining the independent password of the privileged account of the network device, it is configured to provide the show version information of the device, and then the password control program intercepts and converts the show version information, extracts the basemac, dynamic factor random number and other information, and calculates the privileged account password of the device.
[0077] The device show version information described here is the information displayed by executing the showversion command after logging into the device through a common account, wherein the dynamic factor random number is additionally encrypted, and the password control program performs a decryption operation when extracting the dynamic factor random number information.
[0078] As a further explanation, the dynamic factor random number encryption and decryption here uses a simple XOR encryption and decryption algorithm. After the dynamic factor is encrypted, the information is hidden in the version suffix, which confuses illegal users and makes them unable to perceive the generation dependency elements of the privileged password, thereby increasing the security of the privileged password.
[0079] As a further illustration, here is the show version information:
[0080] Router#show versions
[0081] BDCOM Internetwork Operating System Software
[0082] Version 8.2.0Abuild b13.6415(faef60f48c1)
[0083] Model:BIG2000-40
[0084] Serial num:8479730c4e4
[0085] Base mac:84:79:00:0c:4e:01
[0086] Uptime: up 3days, 40minutes.
[0087] As a further example, when obtaining the privileged account password of the device through a specific private network server, first, log in to the network device for which the privileged password needs to be obtained through a normal account, and collect the show version information by executing the show version command; then paste the show version information on the WEB page for obtaining the privileged account password of the device on the specific private network server, and the WEB backend service uses the show version information as a parameter to execute the external command of the password control program, and then the password control program extracts the basemac and dynamic factor information, and calculates the privileged account password according to the aforementioned privileged account password calculation process.
[0088] Furthermore, the password control program sends the generated password information by email. The target mailbox is verified and must be an internal (bdcom) mailbox to receive the password information. The email is sent using the SMTPS (SMTP-over-SSL) protocol to prevent email leakage during network transmission.
[0089] In order to further illustrate the implementation of the scheme of the present invention and the corresponding technical features, the implementation process of the scheme of the present invention is explained by taking examples.
[0090] See also Figure 2 , which shows the WEB page for AC to obtain the privileged account access password of the AP device. By clicking the AP device list multiple times in a row, the corresponding AP password acquisition hidden dialog box is triggered. Enter the internal email in the dialog box and click Submit. If the email address is not an internal email address, the background verification will fail and the password email will not be sent.
[0091] As a further explanation, the WEB front-end implementation effect is as follows Figure 2 As shown, after entering the destination email address and clicking submit, the WEB backend extracts the email address and the basemac and dynamic factors stored in the database of the corresponding device (WEB front-end click perception) as parameters to execute the external command of the password control program;
[0092] Next, the password control program calculates the privileged account password according to the privileged account password calculation process described above, and performs a character string determination on the email address before sending the password information email. If it is an internal email address, the password information email is sent, otherwise the password information email is not sent.
[0093] This not only ensures the security of the password acquisition method, but also confuses illegal users, making them unable to perceive the dependent elements of the privileged password generation, thereby increasing the security of the privileged password.
[0094] The above-mentioned method of the present invention, or a specific system unit, or a part of the same, is a pure software architecture, which can be arranged on a physical medium, such as a hard disk, an optical disk, or any electronic device (such as a smart phone, a computer-readable storage medium) through program code. When the machine loads the program code and executes it (such as a smart phone loading and executing it), the machine becomes a device for implementing the present invention. The above-mentioned method and device of the present invention can also be transmitted in the form of program code through some transmission media, such as cables, optical fibers, or any transmission mode. When the program code is received, loaded and executed by a machine (such as a smart phone), the machine becomes a device for implementing the present invention.
[0095] The above shows and describes the basic principles, main features and advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A security control method based on independent dynamic password, characterized in that: The security control method uses the basemac of the device as a plaintext part of the password to generate an independent password for the device privileged account, configures a dynamic update rule to dynamically generate a dynamic factor, and uses the dynamic factor to calculate and update the independent password of the device privileged account.
2. A security control method based on independent dynamic password according to claim 1, characterized in that: The security control method reads the device basemac during the device startup process, and uses the basemac as a part of the password plaintext to generate an independent password for the device privileged account.
3. A security control method based on independent dynamic password according to claim 1 or 2, characterized in that: The security control method uses the read basemac as a part of the password plaintext to generate a password ciphertext as the final password character string through a hash algorithm.
4. A security control method based on independent dynamic password according to claim 1, characterized in that: In the security control method, dynamic update rules are configured by presetting an update cycle.
5. A security control method based on independent dynamic password according to claim 1, characterized in that: In the security control method, dynamic update rules are configured according to the login status of the privileged account.
6. A security control method based on independent dynamic password according to claim 1, characterized in that: In the security control method, the method for obtaining the device privilege access password is configured to be obtained only through a preset designated server, AC or cloud management.
7. A security control system based on independent dynamic password, characterized in that: The safety control system comprises: An independent password generation module, wherein the independent password generation module is configured to generate an independent password for a privileged account of the device using the basemac of the device as a plaintext portion of the password; A dynamic factor generation module, wherein the dynamic factor generation module is configured to dynamically generate a dynamic factor according to a set dynamic update rule; An independent password updating module is configured to interact with the independent password generating module and the dynamic factor generating module, and can dynamically update the independent password generated by the independent password generating module according to the dynamic factor generated by the dynamic factor generating module.
8. A security control system based on independent dynamic password according to claim 7, characterized in that: The security control system is also provided with an independent password update trigger module, and the independent password update trigger module can be configured with dynamic update rules for triggering the dynamic factor generation module.
9. A security control system based on independent dynamic password according to claim 8, characterized in that: The independent password update trigger module configures dynamic update rules by presetting an update cycle and / or according to the login status of the privileged account.
10. A security control system based on independent dynamic password according to claim 7, characterized in that: The security control system is also provided with a device privileged access password acquisition module, and the device privileged access password acquisition module is configured to obtain the device privileged access password through a preset designated server, AC or cloud management.
