Method, device, equipment and storage medium for determining defense strategy
By determining the safety level of the vehicle based on the severity level of the intrusion behavior and the operating status of the vehicle, the method of determining the defense strategy is optimized, the problem of inaccurate defense strategy in the existing technology is solved, and the effectiveness and safety of blocking intrusion behavior is improved. sex.
Patent Information
- Application Number
- CN202210970234.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-12
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-08-12
AI Technical Summary
In the prior art, there are inaccurate problems in determining the defense strategy based on the level of intrusion behavior, which leads to the intrusion behavior being unable to effectively block it and affects the user's information security and personal safety.
By determining the target severity level based on the importance of the intrusion behavior to the vehicle system, combining the current operating status of the vehicle and the safety level at the previous intrusion behavior, the target safety level of the vehicle is determined, and the corresponding Defense policies, including not performing any operations, generating security warnings, prohibiting the start of intrusion programs, etc.
Improve the accuracy of determining defense strategies, reduce the risk and potential adverse effects of implementing defense strategies, and ensure user information and personal safety.
Smart Images

Figure CN115150194B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a method, device, equipment and storage medium for determining a defense strategy. Background Art
[0002] With the development of intelligence and networking, security threats from the Internet will penetrate into the vehicle system through the relevant interfaces of the vehicle, and use the security loopholes of the vehicle to steal vehicle information, or even maliciously control the vehicle, which seriously threatens the information security and personal safety of users. Therefore, it is very necessary to detect intrusions in a timely manner and take effective measures to block them before they cause serious consequences.
[0003] At present, the main way to block intrusion behavior is to determine the level of intrusion behavior when detecting intrusion behavior in the vehicle, and implement corresponding defense strategies according to the level of intrusion behavior to block the intrusion behavior. Among them, the defense strategies may include the following: displaying the relevant information of the intrusion behavior on the central control screen of the vehicle, reporting the intrusion behavior to relevant staff, shutting down the intrusion program that causes the intrusion behavior, etc.
[0004] However, in the prior art, there is an inaccuracy problem in determining the defense strategy according to the level of the intrusion behavior. Summary of the invention
[0005] The present application provides a method, device, equipment and storage medium for determining a defense strategy to solve the inaccuracy problem existing in the prior art.
[0006] In a first aspect, an embodiment of the present application provides a method for determining a defense strategy, including:
[0007] Determining a target severity level of the intrusion behavior according to the importance of the intrusion program of the intrusion behavior to the vehicle system, wherein the target severity level is used to indicate the severity of the threat caused by the intrusion behavior to the vehicle system;
[0008] Determining a target security level of the vehicle at the current moment according to the target severity level, the target operating state of the vehicle at the current moment, and the original security level of the vehicle when the last intrusion behavior occurred;
[0009] According to the target severity level, the target security level and a preset first mapping relationship, a target defense strategy corresponding to the target severity level and the target security level is determined. The first mapping relationship is a correspondence between the severity level of the intrusion behavior, the security level of the vehicle and the defense strategy.
[0010] In a possible design of the first aspect, determining the target security level of the vehicle at the current moment according to the target severity level, the target operating state of the vehicle at the current moment, and the original security level of the vehicle when the last intrusion behavior occurs includes:
[0011] Determining whether the target severity level of the intrusion behavior is a preset level;
[0012] If the target severity level of the intrusion behavior is the preset level, determining a corresponding number threshold according to the target operating state of the vehicle at the current moment and the original safety level;
[0013] When the total number of intrusion behaviors of a preset level that occur continuously when the vehicle is at the original security level is equal to the number threshold, the preset security level is determined as the target security level of the vehicle at the current moment, and the security of the vehicle represented by the preset security level is higher than the original security level;
[0014] If the target severity level of the intrusion behavior is not the preset level, the target security level corresponding to the target severity level and the original security level is determined based on the target severity level, the original security level and a preset second mapping relationship, and the second mapping relationship is the correspondence between the first security level, the severity level of the intrusion behavior and the second security level.
[0015] In another possible design of the first aspect, before determining the target severity level of the intrusion behavior according to the importance of the intrusion program to the vehicle system, the method further includes:
[0016] Determining a target scanning strategy for scanning intrusion behaviors according to the target running state of the vehicle at the current moment, the target scanning strategy including a strategy for scanning the vehicle for intrusion behaviors through a first scanning cycle;
[0017] The target scanning strategy is executed to detect whether there is any intrusion behavior.
[0018] Optionally, determining a target scanning strategy for scanning intrusion behaviors according to a target operating state of the vehicle at a current moment includes:
[0019] A target scanning strategy for scanning intrusion behaviors at the current moment is determined according to the target operating state of the vehicle at the current moment and the first scanning strategy corresponding to the last intrusion behavior.
[0020] Optionally, determining a target scanning strategy for scanning intrusion behavior at the current moment according to the target operating state of the vehicle at the current moment and the first scanning strategy corresponding to the previous intrusion behavior includes:
[0021] Determine a second scanning strategy corresponding to the target operating state according to the target operating state and a preset third mapping relationship, wherein the third mapping relationship is a correspondence between the operating state and the scanning strategy;
[0022] When the second scanning strategy and the first scanning strategy are both preset scanning strategies, determining whether an intrusion behavior is detected when executing the first scanning strategy;
[0023] If an intrusion behavior is detected, determining the first scanning strategy as a target scanning strategy;
[0024] If no intrusion behavior is detected, the scanning period in the first scanning strategy is increased to a second scanning period, and the increased first scanning strategy is determined as the target scanning strategy.
[0025] In another possible design of the first aspect, the operating state of the vehicle includes any one of the following: not started, started but not running, manual operation, assisted driving, and automatic driving.
[0026] In another possible design of the first aspect, the defense strategy includes any one of the following: not performing any operation, generating a security warning, prohibiting the start of the intrusion program, and stopping the running of the intrusion program, and the security warning is used to remind the user that the vehicle has the intrusion behavior.
[0027] In a second aspect, an embodiment of the present application provides a device for determining a defense strategy, including:
[0028] A processing module, configured to determine a target severity level of the intrusion behavior according to the importance of the intrusion program of the intrusion behavior to the vehicle system, wherein the target severity level is used to indicate the severity of the threat caused by the intrusion behavior to the vehicle system;
[0029] The processing module is further used to determine the target security level of the vehicle at the current moment according to the target severity level, the target operating state of the vehicle at the current moment, and the original security level of the vehicle when the last intrusion behavior occurred;
[0030] The processing module is also used to determine the target defense strategy corresponding to the target severity level and the target security level based on the target severity level, the target security level and a preset first mapping relationship, wherein the first mapping relationship is the correspondence between the severity level of the intrusion behavior, the security level of the vehicle and the defense strategy.
[0031] In a possible design of the second aspect, the processing module is specifically configured to:
[0032] Determining whether the target severity level of the intrusion behavior is a preset level;
[0033] If the target severity level of the intrusion behavior is the preset level, determining a corresponding number threshold according to the target operating state of the vehicle at the current moment and the original safety level;
[0034] When the total number of intrusion behaviors of a preset level that occur continuously when the vehicle is at the original security level is equal to the number threshold, the preset security level is determined as the target security level of the vehicle at the current moment, and the security of the vehicle represented by the preset security level is higher than the original security level;
[0035] If the target severity level of the intrusion behavior is not the preset level, the target security level corresponding to the target severity level and the original security level is determined based on the target severity level, the original security level and a preset second mapping relationship, and the second mapping relationship is the correspondence between the first security level, the severity level of the intrusion behavior and the second security level.
[0036] In another possible design of the second aspect, before determining the target severity level of the intrusion behavior according to the importance of the intrusion program to the vehicle system, the processing module is further configured to:
[0037] Determining a target scanning strategy for scanning intrusion behaviors according to the target running state of the vehicle at the current moment, the target scanning strategy including a strategy for scanning the vehicle for intrusion behaviors through a first scanning cycle;
[0038] The target scanning strategy is executed to detect whether there is any intrusion behavior.
[0039] Optionally, the processing module is specifically used to:
[0040] A target scanning strategy for scanning intrusion behaviors at the current moment is determined according to the target operating state of the vehicle at the current moment and the first scanning strategy corresponding to the last intrusion behavior.
[0041] Optionally, the processing module is specifically used to:
[0042] Determine a second scanning strategy corresponding to the target operating state according to the target operating state and a preset third mapping relationship, wherein the third mapping relationship is a correspondence between the operating state and the scanning strategy;
[0043] When the second scanning strategy and the first scanning strategy are both preset scanning strategies, determining whether an intrusion behavior is detected when executing the first scanning strategy;
[0044] If an intrusion behavior is detected, determining the first scanning strategy as a target scanning strategy;
[0045] If no intrusion behavior is detected, the scanning period in the first scanning strategy is increased to a second scanning period, and the increased first scanning strategy is determined as the target scanning strategy.
[0046] In another possible design of the second aspect, the operating state of the vehicle includes any one of the following: not started, started but not running, manual operation, assisted driving, and automatic driving.
[0047] In another possible design of the second aspect, the defense strategy includes any one of the following: not performing any operation, generating a security warning, prohibiting the start of the intrusion program, and stopping the running of the intrusion program, and the security warning is used to remind the user that the vehicle has the intrusion behavior.
[0048] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and computer program instructions stored in the memory and executable on the processor, wherein the processor is used to implement the first aspect and the methods provided by various possible designs when executing the computer program instructions.
[0049] In a fourth aspect, an embodiment of the present application may provide a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect and the methods provided by various possible designs.
[0050] The method, device, equipment and storage medium for determining the defense strategy provided by the embodiment of the present application include: the electronic device determines the target severity level of the intrusion behavior according to the importance of the intrusion program to the vehicle system, and then determines the target security level of the vehicle at the current moment according to the target severity level, the target operating state, and the original security level, and finally determines the target defense strategy according to the target severity level, the target security level and the preset first mapping relationship. In this scheme, the target defense strategy is determined in combination with the target operating state of the vehicle to prevent the impact on the vehicle operation and related functions when executing the target defense strategy, thereby improving the accuracy of determining the target defense strategy and the safety of the user's personal property, reducing the risk and potential adverse effects of executing the target defense strategy, and achieving the purpose of unifying the effectiveness of the defense strategy and driving safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0052] Figure 1A schematic diagram of a vehicle safety detection model provided in an embodiment of the present application;
[0053] Figure 2 A flowchart of a method for determining a defense strategy according to an embodiment of the present application;
[0054] Figure 3 A flowchart of a second embodiment of a method for determining a defense strategy provided in an embodiment of the present application;
[0055] Figure 4 A flowchart of a method for determining a target security level provided in an embodiment of the present application;
[0056] Figure 5 A flowchart of a third embodiment of a method for determining a defense strategy provided in an embodiment of the present application;
[0057] Figure 6 A schematic diagram of the structure of a device for determining a defense strategy provided in an embodiment of the present application;
[0058] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0059] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0061] Before introducing the embodiments of the present application, the application background of the embodiments of the present application is first explained:
[0062] The vehicle-mounted intrusion detection system is a new field of information security that has developed with the development of automobile intelligence and networking. It is an effective means to detect intrusion behavior in a timely manner and block the intrusion before the intrusion behavior causes serious consequences. Therefore, it has been widely used in the vehicle field.
[0063] At present, the current vehicle-mounted intrusion detection system mainly copies or cuts the intrusion detection system of the traditional Internet Technology (IT) industry to the vehicle end, and makes a judgment according to the new timestamp of the new message and the time information recorded corresponding to the new message identifier according to the preset detection conditions, and judges whether the new message is an abnormal message according to the judgment result. When the new message is an abnormal message, the level of the intrusion behavior is determined, and the corresponding defense strategy is executed according to the level of the intrusion behavior to block the intrusion behavior.
[0064] However, in the prior art, there is an inaccuracy problem in determining the defense strategy according to the level of the intrusion behavior.
[0065] In response to the above problems, the invention of the present application is as follows: the same intrusion behavior in different operating states of the vehicle causes different consequences. For example, assuming that the intrusion program of the intrusion behavior is an automatic driving related program, when the vehicle turns on the automatic driving function, the intrusion behavior may cause a serious accident of the vehicle, or even threaten the personal safety of the user. However, when the vehicle is in manual operation, the intrusion behavior may cause the automatic driving function to be unable to start. In other words, the severity of the consequences caused by the same intrusion behavior is completely different. Based on this, when determining the defense strategy, it can be determined in combination with the target operating state of the vehicle at the current moment, so as to improve the accuracy of the defense strategy and ensure the personal and property safety of the user. On this basis, since the intrusion behavior is coherent, the target safety level of the vehicle at the current moment can be determined in combination with the original safety level of the vehicle at the time of the previous intrusion behavior, so as to reduce the misjudgment of the safety level, thereby further improving the accuracy of the subsequent determination of the defense strategy.
[0066] Exemplarily, the method for determining the defense strategy provided in the embodiment of the present application can be applied to Figure 1 A schematic diagram of a vehicle safety detection model is shown. Figure 1 A schematic diagram of a vehicle safety detection model provided in an embodiment of the present application is used to solve the above technical problems. Figure 1 As shown, the vehicle safety detection model is a recursive model. The input of the model is the original safety level of the vehicle when the last intrusion occurred, the first scanning strategy corresponding to the last intrusion, the target severity level of this intrusion, and the target operating state of the vehicle at the current moment. The output is the target safety level of the vehicle at the current moment, the target scanning strategy for detecting this intrusion, and the target defense strategy of the vehicle at the current moment.
[0067] Exemplarily, for the first intrusion behavior, the input of the vehicle safety detection model is the target severity level of the first intrusion behavior (severity level 1) and the target operating state of the vehicle at the current moment (target operating state 1), and the output is the target security level of the vehicle at the current moment (security level 1), the target scanning strategy (scanning strategy 1) and the target defense strategy (defense strategy 1). Since there is no previous intrusion behavior for the first intrusion behavior, the input of the vehicle safety detection model does not include the original security level of the vehicle at the time of the previous intrusion behavior and the first scanning strategy corresponding to the previous intrusion behavior. Further, exemplary, for the second intrusion behavior, the input of the vehicle safety detection model is the target severity level of the second intrusion behavior (severity level 2), the target operating state of the vehicle at the current moment (target operating state 2), the original security level of the vehicle at the time of the previous intrusion behavior (security level 1) and the first scanning strategy corresponding to the previous intrusion behavior (scanning strategy 1), and the output is the target security level of the vehicle at the current moment (security level 2), the target scanning strategy (scanning strategy 2) and the target defense strategy (defense strategy 2).
[0068] In practical applications, the vehicle safety detection model can be run in an electronic device, which can be a terminal device, such as a computer, a vehicle-mounted terminal, etc., or a server. It should be understood that whether the electronic device is a terminal device or a server can be determined according to actual conditions, and the embodiments of the present application do not impose specific restrictions on this.
[0069] The technical solution of the present application is described in detail below through specific embodiments.
[0070] It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0071] Figure 2 The flowchart of the method for determining the defense strategy provided in the embodiment of the present application is shown in FIG. Figure 2 As shown, the method for determining the defense strategy may include the following steps:
[0072] S201. Determine a target severity level of the intrusion behavior based on the importance of the intrusion program to the vehicle system.
[0073] The target severity level is used to indicate the severity of the threat posed by the intrusion behavior to the vehicle system. The more important the intrusion program is to the vehicle system, the higher the target severity level of the intrusion behavior, and the greater the severity of the threat posed by the intrusion behavior to the vehicle system.
[0074] In a possible implementation, the target severity level of the current intrusion behavior may be determined based on the current intrusion behavior, the importance of the intrusion program affected by the current intrusion behavior to the vehicle system, and the intrusion behavior level mapping relationship.
[0075] Exemplarily, the intrusion behavior level mapping relationship can be represented by Table 1.
[0076] Table 1
[0077]
[0078] In Table 1, whitelist processes are pre-configured trust services, which are generally processes related to applications installed in the vehicle system. Important programs are assisted driving related programs, core programs are autonomous driving related programs, and non-important programs are programs other than whitelist processes, important programs, and core programs.
[0079] As shown in Table 1, assuming that the current intrusion behavior is intrusion behavior 2 and the importance of the intrusion program of the current intrusion behavior to the vehicle system is 2, then according to the above intrusion behavior level mapping relationship, it can be determined that the target severity level corresponding to the current intrusion behavior is 2. Among them, the lower the target severity level, the less severe the threat to the vehicle system, and the higher the target severity level, the greater the severity of the threat to the vehicle system.
[0080] It should be understood that the intrusion behavior level mapping relationship may also include other content and expression forms, and the importance of the intrusion program to the vehicle system may be pre-configured according to actual conditions, and the embodiments of the present application do not impose specific limitations on this.
[0081] In this implementation, the intrusion behavior is generalized, standardized, and digitized, so as to determine the target severity level of the intrusion behavior, thereby improving the versatility of the embodiment of the present application.
[0082] Optionally, the intrusion behavior may tamper with or update the configuration of the intrusion program, and may also tamper with the permissions of the intrusion program.
[0083] S202: Determine a target safety level of the vehicle at the current moment according to the target severity level, the target operating state of the vehicle at the current moment, and the original safety level of the vehicle when the last intrusion behavior occurred.
[0084] The vehicle's operating status includes any of the following: not started, started but not driving, manual operation, assisted driving, and automatic driving.
[0085] Optionally, the operating status of the vehicle can be represented by Table 2.
[0086] Table 2
[0087] Running status Operation status level Not started 0 Start but not drive 1 Manual Run 2 Assisted Driving 3 Autonomous driving 4
[0088] As shown in Table 2, different operating states may also correspond to different operating state levels, and a higher operating state level indicates that the operating state has a greater impact on the target safety level. It should be understood that the operating state may also include other states, and the operating state may be reclassified according to actual conditions, and the embodiments of the present application do not impose specific limitations on this.
[0089] Optionally, the safety level of the vehicle may include normal system, general abnormality, severe abnormality and fatal abnormality. Among them, normal system means that the vehicle system is not affected by the intrusion behavior, general abnormality means that the vehicle system is slightly affected by the intrusion behavior and does not affect the related functions of assisted driving and automatic driving, severe abnormality means that the vehicle system is greatly affected by the intrusion behavior, affecting the related functions of assisted driving but not the related functions of automatic driving, and fatal abnormality means that the vehicle system is greatly affected by the intrusion behavior and affects the related functions of automatic driving.
[0090] It should be understood that the specific implementation principle and implementation method of this step can refer to Figure 3 The embodiments shown will not be described in detail here.
[0091] S203: Determine a target defense strategy corresponding to the target severity level and the target security level according to the target severity level, the target security level, and a preset first mapping relationship.
[0092] Optionally, the defense strategy includes any of the following: not performing any operation, generating a security warning, prohibiting the intrusion program from being started, and stopping the intrusion program from running. The security warning is used to remind the user that there is an intrusion in the vehicle.
[0093] Optionally, prohibiting the intrusion program from being started does not mean directly stopping the intrusion program from running, so as to prevent the intrusion program from causing unknown damage to the running vehicle system. When prohibiting the intrusion program from being started, the user has the right to forcibly start the intrusion program.
[0094] Optionally, the defense strategy is generated based on the following principles:
[0095] (1) When the severity level of the intrusion behavior is 0 or 1, no operation is performed;
[0096] (2) When the severity level of the intrusion behavior is 2 and the safety level of the vehicle is a non-fatal abnormality, a safety warning is generated; when the severity level of the intrusion behavior is 2 and the safety level of the vehicle is a fatal abnormality, the intrusion program is prohibited from being started;
[0097] (3) When the severity level of the intrusion behavior is 3, it is prohibited to start the intrusion program;
[0098] (4) When the severity level of the intrusion behavior is 4, stop running the intrusion program.
[0099] The first mapping relationship is the correspondence between the severity level of the intrusion behavior, the safety level of the vehicle, and the defense strategy.
[0100] Exemplarily, based on Table 1, the first mapping relationship can be represented by Table 3.
[0101] Table 3
[0102]
[0103] As shown in Table 3, assuming that the target severity level is 2 and the target security level is a severe exception, the target severity level determined according to the above first mapping relationship is to generate a security warning; assuming that the target severity level is 4 and the target security level is a fatal exception, the target severity level determined according to the above first mapping relationship is to stop running the intrusion program.
[0104] It should be understood that the above-mentioned first mapping relationship may also include other contents and expressions, which can be determined according to actual conditions, and the embodiments of the present application do not impose specific limitations on this.
[0105] The method for determining the defense strategy provided in the embodiment of the present application is that the electronic device determines the target severity level of the intrusion behavior according to the importance of the intrusion program to the vehicle system, and then determines the target security level of the vehicle at the current moment according to the target severity level, the target operating state, and the original security level, and finally determines the target defense strategy according to the target severity level, the target security level, and the preset first mapping relationship. In this solution, the target defense strategy is determined in combination with the target operating state of the vehicle to prevent the impact on the vehicle operation and related functions when executing the target defense strategy, thereby improving the accuracy of determining the target defense strategy and the safety of the user's personal property, reducing the risk and potential adverse effects of executing the target defense strategy, and achieving the purpose of unifying the effectiveness of the defense strategy with driving safety.
[0106] Optional, Figure 3 The flowchart of the second embodiment of the method for determining the defense strategy provided in the embodiment of the present application is shown in FIG. Figure 3 As shown, based on any of the above embodiments, S202 can be implemented by the following steps:
[0107] S301: Determine whether the target severity level of the intrusion behavior is a preset level.
[0108] Exemplarily, as shown in Table 1, the preset level may be 0 or 1. It should be understood that the preset level may be pre-configured according to actual conditions, and the embodiments of the present application do not impose specific limitations on this.
[0109] S302: If the target severity level of the intrusion behavior is a preset level, a corresponding number threshold is determined according to the target operating state of the vehicle at the current moment and the original safety level.
[0110] In an achievable manner, the target operating state and the number threshold corresponding to the original security level can be determined according to the target operating state, the original security level and the number mapping relationship, wherein the number mapping relationship is the corresponding relationship between the operating state, the security level and the number threshold.
[0111] Optionally, the frequency mapping relationship can be represented by Table 4.
[0112] Table 4
[0113]
[0114]
[0115] As shown in Table 4, assuming that the target operating state is assisted driving and the original safety level is severe abnormality, the number threshold corresponding to the target operating state and the original safety level determined according to the above number mapping relationship is a number threshold 43.
[0116] Among them, the number threshold is used to determine whether the safety level of the vehicle can be restored to the preset safety level. The preset safety level indicates that the safety of the vehicle is higher than the original safety level. The more functions are used, the greater the impact of the intrusion behavior, and the stricter the corresponding system recovery judgment. In other words, the number threshold corresponding to the normal system < the number threshold corresponding to the general abnormality < the number threshold corresponding to the serious abnormality < the number threshold corresponding to the fatal abnormality. Exemplarily, number threshold 11 < number threshold 12 < number threshold 13 < number threshold 14.
[0117] It should be understood that the frequency mapping relationship may also include other contents and forms, which may be limited according to actual conditions, and the embodiments of the present application do not impose specific limitations on this.
[0118] S303: When the total number of intrusion behaviors of a preset level that occur continuously when the vehicle is at an original security level is equal to a threshold number, the preset security level is determined as a target security level of the vehicle at the current moment.
[0119] For example, assuming that the preset level is 0 or 1, the preset security level is system normal, and the number threshold is 10, when the severity levels of intrusion behaviors that occur continuously when the vehicle is at the original security level are 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, respectively, system normal is determined as the target security level at the current moment.
[0120] Optionally, when the total number of intrusion behaviors of a preset level that occur continuously when the vehicle is at an original security level is less than a number threshold, the original security level is determined as the target security level of the vehicle at the current moment.
[0121] S304: If the target severity level of the intrusion behavior is not a preset level, determine the target severity level and the target security level corresponding to the original security level according to the target severity level, the original security level and a preset second mapping relationship.
[0122] The second mapping relationship is a correspondence between the severity level of the intrusion behavior, the first security level, and the second security level.
[0123] Exemplarily, the second mapping relationship can be expressed according to Table 5.
[0124] Table 5
[0125]
[0126] As shown in Table 5, assuming that the target severity level is severe abnormality and the original security level is 2, the target security level determined according to the second mapping relationship is severe abnormality.
[0127] It should be understood that the above-mentioned second mapping relationship may also include other contents and forms, which can be determined according to actual conditions, and the embodiments of the present application do not impose specific limitations on this.
[0128] For example, the target security level can be Figure 4 The process diagram shown is used for determination. Figure 4 Schematic diagram of the process of determining the target security level provided in the embodiment of the present application. Figure 4As shown in the figure, when the initial security level is normal system, if the target severity level is 0 or 1, the target security level is still normal system, if the target severity level is 2, the target security level is general abnormality, if the target severity level is 3, the target security level is severe abnormality, if the target severity level is 4, the target security level is fatal abnormality; when the initial security level is general abnormality, if the number of consecutive intrusion behaviors with severity level 0 or 1 reaches the number threshold under the security level of general abnormality, the target security level is normal system, if the number of consecutive intrusion behaviors with severity level 0 or 1 does not reach the number threshold, or the target severity level is 2, the target security level is still general abnormality, if the target severity level is 3, the target security level is severe abnormality, if the target severity level is 4, the target The security level is a fatal exception; when the initial security level is a severe exception, if the number of consecutive intrusion behaviors with a severity level of 0 or 1 reaches the number threshold under the severe exception security level, the target security level is normal system; if the target severity level is 2 or 3, or the number of consecutive intrusion behaviors with a severity level of 0 or 1 does not reach the number threshold, the target security level is a severe exception; if the target severity level is 4, the target security level is a fatal exception; when the initial security level is a fatal exception, if the number of consecutive intrusion behaviors with a severity level of 0 or 1 reaches the number threshold under the fatal exception security level, the target security level is normal system; if the target severity level is 2, 3 or 4, or the number of consecutive intrusion behaviors with a severity level of 0 or 1 does not reach the number threshold, the target security level is a fatal exception.
[0129] The preset security level can be pre-set to the system being normal, that is, in this case, the original security level can be directly reduced to the system being normal, and cannot be reduced layer by layer (such as decreasing in the order of fatal exceptions-serious exceptions-general exceptions), mainly because intrusion behaviors are generally continuous. If multiple intrusion behaviors of low severity levels are found after an intrusion behavior of high severity is found, if it is allowed to decrease layer by layer, there may be a problem of misjudgment when determining the target security level. Therefore, a stricter downgrade method is adopted. After the security level is upgraded, it can only return to normal (that is, downgrade to the highest security level) under absolutely safe conditions, otherwise the security level can only be upgraded but not downgraded.
[0130] In the method for determining the defense strategy provided in the embodiment of the present application, the electronic device determines whether the target severity level of the intrusion behavior is a preset level. If the target severity level of the intrusion behavior is a preset level, the corresponding number threshold is determined according to the target operating state of the vehicle at the current moment and the original security level. When the total number of intrusion behaviors of the preset level that occur continuously when the vehicle is at the original security level is equal to the number threshold, the preset security level is determined as the target security level of the vehicle at the current moment. If the target severity level of the intrusion behavior is not a preset level, the target severity level and the target security level corresponding to the original security level are determined according to the target severity level, the original security level and the preset second mapping relationship. In this solution, the target security level of the vehicle at the current moment is determined in combination with the original security level of the vehicle at the time of the previous intrusion behavior and the target severity level of the current intrusion behavior, thereby avoiding the problem of misjudgment caused by occasional intrusion behaviors with lower severity levels at high security levels, and improving the accuracy and stability of the subsequent determination of the defense strategy.
[0131] Optionally, in some embodiments, before determining the target severity level of the intrusion behavior according to the importance of the program affected by the intrusion behavior to the vehicle system, the method for determining the defense strategy may further include the following steps:
[0132] According to the target running state of the vehicle at the current moment, a target scanning strategy for scanning intrusion behavior is determined. The target scanning strategy includes a strategy for scanning the vehicle for intrusion behavior through a first scanning cycle. The target scanning strategy is executed to detect whether there is intrusion behavior.
[0133] Exemplarily, in a possible implementation, a target scanning policy corresponding to the target running state may be determined according to the target running state and the policy mapping relationship.
[0134] Exemplarily, the above target scanning strategy can be represented by Table 6.
[0135] Table 6
[0136]
[0137] As shown in Table 6, assuming that the target operating state is assisted driving, the target scanning strategy corresponding to the target operating state determined according to the above strategy mapping relationship is scanning strategy 4. Among them, scanning cycle 1<scanning cycle 2<scanning cycle 3.
[0138] It should be understood that the above-mentioned strategy mapping relationship may also include other contents and forms. For example, starting but not driving, manual operation and assisted driving may correspond to the same scanning strategy, which can be determined according to actual conditions. The embodiments of the present application do not impose specific restrictions on this.
[0139] In the above embodiments, taking the electronic device as a vehicle-mounted terminal as an example, due to the limited computing resources of the vehicle-mounted terminal, the computing resources of other functions may be occupied when executing the scanning strategy. Therefore, the embodiment of the present application determines the scanning strategy according to the target operating state, so that when the vehicle computing resources are abundant, the scanning cycle is reduced, and when the functions started by the vehicle increase, the scanning cycle is increased, so as to effectively utilize the computing resources of the vehicle terminal and ensure the normal operation of other functions of the vehicle. Exemplarily, when the vehicle is started but not driving, the scanning cycle should be reduced to improve the vehicle safety detection capability; when the vehicle is manually operated, the scanning cycle should be increased to reduce the impact on the main service functions used in the vehicle operation; when the vehicle starts high-power functions such as automatic driving, the scanning should be stopped to give more computing resources to the driving system, so as to achieve the purpose of balancing resource consumption and detection efficiency.
[0140] Optionally, an existing method may be used to scan for intrusion behavior, and this application does not impose any limitation on the method for scanning for intrusion behavior.
[0141] Optionally, based on the above embodiment, according to the target running state of the vehicle at the current moment, determining the target scanning strategy for scanning intrusion behavior can be achieved by the following steps:
[0142] According to the target operating state of the vehicle at the current moment and the first scanning strategy corresponding to the last intrusion behavior, a target scanning strategy for scanning intrusion behavior at the current moment is determined.
[0143] In the above embodiment, if the vehicle does not scan any intrusion behavior for a long time, the scanning cycle can be increased to solve the problem of tight computing resources; similarly, if the vehicle scans a large number of intrusion behaviors within a period of time, the scanning cycle can be reduced to improve detection performance and avoid missed detection problems.
[0144] It should be understood that the specific implementation principle and method of this step can refer to Figure 5 The embodiments shown will not be described in detail here.
[0145] Optional, Figure 5 The flowchart of the third embodiment of the method for determining the defense strategy provided in the embodiment of the present application is shown in FIG. Figure 5 As shown, based on the above embodiment, according to the target running state of the vehicle at the current moment and the first scanning strategy corresponding to the previous intrusion behavior, the target scanning strategy for scanning intrusion behavior at the current moment is determined, which can be achieved by the following steps:
[0146] S501: Determine a second scanning strategy corresponding to the target running state according to the target running state and a preset third mapping relationship.
[0147] The third mapping relationship is a corresponding relationship between the running status and the scanning strategy.
[0148] Exemplarily, the third mapping relationship may refer to the content shown in Table 6, which will not be described in detail here.
[0149] S502: When the second scanning strategy and the first scanning strategy are both preset scanning strategies, determine whether an intrusion behavior is detected when executing the first scanning strategy.
[0150] Exemplarily, as shown in Table 6, the preset scanning strategy can be any one of scanning strategy 2, scanning strategy 3, and scanning strategy 4. The preset scanning strategy can be pre-configured according to actual conditions, and the embodiments of the present application do not impose specific restrictions on this.
[0151] S503: If an intrusion behavior is detected, determine the first scanning strategy as the target scanning strategy.
[0152] S504: If no intrusion behavior is detected, the scanning period in the first scanning strategy is increased to a second scanning period, and the increased first scanning strategy is determined as a target scanning strategy.
[0153] Optionally, the second scanning period may be an exponential multiple of the first scanning strategy. In some implementations, the second scanning period is at most 16 exponential multiples of the scanning period of the preset scanning strategy.
[0154] In the above embodiment, when no intrusion behavior is detected when executing the first scanning strategy, it means that the probability of intrusion behavior is small at this time. Therefore, the scanning cycle of the first scanning strategy can be increased to save computing resources and ensure the normal operation of other functions.
[0155] For example, as shown in Table 6, when the vehicle is in manual operation, scanning strategy 3 is executed. If there are fewer intrusion behaviors, the value of scanning cycle 2 can be increased to reduce the consumption of computing resources by executing the scanning strategy.
[0156] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0157] Figure 6 This is a schematic diagram of the structure of the device for determining the defense strategy provided in the embodiment of the present application. Figure 6 As shown, the device for determining the defense strategy includes:
[0158] A processing module 61, used to determine a target severity level of the intrusion behavior according to the importance of the intrusion program of the intrusion behavior to the vehicle system, wherein the target severity level is used to indicate the severity of the threat caused by the intrusion behavior to the vehicle system;
[0159] The processing module 61 is further used to determine the target safety level of the vehicle at the current moment according to the target operating state of the vehicle at the current moment and the original safety level of the vehicle when the last intrusion behavior occurred;
[0160] The processing module 61 is also used to determine the target defense strategy corresponding to the target severity level and the target security level according to the target severity level, the target security level and a preset first mapping relationship. The first mapping relationship is the correspondence between the severity level of the intrusion behavior, the security level of the vehicle and the defense strategy.
[0161] In a possible design of the embodiment of the present application, the processing module 61 is specifically used to:
[0162] Determine whether the target severity level of the intrusion behavior is a preset level;
[0163] If the target severity level of the intrusion behavior is a preset level, the corresponding number threshold is determined according to the target operating state of the vehicle at the current moment and the original safety level;
[0164] When the total number of intrusion behaviors of a preset level that occur continuously when the vehicle is at the original security level is equal to the number threshold, the preset security level is determined as the target security level of the vehicle at the current moment, and the security of the vehicle represented by the preset security level is higher than the original security level;
[0165] If the target severity level of the intrusion behavior is not the preset level, the target security level corresponding to the target severity level and the original security level is determined based on the target severity level, the original security level and the preset second mapping relationship, and the second mapping relationship is the correspondence between the first security level, the severity level of the intrusion behavior and the second security level.
[0166] In another possible design of the embodiment of the present application, before determining the target severity level of the intrusion behavior according to the importance of the intrusion program of the intrusion behavior to the vehicle system, the processing module 61 is further used to:
[0167] Determine a target scanning strategy for scanning intrusion behaviors according to the target running state of the vehicle at the current moment, wherein the target scanning strategy includes a strategy for scanning the vehicle for intrusion behaviors through a first scanning cycle;
[0168] Execute targeted scanning strategies to detect intrusion behaviors.
[0169] Optionally, the processing module 61 is specifically configured to:
[0170] According to the target operating state of the vehicle at the current moment and the first scanning strategy corresponding to the last intrusion behavior, a target scanning strategy for scanning intrusion behavior at the current moment is determined.
[0171] Optionally, the processing module 61 is specifically configured to:
[0172] Determine a second scanning strategy corresponding to the target operating state according to the target operating state and a preset third mapping relationship, where the third mapping relationship is a correspondence between the operating state and the scanning strategy;
[0173] When the second scanning strategy and the first scanning strategy are both preset scanning strategies, determining whether an intrusion behavior is detected when executing the first scanning strategy;
[0174] If an intrusion behavior is detected, the first scanning strategy is determined as the target scanning strategy;
[0175] If no intrusion behavior is detected, the scanning period in the first scanning strategy is increased to a second scanning period, and the increased first scanning strategy is determined as the target scanning strategy.
[0176] In another possible design of an embodiment of the present application, the operating state of the vehicle includes any one of the following: not started, started but not driving, manual operation, assisted driving, and automatic driving.
[0177] In another possible design of an embodiment of the present application, the defense strategy includes any of the following: not performing any operation, generating a security warning, prohibiting the launch of an intrusion program, and stopping the running of an intrusion program. The security warning is used to remind the user that there is an intrusion in the vehicle.
[0178] The device for determining a defense strategy provided in the embodiment of the present application can be used to execute the method for determining a defense strategy in any of the above embodiments. The implementation principle and technical effects are similar and will not be described in detail here.
[0179] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0180] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7As shown, the electronic device may include: a processor 71, a memory 72, and computer program instructions stored in the memory 72 and executable on the processor 71. When the processor 71 executes the computer program instructions, the method for determining the defense strategy provided in any of the aforementioned embodiments is implemented.
[0181] Optionally, the above-mentioned components of the electronic device may be connected via a system bus.
[0182] The memory 72 may be a separate storage unit or a storage unit integrated in the processor. The number of processors is one or more.
[0183] Optionally, the electronic device may further include an interface for interacting with other devices.
[0184] It should be understood that the processor 71 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0185] The system bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage.
[0186] All or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc and any combination thereof.
[0187] The electronic device provided in the embodiment of the present application can be used to execute the method for determining the defense strategy provided in any of the above method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0188] An embodiment of the present application provides a vehicle, which includes the above-mentioned electronic device.
[0189] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed on a computer, the computer executes the above-mentioned method for determining a defense strategy.
[0190] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, programmable read-only memory, read-only memory, magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0191] Optionally, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0192] An embodiment of the present application also provides a computer program product, which includes a computer program. The computer program is stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When the at least one processor executes the computer program, the above-mentioned method for determining the defense strategy can be implemented.
[0193] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for determining a defense strategy, It is characterized in that The method comprises: Determine a target severity level of the intrusion behavior according to the current intrusion behavior, the importance of the intrusion program affected by the current intrusion behavior to the vehicle system, and the intrusion behavior level mapping relationship, wherein the target severity level is used to indicate the severity of the threat caused by the intrusion behavior to the vehicle system; The target security level of the vehicle at the current moment is determined according to the target severity level, the target operating state of the vehicle at the current moment, and the original security level of the vehicle when the last intrusion behavior occurred, wherein: Determining whether the target severity level of the intrusion behavior is a preset level; wherein the lower the target severity level, the less severe the threat to the vehicle system; the preset level is pre-configured to be 0 or 1 with a lower severity level; If the target severity level of the intrusion behavior is the preset level, determining a corresponding number threshold according to the target operating state of the vehicle at the current moment and the original safety level of the vehicle when the last intrusion behavior occurred; When the total number of intrusion behaviors of a preset level that occur continuously when the vehicle is at the original security level is equal to the number threshold, the preset security level is determined as the target security level of the vehicle at the current moment, and the security of the vehicle represented by the preset security level is higher than the original security level; When the total number of intrusion behaviors of a preset level that occur continuously when the vehicle is at the original security level is less than the number threshold, the original security level is determined as the target security level of the vehicle at the current moment; If the target severity level of the intrusion behavior is not the preset level, determining the target security level corresponding to the target severity level and the original security level according to the target severity level, the original security level, and a preset second mapping relationship, wherein the second mapping relationship is a correspondence relationship between the first security level, the severity level of the intrusion behavior, and the second security level; According to the target severity level, the target security level and a preset first mapping relationship, a target defense strategy corresponding to the target severity level and the target security level is determined. The first mapping relationship is a correspondence between the severity level of the intrusion behavior, the security level of the vehicle and the defense strategy.
2. The method according to claim 1, It is characterized in that Before determining a target severity level of the intrusion behavior according to the importance of the intrusion program affected by the intrusion behavior to the vehicle system, the method further includes: Determining a target scanning strategy for scanning intrusion behaviors according to the target running state of the vehicle at the current moment, the target scanning strategy including a strategy for scanning the vehicle for intrusion behaviors through a first scanning cycle; The target scanning strategy is executed to detect whether there is any intrusion behavior.
3. The method according to claim 2, It is characterized in that Determining a target scanning strategy for scanning intrusion behaviors according to the target operating state of the vehicle at the current moment includes: A target scanning strategy for scanning intrusion behaviors at the current moment is determined according to the target operating state of the vehicle at the current moment and the first scanning strategy corresponding to the last intrusion behavior.
4. The method according to claim 3, It is characterized in that The determining of a target scanning strategy for scanning intrusion behavior at the current moment according to the target running state of the vehicle at the current moment and the first scanning strategy corresponding to the previous intrusion behavior includes: Determine a second scanning strategy corresponding to the target operating state according to the target operating state and a preset third mapping relationship, wherein the third mapping relationship is a correspondence between the operating state and the scanning strategy; When the second scanning strategy and the first scanning strategy are both preset scanning strategies, determining whether an intrusion behavior is detected when executing the first scanning strategy; If an intrusion behavior is detected, determining the first scanning strategy as a target scanning strategy; If no intrusion behavior is detected, the scanning period in the first scanning strategy is increased to a second scanning period, and the increased first scanning strategy is determined as the target scanning strategy.
5. The method according to any one of claims 1 to 4, It is characterized in that The operating state of the vehicle includes any one of the following: not started, started but not running, manual operation, assisted driving and automatic driving.
6. The method according to any one of claims 1 to 4, It is characterized in that The defense strategy includes any one of the following: not performing any operation, generating a security warning, prohibiting the intrusion program from being started, and stopping the intrusion program from running. The security warning is used to remind the user that the vehicle has the intrusion behavior.
7. A device for determining a defense strategy, It is characterized in that The device comprises: a processing module, configured to determine a target severity level of the intrusion behavior according to the current intrusion behavior, the importance of the intrusion program affected by the intrusion behavior to the vehicle system, and a mapping relationship between the intrusion behavior levels, wherein the target severity level is used to indicate the severity of the threat caused by the intrusion behavior to the vehicle system; The processing module is further used to determine the target security level of the vehicle at the current moment according to the target severity level, the target operating state of the vehicle at the current moment, and the original security level of the vehicle when the last intrusion behavior occurred; The processing module is further used to determine the target defense strategy corresponding to the target severity level and the target security level according to the target severity level, the target security level and a preset first mapping relationship, wherein the first mapping relationship is a correspondence between the severity level of the intrusion behavior, the security level of the vehicle and the defense strategy; The processing module is specifically used to determine whether the target severity level of the intrusion behavior is a preset level; wherein the lower the target severity level, the less severe the threat to the vehicle system; the preset level is pre-configured to be 0 or 1 with a lower severity level; If the target severity level of the intrusion behavior is the preset level, determining a corresponding number threshold according to the target operating state of the vehicle at the current moment and the original safety level; When the total number of intrusion behaviors of a preset level that occur continuously when the vehicle is at the original security level is equal to the number threshold, the preset security level is determined as the target security level of the vehicle at the current moment, and the security of the vehicle represented by the preset security level is higher than the original security level; When the total number of intrusion behaviors of a preset level that occur continuously when the vehicle is at the original security level is less than the number threshold, the original security level is determined as the target security level of the vehicle at the current moment; If the target severity level of the intrusion behavior is not the preset level, the target security level corresponding to the target severity level and the original security level is determined based on the target severity level, the original security level and a preset second mapping relationship, and the second mapping relationship is the correspondence between the first security level, the severity level of the intrusion behavior and the second security level.
8. An electronic device, include: A processor, a memory, and computer program instructions stored in the memory and executable on the processor, wherein the processor is used to implement the method for determining a defense strategy as described in any one of claims 1 to 6 when executing the computer program instructions.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method for determining a defense strategy according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the method for determining a defense strategy according to any one of claims 1 to 6 is implemented.
