TWI510957B - Method for protecting document files in real time and apparatus thereof - Google Patents

Method for protecting document files in real time and apparatus thereof Download PDF

Info

Publication number
TWI510957B
TWI510957B TW102148552A TW102148552A TWI510957B TW I510957 B TWI510957 B TW I510957B TW 102148552 A TW102148552 A TW 102148552A TW 102148552 A TW102148552 A TW 102148552A TW I510957 B TWI510957 B TW I510957B
Authority
TW
Taiwan
Prior art keywords
file
protection
monitoring
mode
computer system
Prior art date
Application number
TW102148552A
Other languages
Chinese (zh)
Other versions
TW201437837A (en
Inventor
Zi Xiao Nie
Original Assignee
Tencent Tech Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Tech Shenzhen Co Ltd filed Critical Tencent Tech Shenzhen Co Ltd
Publication of TW201437837A publication Critical patent/TW201437837A/en
Application granted granted Critical
Publication of TWI510957B publication Critical patent/TWI510957B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • G06F21/56Computer malware detection or handling, e.g. anti-virus arrangements

Description

一種文件檔案即時防護的方法以及裝置Method and device for instant protection of file file

本發明係有關於一種電腦技術領域,特別是有關於一種文件檔案即時防護的方法以及裝置。The present invention relates to the field of computer technology, and in particular to a method and apparatus for instant protection of a file file.

面對電腦技術不斷快速發展的今天,電腦的使用已經完全融入了生活的各個角落,人們的生活品質也隨著電腦的普及而有了大的提高。所謂有利則會有弊,電腦給人類生活帶來了便捷的同時,也為黑色產業鏈帶來了契機。木馬病毒就搭著這個黑色產業鏈迅速發展之便,也一同進入了人們使用的電腦中。而這一結果就導致了大量的用戶財產損失和其他隱私被窺竊等風險。黑色產業鏈係指網路駭客利用病毒或木馬程式侵入用戶電腦通過盜取QQ、遊戲帳號,用以勒索等途徑獲取經濟利益從而形成的產業鏈。In the face of the rapid development of computer technology, the use of computers has been fully integrated into every corner of life, and people's quality of life has been greatly improved with the popularity of computers. The so-called advantages will have disadvantages. The computer brings convenience to human life, and it also brings opportunities for the black industry chain. The Trojan virus has developed rapidly in this black industrial chain, and has also entered the computer used by people. And this result leads to a lot of risk of user property loss and other privacy being sneaked. Black industry chain refers to the industrial chain formed by Internet hackers using viruses or Trojans to invade users' computers by stealing QQ, game accounts, and using extortion to obtain economic benefits.

為了防止木馬病毒對用戶造成損害,安全軟體也在這個巨大的風險裏面得到了長足的發展。為了能夠全方位的保護電腦使用者,安全軟體從以往只會用戶點擊才手動殺毒,發展到計畫任務一段時間就殺一次毒。可是,這還不夠即時,發展到今天的文件檔案即時防護;文件檔案即時防護,是指只要有文件檔案操作產生就能即時監控到木馬病毒的入侵。 因而,安全軟體發現風險的反應速度得到了極大的提高。In order to prevent the Trojan virus from causing damage to users, security software has also been greatly developed in this huge risk. In order to protect the computer users in all aspects, the security software has only been manually clicked by the user to manually kill the virus, and it has been developed for a period of time to kill the poison. However, this is not enough instant, and it has developed into the immediate protection of today's file files; the instant protection of file files means that as long as there is a file file operation, the Trojan virus intrusion can be monitored immediately. As a result, the speed at which security software finds risk is greatly improved.

文件檔案即時防護技術的確是扼殺木馬病毒入侵的利器,但是同樣是具有兩面性的。用戶使用電腦不僅僅是需要安全,同樣需要一個流暢的使用體驗和順暢的電腦環境,可想而知的是電腦不流暢的情況下安全也將失色進而失去意義。目前文件檔案即時防護技術對電腦系統流暢性的影響還是比較多的,因為電腦系統的資源有限,而文件檔案操作事件具有量大且不可控的特點,因而容易造成對用戶的體驗影響,讓用戶感受到系統回應緩慢等問題。這也是安全軟體進步後,用戶體驗中最大的弊端,影響電腦的流暢度。File file instant protection technology is indeed a weapon to kill Trojan virus, but it is also two-sided. Users use computers not only for security, but also for a smooth user experience and a smooth computer environment. It is conceivable that security will also lose color and lose meaning when the computer is not smooth. At present, the file file real-time protection technology has a relatively large impact on the fluency of the computer system. Because the resources of the computer system are limited, and the file file operation event has a large amount and is uncontrollable, it is easy to cause impact on the user experience, and let the user Feel the problem of slow system response. This is also the biggest drawback of the user experience after the advancement of security software, affecting the fluency of the computer.

於是如何既能保證電腦的安全使用,又能夠降低安全軟體對電腦系統的流暢性以及用戶體驗,就成了文件檔案即時防護這個功能優劣的關鍵所在,也是各個安全軟體相互比較和優劣的關鍵點之一。Therefore, how to ensure the safe use of the computer, and to reduce the fluency of the security software to the computer system and the user experience, has become the key to the advantages and disadvantages of the file file instant protection, and is also the key point for the comparison and superiority of each security software. one.

本發明實施例提供了一種文件檔案即時防護的方法和裝置,用於提供文件檔案即時防護的的方案,用來保證電腦的安全使用,又能夠改善安全軟體(例如是防毒軟體)對電腦系統的流暢性以及用戶體驗特性之影響。The embodiment of the invention provides a method and device for real-time protection of a file file, which is used for providing a file file instant protection solution, which is used for ensuring the safe use of the computer, and can improve the security software (for example, anti-virus software) to the computer system. The impact of fluency and user experience characteristics.

本發明之一實施例提供一種文件檔案即時防護的方法,包括下列步驟:在進行文件檔案即時防護的過程中,確定電腦系統的當前環境安全度;選擇與所述當前環境安全度對應的監控模式對所述電腦系 統進行文件檔案即時防護;當前環境安全度越高監控模式防護等級越低,當前環境安全度越低監控模式防護等級越高。An embodiment of the present invention provides a method for file file instant protection, which includes the following steps: determining a current environmental security degree of a computer system during a file file immediate protection process; and selecting a monitoring mode corresponding to the current environment security degree The computer system The file file is protected immediately; the higher the current environmental security, the lower the protection level of the monitoring mode. The lower the current environmental security, the higher the protection level of the monitoring mode.

本發明之另一實施例提供一種文件檔案即時防護的裝置,包括安全度確定單元、模式選擇單元以及防護處理單元。Another embodiment of the present invention provides an apparatus for real-time protection of a file archive, including a security determination unit, a mode selection unit, and a protection processing unit.

安全度確定單元用於在防護處理單元進行文件檔案即時防護的過程中,確定電腦系統的當前環境安全度;模式選擇單元用於選擇與所述當前環境安全度對應的監控模式;當前環境安全度越高監控模式防護等級越低,當前環境安全度越低監控模式防護等級越高;防護處理單元用於使用模式選擇單元選擇的監控模式對所述電腦系統進行文件檔案即時防護。The security determining unit is configured to determine a current environmental security degree of the computer system during the process of protecting the file file in the protection processing unit; the mode selecting unit is configured to select a monitoring mode corresponding to the current environmental security degree; current environmental security degree The higher the monitoring mode is, the lower the protection level is. The lower the current environmental security is, the higher the monitoring mode protection level is. The protection processing unit is used to perform file file protection on the computer system using the monitoring mode selected by the mode selection unit.

從以上技術方案可以看出,本發明實施例具有以下優點:將電腦系統環境劃分成不同環境安全度,多種監控模式匹配不同的環境安全度,保證電腦的安全使用,又能夠改善安全軟體對電腦系統的流暢性以及用戶體驗特性之影響。It can be seen from the above technical solutions that the embodiment of the present invention has the following advantages: dividing the computer system environment into different environmental security degrees, and multiple monitoring modes matching different environmental security degrees, ensuring safe use of the computer, and improving the security software to the computer. The fluency of the system and the impact of user experience characteristics.

101、102‧‧‧步驟101, 102‧ ‧ steps

201~207‧‧‧步驟201~207‧‧‧Steps

301~304‧‧‧步驟301~304‧‧‧Steps

401~406‧‧‧步驟401~406‧‧‧Steps

501~503‧‧‧步驟501~503‧‧‧Steps

610‧‧‧射頻電路610‧‧‧RF circuit

620‧‧‧記憶體620‧‧‧ memory

630‧‧‧輸入單元630‧‧‧ input unit

631‧‧‧觸控面板631‧‧‧Touch panel

632‧‧‧其他輸入設備632‧‧‧Other input devices

640‧‧‧顯示單元640‧‧‧ display unit

641‧‧‧顯示面板641‧‧‧ display panel

650‧‧‧感測器650‧‧‧ sensor

660‧‧‧音頻電路660‧‧‧Audio circuit

661‧‧‧揚聲器661‧‧‧Speaker

662‧‧‧傳聲器662‧‧‧Microphone

670‧‧‧無線保真模組670‧‧‧Wireless Fidelity Module

680‧‧‧處理器680‧‧‧ processor

690‧‧‧電源690‧‧‧Power supply

為了更清楚地說明本發明實施例中的技術方案,下面將對實施例描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本發明的一些實施例,對於本發明所屬技術領域中具有通常知識者來講,還可以根據這些附圖獲得其他的附圖。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art to which the invention pertains.

第1圖為本發明之一實施例方法流程示意圖; 第2圖為本發明之另一實施例方法流程示意圖;第3圖為本發明之又一實施例方法流程示意圖;第4圖為本發明之再一實施例方法流程示意圖;第5圖為本發明實施例裝置結構示意圖;第6圖為本發明實施例另一裝置結構示意圖。1 is a schematic flow chart of a method according to an embodiment of the present invention; 2 is a schematic flowchart of a method according to another embodiment of the present invention; FIG. 3 is a schematic flowchart of a method according to still another embodiment of the present invention; FIG. 4 is a schematic flowchart of a method according to still another embodiment of the present invention; BRIEF DESCRIPTION OF THE DRAWINGS FIG. 6 is a schematic structural view of another device according to an embodiment of the present invention.

為了使本發明的目的、技術方案和優點更加清楚,下面將結合附圖對本發明作進一步地詳細描述,顯然,所描述的實施例僅僅是本發明一部份實施例,而不是全部的實施例。The present invention will be further described in detail with reference to the accompanying drawings, in which .

基本上,文件檔案即時防護方案主要有兩種類型:一種是以用戶機器安全為主的方案,另一種是以用戶機器性能為主的方案。Basically, there are two main types of file file instant protection solutions: one is based on user machine security and the other is based on user machine performance.

其中所述機器安全的方案,一般是監控特定的文件檔案操作事件,然後對監控到的事件,進行掃描殺毒處理,並且對於檔案運行等操作全部同步攔截,做到完全不會放過一個風險的可能,安全性高但是需要佔用較多的電腦系統資源。The machine security scheme generally monitors specific file file operation events, then scans and disinfects the monitored events, and performs synchronous interception on all operations such as file operations, so that no risk is completely eliminated. Possibly, it is highly secure but requires a lot of computer system resources.

所述機器性能的方案,一般是監控特定的文件檔案操作事件,然後只掃描部分情況下的檔,檔運行等操作是非同步掃描的,可以減少對電腦系統資源的佔用。所述機器性能對於檔案寫入等操作,只監控部分特殊風險目錄等,掃描量小,但是安全性較低。The program of the machine performance generally monitors a specific file file operation event, and then scans only a part of the file, and the file operation and the like are asynchronous scans, which can reduce the occupation of computer system resources. The machine performance is only for monitoring a part of a special risk catalog for operations such as file writing, and the scanning amount is small, but the security is low.

以上兩類方案中,所述機器安全的方案,監控了大量的系統事件,產生了大量的掃描開銷,導致電腦系統運行緩慢,用戶體驗不流暢,效果差。側重機器性能的方案,只監控特定規則的文件檔案操作,掃描量 小,對電腦系統性能影響較小,但是,由於只掃描特定規則的檔,不在這個規則之內的操作就無法發現,部分木馬病毒入侵會鑽這個監控漏洞,存在安全風險。In the above two types of schemes, the machine security scheme monitors a large number of system events and generates a large amount of scanning overhead, which causes the computer system to run slowly, the user experience is not smooth, and the effect is poor. A program that focuses on machine performance, only monitors file file operations for specific rules, and scans Small, the impact on the performance of the computer system is small, but because only the files of a specific rule are scanned, operations that are not within this rule cannot be found. Some Trojan virus intrusions will exploit this monitoring vulnerability, posing a security risk.

總的來說,缺點就是現有技術很難做到平衡性能和安全,做不到既有良好的性能體驗,運行流暢,又有不俗的安全能力,不會降低對用戶的安全保障,帶來風險。In general, the shortcoming is that it is difficult to balance performance and safety in the prior art, and it can not achieve a good performance experience, smooth operation, and good security capabilities, without reducing the security for users, bringing risk.

本發明實施例提供一種文件檔案即時防護的方法,如第1圖所示,包括下列步驟:An embodiment of the present invention provides a method for file file instant protection, as shown in FIG. 1, comprising the following steps:

101:在進行文件檔案即時防護的過程中,確定電腦系統的當前環境安全度;從目前的電腦環境和全年的統計來看,電腦上出現惡意程式風險的可能性大致在幾個百分點這個級別。也就是說絕大部分用戶電腦環境是安全和無風險的,且大部分時間內用戶其實都沒有安全風險。也就是說用戶的機器實際上並不一定要採用時時刻刻的全部掃描來保證安全。只要在關鍵觸發風險的時候做到全面攔截風險即可。這樣一來大部分情況下,只需要輕量的掃描即可解決問題,而又不會產生安全風險。因此本步驟確定電腦系統的當前環境安全度則可以為確定當前電腦系統是否處於安全狀態。101: In the process of real-time protection of file files, determine the current environmental security of the computer system; from the current computer environment and the statistics of the whole year, the possibility of malware risk on the computer is roughly a few percent. . That is to say, most of the user's computer environment is safe and risk-free, and most of the time users have no security risks. In other words, the user's machine does not actually need to use all the scans at all times to ensure security. As long as the risk is fully intercepted when the key triggers the risk. In most cases, only a light scan is required to solve the problem without creating a security risk. Therefore, this step determines whether the current environmental security of the computer system can determine whether the current computer system is in a safe state.

102:選擇與上述當前環境安全度對應的監控模式對上述電腦系統進行文件檔案即時防護;當前環境安全度越高監控模式防護等級越低,當前環境安全度越低監控模式防護等級越高。102: Select a monitoring mode corresponding to the current environmental security degree to perform file file protection on the computer system immediately; the higher the current environmental security degree, the lower the protection mode of the monitoring mode, and the lower the current environmental security degree, the higher the protection mode of the monitoring mode.

監控模式防護等級低的時候,可以稱為哨兵策略,根據電腦 環境劃分的風險等級,來排布監控哨兵。當電腦系統環境乾淨,沒有風險的時候,只需要佈置少量的監控哨兵,及時發現風險即可。對於電腦系統環境存在惡意風險的時候,再把哨兵全面展開,佈置足夠保證安全的哨兵,即可做到第一時間扼殺風險。可以理解的是,監控模式例如是兩種或是兩種以上,各監控模式對應有防護等級,防護等級高如何設置,防護等級低如何設置可以由研發人員設定,本發明實施例在後續實施例中舉例說明,但是設置的方式可以有很多種,並不限定於後續的舉例。When the monitoring mode has a low level of protection, it can be called a sentinel strategy, according to the computer. The risk level of the environment is divided to monitor the sentinel. When the computer system environment is clean and there is no risk, only a small number of surveillance sentinels need to be arranged to detect the risks in time. When there is a malicious risk in the computer system environment, the sentinel will be fully deployed, and the sentinel will be set up to ensure safety, so that the risk can be killed in the first time. It can be understood that the monitoring mode is, for example, two or more types. Each monitoring mode corresponds to a protection level, and the protection level is high. How to set the protection level to be low can be set by the research and development personnel. The embodiment of the present invention is in the following embodiments. The example is illustrated, but the manner of setting can be various, and is not limited to the following examples.

以上方案,將電腦系統環境劃分成不同環境安全度,多種監控模式匹配不同的環境安全度,保證電腦的安全使用,又能夠改善安全軟體對電腦系統的流暢性以及用戶體驗特性之影響。The above solution divides the computer system environment into different environmental security levels, and various monitoring modes match different environmental security degrees to ensure the safe use of the computer, and can also improve the influence of the security software on the fluency of the computer system and the user experience characteristics.

進一步地,本發明實施例還提供了智慧切換監控模式的方案,上述方法還包括:在進行文件檔案即時防護的過程中,若監測到風險資料,則選擇比當前監控模式防護等級高的監控模式,然後對上述電腦系統進行文件檔案即時防護。Further, the embodiment of the present invention further provides a scheme for intelligently switching the monitoring mode. The method further includes: in the process of performing the file file immediate protection, if the risk data is detected, selecting a monitoring mode that is higher than the current monitoring mode protection level. Then, the file system is immediately protected against the above computer system.

在一實施例中,上述監控模式包括至少兩個監控模式,監控模式的防護等級越高佔用的電腦系統資源越多,監控模式的防護等級越低佔用的電腦系統資源越少。可以理解的是監控模式還可以繼續細分為更多的監控模式,對應更多的防護等級,以上兩種監控模式作為一個較佳實施例不應理解為對本發明實施例的限定。In an embodiment, the monitoring mode includes at least two monitoring modes. The higher the protection level of the monitoring mode, the more computer system resources are occupied, and the lower the protection level of the monitoring mode, the less computer system resources are occupied. It can be understood that the monitoring mode can be further divided into more monitoring modes, corresponding to more protection levels. The above two monitoring modes are not to be construed as limiting the embodiments of the present invention.

進一步地,本發明實施例還提供了另外一種智慧切換監控模式的方案,上述方法還包括: 在進行文件檔案即時防護的過程中,若預定時間內未監測到風險資料,則選擇比當前監控模式防護等級低的監控模式,然後對上述電腦系統進行文件檔案即時防護。Further, the embodiment of the present invention further provides another solution for the smart handover monitoring mode, where the method further includes: In the process of real-time protection of file files, if the risk data is not detected within the predetermined time, the monitoring mode is lower than the current monitoring mode protection level, and then the file system is immediately protected against the above computer system.

在一實施例中,本發明實施例還給出了防護等級採用的防護策略的舉例說明,具體地:防護等級低的監控模式包括:規則過濾設定的部分事件、檔案執行事件非同步監測、檔案寫入事件按設定規則過濾攔截、對設定的需要攔截的事件進行檔案掃描。In an embodiment, the embodiment of the present invention also provides an example of a protection strategy adopted by the protection level. Specifically, the monitoring mode with low protection level includes: partial events set by rule filtering, asynchronous monitoring of file execution events, and files. The write event filters and intercepts according to the set rule, and performs file scanning on the set events that need to be intercepted.

可選地,本發明實施例還給出了防護等級採用的防護策略的舉例說明,具體地:防護等級高的監控模式包括:規則過濾設定的部分事件、檔案執行事件同步監測、檔案寫入事件全面攔截、對攔截的事件進行檔案掃描。Optionally, the embodiment of the present invention further provides an example of a protection policy adopted by the protection level. Specifically, the monitoring mode with high protection level includes: part of the event filtering setting, file execution event synchronization monitoring, and file writing event. Fully intercept and scan files for intercepted events.

本發明實施例提出了一個新的思路,將電腦系統環境分為不同的風險等級場景,對於不同的場景,執行不同的監控攔截策略。以下實施例以前述兩種類型的文件檔案即時防護的方案為例,進行詳細說明,如下:從目前的電腦環境和全年的統計來看,電腦上出現惡意程式風險的可能性大致在幾個百分點這個級別。也就是說絕大部分用戶電腦環境是安全和無風險的,且大部分時間內用戶其實都沒有安全風險。也就是說用戶的機器實際上並不一定要採用時時刻刻的全部掃描來保證安全。只要在關鍵觸發風險的時候做到全面攔截風險即可。這樣一來大部分情況下,只需要輕量的掃描即可解決問題,而又不會產生安全風險。因此本步驟確定電腦系統的當前環境安全度則可以為確定當前電腦系統是否處於安 全狀態。The embodiment of the present invention proposes a new idea to divide the computer system environment into different risk level scenarios, and implement different monitoring and interception strategies for different scenarios. The following example takes the foregoing two types of file file instant protection as an example, and describes in detail as follows: From the current computer environment and the statistics of the whole year, the possibility of malware risk on the computer is roughly several. Percentage of this level. That is to say, most of the user's computer environment is safe and risk-free, and most of the time users have no security risks. In other words, the user's machine does not actually need to use all the scans at all times to ensure security. As long as the risk is fully intercepted when the key triggers the risk. In most cases, only a light scan is required to solve the problem without creating a security risk. Therefore, this step determines whether the current environmental security of the computer system can determine whether the current computer system is in security. Full state.

本發明實施例的整個實現方式,類似于哨兵策略,根據電腦環境劃分的風險等級,來排布監控哨兵。當電腦系統環境乾淨,沒有風險的時候,只需要佈置少量的監控哨兵,及時發現風險即可。對於電腦系統環境存在惡意風險的時候,再把哨兵全面展開,佈置足夠保證安全的哨兵,即可做到第一時間扼殺風險。The entire implementation manner of the embodiment of the present invention is similar to the sentinel strategy, and the monitoring sentinel is arranged according to the risk level divided by the computer environment. When the computer system environment is clean and there is no risk, only a small number of surveillance sentinels need to be arranged to detect the risks in time. When there is a malicious risk in the computer system environment, the sentinel will be fully deployed, and the sentinel will be set up to ensure safety, so that the risk can be killed in the first time.

本發明實施例具體實施思路如下,文件檔案即時防護具備多套監控模式,有注重性能的低資源模式,有注重安全的高安全模式。注重性能的低資源模式,只會監控特定的事件以及特定規則的檔,即只掃描少量的檔案,達到邊界哨兵的作用,主要是堵住木馬病毒入侵的第一案發現場。注重安全的高安全模式,則會監控所有文件檔案操作事件的檔,達到扼殺風險的作用,保障電腦系統安全。兩套模式是動態智慧切換的,切換的條件是電腦系統的環境場景。當在低資源模式的運行狀態下,邊界哨兵檢測到有木馬病毒入侵,則立即動態將文件檔案即時防護模式切換到高安全模式,抵禦風險,全面保護機器安全。當在高安全模式的運行狀態下,一段時間內沒有再檢測出木馬病毒,即電腦系統環境已經安全和沒有風險,則動態切換為低資源模式監控,恢復到對純淨環境下的攔截的低資源模式,對用戶的影響非常小,使用戶機器運行流暢。The specific implementation ideas of the embodiments of the present invention are as follows: the file file instant protection has multiple sets of monitoring modes, a low resource mode focusing on performance, and a high security mode focusing on security. Performance-oriented low-resource mode only monitors specific events and files of specific rules, that is, only scans a small number of files to reach the role of the border sentinel, mainly to block the first case of Trojan virus intrusion. Paying attention to the high security mode of security, it will monitor the files of all file file operation events, and it will kill the risk and ensure the security of the computer system. The two sets of modes are dynamically intelligently switched, and the conditions for switching are the environmental scenarios of the computer system. When the border sentinel detects a Trojan virus intrusion in the low resource mode, it immediately switches the file archive instant protection mode to the high security mode to protect against the risk and comprehensively protect the machine. When in the high security mode, the Trojan virus is not detected for a period of time, that is, the computer system environment is safe and risk-free, then dynamically switches to low resource mode monitoring, and restores low resources to intercept in a pure environment. Mode, the impact on the user is very small, making the user machine run smoothly.

總的來說,整個實施過程,具備自適應(auto-adaptive)能力,將電腦系統環境劃分成不同場景,多種模式自動匹配最適合的場景,做到對用戶影響小,體驗流暢,而安全能力也有保障的平衡。In general, the entire implementation process, with auto-adaptive capabilities, divides the computer system environment into different scenarios, and multiple modes automatically match the most suitable scenarios, so that the impact on the user is small, the experience is smooth, and the security capability There is also a balance of guarantees.

以下對文件檔案實施防護的流程進行詳細說明,所述文件檔 案實施防護分為三個部分:1、低資源模式的檔案實施防護;2、高安全模式的檔案實施防護;3、檔案實施防護的防護模式的智慧動態切換。The following is a detailed description of the process of implementing the protection of the file file, the file file The implementation of the case protection is divided into three parts: 1. File protection for low-resource mode; 2. File protection for high-security mode; 3. Intelligent dynamic switching for file protection mode.

一、低資源模式的檔案實施防護,攔截步驟如圖2所示,包括:1. The file protection of the low resource mode is implemented. The interception steps are as shown in Figure 2, including:

201:文件檔案操作事件觸發。即電腦系統出現了文件檔案操作事件。201: File file operation event trigger. That is, the file system operation event occurs in the computer system.

202:判斷是否為特定事件,如果是進入203,否則進入206;該步驟特定事件可以是寫入,執行事件;該步驟的目的是:規則過濾部分事件,只監控寫入,執行事件;即:按照預定的規則對201出現的文件檔案操作事件進行過濾。202: Determine whether it is a specific event, if it is to enter 203, otherwise enter 206; the step specific event may be a write, execute event; the purpose of the step is: the rule filters part of the event, only monitors the write, executes the event; The file file operation events that occur in 201 are filtered according to predetermined rules.

203:低資源模式規則過濾,只掃描特定檔,具體可以是:檔案執行事件,轉非同步,不同步攔截;檔案寫入事件,按特定規則過濾,只攔截高風險情況下的檔。203: Low resource mode rule filtering, only scanning specific files, specifically: file execution events, non-synchronization, asynchronous interception; file write events, filtering according to specific rules, only intercepting files in high risk situations.

204:判斷是否需要掃描;如果是,進入205;否則進入207;其中203中需要攔截的檔一般就是需要掃描的檔案。204: Determine whether scanning is needed; if yes, enter 205; otherwise enter 207; wherein the file that needs to be intercepted in 203 is generally the file to be scanned.

205:開始掃描,確定是否是惡意程式。205: Start scanning to determine if it is a malicious program.

206:放行不關注的無意義事件。206: Release meaningless events that are not of concern.

207:放行過低資源濾規則事件。207: Release the low resource filter rule event.

二、高安全模式的檔案實施防護,攔截步驟如圖3所示,包括:Second, the high security mode file implementation protection, the interception steps are shown in Figure 3, including:

301:文件檔案操作事件觸發。即電腦系統出現了文件檔案 操作事件。301: File file operation event trigger. That is, the file system appears in the computer system. Operational event.

302:判斷是否為特定事件,如果是進入303,否則進入304;該步驟特定事件可以是寫入,執行事件;該步驟的目的是:規則過濾部分事件,只監控寫入,執行事件;即:按照預定的規則對301出現的文件檔案操作事件進行過濾。302: Determine whether it is a specific event, if it is entering 303, otherwise enter 304; the step specific event may be a write, execute event; the purpose of the step is: the rule filters part of the event, only monitors the write, executes the event; The file file operation events occurring in 301 are filtered according to predetermined rules.

303:檔案執行事件,同步攔截;檔案寫入事件,不過濾,全面攔截;對於攔截的檔案,開始掃描;303: file execution event, synchronous interception; file write event, no filtering, comprehensive interception; for intercepted files, start scanning;

304:放行不關注的無意義事件。304: Release meaningless events that are not of concern.

三、檔案實施防護的防護模式的智慧動態切換,如圖4所示,包括:401:運行在低資源模式的狀態;402:判斷是否監控檢測到有木馬病毒,進入403;否則進入401;403:立即將攔截模式,動態切換到高安全模式;404:運行在高安全模式的狀態;405:監控一段時間內,確定是否有木馬病毒檢測到;如果有,進入404,否則進入406;406:切換到低資源模式,進入401。3. The intelligent dynamic switching of the protection mode of the file implementation protection, as shown in FIG. 4, includes: 401: running in a low resource mode state; 402: determining whether a Trojan virus is detected and monitoring, entering 403; otherwise entering 401; : Immediately switch the intercept mode to dynamically switch to high security mode; 404: Run in the high security mode state; 405: Monitor for a period of time to determine if a Trojan virus is detected; if yes, enter 404, otherwise enter 406; 406: Switch to low resource mode and go to 401.

本發明實施例還提供了一種文件檔案即時防護的裝置,如第5圖所示,包括:安全度確定單元501,用於在防護處理單元503進行文件檔案即時防護的過程中,確定電腦系統的當前環境安全度; 模式選擇單元502,用於選擇與上述當前環境安全度對應的監控模式;當前環境安全度越高監控模式防護等級越低,當前環境安全度越低監控模式防護等級越高;防護處理單元503,用於使用模式選擇單元502選擇的監控模式對上述電腦系統進行文件檔案即時防護。The embodiment of the present invention further provides a device for real-time protection of a file file, as shown in FIG. 5, comprising: a security degree determining unit 501, configured to determine a computer system during the process of protecting the file file from the protection processing unit 503. Current environmental safety; The mode selection unit 502 is configured to select a monitoring mode corresponding to the current environmental security degree; the higher the current environmental security degree is, the lower the monitoring mode protection level is, the lower the current environmental security degree is, the higher the monitoring mode protection level is; the protection processing unit 503, The monitoring mode selected by the mode selection unit 502 performs immediate file protection on the computer system.

以上方案,將電腦系統環境劃分成不同環境安全度,多種監控模式匹配不同的環境安全度,保證電腦的安全使用,又能夠降低安全軟體對電腦系統的流暢性以及用戶體驗。The above solution divides the computer system environment into different environmental security levels, and various monitoring modes match different environmental security degrees to ensure the safe use of the computer, and can reduce the fluency of the security software to the computer system and the user experience.

進一步地,本發明實施例還提供了智慧切換監控模式的方案,上述模式選擇單元502,用於還用於在上述防護處理單元503進行文件檔案即時防護的過程中,若監測到風險資料,則選擇比當前監控模式防護等級高的監控模式。Further, the embodiment of the present invention further provides a solution for the smart switching monitoring mode, where the mode selecting unit 502 is further configured to: when the protection processing unit 503 performs the file file instant protection, if the risk data is detected, Select a monitoring mode that is higher than the current monitoring mode.

可選地,上述模式選擇單元502可選的監控模式包括至少兩個監控模式,監控模式的防護等級越高佔用的電腦系統資源越多,監控模式的防護等級越低佔用的電腦系統資源越少。可以理解的是監控模式還可以繼續細分為更多的監控模式,對應更多的防護等級,以上兩種監控模式作為一個優選方案不應理解為對本發明實施例的限定。Optionally, the optional monitoring mode of the mode selection unit 502 includes at least two monitoring modes. The higher the protection level of the monitoring mode, the more computer system resources are occupied, and the lower the protection level of the monitoring mode, the less computer system resources are occupied. . It can be understood that the monitoring mode can be further subdivided into more monitoring modes, corresponding to more protection levels. The above two monitoring modes should not be construed as limiting the embodiments of the present invention.

進一步地,本發明實施例還提供了另外一種智慧切換監控模式的方案,模式選擇單元502,還用於在上述防護處理單元503在進行文件檔案即時防護的過程中,若預定時間內未監測到風險資料,則選擇比當前監控模式防護等級低的監控模式,然後對上述電腦系統進行文件檔案即時防護。Further, the embodiment of the present invention further provides a solution for the smart switching monitoring mode. The mode selecting unit 502 is further configured to: if the protection processing unit 503 performs the file file protection immediately, if the predetermined time is not detected, For risk data, select a monitoring mode that is lower than the current monitoring mode, and then perform file file protection on the above computer system.

本發明實施例還給出了防護等級採用的防護策略的舉例說明,具體地:防護處理單元503,具體用於若模式選擇單元502選擇的是防護等級低的監控模式,則使用規則過濾設定的部分事件、檔案執行事件非同步監測、檔案寫入事件按設定規則過濾攔截、對設定的需要攔截的事件進行檔案掃描來對上述電腦系統進行文件檔案即時防護。The embodiment of the present invention also provides an example of the protection policy adopted by the protection level. Specifically, the protection processing unit 503 is specifically configured to use the rule filtering setting if the mode selection unit 502 selects the monitoring mode with a low protection level. Some events, asynchronous execution of file execution events, file write events are filtered by the set rules, and files are scanned for events that need to be intercepted to perform file file protection on the computer system.

本發明實施例還給出了防護等級採用的防護策略的舉例說明,具體地:防護處理單元503,具體用於若模式選擇單元502選擇的是防護等級高的監控模式,則使用規則過濾設定的部分事件、檔案執行事件同步監測、檔案寫入事件全面攔截、對攔截的事件進行檔案掃描來對上述電腦系統進行文件檔案即時防護。The embodiment of the present invention also provides an example of the protection policy adopted by the protection level. Specifically, the protection processing unit 503 is specifically configured to use the rule filtering setting if the mode selection unit 502 selects the monitoring mode with a high protection level. Partial events, file execution event synchronization monitoring, file write event interception, file scanning of intercepted events, and file system file protection for the above computer system.

本發明實施例還提供了另一種圖像顯示控制裝置,如第6圖所示,為了便於說明,僅示出了與本發明實施例相關的部分,具體技術細節未揭示的,請參照本發明實施例方法部分。該終端可以為包括手機、平板電腦、個人數位助理(Personal Digital Assistant,PDA)、銷售終端(Point of Sales,POS)、車載電腦等任意終端設備,以終端為手機為例:第6圖示出的是與本發明實施例提供的終端相關的手機的部分結構的框圖。參考第6圖,手機包括:射頻(Radio Frequency,RF)電路610、記憶體620、輸入單元630、顯示單元640、感測器650、音頻電路660、無線保真(wireless fidelity,WiFi)模組670、處理器680、以及電源690等部件。本發明所屬技術領域中具有通常知識者可以理解,第6圖中示出的手機結構並不構成對手機的限定,可以包括比圖示更多或更少的部件,或者組合某些部件,或者不同的部件佈置。The embodiment of the present invention further provides another image display control device. As shown in FIG. 6, for the convenience of description, only parts related to the embodiment of the present invention are shown. Without specific details, please refer to the present invention. Example method section. The terminal may be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (PDA), a point of sales (POS), a car computer, and the like, and the terminal is a mobile phone as an example: FIG. 6 shows It is a block diagram of a part of the structure of a mobile phone related to the terminal provided by the embodiment of the present invention. Referring to FIG. 6, the mobile phone includes: a radio frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a sensor 650, an audio circuit 660, and a wireless fidelity (WiFi) module. 670, processor 680, and power supply 690 and the like. It will be understood by those of ordinary skill in the art that the structure of the mobile phone shown in FIG. 6 does not constitute a limitation to the mobile phone, may include more or less components than those illustrated, or may combine certain components, or Different parts are arranged.

下面結合第6圖對手機的各個構成部件進行具體的介紹:RF電路610可用於收發資訊或通話過程中,信號的接收和發送,特別地,將基站的下行資訊接收後,給處理器680處理;另外,將設計上行的資料發送給基站。通常,RF電路包括但不限於天線、至少一個放大器、收發信機、耦合器、低雜訊放大器(Low Noise Amplifier,LNA)、雙工器等。此外,RF電路60還可以通過無線通信與網路和其他設備通信。上述無線通信可以使用任一通信標準或協定,包括但不限於全球移動通訊系統(Global System of Mobile communication,GSM)、通用分組無線服務(General Packet Radio Service,GPRS)、碼分多址(Code Division Multiple Access,CDMA)、寬頻碼分多址(Wideband Code Division Multiple Access,WCDMA)、長期演進(Long Term Evolution,LTE)、電子郵件、短消息服務(Short Messaging Service,SMS)等。The following describes the components of the mobile phone in detail with reference to FIG. 6: the RF circuit 610 can be used for receiving and transmitting signals during the transmission or reception of information or during a call, and in particular, receiving downlink information of the base station and processing it to the processor 680. In addition, the design of the uplink data is sent to the base station. Generally, RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 60 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.

記憶體620可用於存儲軟體程式以及模組,處理器680通過運行存儲在記憶體620的軟體程式以及模組,從而執行手機的各種功能應用以及資料處理。記憶體620可主要包括存儲程式區和存儲資料區,其中,存儲程式區可存儲作業系統、至少一個功能所需的應用程式(比如聲音播放功能、圖像播放功能等)等;存儲資料區可存儲根據手機的使用所創建的資料(比如音頻資料、電話本等)等。此外,記憶體620可以包括高速隨機存取記憶體,還可以包括非易失性記憶體,例如至少一個磁盤記憶體件、快閃記憶體器件、或其他易失性固態記憶體件。The memory 620 can be used to store software programs and modules. The processor 680 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 620. The memory 620 can mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.); Stores data created based on the use of the phone (such as audio data, phone book, etc.). In addition, memory 620 can include high speed random access memory, and can also include non-volatile memory, such as at least one disk memory device, flash memory device, or other volatile solid state memory device.

