Security baseline detection method and security baseline detection system for embedded system
By remotely connecting to the embedded system, collecting and analyzing data, and generating applicable security baseline detection rules, it solves the security baseline detection problem under the resource constraints of the embedded system and achieves non-intrusive detection and multiple analysis support.
Patent Information
- Application Number
- CN202011154316.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-26
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-10-26
AI Technical Summary
Existing security baseline detection methods are difficult to apply to embedded systems because of the diversity and resource limitations of embedded systems and cannot be directly applied to standardized system detection methods.
By remotely connecting to the embedded system, system information data is collected and applicable security baseline detection rules are generated, parsed and structured, and these rules are used to perform security baseline detection and output detection results.
It realizes the security baseline detection of embedded systems without modifying the system. It is suitable for any type of embedded system, meets the low storage capacity and computing power requirements of embedded systems, and supports multiple analyzes and different displays.
Smart Images

Figure CN112148545B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and more specifically, to a security baseline detection method and a security baseline detection system for an embedded system. Background Art
[0002] Embedded systems are application-centric, based on computer technology, and their software and hardware are customizable. They are suitable for special-purpose computer systems with strict requirements on functions, reliability, cost, size, power consumption, etc. The most typical feature of embedded systems is that they are closely related to people's daily lives. Any ordinary person may have all kinds of electronic products that use embedded technology, ranging from micro-digital devices such as cameras and smart door locks to information appliances, smart appliances, smart robots, cars, etc. The number of various new embedded devices has far exceeded that of general-purpose computers. With the increasing popularity of embedded devices equipped with embedded systems, especially the continuous digitization, networking, and intelligence of embedded devices, the security of embedded systems has become an urgent problem to be solved.
[0003] In some cases, a detection operation can be performed on the security baseline of a server system or a desktop system. These systems are very standardized and unified systems. However, since embedded systems can be tailored according to various application scenarios and are very diverse, the security baseline detection of these systems is not applicable to embedded systems. Therefore, a method and system for performing security baseline detection on embedded systems is required. Summary of the invention
[0004] An embodiment of the present disclosure provides a security baseline detection method, which is used to remotely perform security baseline detection on an embedded system mounted on an embedded device, the method comprising: establishing a remote connection with the embedded system to be detected, and collecting system information data of the embedded system; generating security baseline detection rules for the embedded system to be detected; parsing the collected system information data; structuring the parsed system information data to obtain structured system information data with a unified format and attributes; performing security baseline detection on the structured system information data using the security baseline detection rules to obtain a security baseline detection result of the embedded system; and outputting and displaying the security baseline detection result of the embedded system.
[0005] According to an embodiment of the present disclosure, establishing a remote connection with an embedded system to be detected and collecting system information data of the embedded system includes: obtaining collection configuration information; generating a collection control command based on the collection configuration information and establishing a remote connection with the embedded system, and sending the collection control command to the embedded system via a remote communication method; and receiving system information data returned by the embedded system via a remote communication method, wherein, in response to the collection control command, the embedded system locally collects system information data and returns the system information data.
[0006] According to an embodiment of the present disclosure, the acquisition configuration information includes identification information of the embedded system, and establishing a remote connection with the embedded system to be detected includes: establishing a remote connection with the embedded system based on the identification information of the embedded system.
[0007] According to an embodiment of the present disclosure, the collection configuration information also includes a collection data volume indication, which is used to indicate the collection of full system information data or partial system information data of the embedded system, and is sent to the embedded system through the collection control command, so that the embedded system locally collects full system information data or partial system information data.
[0008] According to an embodiment of the present disclosure, the generating of security baseline detection rules for the embedded system to be detected includes: acquiring analysis configuration information, and generating the security baseline detection rules based on the analysis configuration information.
[0009] According to an embodiment of the present disclosure, the analysis configuration information includes selection information or editing configuration information, wherein generating the security baseline detection rule based on the analysis configuration information includes: selecting the security baseline detection rule from a security baseline detection rule set based on the selection information, wherein the security baseline detection rule set is preset; or configuring a new security baseline detection rule based on the editing configuration information.
[0010] According to an embodiment of the present disclosure, the parsing and processing of the system information data includes: obtaining a security baseline detection startup command, classifying the system information data according to data type based on the security baseline detection startup command to obtain multiple categories of system information data, and storing the multiple categories of system information data separately according to categories; and wherein, the system information data is structured to obtain structured system information data with a unified format and attributes, including: structured processing of each category of system information data to obtain structured system information data with a unified format and attributes for each category.
[0011] According to an embodiment of the present disclosure, the step of performing a security baseline detection on the structured system information data using the security baseline detection rule to obtain a security baseline detection result of the embedded system includes:
[0012] For each security baseline detection rule, determine whether there is structured system information data associated with the security baseline detection rule, and: in the case that there is structured system information data associated with the security baseline detection rule, when the associated structured system information data matches the security baseline detection rule, determine that the embedded system has reached the security baseline associated with the security baseline detection rule, as a security baseline detection result for the security baseline detection rule, and when the associated structured system information data does not match the security baseline detection rule, determine that the embedded system has not reached the security baseline associated with the security baseline detection rule, as a security baseline detection result for the security baseline detection rule, and in the case that there is no structured system information data associated with the security baseline detection rule, determine that there is no need to determine whether the security baseline associated with the security baseline detection rule has been reached, as a security baseline detection result for the security baseline detection rule, and take the set of security baseline detection results for each security baseline detection rule as the security baseline detection result for the embedded system.
[0013] According to an embodiment of the present disclosure, the outputting and displaying the security baseline detection result of the embedded system includes at least one of the following: generating visualization information so that a device with a user interface visualizes the security baseline detection result; generating visualization information to visually display the security baseline detection result on a predetermined network address or a network page; and outputting the security baseline detection result to other devices different from the device for use by the other devices.
[0014] According to an embodiment of the present disclosure, each security baseline detection rule is marked with a risk level, and the security baseline detection results are divided according to the risk level, and the security baseline detection results are displayed according to the risk level.
[0015] An embodiment of the present disclosure provides a security baseline detection system, which includes: a data acquisition device, which is used to establish a remote connection with an embedded system to be detected, and to acquire and output system information data of the embedded system; a security baseline detection device, which is used to receive the system information data of the embedded system, generate security baseline detection rules for the embedded system to be detected, parse and process the system information data, and structure the system information data to obtain structured system information data with a unified format and attributes, and use the security baseline detection rules to perform security baseline detection on the structured system information data after structure processing to obtain a security baseline detection result of the embedded system; and a data management device, which is used to receive the security baseline detection result of the embedded system from the security baseline detection device, and output and display the security baseline detection result of the embedded system.
[0016] According to an embodiment of the present disclosure, the data acquisition device includes: an acquisition configuration information acquisition module, which is used to acquire acquisition configuration information; a remote command module, which is configured to generate an acquisition control command based on the acquisition configuration information and establish a remote connection with the embedded system, and send the acquisition control command to the embedded system; a remote acquisition module, which is configured to acquire system information data returned by the embedded system through remote communication; a data output module, which is configured to send the system information data to the security baseline detection device, wherein, in response to the acquisition control command, the embedded system locally acquires the system information data and returns the system information data to the remote acquisition module.
[0017] According to an embodiment of the present disclosure, the security baseline detection device includes: an acquisition module, which is used to acquire analysis configuration information, system information data of the embedded system, and a security baseline detection startup command; a rule determination module, which is used to determine the security baseline detection rules based on the analysis configuration information; a data processing module, which is used to parse and process the collected system information data based on the security baseline detection startup command, and structure the parsed system information data to obtain structured system information data with a unified format and attributes; and a security baseline detection module, which is used to detect the structured system information data using the determined security baseline detection rules, and use the set of security baseline detection results for each security baseline detection rule as the security baseline detection result of the embedded system.
[0018] According to an embodiment of the present disclosure, the data acquisition device, the security baseline detection device and the data management device are physically located in a single device, or the security baseline detection device and the data management device are physically located in a single device and the data acquisition device is located in another device, or the data acquisition device, the security baseline detection device and the data management device are physically located in different devices respectively.
[0019] According to an embodiment of the present disclosure, each security baseline detection rule is marked with a risk level, wherein the security baseline detection device also includes a division module, and the division module is used to divide the security baseline detection results according to the risk level; and wherein the data management device is also used to display the security baseline detection results according to the risk level.
[0020] The security baseline detection method and security baseline detection system provided by the embodiments of the present disclosure perform security baseline detection on the embedded system outside the embedded system (remotely relative to the embedded system), so there is no need to modify the embedded system itself, that is, the security baseline detection can be performed offline, so there is no demand for the storage capacity and computing power of the embedded system. In addition, since different security baseline detection rules are configured according to different embedded systems (for example, based on the analysis configuration information input by the user), it can be applied to any type of embedded system. In addition, the data collection, security baseline detection, and detection result display processes can be decoupled (for example, distributed and run on different devices), so multiple different analyses based on different rules can be performed on the data collected once, and different displays can be performed on the detection results once. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some exemplary embodiments of the present disclosure, and a person of ordinary skill in the art can obtain other drawings based on these drawings without creative work.
[0022] Figure 1 A schematic diagram showing the relationship between a security baseline detection system and an embedded system according to an embodiment of the present disclosure is shown.
[0023] Figure 2A-2C A schematic flow chart of a security baseline detection method according to an embodiment of the present disclosure is shown.
[0024] Figure 3 A schematic diagram showing a security baseline detection result according to an embodiment of the present disclosure is shown.
[0025] Figure 4 A block diagram of the architecture of an embedded system security baseline detection according to an embodiment of the present disclosure is shown.
[0026] Figure 5A-5G Shows Figure 4 The structural block diagram of each device of the security baseline detection system is shown.
[0027] Figure 6 Shows Figure 4 A schematic diagram of the interaction between various devices in the security baseline detection system is shown.
[0028] Figure 7 A schematic diagram of the structure of a server device or a computer device for implementing various devices / modules of a security baseline detection system according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present disclosure more obvious, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.
[0030] In this specification and the accompanying drawings, substantially the same or similar steps and elements are represented by the same or similar reference numerals, and repeated descriptions of these steps and elements will be omitted. At the same time, in the description of the present disclosure, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance or ranking.
[0031] Cloud security refers to the general term for security software, hardware, users, organizations, and security cloud platforms based on the cloud computing business model. Cloud security integrates emerging technologies and concepts such as parallel processing, grid computing, and unknown virus behavior judgment. It monitors the abnormal behavior of software in the network through a large number of meshed clients, obtains the latest information on Trojans and malicious programs on the Internet, and sends it to the server for automatic analysis and processing, and then distributes solutions to viruses and Trojans to each client. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0032] The main research directions of cloud security include: 1. Cloud computing security, which mainly studies how to ensure the security of the cloud itself and various applications on the cloud, including cloud computer system security, secure storage and isolation of user data, user access authentication, information transmission security, network attack protection, compliance auditing, etc.; 2. Cloudification of security infrastructure, which mainly studies how to use cloud computing to build and integrate security infrastructure resources and optimize security protection mechanisms, including building a large-scale security event, information collection and processing platform through cloud computing technology, realizing the collection and correlation analysis of massive information, and improving the control ability of security events and risk control capabilities of the entire network; 3. Cloud security services, which mainly studies various security services provided to users based on cloud computing platforms, such as antivirus services.
[0033] The embodiments of the present disclosure relate to security baseline detection of embedded systems. For ease of understanding, some basic concepts related to the embodiments of the present disclosure are first introduced below.
[0034] Embedded device: An embedded system is a special-purpose computer system that is completely embedded inside a controlled device and designed for a specific application. It has a high degree of customization. The device equipped with this embedded system is referred to as an embedded device in this article.
[0035] Security baseline: The security baseline is the minimum security guarantee of a system, that is, the most basic security requirement that the system needs to meet. System security often requires a balance between the security cost and the security risk that can be tolerated, and the security baseline is the reasonable dividing line of this balance. The significance of the security baseline lies in a series of rules formulated to achieve the most basic protection requirements. Any security baseline detection is carried out around different security baselines.
[0036] Auditing: Auditing is a mechanism introduced into computer operating systems to monitor and record system activities, simulating social monitoring agencies. It is also used interchangeably with "detection" in this article.
[0037] Regular expression: A regular expression is a logical formula for operating on a string (including common characters (for example, letters from a to z) and special characters (called "meta-characters")), that is, using some pre-defined specific characters and the combination of these specific characters to form a "regular string", which is used to express a filtering logic for the string. A regular expression is a text pattern that describes one or more strings to be matched when searching for text. Regular expressions are usually used to retrieve and replace text that meets a certain pattern (rule).
[0038] As mentioned above, in some cases, detection operations can be performed on the security of server systems or desktop systems. For example, the security baselines of these systems can be audited. These systems are very standardized and unified systems. The rules used for security baseline detection are also formed by years of industry practice consensus. The audit implementation method for the security baselines of these systems is based on local executable programs. Each baseline rule is detected by directly running the program, and the detection method is also to directly run the corresponding commands in these systems to obtain the results.
[0039] For example, a method for detecting the security baseline of a standardized system includes: first downloading an executable program (security baseline audit program) locally to the standardized system, and then running the executable program locally in the standardized system to start auditing the security baseline of the standardized system. During the audit process, each security baseline audit rule will correspond to a query operation of the detection system configuration or detection system file. After starting to run the executable program (security baseline audit program), wait for a period of time, and the security baseline detection result (security audit result) will be output on the display interface of the device (terminal) equipped with the standardized system. For example, commonly used system security audit tools include lynis and CIS-CAT Pro Assessor.
[0040] However, as mentioned above, the above methods for auditing security baselines are all for the security baselines of standardized systems, and cannot be directly applied to embedded systems. At the same time, the above methods all include downloading an audit executable program to the local computer, and then running it locally to perform a baseline audit. However, the local storage space and computing power of most embedded systems are very limited, and there may not be space and computing power for running additional programs. Moreover, due to the problem of the processor instruction set, these programs may not be able to run on the embedded system. In addition, the above methods audit by directly running the corresponding executable command in the standardized system. For example, if a baseline audit rule is [the "su" command does not exist], the "su" command is directly run based on the above method. If the run fails, it is determined that the baseline audit has passed. However, sometimes there are many reasons for a command to fail to run. For example, the "su" command exists but other factors cause it to fail to run. Therefore, the above method may lead to incorrect audit results.
[0041] Therefore, the present disclosure provides a security baseline detection method and a security baseline detection system for performing security baseline detection on an embedded system.
[0042] In the present disclosure, the security baseline detection of an embedded system may also be referred to as an audit of the security baseline of the embedded system, and the security baseline detection rules may also be referred to as security baseline audit rules accordingly.
[0043] It should be noted that although the security baseline detection of an embedded system is described in detail herein as an example, the security baseline detection method and system proposed in the embodiments of the present disclosure can be applied to other computer systems, for example, non-embedded systems, and the present disclosure does not limit this.
[0044] The security baseline detection method and system for embedded systems provided by the present disclosure can be used, for example, by IoT manufacturers or automobile companies to perform a security baseline audit on the embedded system after each embedded system version update or integration, and to discover and repair security issues in the embedded system.
[0045] Figure 1 FIG. 1 shows a schematic diagram of the relationship between the security baseline detection system and the embedded system according to an embodiment of the present disclosure. Figure 1 As shown, the security baseline detection system is located outside the embedded system 100 and can remotely communicate with the embedded system to perform security baseline detection on it.
[0046] Combine the following Figure 2A-7 The following describes in detail the relevant contents of security baseline detection for embedded systems according to an embodiment of the present disclosure.
[0047] Figure 2A-2B A schematic flow chart of a security baseline detection method 200 for an embedded system according to an embodiment of the present disclosure is shown. Figure 2B Shows Figure 2A More details.
[0048] The embedded device is equipped with an embedded system that can realize specific functions, so the security baseline detection method 200 is used to remotely perform security baseline detection on the embedded system installed on the embedded device.
[0049] First, in step S210, a remote connection is established with the embedded system to be detected, and system information data of the embedded system is collected.
[0050] More specifically, this step can be performed by a data acquisition device (such as reference Figure 4 In step S210, as described above, Figure 2B As shown, the data acquisition device can obtain acquisition configuration information, generate acquisition control commands based on the acquisition configuration information and establish a remote connection with the embedded system, and can send acquisition control commands to the embedded system through remote communication; and receive system information data returned by the embedded system mounted on the embedded device through remote communication.
[0051] The collection configuration information can be configured by the user, for example, by writing a collection program. For example, in the case where the data collection device is a server device, the collection configuration information can be written by modifying a server configuration file.
[0052] For example, a user can edit the collection configuration information according to the system information data (such as system execution commands and system files) of the embedded system that needs to be collected. For example, the collection configuration information may include a collection data volume indication, and the collection data volume indication is used to indicate the collection of the full system information data or part of the system information data of the embedded system. For example, the collection data volume indication can indicate which system files (system information data) under which root directories of the embedded system need to be collected. At the same time, in the case where the collection configuration information does not include the collection data volume indication, the full system information data of the embedded system is collected by default. The collection data volume indication can be sent to the embedded system through the collection control command, so that the embedded system can be controlled to locally collect the required system information data.
[0053] In addition, the collection configuration information may also include identification information of the embedded system, such as the IP address, port number, login account, login password and other information of the embedded system, so that it is possible to know which embedded system's system information data needs to be collected. In this case, the data acquisition device establishes a remote connection with the embedded system based on the identification information of the embedded system included in the collection configuration information, and sends a collection control command to the embedded system based on the remote connection. For example, a remote connection may be established with the embedded system for communication through a remote communication method such as ssh or adb. ssh or adb is currently a more reliable protocol that is designed to provide security for remote login sessions and other network services, and can effectively prevent information leakage problems in the remote management process.
[0054] In addition, in response to the acquisition control command, the embedded system locally acquires system information data and returns its system information data. For example, since the acquisition control command is generated based on the acquisition configuration information, the acquisition control command can carry the acquisition data volume indication or its related information included in the acquisition configuration information (also called a white list or a black list, wherein the data that is desired to be acquired is called a white list, and the data that is not desired to be acquired is called a black list, which is described by a regular expression), so when the embedded system receives the acquisition control command, it knows which system information data the data acquisition device expects to acquire based on the acquisition data volume indication or related information carried by the acquisition control command, thereby locally scanning the data indicated by the acquisition data volume indication or skipping the scanning thereof, thereby improving the scanning efficiency. For example, when the acquisition data volume indication is the root directory address of the data that is desired to be acquired, the subdirectories and subfiles are scanned starting from the root directory, the contents of all files under the root directory are directly read, and then the read content data is returned as the system information data through the above-mentioned remote connection, and for the root directory address not indicated by the acquisition data volume indication, the subdirectories and subfiles are not scanned.
[0055] During the continuous execution of the acquisition program, acquisition control commands may be continuously sent to the embedded system, so that the embedded system continuously locally acquires system information data and returns the system information data.
[0056] In addition, after receiving the system information data returned by the embedded system, the data acquisition device can first compress the system information data and send the compressed system information data to a subsequent security baseline detection device (for example, reference Figure 4 The security baseline detection device 420 described above can reduce communication resources, but the system information data may not be compressed, and the present disclosure does not impose any limitation on this.
[0057] In step S220, security baseline detection rules for the embedded system to be detected are generated.
[0058] This step can be performed by a safety baseline detection device (such as reference Figure 4 The security baseline detection device 420 described above is used to perform.
[0059] The security baseline detection device can obtain analysis configuration information and generate security baseline detection rules based on the analysis configuration information.
[0060] The analysis configuration information may be configured by a user. For example, when the security baseline detection apparatus is a server device, the analysis configuration information may be written by modifying a server configuration file.
[0061] The analysis configuration information may include selection information for selecting the security baseline detection rule from an existing (preset) set of security baseline detection rules, or the analysis configuration information may include editing configuration information for configuring a new security baseline detection rule, also referred to as a customized security baseline detection rule. Of course, the analysis configuration information may also include other information, such as the type of embedded system (e.g., Linux or Android).
[0062] In addition, when the analysis configuration information does not have selection information or editing configuration information, all security baseline detection rules corresponding to the type of embedded system to be detected (e.g., Linux or Android) are used as the determined security baseline detection rules. The same type of embedded systems have the same set of security baseline detection rules, and according to the type of embedded system and the security situation expected to be detected, a part of the security baseline detection rules to be used for security baseline detection can be selected from the security baseline detection rule set by configuring the analysis configuration information, for example, 50 security baseline detection rules are selected from 100 security baseline detection rules.
[0063] In step S230, the collected system information data is analyzed and processed.
[0064] This step is still performed by the safety baseline detection device (such as reference Figure 4 The security baseline detection device 420 described above is executed.
[0065] The security baseline detection device can obtain a security baseline detection start command to start the security baseline detection operation. The security baseline detection start command can be generated based on input from a user, or can be generated by a device that remotely collects system information data of the embedded system (for example, reference Figure 4 , Figure 5A The data collection device 410 described above generates and sends the system information data of the embedded system to the security baseline detection device when returning the system information data of the embedded system or when a preset time period expires thereafter.
[0066] like Figure 2B As shown in, step S230 may specifically include: obtaining a security baseline detection startup command, classifying the system information data according to data type based on the security baseline detection startup command to obtain multiple categories of system information data; and storing the multiple categories of system information data separately according to category.
[0067] More specifically, if the system information data is compressed in the data acquisition device, as described above, the security baseline detection device first decompresses the compressed system information data after receiving the security baseline detection start command, and divides the decompressed system information data into multiple categories of system information data (for example, kernel data, root file system information data, network data, process data, etc.) according to different data types, and stores them as original system information data (for example, stored in Figure 5D in the original database shown).
[0068] In step S240, the parsed system information data is structured to obtain structured system information data with a unified format and attributes.
[0069] This step is still performed by the safety baseline detection device (such as reference Figure 4 The security baseline detection device 420 described above is executed.
[0070] Step S240 may specifically include: analyzing the stored original system information data (such as data analysis and version analysis) to perform structured processing on the system information data, thereby obtaining structured system information data, and further storing it as intermediate system information data (such as stored in Figure 5D ) so that the structured system information data can be used directly.
[0071] In step S250, a security baseline detection rule is used to perform a security baseline detection on the structured system information data to obtain a security baseline detection result of the embedded system.
[0072] This step is still performed by the safety baseline detection device (such as reference Figure 4 The security baseline detection device 420 described above is executed.
[0073] For example, using the determined security baseline detection rules to detect the structured system information data includes matching the determined security baseline detection rules with the structured system information data in sequence, that is, determining the security baseline detection results for each security baseline detection rule, and using the set of security baseline detection results for each security baseline detection rule as the security baseline detection result of the embedded system.
[0074] More specifically, for each security baseline detection rule, determine whether there is structured system information data associated with the security baseline detection rule, and: in the case where there is structured system information data associated with the security baseline detection rule, when the associated structured system information data matches the security baseline detection rule, determine that the embedded system has reached the security baseline associated with the security baseline detection rule, as a security baseline detection result for the security baseline detection rule, and when the associated structured system information data does not match the security baseline detection rule, determine that the embedded system has not reached the security baseline associated with the security baseline detection rule, as a security baseline detection result for the security baseline detection rule, and in the case where there is no structured system information data associated with the security baseline detection rule, determine that there is no need to determine whether the security baseline associated with the security baseline detection rule is passed, as a security baseline detection result for the security baseline detection rule, and take the set of security baseline detection results for each security baseline detection rule as the security baseline detection result for the embedded system.
[0075] For example, each security baseline detection rule (i.e., security baseline audit rule) may include its own regularized expression and identification information of the system information data associated with it. The security baseline detection device determines whether there is system information data associated with the security baseline detection rule in the structured system information data. If there is system information data associated with it, the security baseline detection device determines whether the embedded system reaches (passes) the security baseline associated with the security baseline detection rule based on whether the regularized formula of the security baseline detection rule is satisfied (matched) by the system information data associated with it.
[0076] As an example, assume that there are 50 security baseline detection rules, and the first security baseline detection rule is that file b should not exist in directory A. First, the security baseline detection module can first determine that the system information data associated with the first security baseline detection rule is the system information data related to directory A, and then determine whether there is system information data related to directory A. When it is determined that there is system information data related to directory A, it is further determined whether there is file b in directory A. If file b exists, the first security baseline detection rule is not satisfied, that is, the first security baseline detection rule does not match the system information data associated with it. Therefore, the security baseline detection module determines that the first security baseline detection rule has not been passed (the security baseline associated with the first security baseline detection rule has not been reached), for example, the security baseline detection result for the first security baseline detection rule is output as "failed". In addition, if it is determined that there is no system information data related to the A directory, then it is determined that there is no need to judge whether the first security rule is passed, for example, the security baseline detection result "N / A" for the first security baseline detection rule is output; the second security baseline detection rule is that the first line of the A file must be c. First, the security baseline detection module can determine that the system information data associated with the second security baseline detection rule is the system information data related to the A file (assuming it exists), and then further determine whether the first line of the A file is c for the system information data related to the A file. If the first line of the A file is c, it is determined that the second security baseline detection rule is satisfied, for example, the security baseline detection result "pass" for the second security baseline detection rule is output, and so on, until all 50 security baseline detection rules are matched with the structured system information data, thereby obtaining a set of security baseline detection results using the 50 security baseline detection rules as the security baseline detection result of the embedded system.
[0077] In step S260, the security baseline detection result of the embedded system is output and displayed.
[0078] This step can be performed by a data management device (such as reference Figure 4 The data management device 430 described above is used to execute.
[0079] For example, "management" here may include generating visualization information so that a device with display function can visually display the security baseline detection result, or generating visualization information to visually display the security baseline detection result on a predetermined network address or network page, or providing the security baseline detection result to other devices of the security baseline detection system fingerprint so that other devices can directly use the security baseline detection result and perform operations based on the security baseline detection result.
[0080] In addition, in order to generate more effective visualization information, more information about security baseline detection can be provided. For example, each security baseline detection rule can be identified with a risk level, for example, the level is set according to the impact on system security. For example, the risk level can include "high risk", "medium risk", "warning", etc. In addition, each security baseline detection rule can also be identified with categories and subcategories, and the categories can include "system audit", "information audit", "authority audit", etc., and the subcategories can include "running stage", "sensitive files", "user configuration", etc.
[0081] Therefore, for the security baseline detection results of the embedded system, that is, the set of security baseline detection results for each security baseline detection rule, the security baseline detection results can be divided and displayed according to the risk level. When displaying the security baseline detection results for each security baseline detection rule, the risk level, category, subcategory and specific rule description of the security baseline detection rule can be displayed, such as Figure 3 shown. Figure 3 , the security baseline detection result of the security baseline detection rule at "high risk" is shown.
[0082] In the above description, the data acquisition device, the security baseline detection device and the data management device are all outside the embedded system 100 , that is, they are physically separated from the embedded system 100 .
[0083] Figure 2C Shown according to Figure 2A-2B The flowchart of the data collection process, security baseline detection process and data management process in the security baseline detection method is as follows. Each step has been described in detail in the previous article and will not be repeated here.
[0084] Through the security baseline detection method disclosed in the present invention, the security baseline detection rules are determined based on the analysis of configuration information, so that the security baseline detection rules of the embedded system can be customized, deleted, modified and added, ensuring that the required security baseline detection rules can be selected according to the situation of the embedded system, and by establishing a remote connection with the embedded system, that is, the system information data collection method is a remote non-intrusive solution, so there is no need to add any new programs to the embedded system itself, and the storage space of the embedded system will not be used. In addition, since the system information collection process and the security baseline detection process are decoupled from each other and performed separately, no calculations will be performed locally in the embedded system, which can meet the special scenario of low computing power of the embedded system. Finally, the security baseline detection method adopted is to parse, structure, match the security baseline detection rules, etc. of the collected system information, rather than directly running the corresponding commands in the embedded system, so there is no dependence on the embedded system, and the embedded system does not need to pre-install any programs, which can meet the security baseline detection needs of the tailored embedded system.
[0085] Figure 4 A structural block diagram of a security baseline detection system 400 for an embedded system according to an embodiment of the present disclosure is shown.
[0086] like Figure 4 As shown, the security baseline detection system 400 is set separately from the embedded system 100 (installed in the embedded device) and is used to remotely perform security baseline detection on the embedded system 100.
[0087] The security baseline detection system 400 includes a data acquisition device 410 , a security baseline detection device 420 and a data management device 430 .
[0088] The data acquisition device 410 is used to establish a remote connection with the embedded system 100 mounted on the embedded device, and to acquire and output system information data of the embedded system 100 .
[0089] The security baseline detection device 420 is used to receive system information data of an embedded system, generate security baseline detection rules for the embedded system to be detected, parse and process the system information data, and structure the system information data to obtain structured system information data with a unified format and attributes, and use the security baseline detection rules to perform security baseline detection on the structured system information data after structured processing to obtain a security baseline detection result for the embedded system.
[0090] The data management device 430 is used to receive the security baseline detection result of the embedded system from the security baseline detection device, and output and display the security baseline detection result of the embedded system.
[0091] The "display" here may include generating visual information so that a device with display function can visually display the security baseline detection result, or providing the security baseline detection result to other devices outside the security baseline detection system so that other devices can directly use the security baseline detection result and perform operations based on the security baseline detection result.
[0092] In some embodiments, the data collection device 410, the security baseline detection device 420 and the data management device 430 are physically located in a single device, and are divided only by logical functions, for example, in a server device or in a computer device.
[0093] In other embodiments, the security baseline detection device 420 and the data management device 430 are physically located in a single device (eg, a server device or a computer device), while the data collection device 410 is located in another device (eg, a server device or a computer device).
[0094] In some other embodiments, the data collection device 410, the security baseline detection device 420 and the data management device 430 are physically located in different devices (for example, a server device or a computer device).
[0095] Will combine Figure 5A-5G The data acquisition device 410, the safety baseline detection device 420 and the data management device 430 are introduced in more detail.
[0096] Figure 5A-5G Shows Figure 4 The structural block diagram of each device in the security baseline detection system 400 is shown in FIG.
[0097] Figure 5A Specific modules in the data acquisition device 410 are shown.
[0098] like Figure 5A As shown, the data acquisition device 410 includes an acquisition configuration information acquisition module 4101 , a remote command module 4102 , a remote acquisition module 4103 and a data output module 4104 .
[0099] The acquisition configuration information acquisition module 4101 is used to acquire acquisition configuration information.
[0100] For example, the collection configuration information is configured by writing a collection program.
[0101] For example, the user can edit the collection configuration information according to the system information data (such as system execution commands and system files) of the embedded system 100 that needs to be collected. Optionally, the collection configuration information may include a collection data volume indication, which is used to indicate the collection of the full amount of system information data or part of the system information data of the embedded system 100. At the same time, when the collection configuration information does not include the collection data volume indication, the full amount of system information data of the embedded system 100 will be collected by default.
[0102] In addition, the collection configuration information may also include identification information of the embedded system 100, such as the IP address, port number, login account, login password and other information of the embedded system 100, so that the data collection device 410 can know which embedded system's system information data needs to be collected.
[0103] The remote command module 4102 can generate an acquisition control command based on the acquisition configuration information, establish a remote connection with the embedded system, and send the acquisition control command to the embedded system 100, for example, by executing an acquisition program.
[0104] For example, the remote command module 4102 can establish a remote connection with the embedded system 100 based on the identification information of the embedded system included in the acquisition configuration information, and send an acquisition control command to the embedded system based on the remote connection. For example, the remote command module 4102 communicates with the embedded system 100 through a remote communication method such as ssh or adb.
[0105] In response to the acquisition control command, the embedded system 100 locally acquires system information data and returns the system information data to the data acquisition device 410 (the remote acquisition module 4103 mentioned later).
[0106] During the continuous execution of the acquisition program, the remote command module 4102 can continuously send acquisition control commands to the embedded system 100, so that the embedded system 100 continuously locally acquires system information data and returns the system information data to the data acquisition device 410 (the remote acquisition module 4103 mentioned later).
[0107] The remote collection module 4103 collects system information data of the embedded system 100 mounted on the embedded device through the above remote connection.
[0108] The data output module 4104 is configured to send the system information data to the security baseline detection device 420. For example, the data output module 4104 may compress the system information data returned by the embedded system 100, and send the compressed system information data to the security baseline detection device 420, thereby reducing communication resources, but the system information data may not be compressed, and the present disclosure does not limit this.
[0109] It should be noted that although Figure 5A In the embodiment, for the convenience of description, the data acquisition device 410 is divided into the multiple modules as described above, but this is only an example, and the internal structure of the data acquisition device 410 can be divided in other forms, for example, the remote command module 4102 and the remote acquisition module 4103 can be used together as a remote communication module. On the other hand, the implementation of the data acquisition device 410 can be an electronic device (such as a server or a computer) including a memory and a processor, wherein an executable program including, for example, an acquisition program is stored on the memory, and when the executable program is run, the processor performs the various operations described above with reference to each module.
[0110] Specific application scenarios for collecting system information data of embedded systems in cars include: Figure 5B As shown. Figure 5B In the process, the user configures the data acquisition device with acquisition configuration information (including the IP address, port, user name, password, etc. of the embedded system) (process 1), such as modifying the configuration file of the data acquisition device. The data acquisition device establishes a remote connection with the embedded system in the car based on the acquisition configuration information and sends an acquisition control command to it (process 2). The embedded system in the car locally acquires system information data based on the acquisition control command (process 3), and returns the system information data to the data acquisition device (process 4).
[0111] Figure 5C Specific modules in the security baseline detection device 420 are shown.
[0112] As shown in 5C , the security baseline detection device 420 may include an acquisition module 4201 , a rule determination module 4202 , a data processing module 4203 and a security baseline detection module 4204 .
[0113] The acquisition module 4201 is used to acquire system information data, security baseline detection startup commands, and analysis configuration information of the embedded system 100.
[0114] For example, the security baseline detection start command can be generated based on user input from an input device connected (directly or indirectly) to the security baseline detection device, or it can be generated by the data acquisition device 410 and sent to the security baseline detection device 420 (acquisition module 4201) when the system information data of the embedded system 100 is returned or when a preset time period expires thereafter.
[0115] For example, the analysis configuration information may be configured by a user. For example, when the security baseline detection apparatus 420 is a server device, the analysis configuration information may be written by modifying a server configuration file.
[0116] For example, the analysis configuration information may include selection information for selecting the security baseline detection rule from an existing set of security baseline detection rules, or the analysis configuration information may include editing configuration information for configuring a new security baseline detection rule. Of course, the analysis configuration information may also include other information, such as the type of embedded system (e.g., Linux or Android).
[0117] The rule determination module 4202 is used to determine the security baseline detection rule based on the analysis configuration information, for example, to select a rule to be used for security baseline detection or to generate a new security baseline detection rule.
[0118] In addition, when the analysis configuration information does not have selection information or editing configuration information, all security baseline detection rules corresponding to the type of embedded system to be detected (e.g., Linux or Android) are used as the determined security baseline detection rules. The same type of embedded systems have the same set of security baseline detection rules, and according to the type of embedded system and the security situation expected to be detected, a part of the security baseline detection rules to be used for security baseline detection can be selected from the security baseline detection rule set by configuring the analysis configuration information, for example, 50 security baseline detection rules are selected from 100 security baseline detection rules.
[0119] The data processing module 4203 is used to parse and process the collected system information data based on the security baseline detection startup command, and to structure the parsed system information data to obtain structured system information data with a unified format and attributes.
[0120] For example, the data processing module 4203 can classify the system information data of the embedded system 100 according to the data type to obtain multiple categories of system information data; and perform structured processing on each category of system information data to obtain structured system information data with a unified format and attributes for each category as the structured system information data.
[0121] More specifically, the data processing module 4203 may include a data parsing submodule, a raw data storage submodule, an analysis submodule, an intermediate data storage submodule, etc. In some embodiments, the data processing module 4203 may not include a storage submodule, that is, the data may be stored in other storage devices.
[0122] First, if the system information data is compressed in the data acquisition device 410, the data parsing submodule in the data processing module 4203, after receiving the security baseline detection start command, first decompresses the compressed system information data, and divides the decompressed system information data into multiple categories of system information data (for example, kernel data, root file system information data, network data, process data, etc.) according to different data types, and stores them in the original data storage submodule. Then, the analysis submodule analyzes the system information data in the original data storage submodule (for example, data analysis and version analysis, or other types of analysis) to structure the system information data, thereby obtaining structured system information data, and stores it in the intermediate data storage submodule so that subsequent modules can directly use the structured system information data (i.e., structured system information data).
[0123] The security baseline detection module 4204 is used to detect the structured system information data using the determined security baseline detection rules, and use the set of security baseline detection results for each security baseline detection rule as the security baseline detection result of the embedded system.
[0124] The specific process performed by the security baseline detection module 4204 is similar to the process described in the previous security baseline detection method, so it will not be repeated here.
[0125] After the security baseline detection module 4204 obtains the security baseline detection result, it can send the security baseline detection result and / or structured system information data to the data management device 430 based on the data call request.
[0126] It should be noted that although Figure 5C In the embodiment, for the convenience of description, the security baseline detection device 420 is divided into the multiple modules as described above, but this is only an example, and the internal structure of the security baseline detection device 420 can be divided in other forms. On the other hand, the implementation of the security baseline detection device 420 can be an electronic device (such as a server or a computer) including a memory and a processor, wherein the memory can store an executable program and various data, and when the executable program is executed, the processor performs the various operations described with reference to the various modules.
[0127] In order to more clearly illustrate the working process of the safety baseline detection device 420, the following reference Figure 5D A specific example is described, in which the security baseline of the system is audited, and the security baseline detection device 420 can also be called an analysis audit engine.
[0128] exist Figure 5D In , the analysis launcher and data parser can be equivalent to Figure 5C In the data parsing submodule, the original database can be equivalent to Figure 5C The original data storage submodule, data analyzer and version analyzer in Figure 5C The analysis submodule and intermediate database in the Figure 5C The intermediate data storage submodule in the security auditor can be equivalent to Figure 5C The security baseline detection module and rule determination module in it.
[0129] After receiving the security baseline detection start command, the analysis launcher starts the analysis operation, and then the data parser decompresses the compressed system information data, and divides the decompressed system information data into multiple categories of system information data (for example, kernel data, root file system information data, network data, process data, etc.) according to different data types and stores them in the original database. Then, the data analyzer and the version analyzer analyze the system information data in the original database respectively to structure the system information data, thereby obtaining structured system information data, and store the structured system information data in the intermediate database. The security auditor determines the audit rules (that is, the security baseline detection rules, including at least a part of the rules selected from the rule set and the customized rules) and uses the determined audit rules to detect the structured system information data (that is, the structured system information data) to obtain the audit results of the embedded system, for example, in a specific format (for example, json file format) and save them in the report database. In addition, the data analyzer can also forward the system information data to an analysis engine (not shown) for analyzing other attributes of the system information data.
[0130] As shown in 5E, the data management device 430 may include an interface module 4301 and optionally a processing module 4302 and an interaction module 4303.
[0131] As described above, the "management" here may include generating visual information of the security baseline detection results for displaying the security baseline detection results, or providing the security baseline detection results to other devices (different from devices within the security baseline detection system) so that other devices can directly use the security baseline detection results and perform operations based on the security baseline detection results.
[0132] More specifically, the interface module (e.g., API interface) receives security baseline detection results and / or structured system information data from the data management device 430 and sends them to the processing module 4302. After the processing module 4303 generates display information, the display information is sent to the interaction module 4303 (the processing module can send display information in response to a request from the interaction module). The interaction module 4303 generates visualization information based on the display information and sends it to an external display / input device (including a user interface) for visualization. Or, after the security baseline detection results and / or structured system information data are generated as visualization information as above, they are displayed on a predetermined network address or network page (e.g., a browser page on a display screen of a computer serving as a display module), or the interface module 4301 sends the security baseline detection results and / or structured system information data to other devices for use by other devices.
[0133] In addition, through the interactive module, customized selections can be made on the display / input device for security baseline detection results and / or structured system information data, that is, items that are desired to be displayed are displayed on the display / input device.
[0134] Moreover, as described above, the data management device 430 can be arranged in the same device as the security baseline detection device 420 and / or the data acquisition device 410, and the input can be provided to the security baseline detection device 420 and / or the data acquisition device 410 after being processed by the processing module 4302 and the interaction module 4303 of the data management device 430. For example, the security baseline detection start command, analysis configuration information required to be obtained by the security baseline detection device 420 and the acquisition configuration information required to be obtained by the data acquisition device 410 can be input through the display / input device, and the input is processed by the interaction module 4303 and then transmitted to the processing module 4302. The processing module 4402 processes the user input and provides the above command or configuration information to the security baseline detection device 420 and the data acquisition device 410.
[0135] It should be noted that although Figure 5E In the embodiment, for the convenience of description, the data management device 430 is divided into the multiple modules as described above, but this is only an example, and the internal structure of the data management device 430 can be divided in other forms. On the other hand, the data management device 430 can be implemented as an electronic device (such as a server or a computer) including a memory and a processor, wherein the memory can store an executable program and various data, and when the executable program is executed, the processor performs the various operations described above with reference to the various modules.
[0136] In order to more clearly illustrate the working process of the data management device 430, the following reference Fig. 5F A specific example is described, in which a management platform server is used as an implementation of the security baseline detection device 420.
[0137] exist Fig. 5F In the data management device 430 and the security baseline detection device 420 (ie Figure 5D For example, the analysis and audit engine in the same device (management platform server) is arranged in the same device, and the device has an external display / input device. The server backend and the management system are equivalent to Figure 5E The processing module in the server front end is equivalent to Figure 5E The interactive module in .
[0138] exist Fig. 5F In the example, the API interface (not shown) is used from Figure 5D The report database or intermediate database receives the audit results and / or structured system information data and sends it to the server backend. After the display information is generated by the server backend and the management system, the display information is sent to the server frontend (the server backend can send the display information in response to the request of the server frontend). The server frontend generates visualization information based on the display information and sends it to an external display / input device (including a user interface) for visualization, or generates the audit results and / or structured system information data as above and then displays it on a predetermined network address or network page (such as a browser page on a display screen) (the management platform server can act as a web management server at this time). In addition, the API interface can also directly send the audit results and / or structured system information data to other processing devices for use by other processing devices.
[0139] In addition, the server front end can receive user input, which can be used to provide a security baseline detection startup command. At this time, the server front end transmits the user input to the server back end, and the server back end processes the user input and sends it to the management system, which is used to send Figure 5D The analysis launcher shown in provides a startup command for starting the analysis audit engine. In addition, the user can also input various configuration information (such as analysis configuration information) to provide configuration information to other devices after being processed by the management platform server.
[0140] Figure 5G The complete system diagram of the security baseline detection system and the embedded system is shown. The specific process is the same as the process described above, and will not be repeated here.
[0141] In order to more clearly describe the embodiments of the present disclosure, Figure 6 A schematic diagram of the interaction between various devices within a security baseline detection system according to an embodiment of the present disclosure is provided.
[0142] First, in step S601 , the data collection device 410 obtains collection configuration information.
[0143] The data acquisition device 410 generates an acquisition control command based on the acquisition configuration information and establishes a remote connection with the embedded system 100 , and sends the acquisition control command to the embedded system 100 through the remote connection in step S602 .
[0144] In response to the acquisition control command, the embedded system 100 locally acquires system information data, and returns the system information data to the data acquisition device 410 in step S603 .
[0145] The data acquisition device 410 may continuously send acquisition control commands to the embedded system 100 , so that the embedded system 100 continuously locally acquires system information data and returns the system information data to the data acquisition device 410 .
[0146] After the data acquisition device 410 has collected the required system information data of the embedded system 100 mounted on the embedded device through the above-mentioned remote connection, it ends the remote connection, compresses the system information data (which can be omitted), and in step S604, sends the (compressed) system information data to the security baseline detection device 420.
[0147] In step S605, the security baseline detection device 420 obtains analysis configuration information. For example, the analysis configuration information may be configured by the user. For example, as described above, the user input may be converted into analysis configuration information via the interaction module and the processing module in the data management device 430 and sent to the security baseline detection device 420. In addition, when the security baseline detection device 420 is a server device, the analysis configuration information may be written by modifying the server configuration file.
[0148] In step S606, the security baseline detection device 420 obtains a security baseline detection start command. For example, the security baseline detection start command can be generated based on user input. For example, as described above, the user input can be converted into a security baseline detection start command via the interaction module and the processing module in the data management device 430 and sent to the security baseline detection device 420, or it can be generated by the data acquisition device 410 and sent to the security baseline detection module 420 when the system information data of the embedded system 100 is returned or when a preset time period expires thereafter.
[0149] The security baseline detection device 420 determines the security baseline detection rules based on the analysis of the configuration information, performs structured processing on the system information data, and detects the security baseline of the structured system information data using the determined security baseline detection rules to obtain a security baseline detection result. For example, the structured system information data is matched using the determined security baseline detection rules to determine whether the embedded system reaches the security baseline associated with each security baseline detection rule. For example, the determined security baseline detection rules are matched with the structured system information data in sequence.
[0150] In step S607 , the data management device 430 sends a data call request for the security baseline detection result and / or the structured system information data to the security baseline detection module 420 (eg, through an API interface).
[0151] In step S608, the security baseline detection module 420 sends the security baseline detection results and / or structured system information data to the data management device 430 based on the data call request, and the data management module generates visualization information to provide it to an external display / input device for visualization, or the data management device sends the security baseline detection results and / or structured system information data to other devices for use by other devices.
[0152] In addition, when the data management device 430 has an interactive module, for example, the security baseline detection startup command and analysis configuration information that the security baseline detection device 420 needs to obtain, and the collection configuration information that the data acquisition device 410 needs to obtain, etc. can be input on the display / input device. After the user input is processed by the interactive module 4303, the user input is passed to the processing module 4302. After processing the user input, the processing module 4302 provides the above-mentioned commands or configuration information to the security baseline detection device 420 and the data acquisition device 410.
[0153] Through the security baseline detection system disclosed in the present invention, the security baseline detection rules are determined based on the analysis of configuration information, so that the security baseline detection rules of the embedded system can be customized, deleted, modified and added, ensuring that the required security baseline detection rules can be selected according to the situation of the embedded system, and by establishing a remote connection with the embedded system, that is, the method for collecting system information data is a remote non-intrusive solution, so there is no need to add any new programs to the embedded system itself, and the storage space of the embedded system will not be used. In addition, since the system information collection process and the security baseline detection process are decoupled from each other and performed separately, no calculations will be performed locally in the embedded system, which can meet the special scenarios of low computing power of the embedded system. Finally, the security baseline detection method adopted is to parse, structure, match the security baseline detection rules, etc. of the collected system information, rather than directly running the corresponding commands in the embedded system, so there is no dependence on the embedded system, and the embedded system does not need to pre-install any programs, which can meet the security baseline detection needs of the tailored embedded system.
[0154] On the other hand, as mentioned above Figure 5A-5G As described above, the implementation methods of the data collection device 410, the security baseline detection device 420 and the data management device 430 can all be server devices or computer devices. Figure 7 A schematic structural block diagram of a server device or a computer device 700 for implementing a data collection device 410, a security baseline detection device 420, and a data management device 430 according to an embodiment of the present disclosure is shown.
[0155] See also Figure 7 , the server device or computer device 700 may include a processor 701 and a memory 702. The processor 701 and the memory 702 may be connected via a bus 703.
[0156] The processor 701 can perform various actions and processes according to the program stored in the memory 702. Specifically, the processor 701 can be an integrated circuit chip with signal processing capabilities. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can be an X66 architecture or an ARM architecture.
[0157] The memory 702 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronously linked dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that the memory of the method described in the present disclosure is intended to include, but is not limited to, these and any other suitable types of memory.
[0158] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of the code contains at least one executable instruction for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0159] In general, various example embodiments of the present disclosure may be implemented in hardware or dedicated circuits, software, firmware, logic, or any combination thereof. Certain aspects may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device. When various aspects of the embodiments of the present disclosure are illustrated or described as block diagrams, flow charts, or using some other graphical representation, it will be understood that the blocks, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general purpose hardware or controllers or other computing devices, or some combination thereof as non-limiting examples.
[0160] The exemplary embodiments of the present disclosure described in detail above are merely illustrative and not restrictive. It should be understood by those skilled in the art that various modifications and combinations may be made to these embodiments or their features without departing from the principles and spirit of the present disclosure, and such modifications should fall within the scope of the present disclosure.
Claims
1. A security baseline detection method for an embedded system, the security baseline detection method comprising: Establishing a remote connection with an embedded system to be detected, and collecting system information data of the embedded system; Generate a security baseline detection rule for the embedded system to be detected; Analyzing and processing the collected system information data; Performing structure processing on the parsed system information data to obtain structured system information data with a unified format and attributes; Performing a security baseline detection on the structured system information data using the security baseline detection rule to obtain a security baseline detection result of the embedded system, wherein, for each security baseline detection rule, determining whether there is structured system information data associated with the security baseline detection rule, and determining a security baseline detection result for the security baseline detection rule based on the determination result; as well as Output and display the security baseline detection results of the embedded system.
2. The security baseline detection method according to claim 1, wherein: The step of establishing a remote connection with the embedded system to be detected and collecting system information data of the embedded system includes: Get collection configuration information; Generate an acquisition control command based on the acquisition configuration information and establish a remote connection with the embedded system, and send the acquisition control command to the embedded system through remote communication; and receiving system information data returned by the embedded system through remote communication, Wherein, in response to the acquisition control command, the embedded system locally acquires system information data and returns the system information data.
3. The security baseline detection method according to claim 2, wherein: The acquisition configuration information includes identification information of the embedded system, Among them, establishing a remote connection with the embedded system to be detected includes: A remote connection is established with the embedded system based on the identification information of the embedded system.
4. The security baseline detection method according to claim 2 or 3, wherein: The collection configuration information also includes a collection data volume indication, which is used to indicate the collection of full system information data or partial system information data of the embedded system, and is sent to the embedded system through the collection control command, so that the embedded system locally collects full system information data or partial system information data.
5. The security baseline detection method according to claim 1, wherein: The generating of a security baseline detection rule for the embedded system to be detected includes: Acquire analysis configuration information, and generate the security baseline detection rule based on the analysis configuration information.
6. The security baseline detection method according to claim 5, wherein: The analysis configuration information includes selection information or editing configuration information, The generating of security baseline detection rules based on the analysis configuration information includes: selecting the security baseline detection rule from a security baseline detection rule set based on the selection information, wherein the security baseline detection rule set is preset; or New security baseline detection rules are configured based on the edited configuration information.
7. The security baseline detection method according to claim 1, wherein: The parsing and processing of the collected system information data includes: obtaining a security baseline detection startup command, classifying the system information data according to data type based on the security baseline detection startup command to obtain multiple categories of system information data, and storing the multiple categories of system information data separately according to category; and The system information data after the analysis is structured to obtain structured system information data with a unified format and attributes, including: each category of system information data is structured to obtain each category of structured system information data with a unified format and attributes.
8. The security baseline detection method according to claim 7, wherein: The using the security baseline detection rule to perform a security baseline detection on the structured system information data to obtain a security baseline detection result of the embedded system includes: For each security baseline detection rule, determine whether there is structured system information data associated with the security baseline detection rule, and: In the case where there is structured system information data associated with the security baseline detection rule, when the associated structured system information data matches the security baseline detection rule, determining that the embedded system has reached the security baseline associated with the security baseline detection rule as a security baseline detection result for the security baseline detection rule, and when the associated structured system information data does not match the security baseline detection rule, determining that the embedded system has not reached the security baseline associated with the security baseline detection rule as a security baseline detection result for the security baseline detection rule, and In the absence of structured system information data associated with the security baseline detection rule, determining that there is no need to determine whether the security baseline associated with the security baseline detection rule is reached as a security baseline detection result for the security baseline detection rule, and A set of security baseline detection results for each security baseline detection rule is used as the security baseline detection result of the embedded system.
9. The security baseline detection method according to claim 1, wherein: The outputting and displaying the security baseline detection result of the embedded system includes at least one of the following: Generate visual information so that a device with a user interface can visually display the security baseline detection result; Generate visual information and visually display the security baseline detection results on a predetermined network address or network page; as well as The security baseline detection result is output to other devices different from the device for use by the other devices.
10. The security baseline detection method according to claim 8, wherein: Each security baseline detection rule is marked with a risk level. Wherein, the method of performing a security baseline detection on the structured system information data using the security baseline detection rule to obtain a security baseline detection result of the embedded system further includes: dividing the security baseline detection result according to risk level, and Wherein, the outputting and displaying the security baseline detection result of the embedded system includes: displaying the security baseline detection result according to the risk level.
11. A security baseline detection system for an embedded system, the security baseline detection system comprising: A data acquisition device, used to establish a remote connection with the embedded system to be detected, collect and output system information data of the embedded system; A security baseline detection device, used for receiving system information data of the embedded system, generating security baseline detection rules for the embedded system to be detected, parsing the system information data, structuring the parsed system information data to obtain structured system information data with a unified format and attributes, and performing security baseline detection on the structured system information data after structuring using the security baseline detection rules to obtain a security baseline detection result of the embedded system, wherein, for each security baseline detection rule, determining whether there is structured system information data associated with the security baseline detection rule, and determining a security baseline detection result for the security baseline detection rule based on the determined result; as well as The data management device is used to receive the security baseline detection result of the embedded system from the security baseline detection device, and output and display the security baseline detection result of the embedded system.
12. The safety baseline detection system according to claim 11, wherein: The data acquisition device comprises: A collection configuration information acquisition module is used to obtain collection configuration information; A remote command module, which is configured to generate an acquisition control command based on the acquisition configuration information and establish a remote connection with the embedded system, and send the acquisition control command to the embedded system; A remote acquisition module, configured to acquire system information data returned by the embedded system through remote communication; a data output module, configured to send the system information data to the security baseline detection device, Wherein, in response to the acquisition control command, the embedded system locally acquires system information data and returns the system information data to the remote acquisition module.
13. The safety baseline detection system according to claim 11, wherein: The safety baseline detection device comprises: An acquisition module, used to acquire analysis configuration information, system information data of the embedded system, and a security baseline detection startup command; A rule determination module, used to determine a security baseline detection rule based on the analysis configuration information; a data processing module, configured to parse the collected system information data based on the security baseline detection startup command, and perform structured processing on the parsed system information data to obtain structured system information data with a unified format and attributes; and The security baseline detection module is used to detect the structured system information data using the determined security baseline detection rules, and use the set of security baseline detection results for each security baseline detection rule as the security baseline detection result of the embedded system.
14. The safety baseline detection system according to claim 13, wherein: The data acquisition device, the safety baseline detection device and the data management device are physically located in a single device, or The safety baseline detection device and the data management device are physically located in a single device, and the data acquisition device is located in another device, or The data acquisition device, the safety baseline detection device and the data management device are physically located in different devices.
15. The security baseline detection system according to claim 13, wherein: Each security baseline detection rule is marked with a risk level. Wherein, the security baseline detection device further includes a division module, and the division module is used to divide the security baseline detection result according to the risk level; and Wherein, the data management device is also used to display the security baseline detection results according to the risk level.
