Secondary equipment operating system security configuration tool and method
Through the secondary device operating system security configuration tool, the graphical interface and dynamic permission management module are used to solve the problems of configuration complexity and static protection, and efficient and secure parameter configuration and permission management are realized to adapt to multiple security in complex environments. threaten.
Patent Information
- Application Number
- CN202411101714.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-12-03
AI Technical Summary
The existing operating system has unsafe parameter configuration during the installation and operation of secondary equipment, and is complex and static, making it difficult to adapt to the changing security needs during the system operation, resulting in safety hazards and configuration errors.
Provides a security configuration tool for operating system of secondary equipment, including graphical interface, operation mode management module and dynamic permission management module. By detecting the initial configuration parameters recommended by the system environment, it supports operation mode switching and configuration backup and recovery, and realizes dynamic security protection and permissions. manage.
Improve configuration efficiency and security, ensure personalization and reversibility of parameter configuration, dynamic management permissions, reduce configuration errors, and adapt to multiple security threats in complex environments.
Smart Images

Figure CN119065726A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of system operation security protection, and in particular relates to a secondary device operating system security configuration tool and method. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] Secondary devices are widely used in power systems, communication systems and other industrial control systems. These devices are usually responsible for data collection, processing and transmission, and their operational stability and data security are crucial. Since the operating system of secondary devices needs to run in various complex environments and faces multiple security threats from the network, physical and operational levels, ensuring their security during installation and operation has become an urgent issue to be resolved.
[0004] The security protection of the operating system is a key link to ensure the stable and safe operation of the computer system. In modern computer systems, the security protection function of the operating system is implemented through multiple independent modules, including user identity authentication, access control, audit tracking, etc.
[0005] However, the existing operating system security protection mechanism has some obvious deficiencies, as shown below: Configuration complexity: The existing operating system lacks a unified configuration tool during installation and initialization. Administrators need to manually configure a large number of security policies and permission settings, which not only increases the complexity of configuration, but also easily leads to configuration errors, thus causing security risks; Insufficient dynamic protection: The existing security protection mechanism is usually static and difficult to adapt to the changing security requirements during system operation. During system operation, administrators need to frequently manually adjust security configurations, and dynamic security protection cannot be achieved. Summary of the invention
[0006] The embodiment of the present invention provides a secondary device operating system security configuration tool and method to solve the problem of unsafe parameter configuration during the installation and operation of the secondary device operating system in the prior art.
[0007] According to a first aspect of an embodiment of the present invention, there is provided a secondary device operating system security configuration tool, including:
[0008] A graphical interface for receiving configurations related to initial configuration parameters of system operation and receiving modifications of configuration parameters during operation of the operating system; wherein, when configuring the initial configuration parameters, based on the detected system environment, initial configuration parameters that meet the requirements of the current system environment are screened from a preset initial configuration parameter library for display, and the configuration parameters can be modified;
[0009] An operation mode management module, which is used to obtain preset startup parameters or administrator instructions in real time during the system startup process, determine the current operation mode based on the preset startup parameters or administrator instructions obtained; execute the loading of initial configuration parameters or modified configuration parameters based on the operation mode; wherein the operation mode includes a normal operation mode and a system maintenance mode, wherein the normal operation mode restricts the modification of preset system key configuration parameters; and the system maintenance mode releases the modification of system key configuration parameters;
[0010] The dynamic permission management module is used to initialize the configuration of the operating permissions of the registered account of the operating system, dynamically modify the permissions of the registered account based on the change of requirements, and record the modification.
[0011] Furthermore, the construction of the preset initial configuration parameter library is specifically as follows: obtaining mainstream system environment settings through a web crawler; for each system environment setting, obtaining the optimal configuration parameters that can meet the current system environment setting; associating the obtained system environment settings and their corresponding optimal configuration parameters as sample data of the initial configuration parameter library.
[0012] Furthermore, the detected system environment selects initial configuration parameters that meet the current system environment requirements from a preset initial configuration parameter library for display. Specifically, based on the currently detected system environment, a similarity calculation is performed with the system environment corresponding to each sample in the initial configuration parameter library, and the optimal configuration parameters corresponding to the samples with the greatest similarity and a similarity greater than a preset threshold are used as initial configuration parameter recommendations, and are displayed in each parameter item of the image interface; at the same time, each parameter item in the image interface is a modifiable setting.
[0013] Furthermore, when the detected system environment cannot find a sample that meets the preset requirements in the initial configuration parameter library, the preset initial values are used as the values of each parameter item in the image interface, and the initial configuration parameters are manually configured; at the same time, after the system runs normally, the current system environment and the manually configured initial configuration parameters are added to the initial configuration parameter library for storage, so as to realize the update of the initial configuration parameter library.
[0014] Furthermore, the tool supports dynamic switching of operating modes. When the operating mode of the operating system is switched, a switching log record is generated, wherein the switching log record includes the time, reason and operator information of each mode switch.
[0015] Furthermore, during the operation of the operating system, when the configuration parameters are modified, a configuration backup of the current configuration parameters is generated. When a configuration update failure or an error is detected, the system is restored based on the original parameters in the configuration backup.
[0016] Furthermore, the tool also includes an audit module, which is used to configure audit parameters based on the audit parameter configuration method of the graphical interface, including a custom configuration method and a configuration recommendation method, wherein the custom configuration method is specifically: a number of different audit parameter options are pre-set in the graphical interface, and different audit strategies are formed by selecting different audit parameter options; the configuration recommendation method is specifically: different audit strategies are pre-built, and different audit strategies are displayed for users to choose through drop-down selection boxes.
[0017] According to a second aspect of an embodiment of the present invention, a method for securely configuring an operating system of a secondary device is provided, comprising:
[0018] Receiving configuration related to the initial configuration parameters of the system operation, or receiving the modification of the configuration parameters during the operation of the operating system; wherein, when configuring the initial configuration parameters, based on the detected system environment, the initial configuration parameters that meet the current system environment requirements are screened out from the preset initial configuration parameter library for display, and the configuration parameters can be modified;
[0019] During the system startup process, the preset startup parameters or administrator instructions are obtained in real time, and the current operation mode is determined based on the obtained preset startup parameters or administrator instructions; the initial configuration parameters are loaded or the modified configuration parameters are loaded based on the operation mode; wherein the operation mode includes a normal operation mode and a system maintenance mode, wherein the normal operation mode restricts the modification of preset system key configuration parameters; and the system maintenance mode releases the modification of system key configuration parameters;
[0020] Initialize the configuration of operating permissions for the registered account of the operating system, dynamically modify the permissions of the registered account based on changes in requirements, and record the modifications.
[0021] According to a third aspect of an embodiment of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored and running on the memory, wherein when the processor executes the program, the method for securely configuring an operating system of a secondary device is implemented.
[0022] According to a fourth aspect of an embodiment of the present invention, there is provided a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for securely configuring an operating system of a secondary device.
[0023] One or more of the above technical solutions have the following beneficial effects:
[0024] (1) The present invention provides a secondary device operating system security configuration tool and method. The solution addresses the problem that traditional manual configuration methods are inefficient and prone to configuration errors. It provides a method for recommending configuration parameters based on the system environment, automatically providing users with the optimal configuration parameters that meet the current system environment. At the same time, in order to meet the actual needs of users, a method for modifying configuration parameters is adopted, which improves the efficiency of parameter configuration while ensuring the personalization of parameter configuration. At the same time, considering that the secondary device operating system needs to run in various complex environments and is prone to multiple security threats from the network, physical and operational levels, the solution adopts a method of distinguishing operation modes combined with dynamic management of user permissions to ensure the security of configuration parameter modification.
[0025] (2) The scheme distinguishes between normal operation mode and system maintenance mode. During the system startup process, the scheme automatically selects the operation mode by detecting specific startup parameters or administrator instructions. In the normal operation mode, the modification of key system configurations is restricted, and only routine operations and user tasks are allowed. In the system maintenance mode, the restrictions on system configurations are lifted, allowing administrators to perform system maintenance and update operations. At the same time, a mode switching log recording function is provided to record in detail the time, reason and operator information of each mode switch. In the system maintenance mode, a safety reminder function is provided to remind administrators of safety precautions when performing important operations to prevent system risks caused by misoperation.
[0026] (3) The solution can effectively ensure the security and reversibility of configuration updates by providing configuration backup and recovery functions based on configuration backup.
[0027] (4) The scheme adds the current system environment and manually configured initial configuration parameters to the initial configuration parameter library for storage, thereby updating the initial configuration parameter library and effectively ensuring the adaptability of the initial configuration parameter library.
[0028] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0030] Figure 1 This is a schematic diagram of the overall structure of a secondary device operating system security configuration tool according to an embodiment of the present invention;
[0031] Figure 2This is a flow chart of mode switching and log recording according to an embodiment of the present invention. DETAILED DESCRIPTION
[0032] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0033] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.
[0034] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0035] Terminology explanation:
[0036] Secondary equipment: In the power system, equipment is mainly divided into primary equipment and secondary equipment. Primary equipment is equipment directly used for the production, transmission and distribution of electric energy, such as generators, transformers, circuit breakers and cables. Secondary equipment is equipment used for monitoring, protection, control and communication. Specifically, secondary equipment includes relay protection devices, automation devices, measurement and metering devices, communication equipment, etc. Their main function is to monitor the operating status of primary equipment and provide protection and control measures to ensure the safe and stable operation of the power system.
[0037] Here we need to clearly explain the difference between secondary equipment and other equipment:
[0038] Scenario 1: System startup and initialization
[0039] Secondary equipment: The secondary equipment operating system usually performs a series of self-tests and checks when it starts up to ensure its own reliability and stability. During the initialization process, the necessary protection and control logic will be loaded to ensure that it can respond quickly and take corresponding measures in any abnormal situation.
[0040] Other devices: When a normal operating system starts, the main focus is on initializing hardware resources and loading the user environment, with the aim of providing users with a complete operating environment and service support.
[0041] Scenario 2: Real-time and responsiveness
[0042] Secondary equipment: The operating system of secondary equipment must have high real-time and high responsiveness and be able to react within milliseconds. For example, when a relay protection device detects a fault, it needs to immediately disconnect the faulty line to protect the safety of equipment and personnel.
[0043] Other devices: Although common operating systems also have real-time requirements, they are relatively loose. For example, desktop operating systems focus more on user experience, and real-time requirements are mainly reflected in the response speed of applications.
[0044] Scenario 3: Configuration and Update
[0045] Secondary devices: The configuration and update of secondary devices are usually more cautious and must be strictly verified and tested. The update process may require downtime and it is necessary to ensure that the new configuration does not negatively affect system stability and security.
[0046] Other devices: The configuration and update of ordinary operating systems are more frequent and flexible. Users can install or update software as needed. The operating system provides convenient tools and mechanisms for configuration and update management.
[0047] Scenario 4: Security and Auditing
[0048] Secondary equipment: The operating system of secondary equipment has higher requirements for security and auditing. It must be ensured that only authorized personnel can access and modify the configuration, and all operation logs are recorded for post-audit and fault analysis.
[0049] Other devices: Although common operating systems also have security and auditing requirements, they are relatively loose. They are mainly implemented through user rights management and log systems, and auditing is mostly used to track user behavior and system operations.
[0050] Scenario 5: Redundancy and Fault Tolerance
[0051] Secondary equipment: Secondary equipment usually has redundancy and fault-tolerant mechanisms to ensure that when any device or system module fails, it can quickly switch to the backup system or module to ensure the continuity and reliability of the system.
[0052] Other devices: Ordinary operating systems generally do not have built-in redundancy and fault-tolerance mechanisms, and rely more on redundant designs at the application layer or hardware level, such as RAID disk arrays and dual-machine hot standby.
[0053] like Figure 1 As shown, an embodiment of the present invention provides a secondary device operating system security configuration tool, including:
[0054] A graphical interface for receiving configurations related to initial configuration parameters of system operation and receiving modifications of configuration parameters during operation of the operating system; wherein, when configuring the initial configuration parameters, based on the detected system environment, initial configuration parameters that meet the requirements of the current system environment are screened from a preset initial configuration parameter library for display, and the configuration parameters can be modified;
[0055] Specifically, the administrator can manually set the initial configuration parameters through the graphical interface. The graphical interface includes a variety of configuration parameter options, such as user account settings, authority allocation, audit parameter settings, etc. The interface is intuitive and easy to operate. In a specific implementation, an application based on a graphical user interface library such as Qt or GTK+ can be developed to provide a user-friendly graphical interface, which includes a configuration wizard to guide the administrator to step by step complete the setting of the initial configuration parameters.
[0056] The detection of the system environment is specifically as follows: during the installation of the operating system, the tool automatically detects the system hardware and software environment, and generates initial configuration parameter suggestions based on the detection results, specifically: by scanning the system hardware configuration, network environment, existing software and other information; using system calls (such as uname, l sb_re lease, etc.) to automatically detect the operating system version, hardware configuration and other information, and generate initial configuration parameter suggestions through preset configuration rules.
[0057] In a specific implementation, the generation of the initial configuration parameter suggestion adopts the following concept: based on the detected system environment, the initial configuration parameters that meet the current system environment requirements are screened out from the preset initial configuration parameter library; specifically, the following processing steps are included:
[0058] The construction of the preset initial configuration parameter library is specifically as follows: obtaining mainstream system environment settings through a web crawler; for each system environment setting, obtaining the optimal configuration parameters that can meet the current system environment setting; associating the obtained system environment settings and their corresponding optimal configuration parameters as sample data of the initial configuration parameter library.
[0059] The detected system environment selects initial configuration parameters that meet the current system environment requirements from a preset initial configuration parameter library for display. Specifically, based on the currently detected system environment, similarity is calculated with the system environment corresponding to each sample in the initial configuration parameter library, and the optimal configuration parameters corresponding to the samples with the greatest similarity and a similarity greater than a preset threshold are used as initial configuration parameter recommendations, and are displayed in each parameter item in the image interface; at the same time, each parameter item in the image interface is a modifiable setting.
[0060] When the detected system environment cannot find a sample that meets the preset requirements in the initial configuration parameter library, the preset initial values are used as the values of each parameter item in the image interface, and the initial configuration parameters are manually configured; at the same time, after the system runs normally, the current system environment and the manually configured initial configuration parameters are added to the initial configuration parameter library for storage, so as to realize the update of the initial configuration parameter library.
[0061] Furthermore, after the operating system is installed, the tool automatically applies the initial configuration parameters and generates a configuration report, which includes all applied security policies and permission settings for the administrator to review and record. During the operating system installation process, the tool automatically applies the initial configuration parameters through a preset script (such as a Shell script or a Python script), completes the initial configuration of system users, permissions, directory structure, etc., and generates a configuration report. It should be noted that the construction of the preset script is clearly understandable and achievable for those skilled in the art, so it will not be repeated here.
[0062] In a specific implementation, during the operation of the operating system, when the configuration parameters are modified, a configuration backup of the current configuration parameters is generated. When a configuration update failure or error is detected, the system is restored based on the original parameters in the configuration backup.
[0063] Specifically, for configuration parameter upgrade and backup and recovery, the tool supports configuration parameter upgrades during system operation. Administrators can adjust parameters through a graphical interface and generate new configuration backups. In addition, the tool provides a configuration recovery function. When a configuration update fails or an error occurs, the recovery function can be used to roll back to the previous configuration state to ensure system stability and security. Use version control tools (such as Git) to version control configuration parameters, and implement configuration parameter backup and recovery functions through scripts to ensure the security and reversibility of configuration updates.
[0064] Version control and audit tracking of configuration parameters. Through version control, the change history and modification reasons of each configuration parameter are recorded. Each change operation will generate a version record, and the administrator can view and trace back to a specific version at any time to ensure the transparency and traceability of the configuration process. The change history of configuration parameters is recorded through the submission log of the version control system (such as Git), and the audit record function is added to record the time, reason and operator information of each configuration change.
[0065] An operation mode management module, which is used to obtain preset startup parameters or administrator instructions in real time during the system startup process, determine the current operation mode based on the preset startup parameters or administrator instructions obtained; execute the loading of initial configuration parameters or modified configuration parameters based on the operation mode; wherein the operation mode includes a normal operation mode and a system maintenance mode, wherein the normal operation mode restricts the modification of preset system key configuration parameters; and the system maintenance mode releases the modification of system key configuration parameters;
[0066] In a specific implementation, the tool supports dynamic switching of operating modes. When the operating mode of the operating system is switched, a switching log record is generated, wherein the switching log record includes the time, reason and operator information of each mode switch.
[0067] Specifically, for the normal operation mode and the system maintenance mode, it mainly includes the distinction and switching of modes, the normal operation mode, the system maintenance mode, and the mode switching log record.
[0068] For mode differentiation and switching, during the system startup process, the operation mode is automatically selected by detecting specific startup parameters or administrator instructions. In normal operation mode, modifications to key system configurations are restricted, and only routine operations and user tasks are allowed; in system maintenance mode, restrictions on system configurations are lifted, allowing administrators to perform system maintenance and update operations. When the system starts, the system's operation mode is determined by reading startup parameters (such as GRUB boot parameters) or instructions entered by the administrator. Use startup scripts (such as init.d or systemd services) to load the corresponding configuration according to the startup parameters.
[0069] In the normal operation mode of the operating system working mode, the system also monitors key operations during the mode switching process in real time and issues an alarm immediately when an abnormal situation is detected. This includes unauthorized mode switching attempts or abnormal modifications to key configurations to ensure the security and stability of the system. In the normal operation mode, the tool limits the modification of key system configurations by modifying system configuration files (such as / etc / sysctl.conf, / etc / security / limits.conf, etc.) and sets appropriate permissions to prevent ordinary users from performing high-risk operations.
[0070] System maintenance mode in the operating system working mode. In system maintenance mode, the system will provide a security reminder function to remind the administrator of the safety precautions when performing important operations to prevent system risks caused by misoperation. For example, when the administrator tries to modify key configurations or perform system updates, the system will pop up a warning prompt and ask the administrator to confirm the operation. Remove restrictions on system configurations and allow administrators to perform high-privilege operations through scripts or tools (such as vi sudo). Provide a security reminder function and use a message box (such as Zen ity) to remind the administrator of the safety precautions when performing important operations.
[0071] When the operating system's working mode switches, a switch log record is generated. The system provides a mode switch log recording function to record in detail the time, reason, and operator information of each mode switch. These logs can help administrators review the operation of the system and conduct tracing and analysis when necessary. Use logging tools (such as sys log or rsys log) to record detailed information about each mode switch, including time, reason, and operator information.
[0072] The dynamic permission management module is used to initialize the configuration of the operating permissions of the registered account of the operating system, dynamically modify the permissions of the registered account based on the change of requirements, and record the modification.
[0073] Specifically, the dynamic rights management module includes the following functions:
[0074] Initial user and administrator responsibility configuration, including automatic creation of initial accounts, user role and responsibility configuration, root directory permission settings, and user and permission management tools and user permission change logs.
[0075] Automatically create initial accounts: After the system is installed, it will automatically create a default initial user account and administrator account, and assign basic permissions. These accounts include a super administrator account and a normal user account to ensure the security of the initial system configuration. After the operating system is installed, the default initial user account and administrator account are automatically created through user management tools (such as useradd, usermod, etc.), and basic permissions are assigned through scripts.
[0076] User role and responsibility configuration: The system will automatically configure user roles and responsibilities based on the preset role model, and set different levels of access rights. Administrators can adjust user roles through the graphical interface to ensure the security and flexibility of the system. Use user management tools and access control list (ACL) tools (such as setfac l, getfac l) to configure user roles and responsibilities and set different levels of access rights.
[0077] Root directory permission setting: The system automatically sets the root directory permissions and access control to prevent unauthorized access and modification. This step includes setting strict access permissions for the root directory, allowing only administrator accounts to modify it, and ensuring the security of the system's core files. Prevent unauthorized access and modification by modifying file system permissions (such as chmod, chown) and using ACL tools to set the system root directory permissions and access control.
[0078] User and permission management tools: The system provides user and permission management tools, allowing administrators to add, delete, and modify users and permissions as needed. Administrators can manage users through a graphical interface to ensure dynamic management and flexible adjustment of user permissions. Develop user and permission management tools based on command lines or graphical interfaces, allowing administrators to add, delete, and modify users and permissions as needed, and record change logs.
[0079] User rights change log: The system will record each change in user rights and operator information. Each change operation will generate a log record, which the administrator can view and review at any time to ensure the transparency and traceability of the user management process. Audit log tools (such as AUDITD) are used to record each change in user rights and operator information to ensure the transparency and traceability of the user management process.
[0080] In a specific implementation, the tool also includes an audit module, which is used to configure audit parameters based on a graphical interface audit parameter configuration method, including a custom configuration method and a configuration recommendation method, wherein the custom configuration method is specifically: a number of different audit parameter options are pre-set in the graphical interface, and different audit strategies are formed by selecting different audit parameter options; the configuration recommendation method is specifically: different audit strategies are pre-built, and different audit strategies are displayed for users to choose through a drop-down selection box.
[0081] Specifically, the audit module includes: audit parameters, system audit tracking settings and access control, which mainly include audit parameter setting functions, system key operations and event records, file and directory access control, security pop-up warnings, and audit log encryption and backup functions.
[0082] Audit parameter setting options: The system provides detailed audit parameter setting options, allowing administrators to customize the audit scope and content. Administrators can set different audit policies according to system requirements, such as user login audit, file access audit, configuration change audit, etc., to ensure the flexibility and applicability of the audit function. Provides audit parameter configuration tools based on graphical interface or command line (such as audioctl), allowing administrators to customize the audit scope and content and generate audit policy files.
[0083] System key operations and event records: The system automatically records all key operations and events, including user login, file access, configuration changes, etc. The generated audit log supports query and analysis by time, user, event type and other dimensions, helping administrators to discover and handle security incidents in a timely manner. Use an audit system (such as AUDITD) to automatically record system key operations and events, including user login, file access, configuration changes, etc., and generate detailed audit logs.
[0084] File and directory access control: The system performs fine-grained settings for file and directory access control and supports access control policies based on user roles and permissions. Administrators can configure access permissions for files and directories through a graphical interface to ensure the security of system resources. Fine-grained access control for files and directories is achieved by setting access control lists (ACLs) and modifying file system permissions, ensuring access policies based on user roles and permissions.
[0085] Security alert function: When the system detects abnormal access or operation, it will promptly notify the administrator and record the detailed information. The system will send alerts through pop-up windows, emails, or text messages to ensure timely handling of security incidents. When abnormal access or operation is detected, the administrator will be notified in time through system alert tools (such as sys log, snmp) and detailed information will be recorded. Develop an alert notification system based on email or instant messaging to ensure timely handling of security incidents.
[0086] Audit log encryption and backup: To ensure the integrity and security of audit logs, the system provides audit log encryption and backup functions. Audit logs are encrypted immediately after generation and regularly backed up to secure storage media to prevent tampering and loss of audit data. Encrypt audit logs using encryption tools (such as GPG) to ensure the integrity and security of logs. Regularly back up audit logs to secure storage media (such as NAS, cloud storage) to prevent loss and tampering of log data.
[0087] In this way, the scheme provides a method for recommending configuration parameters based on the system environment to address the problem that traditional manual configuration methods are inefficient and prone to configuration errors. The scheme automatically provides users with the optimal configuration parameters that meet the current system environment. At the same time, in order to meet the actual needs of users, a method of modifiable configuration parameters is adopted, which improves the efficiency of parameter configuration while ensuring the personalization of parameter configuration. At the same time, considering that the secondary device operating system needs to run in various complex environments and is prone to multiple security threats from the network, physical and operational levels, the scheme adopts a method of distinguishing operation modes combined with dynamic management of user permissions to ensure the security of configuration parameter modification.
[0088] In one or more embodiments, a secondary device operating system security configuration method is provided, including:
[0089] Receiving configuration related to the initial configuration parameters of the system operation, or receiving the modification of the configuration parameters during the operation of the operating system; wherein, when configuring the initial configuration parameters, based on the detected system environment, the initial configuration parameters that meet the current system environment requirements are screened out from the preset initial configuration parameter library for display, and the configuration parameters can be modified;
[0090] During the system startup process, the preset startup parameters or administrator instructions are obtained in real time, and the current operation mode is determined based on the obtained preset startup parameters or administrator instructions; the initial configuration parameters are loaded or the modified configuration parameters are loaded based on the operation mode; wherein the operation mode includes a normal operation mode and a system maintenance mode, wherein the normal operation mode restricts the modification of preset system key configuration parameters; and the system maintenance mode releases the modification of system key configuration parameters;
[0091] Initialize the configuration of operating permissions for the registered account of the operating system, dynamically modify the permissions of the registered account based on changes in requirements, and record the modifications.
[0092] In further embodiments, there is also provided:
[0093] An electronic device includes a memory and a processor and computer instructions stored in the memory and executed on the processor, wherein the computer instructions, when executed by the processor, perform the method described in the above embodiment. For the sake of brevity, no further description is given here.
[0094] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0095] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.
[0096] A computer-readable storage medium is used to store computer instructions. When the computer instructions are executed by a processor, the method described in the above embodiment is completed.
[0097] The method in the above embodiment can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
[0098] Those skilled in the art will appreciate that the units, i.e., algorithm steps, of the various examples described in the present embodiment can be implemented in electronic hardware or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0099] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A secondary device operating system security configuration tool, characterized in that: include: A graphical interface for receiving configurations related to initial configuration parameters of system operation and receiving modifications of configuration parameters during operation of the operating system; wherein, when configuring the initial configuration parameters, based on the detected system environment, initial configuration parameters that meet the requirements of the current system environment are screened from a preset initial configuration parameter library for display, and the configuration parameters can be modified; An operation mode management module, which is used to obtain preset startup parameters or administrator instructions in real time during the system startup process, determine the current operation mode based on the preset startup parameters or administrator instructions obtained; execute the loading of initial configuration parameters or modified configuration parameters based on the operation mode; wherein the operation mode includes a normal operation mode and a system maintenance mode, wherein the normal operation mode restricts the modification of preset system key configuration parameters; and the system maintenance mode releases the modification of system key configuration parameters; The dynamic permission management module is used to initialize the configuration of the operating permissions of the registered account of the operating system, dynamically modify the permissions of the registered account based on the change of requirements, and record the modification.
2. A secondary device operating system security configuration tool as claimed in claim 1, characterized in that: The construction of the preset initial configuration parameter library is specifically as follows: obtaining mainstream system environment settings through a web crawler; for each system environment setting, obtaining the optimal configuration parameters that can meet the current system environment setting; associating the obtained system environment settings and their corresponding optimal configuration parameters as sample data of the initial configuration parameter library.
3. A secondary device operating system security configuration tool as claimed in claim 1, characterized in that: The detected system environment selects initial configuration parameters that meet the current system environment requirements from a preset initial configuration parameter library for display. Specifically, based on the currently detected system environment, similarity is calculated with the system environment corresponding to each sample in the initial configuration parameter library, and the optimal configuration parameters corresponding to the samples with the greatest similarity and a similarity greater than a preset threshold are used as initial configuration parameter recommendations, and are displayed in each parameter item in the image interface; at the same time, each parameter item in the image interface is a modifiable setting.
4. A secondary device operating system security configuration tool as claimed in claim 1, characterized in that: When the detected system environment cannot find a sample that meets the preset requirements in the initial configuration parameter library, the preset initial values are used as the values of each parameter item in the image interface, and the initial configuration parameters are manually configured; at the same time, after the system runs normally, the current system environment and the manually configured initial configuration parameters are added to the initial configuration parameter library for storage, so as to realize the update of the initial configuration parameter library.
5. A secondary device operating system security configuration tool as claimed in claim 1, characterized in that: The tool supports dynamic switching of operating modes. When the operating mode of the operating system is switched, a switching log record is generated, wherein the switching log record includes the time, reason and operator information of each mode switch.
6. A secondary device operating system security configuration tool as claimed in claim 1, characterized in that: During the operation of the operating system, when the configuration parameters are modified, a configuration backup of the current configuration parameters is generated. When a configuration update failure or error is detected, the system is restored based on the original parameters in the configuration backup.
7. A secondary device operating system security configuration tool as claimed in claim 1, characterized in that: The tool also includes an audit module, which is used to configure audit parameters based on the audit parameter configuration method of the graphical interface, including a custom configuration method and a configuration recommendation method, wherein the custom configuration method is specifically: a number of different audit parameter options are pre-set in the graphical interface, and different audit strategies are formed by selecting different audit parameter options; the configuration recommendation method is specifically: different audit strategies are pre-built, and different audit strategies are displayed for user selection through a drop-down selection box.
8. A method for securely configuring a secondary device operating system, characterized in that: include: Receiving configuration related to the initial configuration parameters of the system operation, or receiving the modification of the configuration parameters during the operation of the operating system; wherein, when configuring the initial configuration parameters, based on the detected system environment, the initial configuration parameters that meet the current system environment requirements are screened out from the preset initial configuration parameter library for display, and the configuration parameters can be modified; During the system startup process, the preset startup parameters or administrator instructions are obtained in real time, and the current operation mode is determined based on the obtained preset startup parameters or administrator instructions; the initial configuration parameters are loaded or the modified configuration parameters are loaded based on the operation mode; wherein the operation mode includes a normal operation mode and a system maintenance mode, wherein the normal operation mode restricts the modification of preset system key configuration parameters; and the system maintenance mode releases the modification of system key configuration parameters; Initialize the configuration of operating permissions for the registered account of the operating system, dynamically modify the permissions of the registered account based on changes in requirements, and record the modifications.
9. An electronic device comprising a memory, a processor and a computer program stored and running on the memory, characterized in that: When the processor executes the program, the secondary device operating system security configuration method as described in claim 8 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a secondary device operating system security configuration method as described in claim 8 is implemented.
Citation Information
Patent Citations
Computer system and associated storage device management method
CN103593145A
Safety detection system and method for electric power Internet of Things equipment
CN113315767A
Linux-based one-button security reinforcement system and reinforcement method thereof
CN116796337A
Execution environment construction device and execution environment construction system
JP2012221170A
System and method for controlling the use of a computer
US5361359A