輸入單元630可用於接收輸入的數位或字元資訊,以及產生與手機600的用戶設置以及功能控制有關的鍵信號輸入。具體地,輸入單元 630可包括觸控面板631以及其他輸入設備632。觸控面板631,也稱為觸摸屏幕,可收集用戶在其上或附近的觸摸操作(例如用戶使用手指、觸筆等任何適合的物體或附件在觸控面板631上或在觸控面板631附近的操作),並根據預先設定的程式驅動相應的連接裝置。在一實施例中,觸控面板631包括觸摸檢測裝置和觸摸控制器兩個部分。其中,觸摸檢測裝置檢測用戶的觸摸方位,並檢測觸摸操作帶來的信號,將信號傳送給觸摸控制器;觸摸控制器從觸摸檢測裝置上接收觸摸資訊,並將它轉換成觸點座標,再送給處理器680,並能接收處理器680發來的命令並加以執行。此外,可以採用電阻式、電容式、紅外線以及表面聲波等多種類型實現觸控面板631。除了觸控面板631,輸入單元630還可以包括其他輸入設備632。具體地,其他輸入設備632可以包括但不限於物理鍵盤(即實體鍵盤或是機械鍵盤)、功能鍵(比如音量控制按鍵、開關按鍵等)、軌跡球、滑鼠、操作杆等中的一種或多種。The input unit 630 can be configured to receive input digit or character information and to generate key signal inputs related to user settings and function control of the handset 600. Specifically, the input unit 630 can include touch panel 631 and other input devices 632. The touch panel 631, also referred to as a touch screen, can collect touch operations on or near the user (eg, the user uses a finger, a stylus, or the like on the touch panel 631 or near the touch panel 631. Operation) and drive the corresponding connection device according to a preset program. In an embodiment, the touch panel 631 includes two parts of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into a contact coordinate, and sends the touch information The processor 680 is provided and can receive commands from the processor 680 and execute them. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 631, the input unit 630 may also include other input devices 632. Specifically, the other input device 632 may include but is not limited to one of a physical keyboard (ie, a physical keyboard or a mechanical keyboard), function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, or the like. A variety.

