Authentication and authorization method and system based on bastion host
By using automated orchestration technology in the fortress machine to generate temporary operation and maintenance accounts and achieve minimum authority control, the problem of cumbersome authorization management is solved, the operation and maintenance management efficiency and security are improved, and user privacy is protected.
Patent Information
- Application Number
- CN202411303507.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-11-19
AI Technical Summary
The existing bastion machine authorization control management is complicated, which causes the administrator to spend a lot of time and energy, and there is a problem with the high probability of error.
The authentication and authorization method based on the fortress machine is adopted to generate temporary operation and maintenance accounts through automated orchestration technology, and the minimum permission is granted. The user is associated with the temporary account and automatically logged out after the operation and maintenance is completed, realizing one-to-one operation and maintenance event log matching and permission control.
It reduces the workload of repeated operation and maintenance, reduces the probability of management operation and maintenance errors, improves the level of security protection, optimizes log audit strategies, improves operation and maintenance management work efficiency, and effectively protects user privacy.
Smart Images

Figure CN118984249A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network security operation and maintenance auditing, and specifically to an authentication and authorization method and system based on a bastion host. Background Art
[0002] Network security operation and maintenance audit is a comprehensive security management system that aims to achieve security protection for the IT centers of enterprises and institutions through unified operation and maintenance management and auditing of network equipment, databases, security equipment, host systems, middleware and other resources. This system adopts the management process design concept based on authentication, authorization, access, and auditing. Through centralized operation and maintenance control, real-time supervision of the operation and maintenance process, compliance control of operation and maintenance access, and graphical audit of the operation and maintenance process, it has built a security management system for pre-prevention, in-process monitoring, and post-audit. This management system widely meets the operation and maintenance audit specifications of customers in industries such as government, finance, energy, electricity, education, medical care, and central enterprises, and provides comprehensive protection for the safe operation and maintenance of IT centers of enterprises and institutions. The operation and maintenance audit system is also called a bastion host.
[0003] The main security control methods of the bastion host include: identity authentication, account management, authorization control, security audit, etc., among which authorization control mainly involves asset authorization, application authorization, permission isolation, command restriction, multi-dimensional identity authorization, etc. Refined authorization control is the basis for realizing network security operation and maintenance audit. Bastion host administrators often need to spend a lot of time and energy to configure the management rights of each user based on the principle of minimum sufficient. How to complete this work safely and efficiently and reduce the probability of error is the main challenge faced in actual work. Summary of the invention
[0004] The present invention provides an authentication and authorization method and system based on a bastion host, which solves the problem of cumbersome authorization control management of the existing bastion host proposed in the above background technology.
[0005] The present invention provides the following technical solution: an authentication and authorization method based on a bastion host, comprising the following steps: Step 1: Configure the user authorization policy and server super administrator user permissions on the bastion host; Step 2: The user logs in to the bastion host and initiates an operation and maintenance event application; Step 3: The bastion host assigns the user permissions for this operation and maintenance event; Step 4: The bastion host automatically generates a temporary management account with corresponding permissions on the server; Step 5: The bastion host completes the association between the user and the temporary management account; Step 6: After the association is successful, the user starts to perform operation and maintenance operations and simultaneously records the server log; Step 7. After the user completes the work, log out of the bastion host, and the bastion host automatically logs out of the temporary server account.
[0006] Preferably, each operation and maintenance event is matched one-to-one with each temporary account operation log.
[0007] Preferably, the server log records are all temporary account IDs, and without bastion host permissions, users cannot be backtracked and matched from the server side.
[0008] Preferably, the bastion host automatically builds a temporary operation and maintenance account for each operation and maintenance event through automated orchestration technology, and grants the minimum operation and maintenance permissions required for this operation and maintenance operation. The account is automatically deleted after the operation and maintenance is completed. The specific operations are: S1. Create a temporary server operation and maintenance account command script and a bastion host automatic deletion server temporary operation and maintenance account command script; S2. Use operation and maintenance events with mature processing flow to test the created command scripts and optimize the scripts; S3. Save the final script for direct calling by the bastion host.
[0009] Preferably, the bastion host sets user execution command permissions and server super administrator user permissions through a group policy editor.
[0010] Preferably, the bastion host directly associates the temporary management account with the corresponding data area of the server database when completing the process of associating the user with the temporary management account.
[0011] An authentication and authorization system based on a bastion host, including a security domain, a user domain, a management server, and a production domain server; The user domain is used by the bastion host user to send an operation and maintenance event request to the bastion host; The security domain is used to allocate the user's operation and maintenance event permissions according to the configured user authorization policy when the operation and maintenance event request is triggered, and to generate a temporary management account with corresponding permissions through automated orchestration technology to complete the association between the user and the temporary management account; it is used to control and intervene in the operation of the operation and maintenance personnel in real time when the user performs the operation and maintenance operation; and it is used to automatically cancel the temporary management account when the user exits the bastion host; The management server is used by the server super administrator to manage the production domain server cluster; The production domain server is used for users to perform operation and maintenance operations through temporary accounts and to simultaneously record temporary account operation logs.
[0012] Preferably, the user rights of the server super administrator are configured by a bastion host in the security domain.
[0013] Compared with the prior art, the present invention has the following beneficial effects: 1. The authentication and authorization method and system based on the bastion host can reduce the workload of repeated operation and maintenance, reduce the probability of management and operation errors, improve the level of security protection, optimize the log audit strategy, and improve the overall efficiency of operation and maintenance management.
[0014] 2. This authentication and authorization method and system based on the bastion host is implemented through automated orchestration technology. For each operation and maintenance event, a temporary operation and maintenance account is automatically constructed, and the minimum operation and maintenance permissions required for this operation and maintenance operation are granted. The account is automatically deleted after the operation and maintenance is completed. When auditing the operation and maintenance log, each operation and maintenance is accurately matched to achieve minimized permission control and accurate auditing of operation and maintenance events.
[0015] 3. The authentication and authorization method and system based on the bastion host make operation and maintenance safer, effectively avoiding the risk of unauthorized access, and automatically destroying temporary accounts after use to avoid account information leakage. Management is more convenient, and there is no need to maintain a large number of fixed server accounts, or multiple people share a server account. One-to-one automatic matching of temporary accounts is achieved, and management is efficient and convenient. Auditing is more efficient. During log auditing, each operation and maintenance event is matched one-to-one with each temporary account operation log, which is convenient for high-speed retrieval and screening. Privacy protection is better. Server log records are all temporary account IDs. Without bastion host permissions, users cannot be backtracked from the server to match users, protecting user privacy. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of the process flow of an authentication and authorization method based on a bastion host proposed by the present invention; Figure 2 This is a structural diagram of an authentication and authorization system based on a bastion host proposed by the present invention; Figure 3 This is a logic diagram of the authentication and authorization method based on the bastion host proposed by the present invention. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] The present invention provides an authentication and authorization method based on a bastion host, which is implemented through automated orchestration technology. For each operation and maintenance event, a temporary operation and maintenance account is automatically constructed, and the minimum operation and maintenance authority required for this operation and maintenance operation is granted. After the operation and maintenance is completed, the account is automatically deleted. When the operation and maintenance log is audited, each operation and maintenance is accurately matched. Minimized authority control and accurate auditing of operation and maintenance events are achieved.
[0019] The above authentication and authorization method based on the bastion host includes the following steps: Step 1: Configure the user authorization policy and server super administrator user rights on the bastion host. The bastion host can set user execution command permissions and server super administrator user rights through the Group Policy Editor. Step 2: The user logs in to the bastion host and initiates an operation and maintenance event application; Step 3: The bastion host assigns the user the permissions for this operation and maintenance event, which makes operation and maintenance safer and effectively avoids the risk of unauthorized access. Step 4: The bastion host automatically generates a temporary management account with corresponding permissions on the server. Each operation and maintenance event is matched one-to-one with each temporary account operation log, which facilitates high-speed retrieval and screening, and makes management more convenient. There is no need to maintain a large number of fixed server accounts, or multiple people share a server account. Step 5: The bastion host completes the association between the user and the temporary management account. During this process, the bastion host directly associates the temporary management account with the corresponding data area of the server database, so that when the user logs in to the server through the temporary management account, the access efficiency can be improved, and the security of data access can be further improved; Step 6: After the association is successful, the user starts to perform operation and maintenance operations and simultaneously records the server log. The server log records are all temporary account IDs, without bastion host permissions, and the server cannot backtrack to match the user, protecting user privacy; Step 7. After the user completes the work, log out of the bastion host, and the bastion host automatically logs out the temporary server account to avoid account information leakage.
[0020] The bastion host uses automated orchestration technology to automatically create a temporary operation and maintenance account for each operation and maintenance event, and grants the minimum operation and maintenance permissions required for this operation and maintenance operation. The account is automatically deleted after the operation and maintenance is completed. The specific operations are as follows: S1. Create a temporary server operation and maintenance account command script and a bastion host automatic deletion server temporary operation and maintenance account command script; 1. Example of command script for bastion host to automatically create temporary operation and maintenance account for server: Windows system command script example: net user username password / add #Create a new user net localgroup groupname username / add #Add a user to the group icacls file path / deny username:(permissions) You can set user execution command permissions through the Group Policy Editor Linux system command script example: Useradd #Create a user passwd test1 #Use the root user to change the password for ordinary users chown test2:test2 ls # Modify the user and user group Restrict users from executing specific commands by editing the / etc / sudoers file 2. Example of command script for bastion host to automatically delete temporary operation and maintenance account of server: Windows system command script example: net localgroup groupname username / del #Delete a user from the group net user username / del #delete a user Linux system command script example: groupdel #Delete users in the group userdel #Delete user S2. Use operation and maintenance events with mature processing flow to test the created command scripts and optimize the scripts; S3. Save the final script for direct calling by the bastion host.
[0021] The present invention proposes an authentication and authorization system based on a bastion host, including a security domain, a user domain, a management server and a production domain server; The user domain is used by the bastion host user to send an operation and maintenance event request to the bastion host; The security domain is used to allocate the user's operation and maintenance event permissions according to the configured user authorization policy when the operation and maintenance event request is triggered, and to generate a temporary management account with corresponding permissions through automated orchestration technology to complete the association between the user and the temporary management account; it is used to control and intervene in the operation of the operation and maintenance personnel in real time when the user performs the operation and maintenance operation to prevent risk events caused by misoperation or illegal operation; and it is used to automatically cancel the temporary management account when the user exits the bastion host; The management server is used for the server super administrator to manage the production domain server cluster, and the user rights of the server super administrator are configured by the bastion host in the security domain; The production domain server is used for users to perform operation and maintenance operations through temporary accounts and to simultaneously record temporary account operation logs.
[0022] From the above description, it can be seen that the present invention innovatively proposes to create and maintain a special temporary account, and realizes precise control of user permissions through temporary accounts. There is no need to maintain a large number of fixed server accounts, which reduces the workload of repeated operation and maintenance, makes management more convenient, reduces the probability of management and operation errors, and improves the level of security protection; realizes one-to-one automatic matching of temporary accounts, optimizes log audit strategies, and improves the overall efficiency of operation and maintenance management; and server log records are all temporary account IDs, without bastion host permissions, and cannot be traced back from the server to match users, protecting user privacy, and integrating security, efficiency, and convenience.
[0023] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in the field. Although the embodiments of the present invention have been shown and described, it is understood by ordinary technicians in the field that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principle and spirit of the present invention. The scope of the present invention is defined by the attached claims and their equivalents.
Claims
1. A bastion host-based authentication and authorization method, characterized in that: The following steps are involved: Step 1: Configure the user authorization policy and server super administrator user permissions on the bastion host; Step 2: The user logs in to the bastion host and initiates an operation and maintenance event application; Step 3: The bastion host assigns the user permissions for this operation and maintenance event; Step 4: The bastion host automatically generates a temporary management account with corresponding permissions on the server; Step 5: The bastion host completes the association between the user and the temporary management account; Step 6: After the association is successful, the user starts to perform operation and maintenance operations and simultaneously records the server log; Step 7. After the user completes the work, log out of the bastion host, and the bastion host automatically logs out of the temporary server account.
2. According to claim 1, a bastion host-based authentication and authorization method is characterized in that: Each operation and maintenance event is matched one-to-one with each temporary account operation log.
3. According to claim 1, a bastion host-based authentication and authorization method is characterized in that: The server log records are all temporary account IDs. Without bastion host permissions, users cannot be traced back from the server.
4. According to claim 1, a bastion host-based authentication and authorization method is characterized in that: The bastion host uses automated orchestration technology to automatically create a temporary operation and maintenance account for each operation and maintenance event, and grants the minimum operation and maintenance permissions required for this operation and maintenance operation. The account is automatically deleted after the operation and maintenance is completed. The specific operations are as follows: S1. Create a temporary server operation and maintenance account command script and a bastion host automatic deletion server temporary operation and maintenance account command script; S2. Use operation and maintenance events with mature processing flow to test the created command scripts and optimize the scripts; S3. Save the final script for direct calling by the bastion host.
5. According to claim 4, a bastion host-based authentication and authorization method is characterized in that: The bastion host sets user execution command permissions and server super administrator user permissions through the group policy editor.
6. According to claim 1, a bastion host-based authentication and authorization method is characterized in that: When the bastion host completes the process of associating the user with the temporary management account, the temporary management account is directly associated with the corresponding data area of the server database.
7. An authentication and authorization system based on a bastion host according to any one of claims 1 to 6, characterized in that: Includes security domain, user domain, management server and production domain server; The user domain is used by the bastion host user to send an operation and maintenance event request to the bastion host; The security domain is used to allocate the user's operation and maintenance event permissions according to the configured user authorization policy when the operation and maintenance event request is triggered, and to generate a temporary management account of the corresponding permissions through automated orchestration technology to complete the association between the user and the temporary management account; Used to control and intervene in the operations of maintenance personnel in real time when users are performing maintenance operations; and used to automatically log out of temporary management accounts when users log out of the bastion host; The management server is used by the server super administrator to manage the production domain server cluster; The production domain server is used for users to perform operation and maintenance operations through temporary accounts and to simultaneously record temporary account operation logs.
8. According to claim 7, a bastion host-based authentication and authorization system is characterized in that: The user rights of the server super administrator are configured by the bastion host in the security domain.
Citation Information
Cited By
Authorization management method and system based on equipment account and service port, medium and product
CN121188767A
