Environmental safety detection method, system, terminal and storage medium
By proactively placing viruses in the computer system and obtaining detection and killing logs, the system's ability to detect and kill viruses is evaluated, which solves the problem in the existing technology of being unable to accurately assess the security performance of the computer system and improves the user experience.
Patent Information
- Application Number
- CN202410064136.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-01-16
AI Technical Summary
Existing computer system security protection systems cannot accurately predict the actual security performance under different computer systems and system configurations, causing users to be overconfident or anxious about computer protection capabilities, resulting in poor user experience.
By generating viruses and based on virus killing logs, the security level of the system is determined. The virus delivery module, log acquisition module and security assessment module are used to proactively release viruses into the system, obtain virus killing logs, and evaluate the system's virus killing capabilities. , so as to conduct safety evaluation.
It realizes the authenticity evaluation of system security, improves users' understanding of computer protection capabilities, and improves user experience.
Smart Images

Figure CN117951700B
Abstract
Description
Technical Field
[0001] The present application relates to the field of system security technology, and in particular to an environmental security detection method, system, terminal and storage medium. Background Art
[0002] With the development of the Internet, the popularity cycle of computer viruses, worms, Trojans and other computer malicious programs is getting shorter and shorter. A large number of viruses and various malicious files seriously endanger the safety of users. As viruses are constantly updated and changed, the virus detection client also needs to update its virus detection engine and virus signature library in a timely manner.
[0003] In the related art, computer system security protection has been very complete, and security protection based on virus databases has been updated in real time and quickly. However, the existing protection system scores system security based on the absence of viruses or dangerous files in the system, and the computer system is still at risk of virus invasion. For different computer systems and different system configurations, it is actually impossible to accurately predict the actual security performance of the system, which makes users overconfident or anxious about the computer's protection capabilities, resulting in a poor user experience. Summary of the invention
[0004] In order to solve the problem that the actual security performance of the system cannot be accurately predicted for different computer systems and different system configurations, the present application provides an environmental security detection method, system, terminal and storage medium.
[0005] In a first aspect of the present application, there is provided an environmental safety detection method, comprising:
[0006] Generate a virus according to preset virus delivery conditions; the virus delivery conditions include virus type, delivery location and delivery time;
[0007] Obtain virus detection logs, which include virus type, virus location, and processing time;
[0008] The environmental safety level is determined based on the virus location, processing time, placement location, placement time and virus type.
[0009] By adopting the above technical means, under the premise of making good system backup, we can actively release viruses into the system according to the preset virus release strategy, and then obtain the virus killing log of the security system, so as to determine the virus killing ability of the security system through the virus killing log, and thus evaluate the system security. Compared with the security evaluation in the security system environment, it is more authentic.
[0010] In a possible implementation, determining the environmental safety level according to the virus location, processing time, delivery location, delivery time and virus type includes:
[0011] Determine the time of virus delivery according to the virus type and virus location;
[0012] Determine the virus incubation time and clearance time based on the administration time and treatment start time;
[0013] Determine whether the virus type appears for the first time, and calculate the safety score of the corresponding virus type based on the incubation time and clearance time;
[0014] Determine the security level of the environment based on the security score of the corresponding virus type.
[0015] In a possible implementation, determining whether the virus type appears for the first time and calculating the safety score of the corresponding virus type according to the latent time and the clearance time include:
[0016] When the virus type appears for the first time, the safety score at the time of first appearance is calculated;
[0017] When a virus type does not appear for the first time, the safety score is calculated for each appearance;
[0018] The safety score of the corresponding virus type is calculated based on the safety score at the first appearance and the safety score at each appearance.
[0019] In a possible implementation, when a virus type appears for the first time, a safety score at the time of the first appearance is calculated, including:
[0020] When a virus type is discovered and cleared for the first time, the corresponding safety score is calculated as follows: Among them, Z is the safety score, K1 and K2 are the difficulty coefficients of the first treatment of the corresponding virus type, M and N are constants, and T1 and T2 are the incubation time and clearance time.
[0021] In a possible implementation, when the virus type does not appear for the first time, a safety score is calculated for each appearance, including:
[0022] When the corresponding virus type is not discovered and cleared for the first time, it needs to be calculated based on the number of processing times. The corresponding security score is calculated as follows: Among them, Z is the safety score, K1 and K2 are the difficulty coefficients of the first treatment of the corresponding virus type, M and N are constants, T1 and T2 are the incubation time and clearance time, and i is the number of treatments.
[0023] In a possible implementation, a virus is generated according to preset virus delivery conditions; the virus delivery conditions include virus type, delivery location and delivery time, including:
[0024] Get the networking status and directory structure of the system environment;
[0025] Retrieving corresponding virus types from a pre-stored virus database according to the networking status and directory structure of the system environment;
[0026] According to the virus type, a location suitable for virus delivery is retrieved, and the virus is delivered to the corresponding location at a preset frequency; the delivered virus type, delivery location, delivery frequency and each delivery time are recorded.
[0027] In a possible implementation, a virus detection and killing log is obtained, wherein the virus detection and killing log includes the virus type, the virus location, and the processing time, including:
[0028] The virus killing log is obtained in real time. When the number of viruses in the virus killing log is the same as the number of viruses released or the preset time is reached, the acquisition is stopped.
[0029] In a second aspect of the present application, an environmental safety detection system is provided, comprising:
[0030] A virus delivery module, used to generate a virus according to preset virus delivery conditions; the virus delivery conditions include virus type, delivery location and delivery time;
[0031] A log acquisition module is used to acquire a virus detection and killing log, wherein the virus detection and killing log includes the virus type, virus location and processing time;
[0032] The security assessment module is used to determine the environmental security level according to the virus location, processing time, delivery location, delivery time and virus type.
[0033] In a third aspect of the present application, a terminal is provided, which has the feature of realizing environmental safety detection.
[0034] The third application objective of this application is achieved through the following technical solutions:
[0035] A terminal includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and execute the above-mentioned environmental safety detection method.
[0036] In a fourth aspect of the present application, a computer storage medium is provided, which can store corresponding programs and has the characteristic of facilitating environmental safety detection.
[0037] The fourth application objective of this application is achieved through the following technical solutions:
[0038] A computer-readable storage medium stores a computer program that can be loaded by a processor and execute any one of the above-mentioned environmental safety detection methods.
[0039] In summary, the present application includes the following beneficial technical effects: on the premise of doing a good job of system backup, the system is actively released with a virus according to a preset virus release strategy, and then the virus detection and killing log of the security system is obtained, so as to determine the virus detection and killing capability of the security system through the virus detection and killing log, and thus evaluate the system security. Compared with the security evaluation in the security system environment, it is more authentic. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a flow chart of an environmental safety detection method according to one embodiment of the present application.
[0041] Figure 2 It is a schematic diagram of an environmental safety detection system according to one embodiment of the present application.
[0042] Figure 3 It is a structural diagram of a terminal according to an embodiment of the present application.
[0043] Explanation of the reference numerals: 201, virus delivery module; 202, log acquisition module; 203, security assessment module; 301, CPU; 302, ROM; 303, RAM; 304, bus; 305, I / O interface; 306, input part; 307, output part; 308, storage part; 309, communication part; 310, drive; 311, removable medium. DETAILED DESCRIPTION
[0044] 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.
[0045] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0046] The following is combined with Figures 1 to 3 This application is described in further detail.
[0047] In order to perform security protection detection on the system environment, the present application provides an environmental security detection method.
[0048] Reference Figure 1, an environmental safety detection method, comprising the following steps:
[0049] In order to determine the true level of the system environment, this application will back up the system files, conduct a closed test on the system environment, take the strategy of actively releasing viruses, and test the protection capabilities of the security protection system.
[0050] S101: Generate a virus according to preset virus delivery conditions.
[0051] Adopt the strategy of generating and releasing viruses, and select the type, frequency, and location of virus release based on the network status and directory structure of the system environment. First, obtain the network status and directory structure of the system environment, and retrieve the corresponding virus type from the pre-stored virus library. Then, according to the virus type, retrieve the location suitable for virus release, and release the virus to the corresponding location according to the preset frequency. Record the type of virus released, the release location, the release frequency, and the release time of each time.
[0052] S102: Obtain virus detection log.
[0053] When a virus is placed in the system environment, obtain the virus detection log of the antivirus software within the preset time or when the disinfection software removes all viruses. The virus detection log includes the virus type, virus location and processing time. When the antivirus software detects and kills the virus, it will isolate, delete and other operations on the found virus, and record the original location of the virus, the start time of the processing after the virus is found, and the end time of the processing after the virus processing is completed.
[0054] There are two ways to determine whether the virus has been processed: detection based on the hash of the virus file and detection based on the location of the virus. Detection based on the hash of the virus file: polling for a certain period of time, such as 2 minutes. If the hash of the virus file changes within 2 minutes, it means that the virus file has been detected and killed by the anti-virus software. The killing action may be to suspend the virus file, add useless strings so that the virus file cannot run normally, and other means of processing; Detection based on the location of the virus file: polling for a certain period of time, such as 2 minutes. If the virus file disappears from the previous location within 2 minutes, it means that the virus file has been deleted by the anti-virus software.
[0055] S103: Determine the environmental safety level according to the virus location, processing time, placement location, placement time and virus type.
[0056] Specifically, according to the virus position in the virus killing log, the release time of the virus at the corresponding release position is retrieved. Then the latent time from the release of the virus to its discovery is calculated, that is, the time difference between the start time of processing and the release time. The longer the latent time of a virus, the worse the security of the system environment. Further, the clearance time from the discovery of the virus to its processing is calculated, that is, the time difference between the end time of processing and the start time of processing. The longer the clearance time of a virus, the worse the security of the system environment. Moreover, after the same type of virus is cleared for the first time, when it appears for the second time, the latent time and clearance time will be reduced. And based on the latent time and clearance time, the security score of the corresponding virus type is calculated, and finally, based on the security score of the corresponding virus type, the security level of the environment is determined.
[0057] First, we need to determine whether the virus of the corresponding virus type is discovered for the first time according to the virus type. If it is the first time to be discovered and cleared, the corresponding security score is calculated as follows: Among them, K1 and K2 are the difficulty coefficients of the first treatment of the corresponding virus type, M and N are constants, and T1 and T2 are the incubation time and clearance time.
[0058] When the corresponding virus type is not processed for the first time, it needs to be calculated based on the number of processing times. The corresponding security score is calculated as follows: Where i is the number of processing times. After calculating the security score of each virus type, it is necessary to calculate the total score of the virus type, sum the security scores of viruses of the same virus type, and get the total score of the virus type. Then, sum the total scores of the virus types to get the total security score of the system.
[0059] Finally, the security level of the system environment is determined based on the total system security score. In an implementation scenario, the security level of the system environment is divided into different score intervals. After the total system security score is obtained, the security level of the system environment is determined based on the preset score interval.
[0060] This application provides an environmental safety detection system, which adopts the following technical solutions:
[0061] Reference Figure 2 , an environmental safety detection system, comprising:
[0062] The virus delivery module 201 is used to generate a virus according to preset virus delivery conditions; the virus delivery conditions include virus type, delivery location and delivery time.
[0063] The log acquisition module 202 is used to acquire the virus detection and killing log, and the virus detection and killing log includes the virus type, virus location and processing time.
[0064] The security assessment module 203 is used to determine the environmental security level according to the virus location, processing time, delivery location, delivery time and virus type.
[0065] Figure 3 A schematic diagram of the structure of a terminal suitable for implementing an embodiment of the present application is shown.
[0066] like Figure 3 As shown, the terminal includes a central processing unit (CPU) 301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 302 or the program loaded from the storage part to the random access memory (RAM) 303. In the RAM 303, various programs and data required for system operation are also stored. The CPU 301, the ROM 302 and the RAM 303 are connected to each other through a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0067] The following components are connected to the I / O interface 305: an input section 306 including a keyboard, a mouse, etc.; an output section 307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN card, a modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to the I / O interface 305 as needed. A removable medium 311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 310 as needed so that a computer program read therefrom is installed into the storage section 308 as needed.
[0068] In particular, according to the embodiments of the present application, the above reference process Figure 1 The described process can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a machine-readable medium, and the computer program contains program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 309, and / or installed from the removable medium 311. When the computer program is executed by the central processing unit (CPU) 301, the above-mentioned functions defined in the system of the present application are executed.
[0069] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, register file (RF), etc., or any suitable combination of the above.
[0070] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the aforementioned module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0071] The units or modules involved in the embodiments described in the present application may be implemented by software or hardware. The units or modules described may also be set in a processor, for example, it may be described as: a processor includes a virus delivery module 201, a log acquisition module 202, and a security assessment module 203. The names of these units or modules do not, in some cases, constitute limitations on the units or modules themselves.
[0072] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the terminal described in the above embodiment; or may exist independently and not be assembled into the terminal. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the data encryption transmission method described in the present application.
[0073] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. An environmental safety detection method, characterized in that: include: Generate a virus according to preset virus delivery conditions; the virus delivery conditions include virus type, delivery location and delivery time; Obtain virus detection logs, which include virus type, virus location, and processing time; Determine the time of virus delivery according to the virus type and virus location; Determine the virus incubation time and clearance time based on the administration time and treatment start time; Determine whether the virus type appears for the first time, and calculate the safety score of the corresponding virus type based on the incubation time and clearance time; When a virus type appears for the first time, the safety score at the time of the first appearance is calculated: When a virus type is discovered and cleared for the first time, the corresponding safety score is calculated as follows: , where Z is the safety score, K1 and K2 are the processing difficulty coefficients of the first processing of the corresponding virus type, M and N are constants, and T1 and T2 are the incubation time and clearance time; When the virus type does not appear for the first time, calculate the safety score for each occurrence: When the corresponding virus type is not discovered and cleared for the first time, it needs to be calculated based on the number of processing times. The corresponding safety score is calculated as follows: , where Z is the safety score, K1 and K2 are the difficulty coefficients of the first treatment of the corresponding virus type, M and N are constants, T1 and T2 are the incubation time and clearance time, and i is the number of treatments; Calculate the safety score of the corresponding virus type based on the safety score at the first appearance and the safety score at each appearance; Determine the security level of the environment based on the security score of the corresponding virus type.
2. The environmental safety detection method according to claim 1, characterized in that: Generate a virus according to preset virus delivery conditions; the virus delivery conditions include virus type, delivery location and delivery time, including: Get the networking status and directory structure of the system environment; According to the networking status and directory structure of the system environment, the corresponding virus type is retrieved from the pre-stored virus database; According to the virus type, a location suitable for placing the virus is retrieved, and the virus is placed at the corresponding location according to a preset frequency; Record the type of virus delivered, delivery location, delivery frequency and time of each delivery.
3. The environmental safety detection method according to claim 1, characterized in that: Obtain virus detection logs, which include virus type, virus location, and processing time, including: The virus killing log is obtained in real time. When the number of viruses in the virus killing log is the same as the number of viruses released or the preset time is reached, the acquisition is stopped.
4. An environmental safety detection system, characterized in that: include: A virus delivery module (201) is used to generate a virus according to preset virus delivery conditions; the virus delivery conditions include virus type, delivery location and delivery time; A log acquisition module (202) is used to acquire a virus detection and killing log, wherein the virus detection and killing log includes a virus type, a virus location and a processing time; A safety assessment module (203), used to determine the time of virus delivery according to the virus type and virus location; Determine the virus incubation time and clearance time based on the administration time and treatment start time; Determine whether the virus type appears for the first time, and calculate the safety score of the corresponding virus type based on the incubation time and clearance time; When a virus type appears for the first time, the safety score at the time of the first appearance is calculated: When a virus type is discovered and cleared for the first time, the corresponding safety score is calculated as follows: , where Z is the safety score, K1 and K2 are the processing difficulty coefficients of the first processing of the corresponding virus type, M and N are constants, and T1 and T2 are the incubation time and clearance time; When the virus type does not appear for the first time, calculate the safety score for each occurrence: When the corresponding virus type is not discovered and cleared for the first time, it needs to be calculated based on the number of processing times. The corresponding safety score is calculated as follows: , where Z is the safety score, K1 and K2 are the difficulty coefficients of the first treatment of the corresponding virus type, M and N are constants, T1 and T2 are the incubation time and clearance time, and i is the number of treatments; Calculate the safety score of the corresponding virus type based on the safety score at the first appearance and the safety score at each appearance; Determine the security level of the environment based on the security score of the corresponding virus type.
5. A terminal comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 3 is implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Terminal system security monitoring method and device
CN105204825A
Ransomware behavior detection method and system based on bait file monitoring
CN116561744A
Process security detection protection method and device, electronic equipment and medium
CN116881918A
Application virus detection method, apparatus, computer device, and storage medium
WO2020048392A1
Ransomware defense method and system based on trusted computing, and related device
WO2023024125A1