顯示單元640可用於顯示由用戶輸入的資訊或提供給用戶的資訊以及手機的各種功能表。顯示單元640可包括顯示面板641,可選的,可以採用液晶顯示器(Liquid Crystal Display,LCD)、有機發光二極體(Organic Light-Emitting Diode,OLED)等形式來配置顯示面板641。進一步的,觸控面板631可覆蓋顯示面板641,當觸控面板631檢測到在其上或附近的觸摸操作後,傳送給處理器680以確定觸摸事件的類型,隨後處理器680根據觸摸事件的類型在顯示面板641上提供相應的視覺輸出。雖然在第6圖中,觸控面板631與顯示面板641是作為兩個獨立的部件來實現手機的輸入和輸入功能,但是在某些實施例中,可以將觸控面板631與顯示面板641集 成而實現手機的輸入和輸出功能。The display unit 640 can be used to display information input by the user or information provided to the user and various function tables of the mobile phone. The display unit 640 can include a display panel 641. Alternatively, the display panel 641 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 631 can cover the display panel 641. When the touch panel 631 detects a touch operation on or near it, the touch panel 631 transmits to the processor 680 to determine the type of the touch event, and then the processor 680 according to the touch event. The type provides a corresponding visual output on display panel 641. Although in FIG. 6, the touch panel 631 and the display panel 641 are used as two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 631 and the display panel 641 may be set. The input and output functions of the mobile phone are realized.

