System security detection method and device, program product and medium
By constructing and matching sensitive elements of the system interface and monitoring screen recording data, the problem of insufficient monitoring of illegal operations in the existing technology is solved, effective protection of system data is achieved, and the risk of leakage and damage is reduced.
Patent Information
- Application Number
- CN202410691428.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-13
AI Technical Summary
Existing system security protection measures are difficult to effectively monitor and prevent illegal operations, leading to the risk of system data leakage and damage.
By constructing sensitive elements, monitor the system interface screen recording data, match it with preset sensitive elements, and output security detection results to determine whether there are security risks, thereby monitoring and protecting illegal operations.
Effectively monitor user operations, promptly identify and prevent potential security risks, prevent data leakage and damage, and improve system security.
Smart Images

Figure CN118643499A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of system security, and in particular, relates to a system security detection method, device, program product and medium. Background Art
[0002] With the rapid development of computer technology, computer system security issues have gradually become prominent. Hacker attacks, remote control, and users' illegal operations on systems and software have made it difficult to effectively protect the security of enterprise systems. In order to achieve comprehensive and effective management and control of computer system security, corresponding security management and control measures must be taken. The commonly used system security protection system software now generally uses antivirus tools, network firewalls, etc. to perform relevant system security management and control, but the importance of computer system security is reflected in many aspects. The number and types of various software applications installed in the system are numerous. The operation of some illegal software and the user's illegal operations are important factors that affect and threaten system security. If these illegal operations are not effectively monitored, they may steal data information stored in the system and damage system files and data. Summary of the invention
[0003] The embodiments of the present invention provide a system security detection method, device, program product and medium to at least solve the technical problem that the lack of effective monitoring of illegal operations on the system may lead to system data leakage and data damage.
[0004] According to a first aspect of an embodiment of the present invention, there is provided a system security detection method, comprising: constructing sensitive elements based on a system interface; monitoring the system interface to obtain screen recording data of the system interface; matching the screen recording data with the sensitive elements to obtain a matching result; and outputting a security detection result in response to the matching result, wherein the security detection result includes a detected security risk and an undetected security risk.
[0005] Optionally, sensitive elements include image elements and text elements.
[0006] Optionally, the system security detection method also includes: obtaining a sensitive element editing instruction; in response to the sensitive element editing instruction being a new addition, saving the newly constructed sensitive element to a preset database; or, in response to the sensitive element editing instruction being a deletion, deleting the corresponding sensitive element from the preset database according to the sensitive element identity; or, in response to the sensitive element editing instruction being a modification, modifying the corresponding sensitive element from the preset database according to the sensitive element identity.
[0007] Optionally, matching the screen recording data with sensitive elements to obtain a matching result includes: splitting the screen recording data into picture frames to obtain a split result, wherein the split result includes multiple pictures corresponding to multiple frames of screen recording data; matching each of the multiple pictures with the sensitive elements to obtain a matching result.
[0008] Optionally, matching each of the multiple images with the sensitive element to obtain a matching result includes: in response to there being an image among the multiple images that matches the sensitive element, determining a target image, wherein the target image is an image that matches the sensitive element; and taking the target image as the matching result.
[0009] Optionally, in response to the matching result, outputting the security detection result includes: in response to the matching result indicating that the screen recording data matches a sensitive element, the output security detection result is that a security risk is detected, and an alarm prompt message is output simultaneously; or, in response to the matching result indicating that the screen recording data does not match a sensitive element, the output security detection result is that no security risk is detected.
[0010] Optionally, the system security detection method also includes: in response to the matching result indicating that the screen recording data matches the sensitive element, locating target data that matches the sensitive element from the screen recording data; and storing the target data and alarm prompt information in a preset database.
[0011] Optionally, the system security detection method further includes: determining a target data identity in response to a data query instruction; determining data to be queried based on the target data identity; and outputting the data to be queried to a preset display device.
[0012] According to a second aspect of an embodiment of the present invention, there is further provided a system safety detection device, comprising:
[0013] A construction module is used to construct sensitive elements according to the system interface; a monitoring module is used to monitor the system interface to obtain screen recording data of the system interface; a matching module is used to match the screen recording data with the sensitive elements to obtain a matching result; an output module is used to output a security detection result in response to the matching result, wherein the security detection result includes detected security risks and undetected security risks.
[0014] Optionally, the sensitive elements constructed by the construction module include image elements and text elements.
[0015] Optionally, the system security detection device also includes an editing module, which is used to: obtain sensitive element editing instructions; in response to the sensitive element editing instruction being a new addition, save the newly constructed sensitive element to a preset database; or, in response to the sensitive element editing instruction being a deletion, delete the corresponding sensitive element from the preset database according to the sensitive element identity identification; or, in response to the sensitive element editing instruction being a modification, modify the corresponding sensitive element from the preset database according to the sensitive element identity identification.
[0016] Optionally, the matching module is also used to: split the screen recording data into picture frames to obtain a split result, wherein the split result includes multiple pictures corresponding to multiple frames of screen recording data; match each of the multiple pictures with a sensitive element to obtain a matching result.
[0017] Optionally, the matching module is further used to: in response to the presence of an image among multiple images that matches the sensitive element, determine a target image, wherein the target image is an image that matches the sensitive element; and use the target image as a matching result.
[0018] Optionally, the output module is also used to: in response to the matching result indicating that the screen recording data matches a sensitive element, the output security detection result is that a security risk is detected, and an alarm prompt message is output simultaneously; or, in response to the matching result indicating that the screen recording data does not match a sensitive element, the output security detection result is that no security risk is detected.
[0019] Optionally, the output module is also used to: in response to the matching result indicating that the screen recording data matches the sensitive element, locate the target data that matches the sensitive element from the screen recording data; and store the target data and alarm prompt information in a preset database.
[0020] Optionally, the system security detection device also includes a query module, which is used to: determine the target data identity in response to a data query instruction; determine the data to be queried according to the target data identity; and output the data to be queried to a preset display device.
[0021] According to a third aspect of an embodiment of the present invention, a computer program product is also provided, including a computer program, which, when executed by a processor, implements the system security detection method as described in any embodiment of the first aspect above.
[0022] According to a fourth aspect of an embodiment of the present invention, a non-volatile storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the system security detection method described in any embodiment of the first aspect when running on a computer or a processor.
[0023] According to a fifth aspect of an embodiment of the present invention, there is also provided an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the system security detection method described in any embodiment of the first aspect above.
[0024] In an embodiment of the present invention, a sensitive element is constructed according to a system interface; the system interface is monitored to obtain screen recording data of the system interface; the screen recording data is matched with the sensitive element to obtain a matching result; in response to the matching result, a security detection result is output, wherein the security detection result includes a detected security risk and a non-detected security risk. The system security detection method provided by the present invention monitors the user's operation behavior on the system through screen recording to obtain screen recording data, and then matches the screen recording data with the constructed sensitive elements to determine whether the user has performed risky operations on the system, and finally outputs a security detection result based on the matching result. Security personnel can monitor and protect the system based on the security detection result, thereby solving the technical problem that the lack of effective monitoring of illegal operations on the system may lead to system data leakage and data damage. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0026] Figure 1 is a flow chart of a system security detection method according to one embodiment of the present invention;
[0027] Figure 2 is a structural block diagram of a system safety detection device according to one embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] According to an embodiment of the present invention, an embodiment of a system security detection method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system containing at least one set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0031] The method embodiment can also be executed in an electronic device including a memory and a processor, a similar control device or a cloud. Taking an electronic device as an example, the electronic device may include one or more processors and a memory for storing data. Optionally, the electronic device may also include a communication device and a display device for communication functions. It can be understood by a person of ordinary skill in the art that the above structural description is only illustrative and does not limit the structure of the above electronic device. For example, the electronic device may also include more or fewer components than the above structural description, or have a configuration different from the above structural description.
[0032] The processor may include one or more processing units. For example, the processor may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microcontroller unit (MCU), a field-programmable gate array (FPGA), a neural network processor (NPU), a tensor processing unit (TPU), an artificial intelligence (AI) type processor, and the like. Among them, different processing units may be independent components or integrated into one or more processors. In some instances, the electronic device may also include one or more processors.
[0033] The memory can be used to store computer programs, such as storing the computer program corresponding to the system safety detection method in the embodiment of the present invention, and the processor implements the above-mentioned system safety detection method by running the computer program stored in the memory. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0034] The communication device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the communication device includes a network adapter (network interface controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the communication device can be a radio frequency (radio frequency, RF) module, which is used to communicate with the Internet wirelessly. In some embodiments of the present solution, the communication device is used to connect to mobile devices such as mobile phones and tablets, and instructions can be sent to electronic devices through the mobile device.
[0035] The display device may be a touch screen type liquid crystal display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the electronic device. In some embodiments, the electronic device has a graphical user interface (GUI), and a user may interact with the GUI by touching a finger release and / or gestures on a touch-sensitive surface, and executable instructions for executing the above-mentioned human-computer interaction functions are configured / stored in a computer program product or a readable storage medium executable by one or more processors.
[0036] Figure 1 is a flow chart of a system security detection method according to one embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0037] Step S101, constructing sensitive elements according to the system interface.
[0038] Specifically, when constructing system sensitive elements, the system interface that needs to be monitored and that is sensitive can be obtained by taking a screenshot of the system interface, and then the screenshot can be saved in the database as a sensitive element. The text in the system interface can also be extracted to extract sensitive text information in the system that needs to be monitored, and the text information can be saved in the database as a sensitive element.
[0039] It should be noted that the above-mentioned sensitive elements can not only be constructed by taking screenshots of the system interface or extracting text, but also can be preset based on the system interface and in accordance with preset monitoring requirements.
[0040] It should be noted that the above-mentioned system interface not only refers to the WEB system interface, but is also used to refer to the application (APP) system interface.
[0041] Optionally, in some embodiments of the present inventors, the sensitive elements include picture elements and text elements.
[0042] Exemplarily, the sensitive element is a text description of "deleting database data", or the sensitive element is a preset sensitive image.
[0043] Step S102: monitor the system interface to obtain screen recording data of the system interface.
[0044] Specifically, during the operation of the system, the system interface is monitored in real time, that is, the screen is recorded to obtain the screen recording data.
[0045] Step S103, matching the screen recording data with the sensitive elements to obtain a matching result.
[0046] Specifically, a preset algorithm is used to match the screen recording data acquired in step S102 with the constructed sensitive elements to obtain a matching result.
[0047] It should be noted that the matching result includes at least two situations: the screen recording data matches the sensitive element or the screen recording data does not match the sensitive element.
[0048] Step S104: outputting a security detection result in response to the matching result, wherein the security detection result includes detecting a security risk and not detecting a security risk.
[0049] Specifically, after the matching result is obtained in step S103, different security detection results can be determined according to different matching results.
[0050] Exemplarily, if the matching result is that the screen recording data matches a sensitive element, the security detection result is that a security risk is detected.
[0051] It is understandable that when a security risk is detected, the system operation and maintenance personnel can process the system according to the preset security processing strategy to ensure the security of the system.
[0052] In an embodiment of the present invention, a sensitive element is constructed according to a system interface; the system interface is monitored to obtain screen recording data of the system interface; the screen recording data is matched with the sensitive element to obtain a matching result; in response to the matching result, a security detection result is output, wherein the security detection result includes a detected security risk and a non-detected security risk. The system security detection method provided by the present invention monitors the user's operation behavior on the system through screen recording to obtain screen recording data, and then matches the screen recording data with the constructed sensitive elements to determine whether the user has performed risky operations on the system, and finally outputs a security detection result based on the matching result. Security personnel can monitor and protect the system based on the security detection result, thereby solving the technical problem that the lack of effective monitoring of illegal operations on the system may lead to system data leakage and data damage.
[0053] Optionally, the system safety detection method also includes:
[0054] Step S1011, obtaining a sensitive element editing instruction;
[0055] Step S1012, in response to the sensitive element editing instruction being a new addition, the newly constructed sensitive element is saved to the preset database; or, in response to the sensitive element editing instruction being a deletion, the corresponding sensitive element is deleted from the preset database according to the sensitive element identity identification; or, in response to the sensitive element editing instruction being a modification, the corresponding sensitive element is modified from the preset database according to the sensitive element identity identification.
[0056] Specifically, the present method also provides a solution for editing sensitive elements. When a sensitive element editing instruction is obtained, it is first necessary to determine the type of the sensitive element editing instruction. If the sensitive element editing instruction is for adding, the newly constructed sensitive element is saved in a preset database; if the sensitive element editing instruction is for deleting, the deletion instruction will carry the identity of the sensitive element to be deleted, and then the corresponding sensitive element will be deleted from the preset database based on the sensitive element identity; if the sensitive element editing instruction is for modifying, the modification instruction will carry the identity of the sensitive element to be modified and the modification parameters, and then the corresponding sensitive element will be modified from the preset database based on the modification parameters based on the sensitive element identity.
[0057] Optionally, matching the screen recording data with sensitive elements to obtain a matching result includes: splitting the screen recording data into picture frames to obtain a split result, wherein the split result includes multiple pictures corresponding to multiple frames of screen recording data; matching each of the multiple pictures with the sensitive elements to obtain a matching result.
[0058] Specifically, the screen recording data is continuous and complex video data. When matching the screen recording data with sensitive elements, the screen recording data needs to be split into picture frames. Each frame of screen recording data corresponds to a picture, and then each picture in the multiple pictures is matched with the sensitive elements to obtain a matching result.
[0059] Optionally, matching each of the multiple images with the sensitive element to obtain a matching result includes: in response to there being an image among the multiple images that matches the sensitive element, determining a target image, wherein the target image is an image that matches the sensitive element; and taking the target image as the matching result.
[0060] Specifically, when each of the multiple pictures is matched with the sensitive element, if there is a picture among the multiple pictures that matches the sensitive element, the target picture that matches the sensitive element is determined, and then the target picture is output as the matching result. At the same time, the matching result indicates that the screen recording data matches the sensitive element.
[0061] It is understandable that when matching images with sensitive elements, both image-type sensitive elements and text-type sensitive elements can be matched. When matching image-type sensitive elements, the image and sensitive elements are matched for similarity, and when matching text-type sensitive elements, the text in the image is extracted and matched with the text-type sensitive elements.
[0062] Optionally, in response to the matching result, outputting the security detection result includes: in response to the matching result indicating that the screen recording data matches a sensitive element, the output security detection result is that a security risk is detected, and an alarm prompt message is output simultaneously; or, in response to the matching result indicating that the screen recording data does not match a sensitive element, the output security detection result is that no security risk is detected.
[0063] Specifically, if the matching result shows that the screen recording data matches sensitive elements, it means that the current system has a risky operation during the monitoring period, so the output security detection result is that a security risk is detected, and the alarm prompt information is output to the system operation and maintenance personnel. If it shows that the screen recording data does not match sensitive elements, it means that the current system has no risky operation during the monitoring period, so the output security detection result is that no security risk is detected.
[0064] Optionally, the system security detection method also includes: in response to the matching result indicating that the screen recording data matches the sensitive element, locating target data that matches the sensitive element from the screen recording data; and storing the target data and alarm prompt information in a preset database.
[0065] Specifically, in order to facilitate subsequent operation and maintenance personnel to conduct statistical analysis on the system's operating data, when the screen recording data matches a sensitive element, the target data matching the sensitive element is located from the screen recording data and the target data and the corresponding alarm prompt information are stored in a preset database.
[0066] For example, when the matching result shows that the screen recording data matches a sensitive element, the screen recording data is split into the current screenshot and marked with a red frame or red watermark text, and the current screen recording data is recorded, and the specific time and location of the current screenshot in the screen recording data and how many frames of data it lasts are saved. The screenshot or text in the screenshot that matches the sensitive element is recorded in the database together to facilitate subsequent positioning queries.
[0067] Optionally, the system security detection method further includes: determining a target data identity in response to a data query instruction; determining data to be queried based on the target data identity; and outputting the data to be queried to a preset display device.
[0068] Specifically, the method also provides a strategy for querying historical data. When a data query instruction is obtained, the identity of the target data is determined according to the index information carried by the data query instruction, and then the target data is output as the data to be queried to a preset display device according to the identity.
[0069] It should be noted that, in this embodiment, the target data is the screen recording data that matches the sensitive elements.
[0070] In this embodiment, a system safety detection device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" is a combination of software and / or hardware that can implement a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0071] Figure 2 is a structural block diagram of a system safety detection device 200 according to one embodiment of the present invention. Figure 2 As shown, a system security detection device 200 is used as an example, including: a construction module 201, used to construct sensitive elements according to the system interface; a monitoring module 202, used to monitor the system interface to obtain the screen recording data of the system interface; a matching module 203, used to match the screen recording data with the sensitive elements to obtain a matching result; an output module 204, used to output a security detection result in response to the matching result, wherein the security detection result includes a detected security risk and an undetected security risk.
[0072] Optionally, the sensitive elements constructed by the construction module 201 include picture elements and text elements.
[0073] Optionally, the system security detection device 200 also includes an editing module, which is connected to the construction module 201, not shown in the figure. The editing module is used to: obtain a sensitive element editing instruction; in response to the sensitive element editing instruction being a new addition, save the newly constructed sensitive element to a preset database; or, in response to the sensitive element editing instruction being a deletion, delete the corresponding sensitive element from the preset database according to the sensitive element identity; or, in response to the sensitive element editing instruction being a modification, modify the corresponding sensitive element from the preset database according to the sensitive element identity.
[0074] Optionally, the matching module 203 is also used to: split the screen recording data into picture frames to obtain a split result, wherein the split result includes multiple pictures corresponding to multiple frames of screen recording data; and match each of the multiple pictures with a sensitive element to obtain a matching result.
[0075] Optionally, the matching module 203 is further used to: in response to a picture among multiple pictures matching the sensitive element, determine a target picture, wherein the target picture is a picture matching the sensitive element; and use the target picture as a matching result.
[0076] Optionally, the output module 204 is also used to: in response to the matching result indicating that the screen recording data matches a sensitive element, the output security detection result is that a security risk is detected, and an alarm prompt message is output simultaneously; or, in response to the matching result indicating that the screen recording data does not match a sensitive element, the output security detection result is that no security risk is detected.
[0077] Optionally, the output module 204 is also used to: in response to the matching result indicating that the screen recording data matches the sensitive element, locate the target data that matches the sensitive element from the screen recording data; and store the target data and the alarm prompt information in a preset database.
[0078] Optionally, the system security detection device 200 also includes a query module, which is connected to the output module 204 (not shown in the figure). The query module is used to: determine the target data identity in response to a data query instruction; determine the data to be queried based on the target data identity; and output the data to be queried to a preset display device.
[0079] An embodiment of the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the system security detection method as described in any of the above embodiments is implemented.
[0080] Optionally, in this embodiment, the above computer program implements the following steps when executed by a processor:
[0081] Step S101, constructing sensitive elements according to the system interface.
[0082] Step S102: monitor the system interface to obtain screen recording data of the system interface.
[0083] Step S103, matching the screen recording data with the sensitive elements to obtain a matching result.
[0084] Step S104: outputting a security detection result in response to the matching result, wherein the security detection result includes detecting a security risk and not detecting a security risk.
[0085] Optionally, the sensitive elements constructed by the above-mentioned computer program when executed by the processor include picture elements and text elements.
[0086] Optionally, the above-mentioned computer program implements the following steps when executed by the processor: obtaining a sensitive element editing instruction; in response to the sensitive element editing instruction being a new addition, saving the newly constructed sensitive element to a preset database; or, in response to the sensitive element editing instruction being a deletion, deleting the corresponding sensitive element from the preset database according to the sensitive element identity; or, in response to the sensitive element editing instruction being a modification, modifying the corresponding sensitive element from the preset database according to the sensitive element identity.
[0087] Optionally, the above-mentioned computer program implements the following steps when executed by the processor: splitting the screen recording data into picture frames to obtain a split result, wherein the split result includes multiple pictures corresponding to multiple frames of screen recording data; matching each picture in the multiple pictures with the sensitive element to obtain a matching result.
[0088] Optionally, the above-mentioned computer program implements the following steps when executed by a processor: in response to the presence of an image among multiple images that matches a sensitive element, determining a target image, wherein the target image is an image that matches the sensitive element; and taking the target image as a matching result.
[0089] Optionally, the above-mentioned computer program implements the following steps when executed by the processor: in response to the matching result indicating that the screen recording data matches the sensitive element, the output security detection result is that a security risk is detected, and an alarm prompt information is output simultaneously; or, in response to the matching result indicating that the screen recording data does not match the sensitive element, the output security detection result is that no security risk is detected.
[0090] Optionally, when the above-mentioned computer program is executed by the processor, the following steps are implemented: in response to the matching result indicating that the screen recording data matches the sensitive element, the target data matching the sensitive element is located from the screen recording data; and the target data and alarm prompt information are stored in a preset database.
[0091] Optionally, when the above-mentioned computer program is executed by a processor, the following steps are implemented: in response to a data query instruction, determining a target data identity; determining the data to be queried according to the target data identity; and outputting the data to be queried to a preset display device.
[0092] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0093] An embodiment of the present invention further provides a non-volatile storage medium, in which a computer program is stored, wherein the computer program is configured to execute the system security detection method described in any of the above embodiments when running on a computer or a processor.
[0094] Optionally, in this embodiment, the non-volatile storage medium may be configured to store a computer program for performing the following steps:
[0095] Step S101, constructing sensitive elements according to the system interface.
[0096] Step S102: monitor the system interface to obtain screen recording data of the system interface.
[0097] Step S103, matching the screen recording data with the sensitive elements to obtain a matching result.
[0098] Step S104: outputting a security detection result in response to the matching result, wherein the security detection result includes detecting a security risk and not detecting a security risk.
[0099] Optionally, the sensitive elements stored in the above storage medium include image elements and text elements.
[0100] Optionally, the above-mentioned non-volatile storage medium can be configured to store a computer program for performing the following steps: obtaining a sensitive element editing instruction; in response to the sensitive element editing instruction being a new addition, saving the newly constructed sensitive element to a preset database; or, in response to the sensitive element editing instruction being a deletion, deleting the corresponding sensitive element from the preset database according to the sensitive element identity; or, in response to the sensitive element editing instruction being a modification, modifying the corresponding sensitive element from the preset database according to the sensitive element identity.
[0101] Optionally, the above-mentioned non-volatile storage medium can be configured to store a computer program for performing the following steps: splitting the screen recording data into picture frames to obtain a splitting result, wherein the splitting result includes multiple pictures corresponding to multiple frames of screen recording data; matching each of the multiple pictures with a sensitive element to obtain a matching result.
[0102] Optionally, the above-mentioned non-volatile storage medium can be configured to store a computer program for performing the following steps: in response to the presence of a picture among multiple pictures that matches a sensitive element, determining a target picture, wherein the target picture is a picture that matches the sensitive element; and taking the target picture as a matching result.
[0103] Optionally, the above-mentioned non-volatile storage medium can be configured to store a computer program for performing the following steps: in response to the matching result indicating that the screen recording data matches a sensitive element, the output security detection result is that a security risk is detected, and an alarm prompt information is output simultaneously; or, in response to the matching result indicating that the screen recording data does not match a sensitive element, the output security detection result is that no security risk is detected.
[0104] Optionally, the above-mentioned non-volatile storage medium can be configured to store a computer program for performing the following steps: in response to the matching result indicating that the screen recording data matches the sensitive element, locating target data that matches the sensitive element from the screen recording data; and storing the target data and alarm prompt information in a preset database.
[0105] Optionally, the above-mentioned non-volatile storage medium can be configured to store a computer program for executing the following steps: determining a target data identity in response to a data query instruction; determining data to be queried based on the target data identity; and outputting the data to be queried to a preset display device.
[0106] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0107] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the system security detection method described in any of the above embodiments.
[0108] Optionally, in this embodiment, the processor may be configured to run a computer program to perform the following steps:
[0109] Step S101, constructing sensitive elements according to the system interface.
[0110] Step S102: monitor the system interface to obtain screen recording data of the system interface.
[0111] Step S103, matching the screen recording data with the sensitive elements to obtain a matching result.
[0112] Step S104: outputting a security detection result in response to the matching result, wherein the security detection result includes detecting a security risk and not detecting a security risk.
[0113] Optionally, the sensitive elements constructed by the above processor include image elements and text elements.
[0114] Optionally, the processor may be configured to run a computer program to perform the following steps: in response to a sensitive element editing instruction of adding a new element, saving the newly constructed sensitive element to a preset database; or, in response to a sensitive element editing instruction of deleting a new element, deleting the corresponding sensitive element from the preset database according to the sensitive element identity; or, in response to a sensitive element editing instruction of modifying a new element, modifying the corresponding sensitive element from the preset database according to the sensitive element identity.
[0115] Optionally, the processor can be configured to run a computer program to perform the following steps: split the screen recording data into picture frames to obtain a split result, wherein the split result includes multiple pictures corresponding to multiple frames of screen recording data; and match each of the multiple pictures with a sensitive element to obtain a matching result.
[0116] Optionally, the processor may be configured to run a computer program to perform the following steps: in response to a situation in which there is a picture among multiple pictures that matches a sensitive element, determining a target picture, wherein the target picture is a picture that matches the sensitive element; and taking the target picture as a matching result.
[0117] Optionally, the processor may be configured to run a computer program to perform the following steps: in response to the matching result indicating that the screen recording data matches a sensitive element, the output security detection result is that a security risk is detected, and an alarm prompt message is output simultaneously; or, in response to the matching result indicating that the screen recording data does not match a sensitive element, the output security detection result is that no security risk is detected.
[0118] Optionally, the processor may be configured to run a computer program to perform the following steps: in response to a matching result indicating that the screen recording data matches a sensitive element, locating target data that matches the sensitive element from the screen recording data; and storing the target data and alarm prompt information in a preset database.
[0119] Optionally, the processor may be configured to run a computer program to perform the following steps: determining a target data identity in response to a data query instruction; determining data to be queried based on the target data identity; and outputting the data to be queried to a preset display device.
[0120] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0121] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0122] In some embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the modules can be a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, modules or indirect coupling or communication connection of modules, which can be electrical or other forms.
[0123] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0124] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.
[0125] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0126] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A system safety detection method, characterized in that: include: Build sensitive elements according to the system interface; Monitoring the system interface to obtain screen recording data of the system interface; Matching the screen recording data with the sensitive element to obtain a matching result; In response to the matching result, a security detection result is output, wherein the security detection result includes whether a security risk is detected or not detected.
2. The system safety detection method according to claim 1, characterized in that: The sensitive elements include picture elements and text elements.
3. The system safety detection method according to claim 1, characterized in that: Also includes: Get sensitive element editing instructions; In response to the sensitive element editing instruction being a new addition, saving the newly constructed sensitive element into a preset database; Or, in response to the sensitive element editing instruction being deletion, deleting the corresponding sensitive element from the preset database according to the sensitive element identity identifier; Or, in response to the sensitive element editing instruction being a modification, the corresponding sensitive element is modified from the preset database according to the sensitive element identity.
4. The system safety detection method according to claim 1, characterized in that: Matching the screen recording data with the sensitive element to obtain a matching result includes: Splitting the screen recording data into picture frames to obtain a split result, wherein the split result includes a plurality of pictures corresponding to the plurality of frames of screen recording data; Each of the multiple pictures is matched with the sensitive element to obtain the matching result.
5. The system safety detection method according to claim 4, characterized in that: Matching each of the multiple pictures with the sensitive element to obtain the matching result includes: In response to a picture among the multiple pictures matching the sensitive element, determining a target picture, wherein the target picture is a picture matching the sensitive element; The target image is used as the matching result.
6. The system safety detection method according to claim 1, characterized in that: In response to the matching result, outputting the security detection result includes: In response to the matching result indicating that the screen recording data matches the sensitive element, the security detection result outputted is the security risk detected, and an alarm prompt message is outputted synchronously; Or, in response to the matching result indicating that the screen recording data does not match the sensitive element, the output security detection result is that no security risk is detected.
7. The system safety detection method according to claim 6, characterized in that: Also includes: In response to the matching result indicating that the screen recording data matches the sensitive element, locating target data matching the sensitive element from the screen recording data; The target data and the alarm prompt information are stored in a preset database.
8. The system safety detection method according to claim 7, characterized in that: Also includes: In response to the data query instruction, determining the target data identity; Determine the data to be queried according to the target data identity identifier; The data to be queried is output to a preset display device.
9. A system safety detection device, characterized in that: include: Building modules, used to build sensitive elements according to the system interface; A monitoring module, used to monitor the system interface to obtain screen recording data of the system interface; A matching module, used to match the screen recording data with the sensitive element to obtain a matching result; An output module is used to output a security detection result in response to the matching result, wherein the security detection result includes a security risk being detected and a security risk not being detected.
10. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the steps of the system security detection method according to any one of claims 1 to 8.
11. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, wherein the computer program is configured to execute the system security detection method described in any one of claims 1 to 8 when running on a computer or a processor.
12. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the system safety detection method described in any one of claims 1 to 8 above.
