Mobile storage device behavior processing method, device, equipment and storage medium
By monitoring data interaction behaviors and evaluating risk parameters to determine whether to perform data interaction behaviors, it solves the excessive consumption of computing resources and security issues when electronic devices are inserted into mobile storage devices, and realizes risk assessment and security control of mobile storage devices. .
Patent Information
- Application Number
- CN202110725723.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-29
- Publication Date
- 2024-08-20
- Estimated Expiration
- 2041-06-29
AI Technical Summary
When an electronic device is plugged into a mobile storage device, computing power resources are consumed excessively and are not optimized specifically, posing a risk of malicious attacks.
By monitoring the data interaction behavior between electronic devices and mobile storage devices, determine risk assessment parameters, determine whether to perform data interaction behavior, including historical risk assessment and real-time risk assessment, decide whether to perform data interaction behavior based on the assessment results, and conduct data interaction when necessary Force ejection of removable storage device.
It effectively reduces the computing resource consumption of electronic devices during the process of inserting into mobile storage devices, improves security, avoids malicious attacks, and optimizes the execution of data interaction behaviors.
Smart Images

Figure CN113282929B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a method, apparatus, device and storage medium for processing the behavior of a mobile storage device. Background Art
[0002] Using mobile storage devices to copy and store files is already a very common application scenario. However, malicious attackers often use mobile storage devices to attack electronic devices connected to the mobile storage devices. For example, a virus file is stored in the mobile storage device, and after the mobile storage device is connected to the electronic device, the virus file is implanted into the electronic device, thereby launching an attack on the electronic device.
[0003] In the related art, when an electronic device detects that a mobile storage device is connected, the mobile storage device is scanned, and if a virus file is found, the virus file is deleted to protect the security of the electronic device. Summary of the invention
[0004] Based on the problem of excessive consumption of computing resources in the protection process of mobile storage devices, the embodiments of the present invention provide a behavior processing method, apparatus, device and storage medium for mobile storage devices, which can specifically process relevant risk assessment parameters through data interaction behavior, thereby solving the problem of excessive consumption of computing resources and no targeted optimization of electronic devices during the process of inserting mobile storage devices.
[0005] In a first aspect, an embodiment of the present invention provides a behavior processing method of a mobile storage device, comprising:
[0006] Determine the data interaction behavior between the electronic device and the mobile storage device;
[0007] Determine the risk assessment parameter corresponding to the mobile storage device by using the data interaction behavior;
[0008] Determine whether to execute the data interaction behavior according to the risk assessment parameter.
[0009] Preferably, the determining the risk assessment parameter corresponding to the mobile storage device by using the data interaction behavior includes:
[0010] Determining historical risk assessment parameters corresponding to the mobile storage device;
[0011] Determine the risk level corresponding to the data interaction behavior;
[0012] The risk assessment parameter corresponding to the mobile storage device is determined according to the risk level and the historical risk assessment parameter.
[0013] Preferably, the data interaction behavior is performed for the first time after the mobile storage device is connected to the electronic device;
[0014] The determining of the historical risk assessment parameters corresponding to the mobile storage device includes:
[0015] Acquire device characteristic information corresponding to the mobile storage device when it is connected to the electronic device;
[0016] determining at least one reference feature according to the device feature information;
[0017] The historical risk assessment parameter is determined based on the at least one reference feature.
[0018] Preferably, the reference features include: the historical number of times the electronic device has accessed the mobile storage device, the historical number of times the mobile storage device has accessed other electronic devices, the historical number of times the electronic device has accessed other mobile storage devices, whether virus files are stored in the mobile storage device, the types of virus files stored in the mobile storage device, whether abnormal files are stored in the mobile storage device, the types of abnormal files stored in the mobile storage device, or the degree of match between the identification type and the actual type of the mobile storage device.
[0019] Preferably, the data interaction behavior is not the first time that the mobile storage device is connected to the electronic device; and the historical risk assessment parameter is obtained after the last data interaction behavior.
[0020] Preferably, determining whether to execute the data interaction behavior according to the risk assessment parameter includes:
[0021] Determining target ranges for the risk assessment parameters;
[0022] Determine the risk level corresponding to the data interaction behavior;
[0023] Determine whether the risk level is within the range allowed by the scope to which the target belongs. If so, execute the data interaction behavior; otherwise, refuse to execute the data interaction behavior.
[0024] Preferably, after determining whether to execute the data interaction behavior according to the risk assessment parameter, the method further includes:
[0025] When the risk assessment parameter meets the ejection condition, the mobile storage device is forcibly ejected from the electronic device.
[0026] In a second aspect, an embodiment of the present invention further provides a behavior processing device for a mobile storage device, comprising:
[0027] A behavior determination unit, used to determine the data interaction behavior between the electronic device and the mobile storage device;
[0028] A parameter determination unit, used to determine a risk assessment parameter corresponding to the mobile storage device by using the data interaction behavior;
[0029] A behavior execution determination unit is used to determine whether to execute the data interaction behavior according to the risk assessment parameter.
[0030] In a third aspect, an embodiment of the present invention further provides a computing device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in any embodiment of this specification is implemented.
[0031] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, enables the computer to execute the method described in any embodiment of this specification.
[0032] The embodiments of the present invention provide a method, apparatus, device and storage medium for processing the behavior of a mobile storage device. The method monitors the data interaction behavior between an electronic device and a mobile storage device, and processes relevant risk assessment parameters in a targeted manner through the data interaction behavior, thereby determining whether to execute the data interaction behavior. This solves the problem of excessive consumption of computing resources and lack of targeted optimization when the electronic device is inserted into a mobile storage device. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 It is a flow chart of a behavior processing method of a mobile storage device provided by an embodiment of the present invention;
[0035] Figure 2 is a flow chart of a method for determining risk assessment parameters provided by an embodiment of the present invention;
[0036] Figure 3 is a flow chart of a method for determining historical risk assessment parameters provided by an embodiment of the present invention;
[0037] Figure 4 is a flow chart of another method for determining historical risk assessment parameters provided by an embodiment of the present invention;
[0038] Figure 5 is a hardware architecture diagram of a computing device provided by an embodiment of the present invention;
[0039] Figure 6 It is a structural diagram of a behavior processing device of a mobile storage device provided by an embodiment of the present invention;
[0040] Figure 7 It is a structural diagram of another behavior processing device of a mobile storage device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0042] As mentioned above, malicious attackers may store virus files in mobile storage devices. When the mobile storage device is connected to the electronic device, the virus files are implanted into the electronic device, thereby launching an attack on the electronic device. In the related art, when the electronic device detects that a mobile storage device is connected, it will scan the mobile storage device to detect whether there are virus files stored in the mobile storage device. If a virus file is found, the virus file is deleted first, and then data is exchanged with the mobile storage device. It can be seen that in the related art, the electronic device consumes too much computing power resources during the insertion of the mobile storage device.
[0043] In order to solve the problem of excessive consumption of computing resources in electronic devices when inserting mobile storage devices in related technologies, it is possible to consider continuing to control the data interaction behavior between the electronic device and the mobile storage device after the mobile storage device is connected to the electronic device.
[0044] The specific implementation of the above concept is described below.
[0045] Please refer to Figure 1 , an embodiment of the present invention provides a behavior processing method for a mobile storage device, the method comprising:
[0046] Step 100: determine the data interaction behavior between the electronic device and the mobile storage device.
[0047] Step 102: using the data interaction behavior, determine the risk assessment parameters corresponding to the mobile storage device.
[0048] Step 104: determine whether to execute the data interaction behavior according to the risk assessment parameter.
[0049] In an embodiment of the present invention, by monitoring the data interaction behavior between the electronic device and the mobile storage device, the relevant risk assessment parameters are processed in a targeted manner through the data interaction behavior, thereby determining whether to execute the data interaction behavior, thereby solving the problem of excessive consumption of computing resources and no targeted optimization of the electronic device during the process of inserting the mobile storage device.
[0050] Described below Figure 1 How the various steps are performed.
[0051] First, with respect to step 100, the data interaction behavior between the electronic device and the mobile storage device is determined.
[0052] The electronic device includes several peripheral interfaces, such as USB interface, PS / 2 interface, SAS (Serial Attached SCSI) interface, etc. The mobile storage device can be connected to the electronic device through the peripheral interface of the electronic device, and then the electronic device and the mobile storage device can perform data interaction. Among them, the data interaction behavior can at least include: copying files in the mobile storage device to the electronic device, copying files in the electronic device to the mobile storage device, running program files in the mobile storage device on the electronic device, etc.
[0053] Then, with respect to step 102, the risk assessment parameter corresponding to the mobile storage device is determined using the data interaction behavior.
[0054] In the embodiment of the present invention, the risk assessment parameter is used to assess the risk of the data interaction behavior.
[0055] In one embodiment of the present invention, please refer to Figure 2 In this step, the risk assessment parameter corresponding to the mobile storage device can be determined in at least one of the following ways:
[0056] Step 200: Determine the historical risk assessment parameters corresponding to the mobile storage device.
[0057] In one embodiment of the present invention, the historical risk assessment parameter may be updated once each time a data interaction is performed between the electronic device and the mobile storage device. Therefore, the historical risk assessment parameter corresponds to at least the following two situations:
[0058] Case 1: The data interaction behavior is performed for the first time after the mobile storage device is connected to the electronic device.
[0059] Case 2: This data interaction behavior is not the first time the mobile storage device is connected to the electronic device.
[0060] In response to the above different situations, the methods for determining the historical risk assessment parameters are different. The following describes the methods for determining the historical risk assessment parameters for the above two situations respectively.
[0061] In the case 1 above, since the data interaction behavior is the first time the mobile storage device is connected to the electronic device, the historical risk assessment parameter can be a pre-set basic risk assessment parameter. For example, using a score to represent the basic risk assessment parameter, the full score can be 100 points. In addition, please refer to Figure 3 , the historical risk assessment parameters can also be determined in one of the following ways:
[0062] Step 300: Obtain device characteristic information corresponding to the mobile storage device when it is connected to the electronic device.
[0063] In one embodiment of the present invention, the device characteristic information may include one or more of the following: electronic device attribute information, mobile storage device attribute information, and storage information of the mobile storage device.
[0064] The electronic device attribute information may include: one or more of name, type, brand and ID. The mobile storage device attribute information may include: one or more of access time, name, type, brand and ID. The storage information of the mobile storage device may include: whether the mobile storage device contains viruses and virus characteristics when the virus is contained, whether the mobile storage device contains abnormal files and abnormal file characteristics when the abnormal files are contained, etc.
[0065] Step 302: Determine at least one reference feature according to the device feature information.
[0066] In one embodiment of the present invention, in order to improve the accuracy of reputation evaluation of mobile storage devices, the device feature information may be analyzed at least in the following dimensions to obtain at least one reference feature:
[0067] Dimension 1: Historical information of electronic devices.
[0068] In this dimension, the reference features that can be determined may include: the historical number of times the electronic device accesses the mobile storage device and the historical number of times the electronic device accesses other mobile storage devices.
[0069] Dimension 2: Historical information of mobile storage devices.
[0070] In this dimension, the reference features that can be determined may include: the historical number of times the mobile storage device is connected to other electronic devices.
[0071] Among them, the reference features under the above-mentioned dimension one and dimension two can be determined by the external server based on the electronic device attribute information and the mobile storage device attribute information.
[0072] Dimension three: current information of mobile storage devices.
[0073] Under this dimension, the reference features that can be determined may include: whether the mobile storage device stores virus files, the types of virus files stored in the mobile storage device, whether the mobile storage device stores abnormal files, the types of abnormal files stored in the mobile storage device, and the degree of match between the identification type and the actual type of the mobile storage device.
[0074] In one embodiment of the present invention, if a virus file is stored in the mobile storage device, the type of the virus file can be further determined, such as the virus format, etc. If an abnormal file is stored in the mobile storage device, the type of the abnormal file can be further determined, such as whether the abnormal file is an unknown executable program, the program language is a non-universal language, whether it is a file that does not appear on the blacklist and the whitelist, etc.
[0075] In one embodiment of the present invention, the actual type of the mobile storage device can also be identified, and the representation type of the mobile storage device can be obtained to determine whether the identification type of the mobile storage device matches the actual type. For example, if the actual type of the mobile storage device identified is a device with a storage function, but the identification type of the mobile storage device is a keyboard or a mouse, it can be determined that the identification type of the mobile storage device does not match the actual type.
[0076] Step 304: Determine a historical risk assessment parameter based on the at least one reference feature.
[0077] In one embodiment of the present invention, in order to accurately obtain historical risk assessment parameters, please refer to Figure 4 , this step 304 can be performed in at least one of the following ways:
[0078] Step 400, respectively determine the operation value of the target reference feature in the at least one reference feature.
[0079] In one embodiment of the present invention, if the reference feature obtained in step 302 is of numerical type, the numerical value can be directly determined as the operation value of the reference feature. For example, if the reference feature obtained in step 302 is the historical number of times the electronic device is connected to the mobile storage device, then the historical number of times is directly determined as the operation value. If the reference feature obtained in step 302 is of content type, the content can be quantified to obtain the operation value of the reference feature. For example, if the reference feature obtained in step 302 is that a virus file is stored in the mobile storage device, then the operation value of the reference feature can be 1, and if no virus file is stored in the mobile storage device, then the operation value of the reference feature can be 0.
[0080] Step 402, determining the abnormality index of the target reference feature according to the calculated value of the target reference feature and a preset standard boundary value.
[0081] In one embodiment of the present invention, different determination methods may be used when determining abnormality indexes for different target reference features. When the determination methods are different, the number of standard boundary values may be different. Specifically, the number of standard boundary values may correspond to at least the following two situations:
[0082] Case A: There are multiple standard boundary values.
[0083] Case B: The standard boundary value is one.
[0084] The following describes the method of determining the abnormality index for the above two situations respectively.
[0085] In the case of situation A, multiple standard boundary values form at least two reference intervals, and each reference interval corresponds to an abnormality index. For example, two standard boundary values form three reference intervals, namely:
[0086] The reference interval 1 is (0, standard boundary value 1), and the abnormality index is A;
[0087] Reference interval 2 is [standard boundary value 1, standard boundary value 2], and the abnormality index is B;
[0088] The reference interval 3 is (standard boundary value 2, +∞), and the abnormality index is C.
[0089] Then, this step 402 may include: determining a target reference interval corresponding to the calculated value of the target reference feature; and determining an abnormality index corresponding to the target reference interval as the abnormality index of the target reference feature.
[0090] In this case A, by using the correspondence between the reference interval and the abnormality index, the corresponding reference interval can be determined according to the target reference feature, so that the abnormality index can be quickly determined, which improves the speed of determining the historical risk assessment parameters.
[0091] In the corresponding situation B, this step 402 may include: comparing the calculated value of the target reference feature with the standard boundary value; if the comparison result meets the pre-set abnormal condition, calculating the difference between the calculated value of the target reference feature and the standard boundary value, and obtaining the abnormal index of the target reference feature based on the difference; if the comparison result does not meet the abnormal condition, using the set value as the abnormal index of the target reference feature.
[0092] In one embodiment of the present invention, the abnormal conditions corresponding to different reference features may be different. For example, the target reference feature is the historical number of times the electronic device accesses the mobile storage device. The more historical times, the lower the abnormality. For the target reference feature, it can be set that when the comparison result is that the operation value of the target reference feature is less than the standard boundary value, it is determined that the abnormal condition is met. For another example, the target reference feature is the type of abnormal file stored in the mobile storage device. When the quantized operation value of the type of the abnormal file is higher, it indicates that the abnormality is higher. For the target reference feature, it can be set that when the comparison result is that the operation value of the target reference feature is greater than the standard boundary value, it is determined that the abnormal condition is met. In this way, when determining the abnormal index for different reference features, the determination result of the abnormal index can be made more accurate.
[0093] In one embodiment of the present invention, when calculating the abnormality index of the target reference feature according to the difference in step 402, the abnormality index can be calculated by the following formula (1):
[0094]
[0095] Among them, Q i It is used to characterize the abnormal index of the i-th target reference feature among n target reference features, where n is an integer not less than 1; q i1 It is used to represent the standard boundary value pre-set for the i-th target reference feature; q i A is the calculation value used to characterize the i-th target reference feature; i A constant used to characterize the i-th reference feature.
[0096] By using the above calculation formula to calculate the anomaly index, the distance between the calculated value and the standard boundary value (i.e., the difference between the two) is taken into account, and the difference between the standard boundary value and the constant is used as the reference value. The distance between the calculated value and the standard boundary value is divided by the reference value to accurately obtain the anomaly index of the target reference feature. In addition, the values of each parameter in the calculation formula are relatively easy to obtain, and the anomaly index can be quickly calculated by substituting them into the above calculation formula, and the calculation speed is relatively fast.
[0097] The above calculation formula is only one embodiment of the present invention. In addition to using the above calculation formula to calculate the abnormality index of the target reference feature, other calculation formulas can also be used for calculation, or the difference can be directly used as the abnormality index of the target reference feature.
[0098] Step 404: Calculate the historical risk assessment parameter of the mobile storage device according to the abnormality index of the target reference feature.
[0099] In one embodiment of the present invention, the historical risk assessment parameters of the mobile storage device can be calculated in at least one of the following ways: determining the total risk assessment value and the weight value of the target reference feature; calculating the product of the weight value of the target reference feature, the abnormality index of the target reference feature and the total risk assessment value, and using the product to obtain the historical risk assessment parameters of the mobile storage device.
[0100] The total risk assessment value may be a score corresponding to when the mobile storage device has no abnormality, for example, taking the full score as an example, the total risk assessment value may be 100. Since different reference features have different impacts on the risk of the mobile storage device, different weight values may be set for different reference features.
[0101] In one embodiment of the present invention, when the historical risk assessment parameter of the mobile storage device is obtained by using the product, it can be calculated at least by the following formula (2):
[0102]
[0103] Among them, V is used to represent the historical risk assessment parameters of the mobile storage device, M is used to represent the total risk assessment value, and Q i The abnormal index used to characterize the i-th target reference feature among n target reference features, where n is an integer not less than 1; ω i The weight value used to characterize the i-th target reference feature.
[0104] The above formula (2) takes into account the product of the total risk assessment value, the weight value of the target reference feature, and the abnormal index of the target reference feature. This product can be used as the risk assessment value corresponding to the target reference feature. In the above formula (2), taking the nth root of the product of each abnormal index and calculating the sum of each abnormal index are both to balance the abnormal index, so that the calculation of the historical risk assessment parameters using the above formula (2) is more accurate. After obtaining the parameter values of each parameter in the above formula (2), substituting them into the formula can quickly calculate the historical risk assessment parameters of the mobile storage device.
[0105] It should be noted that when using the product to obtain the historical risk assessment parameter of the mobile storage device, in addition to using the above formula (2) for calculation, other methods can also be used for calculation, for example, dividing the sum of the products corresponding to each target reference feature by n to obtain the historical risk assessment parameter.
[0106] In addition to the above-mentioned method for calculating the historical risk assessment parameters of the mobile storage device, other calculation methods may be used in step 404. For example, the other calculation methods may include: determining a total risk assessment value; determining a basic score set for the target reference feature; calculating the product of the basic score of the target reference feature and the abnormal index of the target reference feature; adding the products of n target reference features to obtain a calculated sum, and determining the difference between the total risk assessment value and the calculated sum as the historical risk assessment parameter of the mobile storage device.
[0107] The above is the method for determining the historical risk assessment parameters corresponding to situation one. The following will continue to explain the method for determining the historical risk assessment parameters corresponding to situation two.
[0108] In the case of the second situation described above, since the data interaction behavior is not the first time the mobile storage device is connected to the electronic device, the historical risk assessment parameter is obtained after the last data interaction behavior.
[0109] In the case of the second situation, each time a data interaction behavior is determined, the risk assessment parameters are determined using the following steps 202 to 204, and the risk assessment parameters determined each time will be used as the historical risk assessment parameters for the next data interaction behavior. The method for determining the historical risk assessment parameters in the second situation is specifically described in the following steps 202 to 204, and will not be described in detail in this step.
[0110] Step 202: determine the risk level corresponding to the data interaction behavior.
[0111] In one embodiment of the present invention, different risk levels can be set in advance for different data interaction behaviors. For example, the risk level of data interaction behavior is set to 4 levels, namely no risk, low risk, medium risk and high risk. Each risk level corresponds to a data interaction behavior under the risk level. For example, the data interaction behavior corresponding to high risk may include: data copying behavior generated without detecting a manually input copy instruction, copying sensitive files, running abnormal program files in a mobile storage device, etc.
[0112] Therefore, the risk level corresponding to the data interaction behavior can be determined according to the risk levels pre-set for different data interaction behaviors.
[0113] It should be noted that in addition to the above-mentioned method for determining the risk level corresponding to the data interaction behavior in step 202, other methods may also be used to determine the risk level, for example, querying the historical number of the data interaction behavior. The higher the historical number, the lower the risk.
[0114] Step 204: Determine the risk assessment parameter corresponding to the mobile storage device according to the risk level and the historical risk assessment parameter.
[0115] In one embodiment of the present invention, different risk coefficients may be pre-set for different risk levels, for example, the risk coefficient for no risk is 1, the risk coefficient for low risk is 0.8, the risk coefficient for medium risk is 0.6, and the risk coefficient for high risk is 0.4.
[0116] In one embodiment of the present invention, the product of the risk coefficient corresponding to the risk level and the historical risk assessment parameter may be determined as the risk assessment parameter corresponding to the mobile storage device.
[0117] Through the above Figure 2 The method shown can quickly determine the risk assessment parameters corresponding to the mobile storage device, thereby improving the response speed of the data interaction behavior.
[0118] Finally, with respect to step 104, it is determined whether to execute the data interaction behavior according to the risk assessment parameter.
[0119] In one embodiment of the present invention, whether to execute the data interaction behavior can be directly determined based on the size of the risk assessment parameter. For example, when the risk assessment parameter is higher than the set parameter value, the data interaction behavior is executed, and when the risk assessment parameter is not higher than the set parameter value, the data interaction behavior is refused to be executed.
[0120] Since different data interaction behaviors have different risk levels, in one embodiment of the present invention, this step 104 can also determine whether to execute the data interaction behavior in the following manner: determine the target range of the risk assessment parameter; determine the risk level corresponding to the data interaction behavior; determine whether the risk level is within the range allowed for execution within the target range, and if so, execute the data interaction behavior; otherwise, refuse to execute the data interaction behavior.
[0121] For example, several ranges can be set in advance for risk assessment parameters, and the risk level of data interaction behaviors allowed to be executed within each range can be set. For example, the following settings can be made:
[0122] Range A: (80, 100], allowing data interaction behaviors with medium risk and below;
[0123] Range B: (60, 80], allowing data interaction behaviors of low risk and below;
[0124] Range C: (60, 80], allowing data interaction behaviors of low risk and below;
[0125] Range D: (0, 60], allowing risk-free data interaction.
[0126] Assuming that the score of the risk assessment parameter obtained in step 102 is 62 points, then the target range of the risk assessment parameter is range C, which allows the execution of data interaction behaviors with low risk and below risk levels. If the risk level of the data interaction behavior determined in step 100 is low risk or no risk, then the data interaction behavior is allowed to be executed in this step 104; if the risk level of the data interaction behavior determined in step 100 is medium risk or high risk, then the data interaction behavior is refused to be executed in this step 104.
[0127] In one embodiment of the present invention, after step 104, the method may further include: when the risk assessment parameter satisfies an ejection condition, forcibly ejecting the mobile storage device from the electronic device.
[0128] Since the risk assessment parameter may be updated after each data interaction behavior is determined, and the score of the risk assessment parameter is reduced each time it is updated, if the risk assessment parameter reaches a pop-up condition, for example, the pop-up condition is less than 40 points, it indicates that the risk of the mobile storage device is high. Therefore, the mobile storage device can be forcibly ejected from the electronic device to ensure the safety of the electronic device.
[0129] It should be noted that the above steps 102 to 104 can be performed by the electronic device or by an external server. When performed by an external server, the electronic device sends the data interaction behavior to the server after step 100, and the server executes steps 102 to 104, and after step 104, sends the execution determination result of the data interaction behavior to the electronic device, and the electronic device determines whether to execute the data interaction behavior according to the execution determination result.
[0130] like Figure 5 , Figure 6 As shown, an embodiment of the present invention provides a behavior processing device for a mobile storage device. The device embodiment can be implemented by software, or by hardware or a combination of software and hardware. From the hardware level, Figure 5 FIG. 1 is a hardware architecture diagram of a computing device where a behavior processing device of a mobile storage device provided by an embodiment of the present invention is located, except Figure 5In addition to the processor, memory, network interface, and non-volatile memory shown in the figure, the computing device in which the device is located in the embodiment may also generally include other hardware, such as a forwarding chip responsible for processing messages, etc. Taking software implementation as an example, Figure 6 As shown, as a device in a logical sense, the CPU of the computing device in which it is located reads the corresponding computer program in the non-volatile memory into the memory and runs it. This embodiment provides a behavior processing device for a mobile storage device, including:
[0131] A behavior determination unit 601 is used to determine a data interaction behavior between the electronic device and the mobile storage device;
[0132] A parameter determination unit 602, configured to determine a risk assessment parameter corresponding to the mobile storage device by using the data interaction behavior;
[0133] The behavior execution determination unit 603 is used to determine whether to execute the data interaction behavior according to the risk assessment parameter.
[0134] In one embodiment of the present invention, the parameter determination unit 602 is specifically used to determine the historical risk assessment parameters corresponding to the mobile storage device; determine the risk level corresponding to the data interaction behavior; and determine the risk assessment parameters corresponding to the mobile storage device based on the risk level and the historical risk assessment parameters.
[0135] In one embodiment of the present invention, the data interaction behavior is performed for the first time after the mobile storage device is connected to the electronic device;
[0136] The parameter determination unit 602, when executing the determination of the historical risk assessment parameters corresponding to the mobile storage device, is specifically used to obtain device feature information corresponding to the mobile storage device when it is connected to the electronic device; determine at least one reference feature based on the device feature information; and determine the historical risk assessment parameters based on the at least one reference feature.
[0137] In one embodiment of the present invention, the reference features include: the historical number of times the electronic device has accessed the mobile storage device, the historical number of times the mobile storage device has accessed other electronic devices, the historical number of times the electronic device has accessed other mobile storage devices, whether virus files are stored in the mobile storage device, the types of virus files stored in the mobile storage device, whether abnormal files are stored in the mobile storage device, the types of abnormal files stored in the mobile storage device, or the degree of match between the identification type and the actual type of the mobile storage device.
[0138] In one embodiment of the present invention, the data interaction behavior is not the first time that the mobile storage device is connected to the electronic device; and the historical risk assessment parameter is obtained after the last data interaction behavior.
[0139] In one embodiment of the present invention, the behavior execution determination unit 603 is specifically used to determine the target range of the risk assessment parameter; determine the risk level corresponding to the data interaction behavior; determine whether the risk level is within the range allowed for execution within the target range, and if so, execute the data interaction behavior; otherwise, refuse to execute the data interaction behavior.
[0140] In one embodiment of the present invention, please refer to Figure 7 , the behavior processing device of the mobile storage device may also include:
[0141] The forced ejection unit 604 is used to forcefully eject the mobile storage device from the electronic device when the risk assessment parameter satisfies an ejection condition.
[0142] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the behavior processing device of a mobile storage device. In other embodiments of the present invention, a behavior processing device of a mobile storage device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0143] The information interaction, execution process and other contents between the modules in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention. For the specific contents, please refer to the description in the embodiment of the method of the present invention, and no further description is given here.
[0144] An embodiment of the present invention further provides a computing device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, a behavior processing method for a mobile storage device in any embodiment of the present invention is implemented.
[0145] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes a behavior processing method for a mobile storage device in any embodiment of the present invention.
[0146] Specifically, a system or device equipped with a storage medium can be provided, on which software program code that implements the functions of any of the above-mentioned embodiments is stored, and a computer (or CPU or MPU) of the system or device can be enabled to read and execute the program code stored in the storage medium.
[0147] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
[0148] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.
[0149] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0150] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0151] The above embodiments of the present invention have at least the following beneficial effects:
[0152] 1. In one embodiment of the present invention, by monitoring the data interaction behavior between the electronic device and the mobile storage device, the relevant risk assessment parameters are processed in a targeted manner through the data interaction behavior, thereby determining whether to execute the data interaction behavior, thereby solving the problem of excessive consumption of computing resources and no targeted optimization of the electronic device during the insertion of the mobile storage device.
[0153] 2. In one embodiment of the present invention, by analyzing device feature information in multiple dimensions such as electronic device historical information, mobile storage device historical information, and mobile storage device current information, the determined reference features can be made more comprehensive. When these reference features are used to calculate the historical risk assessment parameters of the mobile storage device, the accuracy of the historical risk assessment parameters is improved.
[0154] 3. In one embodiment of the present invention, the abnormality index of the target reference feature is determined by the calculated value of the target reference feature and the set standard boundary value. When there are multiple standard boundary values, the target reference interval corresponding to the calculated value of the target reference feature is determined through the correspondence between the reference interval and the abnormality index, and then the abnormality index of the target reference feature can be quickly determined, thereby improving the speed of determining the historical risk assessment parameters.
[0155] 4. In one embodiment of the present invention, the abnormality index of the target reference feature is determined by the calculated value of the target reference feature and the set standard boundary value. When the standard boundary value is one, the abnormality index is calculated using a calculation formula. Not only the distance between the calculated value and the standard boundary value (i.e., the difference between the two) is taken into account, but also the difference between the standard boundary value and the constant is used as a reference value. The distance between the calculated value and the standard boundary value is divided by the reference value to accurately obtain the abnormality index of the target reference feature. Moreover, the values of each parameter in the calculation formula are relatively easy to obtain. Substituting the values of each parameter into the calculation formula can quickly calculate the abnormality index, and the calculation speed is relatively fast.
[0156] 5. In one embodiment of the present invention, the calculation formula is used to calculate the historical risk assessment parameters, which not only takes into account the total risk assessment value, the weight value of the target reference feature, and the abnormal index of the target reference feature, but also performs a balanced processing on the abnormal index, so that the calculated historical risk assessment parameters can be made more accurate. After obtaining the parameter value of each parameter in the calculation formula, it is directly substituted into the formula to quickly calculate the historical risk assessment parameters of the mobile storage device.
[0157] 6. In one embodiment of the present invention, when the risk assessment parameter meets the ejection condition, it indicates that the risk of the mobile storage device is high. By forcibly ejecting the mobile storage device from the electronic device, the safety of the electronic device can be ensured.
[0158] It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical factors in the process, method, article or device including the elements.
[0159] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.
[0160] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A behavior processing method for a mobile storage device, characterized in that: include: Determine the data interaction behavior between the electronic device and the mobile storage device; Determine the risk assessment parameter corresponding to the mobile storage device by using the data interaction behavior; Determining whether to execute the data interaction behavior according to the risk assessment parameter; The using the data interaction behavior to determine the risk assessment parameter corresponding to the mobile storage device includes: Determining historical risk assessment parameters corresponding to the mobile storage device; Determine the risk level corresponding to the data interaction behavior; Determining a risk assessment parameter corresponding to the mobile storage device according to the risk level and the historical risk assessment parameter; The data interaction behavior is performed for the first time after the mobile storage device is connected to the electronic device; The determining of the historical risk assessment parameters corresponding to the mobile storage device includes: Acquire device characteristic information corresponding to the mobile storage device when it is connected to the electronic device; determining at least one reference feature according to the device feature information; determining the historical risk assessment parameter based on the at least one reference feature; The historical risk assessment parameters are obtained by the following method: respectively determining a calculated value of a target reference feature in the at least one reference feature; Determining an abnormality index of the target reference feature according to the calculated value of the target reference feature and a preset standard boundary value; Determine the total risk assessment value and the weight value of the target reference feature; calculate the product of the weight value of the target reference feature, the abnormal index of the target reference feature and the total risk assessment value, and use the product to obtain the historical risk assessment parameter of the mobile storage device; The historical risk assessment parameters are calculated using the following formula: in, Used to characterize the historical risk assessment parameters of the mobile storage device, Used to characterize the total value of risk assessment, Used to characterize the first of n target reference features The anomaly index of the target reference feature, is an integer not less than 1; To characterize the The weight value of the target reference feature.
2. The method according to claim 1, characterized in that: The reference features include: the historical number of times the electronic device has accessed the mobile storage device, the historical number of times the mobile storage device has accessed other electronic devices, the historical number of times the electronic device has accessed other mobile storage devices, whether virus files are stored in the mobile storage device, the types of virus files stored in the mobile storage device, whether abnormal files are stored in the mobile storage device, the types of abnormal files stored in the mobile storage device, or the degree of match between the identification type and the actual type of the mobile storage device.
3. The method according to claim 1, characterized in that The data interaction behavior is not the first time that the mobile storage device is connected to the electronic device; the historical risk assessment parameter is obtained after the last data interaction behavior.
4. The method according to claim 1, characterized in that: The determining whether to execute the data interaction behavior according to the risk assessment parameter includes: Determining target ranges for the risk assessment parameters; Determine the risk level corresponding to the data interaction behavior; Determine whether the risk level is within the range allowed by the scope to which the target belongs. If so, execute the data interaction behavior; otherwise, refuse to execute the data interaction behavior.
5. The method according to any one of claims 1 to 4, characterized in that: After determining whether to execute the data interaction behavior according to the risk assessment parameter, the method further includes: When the risk assessment parameter meets the ejection condition, the mobile storage device is forcibly ejected from the electronic device.
6. A behavior processing device for a mobile storage device, characterized in that: include: A behavior determination unit, used to determine the data interaction behavior between the electronic device and the mobile storage device; A parameter determination unit, used to determine a risk assessment parameter corresponding to the mobile storage device by using the data interaction behavior; a behavior execution determination unit, configured to determine whether to execute the data interaction behavior according to the risk assessment parameter; The parameter determination unit is further used to determine the historical risk assessment parameter corresponding to the mobile storage device; Determine the risk level corresponding to the data interaction behavior; Determining a risk assessment parameter corresponding to the mobile storage device according to the risk level and the historical risk assessment parameter; When performing the determination of the historical risk assessment parameter corresponding to the mobile storage device, it is used to obtain device feature information corresponding to the mobile storage device when it is connected to the electronic device; determine at least one reference feature according to the device feature information; and determine the historical risk assessment parameter according to the at least one reference feature; The historical risk assessment parameters are obtained by the following method: respectively determining a calculated value of a target reference feature in the at least one reference feature; Determining an abnormality index of the target reference feature according to the calculated value of the target reference feature and a preset standard boundary value; Determine the total risk assessment value and the weight value of the target reference feature; Calculate the product of the weight value of the target reference feature, the abnormal index of the target reference feature and the total risk assessment value, and use the product to obtain the historical risk assessment parameter of the mobile storage device; The historical risk assessment parameters are calculated using the following formula: in, Used to characterize the historical risk assessment parameters of the mobile storage device, Used to characterize the total value of risk assessment, Used to characterize the first of n target reference features The anomaly index of the target reference feature, is an integer not less than 1; To characterize the The weight value of the target reference feature.
7. A computing device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 5.