手機600還可包括至少一種感測器650,比如光感測器、運動感測器以及其他感測器。具體地,光感測器可包括環境光感測器及接近感測器,其中,環境光感測器可根據環境光線的明暗來調節顯示面板641的亮度,接近感測器可在手機移動到耳邊時,關閉顯示面板641及/或背光。作為運動感測器的一種,加速計感測器可檢測各個方向上(一般為三軸)加速度的大小,靜止時可檢測出重力的大小及方向,可用於識別手機姿態的應用(比如橫豎屏切換、相關遊戲、磁力計姿態校準)、振動識別相關功能(比如計步器、敲擊)等;至於手機還可配置的陀螺儀、氣壓計、濕度計、溫度計、紅外線感測器等其他感測器,在此不再贅述。The handset 600 can also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 641 according to the brightness of the ambient light, and the proximity sensor may move to the mobile phone to When the ear is closed, the display panel 641 and/or the backlight are turned off. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is still, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen). Switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. The detector will not be described here.

音頻電路660、揚聲器661,傳聲器662可提供用戶與手機之間的音頻介面。音頻電路660可將接收到的音頻資料轉換後的電信號,傳輸到揚聲器661,由揚聲器661轉換為聲音信號輸出;另一方面,傳聲器662將收集的聲音信號轉換為電信號,由音頻電路660接收後轉換為音頻資料,再將音頻資料輸出處理器680處理後,經RF電路610以發送給比如另一手機,或者將音頻資料輸出至記憶體620以便進一步處理。Audio circuit 660, speaker 661, and microphone 662 provide an audio interface between the user and the handset. The audio circuit 660 can transmit the converted electrical signal of the audio data to the speaker 661, and convert it into a sound signal output by the speaker 661. On the other hand, the microphone 662 converts the collected sound signal into an electrical signal, and the audio circuit 660. After receiving, it is converted into audio data, and then processed by the audio data output processor 680, sent to the mobile phone 610 via the RF circuit 610, or output audio data to the memory 620 for further processing.

WiFi屬於短距離無線傳輸技術,手機通過WiFi模組670可以幫助用戶收發電子郵件、流覽網頁和訪問流式媒體等,其為用戶提供了無線的寬頻互聯網訪問。雖然第6圖示出了WiFi模組670,但是可以理解的是,其並不屬於手機600的必須構成,完全可以根據需要在不改變發明的本質的範圍內而省略。WiFi is a short-range wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages and access streaming media through the WiFi module 670, which provides wireless broadband Internet access for users. Although FIG. 6 shows the WiFi module 670, it can be understood that it does not belong to the essential configuration of the mobile phone 600, and may be omitted as needed within the scope of not changing the essence of the invention.

處理器680是手機的控制中心,利用各種介面和線路連接整 個手機的各個部分,通過運行或執行存儲在記憶體620內的軟體程式和/或模組,以及調用存儲在記憶體620內的資料,執行手機的各種功能和處理資料,從而對手機進行整體監控。在一實施例中,處理器680包括一個或多個處理單元;在一較佳實施例中,處理器680可整合應用處理器和調制解調處理器,其中,應用處理器主要處理作業系統、用戶介面和應用程式等,調制解調處理器主要處理無線通信。可以理解的是,上述調制解調處理器也可以不整合到處理器680中。The processor 680 is a control center of the mobile phone, and is connected by various interfaces and lines. Each part of the mobile phone performs various functions and processing data of the mobile phone by running or executing software programs and/or modules stored in the memory 620, and calling data stored in the memory 620, thereby performing overall on the mobile phone. monitor. In an embodiment, the processor 680 includes one or more processing units; in a preferred embodiment, the processor 680 can integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, The user interface and applications, etc., the modem processor primarily handles wireless communications. It can be understood that the above modem processor may also not be integrated into the processor 680.

手機600還包括給各個部件供電的電源690(比如電池),在一較佳實施例中,電源可以通過電源管理系統與處理器680邏輯相連,從而通過電源管理系統實現管理充電、放電、以及功率耗用管理等功能。The handset 600 also includes a power source 690 (such as a battery) that powers the various components. In a preferred embodiment, the power source can be logically coupled to the processor 680 via a power management system to manage charging, discharging, and power through the power management system. Consumption management and other functions.

儘管未圖示出,所述手機600還可以包括攝像鏡頭、藍牙模組等,在此不再贅述。Although not illustrated, the mobile phone 600 may further include an imaging lens, a Bluetooth module, and the like, and details are not described herein again.

在本發明實施例中,該終端所包括的處理器680還具有以下功能:在進行文件檔案即時防護的過程中,確定電腦系統的當前環境安全度;選擇與上述當前環境安全度對應的監控模式對上述電腦系統進行文件檔案即時防護;當前環境安全度越高監控模式防護等級越低,當前環境安全度越低監控模式防護等級越高。In the embodiment of the present invention, the processor 680 included in the terminal further has the following functions: determining the current environmental security degree of the computer system in the process of performing file file immediate protection; and selecting the monitoring mode corresponding to the current environmental security degree. Instantly protect file files on the above computer system; the higher the current environmental security level, the lower the protection level of the monitoring mode, and the lower the current environmental security level, the higher the protection level of the monitoring mode.

從目前的電腦環境和全年的統計來看,電腦上出現惡意程式風險的可能性大致在幾個百分點這個級別。也就是說絕大部分用戶電腦環境是安全和無風險的,且大部分時間內用戶其實都沒有安全風險。也就是 說用戶的機器實際上並不一定要採用時時刻刻的全部掃描來保證安全。只要在關鍵觸發風險的時候做到全面攔截風險即可。這樣一來大部分情況下,只需要輕量的掃描即可解決問題,而又不會產生安全風險。因此本步驟確定電腦系統的當前環境安全度則可以為確定當前電腦系統是否處於安全狀態。From the current computer environment and the statistics of the whole year, the possibility of malware risk on the computer is roughly a few percentage points. That is to say, most of the user's computer environment is safe and risk-free, and most of the time users have no security risks. That is It is said that the user's machine does not necessarily have to use all the scans at all times to ensure security. As long as the risk is fully intercepted when the key triggers the risk. In most cases, only a light scan is required to solve the problem without creating a security risk. Therefore, this step determines whether the current environmental security of the computer system can determine whether the current computer system is in a safe state.

監控模式防護等級低的時候,可以稱為哨兵策略,根據電腦環境劃分的風險等級,來排布監控哨兵。當電腦系統環境乾淨,沒有風險的時候,只需要佈置少量的監控哨兵,及時發現風險即可。對於電腦系統環境存在惡意風險的時候,再把哨兵全面展開,佈置足夠保證安全的哨兵,即可做到第一時間扼殺風險。可以理解的是,監控模式可以是兩種也可以是兩種以上,各監控模式對應有防護等級,防護等級高如何設置,防護等級低如何設置可以由研發人員設定,本發明實施例在後續實施例中將給出舉例說明,但是設置的方式可以有很多種,並不限定於後續舉例。When the monitoring mode is low, it can be called a sentinel strategy, and the monitoring sentinel is arranged according to the risk level divided by the computer environment. When the computer system environment is clean and there is no risk, only a small number of surveillance sentinels need to be arranged to detect the risks in time. When there is a malicious risk in the computer system environment, the sentinel will be fully deployed, and the sentinel will be set up to ensure safety, so that the risk can be killed in the first time. It can be understood that the monitoring mode can be two or more, and each monitoring mode corresponds to a protection level, and the protection level is high. How to set the protection level can be set by the research and development personnel, and the embodiment of the present invention is implemented in the subsequent embodiment. An example will be given in the example, but there are many ways to set it, and it is not limited to the following examples.

以上方案,將電腦系統環境劃分成不同環境安全度,多種監控模式匹配不同的環境安全度,保證電腦的安全使用,又能夠降低安全軟體對電腦系統的流暢性以及用戶體驗。The above solution divides the computer system environment into different environmental security levels, and various monitoring modes match different environmental security degrees to ensure the safe use of the computer, and can reduce the fluency of the security software to the computer system and the user experience.

進一步地,本發明實施例還提供了智慧切換監控模式的方案,處理器680還用於在進行文件檔案即時防護的過程中,若監測到風險資料,則選擇比當前監控模式防護等級高的監控模式,然後對上述電腦系統進行文件檔案即時防護。Further, the embodiment of the present invention further provides a scheme for intelligently switching the monitoring mode, and the processor 680 is further configured to: if the risk data is monitored during the process of performing the file file immediate protection, select the monitoring with higher protection level than the current monitoring mode. Mode, then perform file file instant protection on the above computer system.

在一實施例中,上述監控模式包括至少兩個監控模式,監控模式的防護等級越高佔用的電腦系統資源越多,監控模式的防護等級越低 佔用的電腦系統資源越少。In an embodiment, the monitoring mode includes at least two monitoring modes, and the higher the protection level of the monitoring mode, the more computer system resources are occupied, and the lower the protection level of the monitoring mode. The less computer system resources are occupied.

可以理解的是監控模式還可以繼續細分為更多的監控模式,對應更多的防護等級,以上兩種監控模式作為一個較佳方案不應限定對本發明。It can be understood that the monitoring mode can continue to be subdivided into more monitoring modes, corresponding to more protection levels. The above two monitoring modes should not be limited to the present invention as a preferred solution.

進一步地,本發明實施例還提供了另外一種智慧切換監控模式的方案,處理器680還用於在進行文件檔案即時防護的過程中,若預定時間內未監測到風險資料,則選擇比當前監控模式防護等級低的監控模式,然後對上述電腦系統進行文件檔案即時防護。Further, the embodiment of the present invention further provides another scheme for intelligently switching the monitoring mode. The processor 680 is further configured to: when the risk data is not monitored within a predetermined time in the process of performing file file immediate protection, select the current monitoring. The mode of protection with low level of protection is applied, and then the file system is immediately protected against the above computer system.

在一實施例中,防護等級低的監控模式包括:規則過濾設定的部分事件、檔案執行事件非同步監測、檔案寫入事件按設定規則過濾攔截、對設定的需要攔截的事件進行檔案掃描。In an embodiment, the monitoring mode with low protection level includes: part of the event filtering setting, asynchronous monitoring of the file execution event, file writing event filtering and intercepting according to the setting rule, and file scanning for the set event that needs to be intercepted.

在一實施例中,防護等級高的監控模式包括:規則過濾設定的部分事件、檔案執行事件同步監測、檔案寫入事件全面攔截、對攔截的事件進行檔案掃描。In an embodiment, the monitoring mode with high protection level includes: part of the event filtering setting, synchronous monitoring of the file execution event, comprehensive interception of the file writing event, and file scanning of the intercepted event.

值得注意的是,上述裝置實施例中,所包括的各個單元只是按照功能邏輯進行劃分的,但並不局限於上述的劃分,只要能夠實現相應的功能即可;另外,各功能單元的具體名稱也只是為了便於相互區分,並不用於限制本發明的保護範圍。It should be noted that, in the foregoing device embodiments, the included units are only divided according to functional logic, but are not limited to the foregoing division, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units It is also for convenience of distinguishing from each other and is not intended to limit the scope of protection of the present invention.

另外,本發明所屬技術領域中具有通常知識者可以理解實現上述各方法實施例中的全部或部分步驟是可以通過程式來指令相關的硬體完成,相應的程式可以存儲於一種電腦可讀存儲介質中,上述提到的存儲介質可以是唯讀記憶體,磁片或光碟等。In addition, those skilled in the art to which the present invention pertains can understand that all or part of the steps in implementing the foregoing method embodiments can be performed by a program to instruct related hardware, and the corresponding program can be stored in a computer readable storage medium. The storage medium mentioned above may be a read-only memory, a magnetic disk or a compact disk.

雖然本發明已用較佳實施例揭露如上,然其並非用以限定本發明,本發明所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。While the invention has been described above in terms of the preferred embodiments, the invention is not intended to limit the invention, and the invention may be practiced without departing from the spirit and scope of the invention. The scope of protection of the present invention is therefore defined by the scope of the appended claims.

101~102‧‧‧步驟101~102‧‧‧Steps

Claims (10)

一種文件檔案即時防護的方法,包括下列步驟:在進行文件檔案的即時防護過程中,確定電腦系統的當前環境安全度;選擇與所述當前環境安全度相對應的監控模式,以對所述電腦系統進行所述文件檔案的即時防護,所述當前環境安全度越高,所述監控模式的防護等級越低,所述當前環境安全度越低,所述監控模式的防護等級越高;以及在進行所述文件檔案的即時防護的過程中,若在預定時間內未監測到風險資料,則選擇比當前監控模式防護等級低的模式作為所述監控模式,然後對所述電腦系統進行所述文件檔案即時防護。 A method for real-time protection of a file file includes the following steps: determining a current environmental security degree of the computer system during an immediate protection process of the file file; and selecting a monitoring mode corresponding to the current environmental security degree to the computer The system performs the instant protection of the file file, the higher the current environmental security degree, the lower the protection level of the monitoring mode, the lower the current environmental security degree, the higher the protection level of the monitoring mode; In the process of performing the instant protection of the file file, if the risk data is not detected within a predetermined time, a mode lower than the current monitoring mode protection level is selected as the monitoring mode, and then the file is performed on the computer system. Instant file protection. 如申請專利範圍第1項所述方法,還包括:在進行所述文件檔案的即時防護的過程中,若監測到風險資料,則選擇比當前監控模式防護等級高的模式作為所述監控模式,然後對所述電腦系統進行所述文件檔案的即時防護。 The method of claim 1, further comprising: in the process of performing the immediate protection of the file file, if the risk data is detected, selecting a mode higher than the current monitoring mode protection level as the monitoring mode, The file system is then immediately protected against the computer system. 如申請專利範圍第1項所述方法,其中所述監控模式包括至少兩個監控模式,所述至少兩個監控模式中的一監控模式的防護等級越高佔用的電腦系統資源越多,所述至少兩個監控模式中的另一監控模式的防護等級越低佔用的電腦系統資源越少。 The method of claim 1, wherein the monitoring mode comprises at least two monitoring modes, and the higher the protection level of one of the at least two monitoring modes, the more computer system resources are occupied, The lower the degree of protection of the other of the at least two monitoring modes, the less computer system resources are occupied. 如申請專利範圍第1至3項中任意一項所述方法,其中所述防護等級低的所述監控模式係選自規則過濾設定的部分事件、檔案執行事件非同步監測、檔案寫入事件按設定規則過濾攔截、以及對設定需要攔截的事件進行檔案掃描所組成的群組。 The method of any one of claims 1 to 3, wherein the monitoring mode with a low level of protection is selected from a partial event set by a rule filter, an asynchronous monitoring of a file execution event, and an archive write event. Set up rule filtering interception and grouping of files scanned for events that need to be intercepted. 如申請專利範圍第1至3項中任意一項所述方法,其中所述防護等級高的監控模式係選自規則過濾設定的部分事件、檔案執行事件同步監測、檔案寫入事件全面攔截、以及對攔截的事件進行檔案掃描所組成的群組。 The method of any one of claims 1 to 3, wherein the monitoring mode with a high degree of protection is selected from a partial event set by rule filtering, a synchronous monitoring of file execution events, a comprehensive interception of file write events, and A group of archived scans of intercepted events. 一種文件檔案即時防護的裝置,包括:安全度確定單元,用於在防護處理單元進行文件檔案的即時防護的過程中,以確定電腦系統的當前環境安全度;模式選擇單元,用於選擇與所述當前環境安全度相對應的監控模式,所述當前環境安全度越高,所述監控模式防護等級越低,所述當前環境安全度越低,所述監控模式防護等級越高,其中所述模式選擇單元,還用於在所述防護處理單元在進行文件檔案即時防護的過程中,若預定時間內未監測到風險資料,則選擇比當前監控模式防護等級低的監控模式,然後對所述電腦系統進行文件檔案即時防護;所述防護處理單元,以使用所述模式選擇單元選擇的監控模式,以對所述電腦系統進行所述文件檔案的即時防護。 A device for real-time protection of a file file, comprising: a security degree determining unit, configured to determine a current environmental security degree of the computer system during a process of protecting the file file in the protection processing unit; and a mode selection unit for selecting and The monitoring mode corresponding to the current environmental security degree, the higher the current environmental security degree, the lower the protection mode protection level, the lower the current environmental security degree, the higher the monitoring mode protection level, wherein the The mode selection unit is further configured to: when the protection processing unit performs the file file immediate protection, if the risk data is not detected within the predetermined time, select a monitoring mode that is lower than the current monitoring mode protection level, and then The computer system performs real-time protection on the file file; the protection processing unit uses the monitoring mode selected by the mode selection unit to perform immediate protection on the file system on the computer system. 如申請專利範圍第6項所述文件檔案即時防護的裝置,其中所述模式選擇單元還用於在所述防護處理單元進行文件檔案即時防護的過程中,若監測到風險資料,則選擇比當前監控模式防護等級高的監控模式。 The device for immediate protection of a file file according to claim 6 , wherein the mode selection unit is further configured to: in the process of performing immediate protection of the file file in the protection processing unit, if the risk data is monitored, selecting the current ratio Monitor mode with high level of protection. 如申請專利範圍第6項所述文件檔案即時防護的裝置,其中所述模式選擇單元可選的監控模式包括至少兩個監控模式,監控模式的防護等級越高佔用的電腦系統資源越多,監控模式的防護等級越低佔用的電腦系統資源越少。 The device for protecting the file file according to the sixth aspect of the patent application, wherein the mode selection unit selects a monitoring mode including at least two monitoring modes, and the higher the protection level of the monitoring mode, the more computer system resources are occupied, and the monitoring The lower the level of protection of the mode, the less computer system resources are occupied. 如申請專利範圍第6至8項中任意一項所述文件檔案即時防護的裝置,其中,所述防護處理單元,用於若模式選擇單元選擇的是防護等級低的監控模式,則使用規則過濾設定的部分事件、檔案執行事件非同步監測、檔案寫入事件按設定規則過濾攔截、對設定的需要攔截的事件進行檔案掃描來對所述電腦系統進行文件檔案的即時防護。 The apparatus for real-time protection of a file file according to any one of claims 6 to 8, wherein the protection processing unit is configured to filter the rule if the mode selection unit selects a monitoring mode with a low protection level. The set part of the event, the file execution event asynchronous monitoring, the file writing event is filtered according to the set rule, and the file that needs to be intercepted is scanned for the file to immediately protect the file system. 如申請專利範圍第6至8項中任意一項所述文件檔案即時防護的裝置,其中所述防護處理單元,用於若模式選擇單元選擇的是防護等級高的監控模式,則使用規則過濾設定的部分事件、檔案執行事件同步監測、檔案寫入事件全面攔截、對攔截的事件進行檔案掃描來對所述電腦系統進行文件檔案的即時防護。 The apparatus for real-time protection of a file file according to any one of claims 6 to 8, wherein the protection processing unit is configured to use a rule filtering setting if the mode selection unit selects a monitoring mode with a high protection level. Part of the event, file execution event synchronization monitoring, file write event comprehensive interception, file scanning of the intercepted event to immediately protect the file system of the computer system.
TW102148552A 2013-03-22 2013-12-26 Method for protecting document files in real time and apparatus thereof TWI510957B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310096441.1A CN103150518B (en) 2013-03-22 2013-03-22 A kind of method and apparatus of file real-time protection

Publications (2)

Publication Number Publication Date
TW201437837A TW201437837A (en) 2014-10-01
TWI510957B true TWI510957B (en) 2015-12-01

Family

ID=48548590

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102148552A TWI510957B (en) 2013-03-22 2013-12-26 Method for protecting document files in real time and apparatus thereof

Country Status (3)

Country Link
CN (1) CN103150518B (en)
TW (1) TWI510957B (en)
WO (1) WO2014146499A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150518B (en) * 2013-03-22 2016-02-17 腾讯科技(深圳)有限公司 A kind of method and apparatus of file real-time protection
EP3460701A4 (en) * 2016-06-23 2019-05-22 Mitsubishi Electric Corporation Intrusion detection device and intrusion detection program
CN108073811A (en) * 2016-11-16 2018-05-25 蓝盾信息安全技术有限公司 One kind realizes Net Strobe System intelligent file scanning technique based on multimode matching
CN107911375A (en) * 2017-11-28 2018-04-13 四川长虹电器股份有限公司 Operation system safety protecting method based on flow monitoring

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7540027B2 (en) * 2005-06-23 2009-05-26 International Business Machines Corporation Method/system to speed up antivirus scans using a journal file system
TW201018140A (en) * 2008-10-16 2010-05-01 Chunghwa Telecom Co Ltd System and method for protecting data of network user
CN102195992A (en) * 2010-11-01 2011-09-21 卡巴斯基实验室封闭式股份公司 System and method for performing anti-virus scanning for the data downloaded from network
CN102012992B (en) * 2010-11-19 2012-11-21 奇智软件(北京)有限公司 Method and device for monitoring real-time protection document

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004005008A (en) * 2002-04-04 2004-01-08 Scinet Corp Protection method for contents of writing in electronic publication distribution
CN101576947B (en) * 2009-06-05 2012-08-08 成都市华为赛门铁克科技有限公司 Method, device and system for file protection treatment
CN102262716B (en) * 2010-05-25 2014-03-05 腾讯科技(深圳)有限公司 Real-time protection method and device
CN102194073B (en) * 2011-06-03 2014-11-26 奇智软件(北京)有限公司 Scanning method and device of antivirus software
CN103150518B (en) * 2013-03-22 2016-02-17 腾讯科技(深圳)有限公司 A kind of method and apparatus of file real-time protection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7540027B2 (en) * 2005-06-23 2009-05-26 International Business Machines Corporation Method/system to speed up antivirus scans using a journal file system
TW201018140A (en) * 2008-10-16 2010-05-01 Chunghwa Telecom Co Ltd System and method for protecting data of network user
CN102195992A (en) * 2010-11-01 2011-09-21 卡巴斯基实验室封闭式股份公司 System and method for performing anti-virus scanning for the data downloaded from network
CN102012992B (en) * 2010-11-19 2012-11-21 奇智软件(北京)有限公司 Method and device for monitoring real-time protection document

Also Published As

Publication number Publication date
CN103150518A (en) 2013-06-12
CN103150518B (en) 2016-02-17
TW201437837A (en) 2014-10-01
WO2014146499A1 (en) 2014-09-25

Similar Documents

Publication Publication Date Title
CN103400076B (en) Malware detection methods, devices and systems on a kind of mobile terminal
TWI606360B (en) Method, apparatus and system for detecting webpages
US9344838B2 (en) Data transmission method and apparatus, and terminal with touch screen
US20150220730A1 (en) Method, device and computer storage medium for controlling the running of an application
WO2018045878A1 (en) Touch screen parameter adjustment method and relevant product
CN106657165B (en) Network attack defense method, server and terminal
CN109800602B (en) Privacy protection method, mobile terminal and computer readable storage medium
WO2018049881A1 (en) Data migration method and device
US10237291B2 (en) Session processing method and device, server and storage medium
TWI510957B (en) Method for protecting document files in real time and apparatus thereof
WO2018214748A1 (en) Method and apparatus for displaying application interface, terminal and storage medium
CN108270757B (en) User account switching method, device, client and system
CN104123276A (en) Method, device and system for intercepting popup windows in browser
WO2014166266A1 (en) File scanning method and system, client and server
WO2015014250A1 (en) Incoming call management method and apparatus for mobile terminal
CN108632454B (en) Information processing method and device, computer readable storage medium and terminal
WO2019071424A1 (en) Application function control method and terminal
WO2018045874A1 (en) Method for information processing and related product
CN105100361B (en) The way of recording and device of mobile terminal
CN105700801B (en) Interface intercepting method and equipment
WO2017215663A1 (en) Sound effect processing method and terminal
CN111209031B (en) Data acquisition method, device, terminal equipment and storage medium
CN108650415A (en) End message display methods, mobile terminal and computer readable storage medium
CN106909295B (en) Application processing method and terminal
CN116541865A (en) Password input method, device, equipment and storage medium based on data security