WO2013117151A1 - 文件快速扫描方法和系统 - Google Patents
文件快速扫描方法和系统 Download PDFInfo
- Publication number
- WO2013117151A1 WO2013117151A1 PCT/CN2013/071383 CN2013071383W WO2013117151A1 WO 2013117151 A1 WO2013117151 A1 WO 2013117151A1 CN 2013071383 W CN2013071383 W CN 2013071383W WO 2013117151 A1 WO2013117151 A1 WO 2013117151A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file
- feature information
- information
- data packet
- scan
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/55—Detecting local intrusion or implementing counter-measures
- G06F21/56—Computer malware detection or handling, e.g. anti-virus arrangements
- G06F21/562—Static detection
- G06F21/564—Static detection by virus signature recognition
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/55—Detecting local intrusion or implementing counter-measures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/55—Detecting local intrusion or implementing counter-measures
- G06F21/552—Detecting local intrusion or implementing counter-measures involving long-term monitoring or reporting
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/55—Detecting local intrusion or implementing counter-measures
- G06F21/56—Computer malware detection or handling, e.g. anti-virus arrangements
- G06F21/561—Virus type analysis
Definitions
- the present invention relates to the field of network technologies, and in particular, to a file fast scanning method and system. Background technique
- the client With the popularity of computers, the client basically needs to install anti-virus software to scan files in the computer.
- the anti-virus software scans, it requires a lot of CPU operations and disk operations, which makes the scanning process long and affects the system speed.
- files in a computer there are many files that are the same, such as Windows files, many software installation package files, help files, and compressed files.
- the antivirus software of the client scans all the files in the computer in the first scan, and scans various contents in the file. If the file includes a relatively large content, the scanning time is quite expensive. , resulting in a very long time for the first scan.
- the prior art will decompress the contents of the compressed package one by one according to a normal scanning process to ensure that the file is secure, so that the scanning time of the prior art is relatively long for a compressed package.
- the time of the entire scan is prolonged, and for the user, the CPU operation and disk operation occupied for a long time due to long-time scanning affect the speed of the system, thereby affecting the user's use of the computer.
- the anti-virus software will enter the whitelist of the last scanned security file record, and then match the current file with the whitelist file one by one on the next scan; if it matches, skip the current file and enter the next file. Scanning process; if it is not matched, the entire content of the unmatched file is completely scanned, and then the scanning process is completed before proceeding to the next file scanning process. In this process, the previous file needs to be matched or scanned completely before the next file can be matched and scanned. The waiting time of the next file is relatively long, resulting in a long scan time of the entire system file by the entire anti-virus software. problem. Summary of the invention
- the present invention has been made in order to provide a document rapid scanning method and system that overcomes the above problems or at least partially solves or alleviates the above problems.
- a file fast scanning method which includes acquiring a data packet; the data packet includes a security for determining whether a file in the system is a secure file File information; scan the file feature information of the file one by one, if the currently described file is matched, skip the anti-virus scan of the current file and continue scanning the next file.
- a file fast scanning system including: a first user end, the first user end includes:
- An obtaining module configured to acquire a data packet; the data packet includes security file feature information used to determine whether the file in the system is a secure file;
- the scan matching module is configured to scan the file feature information of the file in the system one by one. If the currently scanned file feature information matches the security file feature information of the security file in the data packet, the antivirus of the current file is skipped. Scan, continue scanning the next file.
- a computer program comprising computer readable code causing the server to perform any of claims 1-11 when run on a server Said method.
- a computer readable medium storing the computer program according to claim 24 is provided.
- the present disclosure utilizes a data packet including security file feature information for determining whether a file in a system is a secure file, when a new user scans to the same feature information as the data packet in the first scan When you file, you can skip the long, and safe file that it represents, reducing the time for the first scan.
- the disclosure provides two scanning modules, wherein the feature information scanning module is configured to match the feature information of the file of the first client system with the feature information of the security file in the data packet, if the file of the first client system If the feature information does not match the feature information of the security file in the data packet, the security scan module is notified to perform a complete scan of the file, and the feature information scanning module continues to scan the next file.
- the first user end is separated from the complete scanning process for the matching process of the feature information of the file, and the scanning of the file on the previous unmatched file does not affect the matching of the next file, thereby saving the waiting time therein. This speeds up the scanning of files.
- FIG. 1 is a schematic flow chart of a method for quickly scanning a document according to an embodiment of the present invention
- FIG. 2 is a schematic flowchart of a method for generating a data packet according to an embodiment of the present invention
- FIG. 3 is a data of a compressed packet header according to an embodiment of the present invention
- FIG. 4 is a schematic structural diagram of a file fast scanning system according to an embodiment of the present invention
- FIG. 5 is a schematic structural diagram of a file fast scanning system according to an embodiment of the present invention
- FIG. 6 is a file fast scanning system according to an embodiment of the present invention
- FIG. 7 is a schematic structural diagram of a file fast scanning system according to an embodiment of the present invention
- FIG. 8 is a schematic flowchart of a file fast scanning method according to an embodiment of the present invention
- FIG. 10 is a block diagram schematically showing a server for executing a method according to the present invention
- Fig. 11 schematically shows a memory unit for holding or carrying program code implementing the method according to the invention.
- the application counts the special information of a file that is relatively long and safe for a full scan, and then generates a data packet to be matched (upgrade patch, etc.) based on the feature information, and the user is using the After the data packet, the feature information of the scanable file is matched with the feature information in the data packet. If the match is matched, the files with a long normal scan time can be skipped, thereby saving the scan time.
- FIG. 1 a flow chart of a method for quickly scanning a file according to the present application is shown, which includes:
- Step 110 Acquire a data packet; the data packet includes determining whether the file in the system is Security file feature information for secure files.
- the new client first obtains the data packet including the security feature information, and then the new client can scan according to the data packet to save the time of the first scan.
- the new user terminal is described in the application by the first user terminal.
- the first user terminal mainly includes a user terminal that does not have anti-virus software installed, and a user terminal that has installed anti-virus software but has not scanned the entire file. It may include a client that has installed anti-virus software and scanned a full file, but the client that has a new unscanned file appears in the client after the most recent full file scan.
- the first client can obtain the data packet by installing an installation package stored in the data package or upgrading the installed anti-virus software.
- the first user may not have scanned at all, or may get a lot of new files during use, and the file client may not have a full scan, when the user wants to perform a quick scan. Then, it can be carried out by the data packet of the present application.
- the feature information in the data packet that determines that the file in the system is a security file can be obtained by counting the complete scan result of each client. For example, for a result of performing a full scan for multiple users, for each file having the same feature information (such as file size, file modification time, file name CRC value, and content matching information) in each client, if each client The scan result of the file is all secure, and the feature information can be stored in the data packet, and the file having the feature information in the system is determined to be a security file.
- feature information such as file size, file modification time, file name CRC value, and content matching information
- the feature information is obtained by counting security file feature information sent by each client to the processing center server. That is, for the feature information of the file that confirms the security obtained by the complete scan of each user end, the processing center server automatically performs statistics and analysis on it, and can generate corresponding data packets by the feature information larger than a certain number of thresholds.
- a data packet needs to be generated first. Referring to FIG. 2, a schematic flowchart of a data packet generating method according to an embodiment of the present invention is shown, including:
- Step 210 Receive feature information of a security file sent by each user end.
- the feature information includes feature information of the file that is determined to be secure when the user side scans the file completely.
- a second user group which includes a large number of users, all of which can send the qualified feature information after the complete scanning of the files in the system to the processing center server. That is, when each client of the second client group selects to completely scan the files in the computer, the feature information of the security file whose scan time is greater than or equal to a certain time threshold is sent to the processing center server.
- this application takes a long time to scan a large amount of user-side scanning.
- the feature information of the file is counted, and then the data packet to be matched is generated based on the feature information of the corresponding file that is greater than or equal to the threshold value, and then the new user scans the feature information in the data packet during the first scan.
- Step S11 When the scanned file is secure, obtain feature information of the file, where the feature information includes a file name, a file size, a file modification time, and a file content description information.
- the scan engine scans each file in the client computer one by one.
- the scan engine needs to be decompressed in the engine according to the requirements of the compressed package, and then included in the compressed package.
- Each file is scanned for anti-virus.
- this scanning method takes a lot of time. For example, for the software installation package, the scanning engine also needs to extract the information in the installation package and then scan it. More time.
- the feature information of the current file may be acquired, and the feature information includes a file name, a file size, a file modification time, and file content description information, where the feature information includes File name, file size, file modification time, and file content description information.
- the feature information of the file is obtained, and the feature information includes a file name, a file size, a file modification time, and a file content description information.
- the system API function may be called according to the time when the file is scanned and when the file is scanned.
- GetTickCount calculates the scan time from the start of scanning the file and ending the scanning of the file. For example, the time to start scanning the file is 21:50:30 and 00 milliseconds on Tuesday, January 17, 2012, and the time to end the scanning of the file is 21:51:30 and 00 milliseconds on Tuesday, January 17, 2012, then The scanning time of the client for the current file is 1 minute. If the setting time is 30 seconds, then for the file, the client obtains the feature information of the file, including the file name, file size, file modification time, and file content description information.
- the file content description information only occupies a small part of the entire file. When the user scans the content description part of the file, it takes much less time than scanning the entire file.
- the file content description information is in the header data of the compressed packet, and the number of bytes occupied by the current file content description information according to the header data can be scanned according to the header data, and the user only needs to scan the byte of the current file header data.
- the address space can be, referring to FIG. 3, which is an example of header data of a compressed package, and the file in the compressed package is described in the header data of the compressed package.
- Information file name, size, data check value, etc.
- the content description information is in the tail data of the installation package, and the corresponding byte address space can be scanned according to the number of bytes occupied by the tail data notified by the file during scanning.
- Step S12 Perform a cyclic redundancy check calculation on the file name to obtain a file name CRC value. Since the file name involves the privacy of the user, the application calculates the file name as a Cyclic Redundancy Check (CRC) to obtain an unreadable file name CRC value.
- CRC Cyclic Redundancy Check
- Step S13 Perform file summary description information on the file content description information to obtain content matching information.
- the file content description information is small compared to the entire file. However, if the file content description information itself is matched, the file content description information may be relatively large, resulting in a relatively long time.
- the file content description information is calculated by the message-digest algorithm to obtain content matching information.
- the application performs MD5 (Message-Digest Algorithm 5, message digest algorithm fifth edition) calculation, and the obtained content matching information is MD5. Values, matching by MD5 value can greatly reduce the matching time, ensure fast contrast matching, and ensure the security of the file.
- MD5 Message-Digest Algorithm 5, message digest algorithm fifth edition
- Step S14 transmitting the feature information including the file size, the file modification time, the file name CRC value, and the content matching information.
- the feature information After obtaining the above-mentioned feature information including the file size, the file modification time, the file name CRC value, and the content matching information, the feature information can be sent to the processing center server for processing by the processing center server.
- the application environment of the application includes a processing center server that provides anti-virus software related installation packages, upgrade packages, and the like, and a large number of user terminals connected through the network language processing center server, so that the online user can perform a complete scan of the files. Perform the above steps.
- Step 220 Count the number of repetitions for the same feature information.
- the processing center server performs a de-duplication operation on the received data, that is, the data with the same feature information sent by the same client is de-duplicated to have a number of times.
- the same feature information sent by the same client is de-duplicated to have a number of times.
- the same feature. Information count the number of repetitions:
- the received feature information is sorted by the total number of repetitions, for example, for the feature information corresponding to some client files (m, 100 kb, 2012/l/ll/21: 50:30: 10, n), where m is The file name CRC value, n is the content matching information of the file content description information, that is, the MD5 value, and each corresponding feature information corresponds to a client that sends the information, for example, to the user terminal A, the information sent to the processing center server may be The form of A-( m, 1 OOkb , 2012/1/11/21: 50: 30: 10, ⁇ ) indicates.
- All the bars received by the processing center server have the same (A, 100kb, 2012/1/11/21:50:30: 10, B), and the total number of repetitions is counted, and then sorted according to the total number of statistics. In the process of the statistical sorting, it is convenient to find the data with the same feature information sent by the same client.
- the feature information is recorded as 1 time. In this way, the accuracy of the number of users in the statistics of a certain feature information can be guaranteed to ensure the validity of the application.
- the application can also perform the deduplication operation by other methods, and count the number of repetitions of the feature information of each file, which is not limited in this application.
- Step 230 Extract feature information whose number of repetitions is greater than or equal to the number of thresholds.
- the number of repetitions of the feature information is obtained, the number of repetitions is compared with the number of thresholds, and if the number of repetitions is greater than the threshold, it is stored in the data file.
- the aforementioned threshold For example, the aforementioned
- the number of repetitions of the feature information is 150,000, and the threshold value is set to 100,000, and the feature information data can be extracted.
- Step 240 Store the extracted feature information into a data file, and generate a data packet according to the data file.
- the data in the data file may exist in the form of a list, and each piece of feature information includes multiple dimensions, for example, (m, 100 kb, 2012/l/ll/21: 50:30: 10, n),
- the piece of feature information in the list includes four dimensions, namely file size, file modification time, file name CRC value, and content matching information. Then match in these four dimensions when subsequent scans match.
- the method further includes:
- Step S210 Receive feature information of the unsecured file sent by the UE, and save the feature information into the data file or delete the feature information in the data packet that is the same as the feature information.
- the feature information of the unsafe file is also marked as unsecure, and then sent to the processing center server for processing all the pieces with the feature information.
- Data can be left unprocessed and not stored in data files. For example, there are 50,000 clients that sent the above (m, 100kb,
- the processing center server may not have ( m,100kb , 2012/l/ll/21 :50:30: 10,n )
- the data of the feature information is processed and will not be included (m, 100kb , 2012/l/ll/21 :50:30: 10,
- the feature information of n) is stored in the data packet.
- the processing center server when the processing center server performs statistics on the feature information sent by each client, it generally performs statistics on a period of a certain length of time, and generates a packet of the characteristic information of the security file in the statistical result of the cycle. For example, the processing center server collects the feature information data sent by each client in a time-based unit, and then generates a data packet, which can be provided to the first client of the next cycle.
- Step 120 Scan the file feature information of the file in the system one by one. If the currently scanned file, skip the antivirus scan of the current file and continue scanning the next file.
- an anti-virus scan is performed on malicious code or viruses included in the file content.
- Step S121 the system of the first user end scans the feature information of the file in the system one by one; Step S122, matching the currently scanned file feature information with the security file feature information of the data packet in the data packet as a security file; Then, the process goes to step S123, skipping the current file, and continuing to scan the next file; if it does not match, the process goes to step S124, and a complete anti-virus scan is performed on the current file, that is, all contents of the current file are scanned.
- the method further includes: confirming whether the fast scan is selected, and if yes, scanning the feature information of the file, and calling the data packet to perform matching.
- the first user end can select to perform a quick scan or a complete scan of the file. If fast scan is selected, the feature information of the file can be scanned, and the data packet is called to perform matching to match the feature information. When the feature information of the file matches the feature information in the data packet, the current file is skipped and the next file is scanned. In the present application, when scanning for the first time, the first user may be prompted whether to select a quick scan, if selected, the feature information of the file is scanned, and the data packet is called for matching.
- the first user If the first user chooses to perform a fast scan, the first user first obtains the feature information of the first client file for matching when scanning, without scanning the entire content of the file.
- Matching is done in the cache starting from the most efficient matching feature information.
- the comparison can be started from the most efficient data, such as the dimension that does not need to be calculated, such as file size and file modification time, because the file size and modification time are The system data that can be obtained when traversing the file does not require additional operations, so this operation can improve the efficiency of the comparison matching of the preset cache.
- Step S31 when the file size and the file modification time match a piece of feature information in the database, the file name is subjected to the cyclic redundancy code check calculation, and the file name CRC value is obtained, and the file name CRC value is The file name CRC value of the piece of feature information is matched.
- the CRC operation of the file name is a memory operation, and the amount of data is small.
- the matching is first performed from the dimension with higher matching efficiency.
- the file size and the file modification time do not need to be additionally calculated, and the matching can be directly performed, then when the user scans,
- the file size of the obtained feature information and the file tampering time for example, the file size can be compared first, and the file tampering time is compared. If the file size of the currently scanned file and the file modification time are the same, compare the dimension with a relatively small calculation amount, for example, calculate the file name CRC value by the CRC operation, and then the file name CRC value and the file of the feature information. The name CRC value is matched. If it is not matched, the complete scan is entered. If the match is reached, the dimension with a relatively large amount of calculation is entered for matching, for example, the process proceeds to step S32.
- Step S32 when the file name CRC value matches the file name CRC value of the piece of feature information, the file content description information is calculated by the message digest algorithm to obtain content matching information, and the content matching information is The content matching information of the piece of feature information is carried out.
- the file content description information is calculated by the message digest algorithm, and generally the MD5 calculation is performed to obtain the file.
- the content matching information matches the content matching information with the content matching information of the piece of feature information.
- the file when matching, if one of the feature information does not match, that is, the file does not match, the file can be scanned for antivirus.
- the four dimensions of the foregoing feature information are: file size, file modification time, file name CRC value, and content matching information.
- the matching order of the four dimensions is: 1. file size, 2. file tampering time, 3. file Name CRC value 4, content matching information; then if a file size of file A matches the first dimension of the feature information in the data packet, that is, the file size does not match, the 2, 3, and 4 dimensions may not be used.
- file A needs to perform anti-virus scanning; if file A's file size matches, then file A's file ⁇ ⁇ ' tamper with time and the second dimension of the feature information in the packet, ie file modification When the time is matched, the match is not matched, then the file can be scanned for antivirus without matching the 3 and 4 dimensions. Other situations can be deduced by analogy.
- the feature information of the security file in the current scan result is stored in the security file information list of the data packet; Scans are performed based on the records after the last scan when scanning is performed at one time.
- the feature information of the security file may be stored in the security file information of the data packet.
- the scan can be performed more quickly according to the previous scan result.
- the client performs a complete scan of each file, if a file is detected to be insecure, but the feature information of the file is in the data packet, it can be deleted from the security file information list in the data packet.
- the present application also discloses a structural schematic of a file fast scanning system, including:
- the first user end 410, the first user end includes:
- the obtaining module S411 is configured to acquire a data packet, where the data packet includes security file feature information used to determine whether the file in the system is a secure file;
- the scan matching module S412 is configured to scan the file feature information of the file in the system one by one, and skip the current file if the currently scanned file feature information matches the security file feature information of the security file in the data packet. Antivirus scan, continue to scan the next file.
- a schematic structural diagram of a file fast scanning system includes: a first client 510, a second client group 520 and a processing center server 530;
- the first user end includes 510:
- the obtaining module S511 is configured to acquire a data packet, where the data packet includes security file feature information used to determine whether the file in the system is a secure file;
- the scan matching module S512 is configured to scan the file feature information of the file in the system one by one, and skip the current file if the currently scanned file feature information matches the security file feature information of the security file in the data packet. Antivirus scan, continue to scan the next file;
- the processing center server 530 is configured to collect security file feature information sent by each client to the processing center server to obtain feature information in the data packet;
- the second client group 520 is configured to send feature information of the security file.
- the processing center server includes:
- a feature information module configured to receive feature information of a security file sent by each client; the feature information includes feature information of a file that is determined to be secure when the user scans the file completely; and a statistics module, configured to perform statistics on the same feature information. The number of repetitions;
- each user end of the second user group includes:
- a feature information acquiring unit configured to acquire feature information of the file when the scanned file is secure, where the feature information includes a file name, a file size, a file modification time, and a file content description information;
- a file name calculation unit configured to perform a cyclic redundancy check calculation on the file name to obtain a file name CRC value
- a content description information calculation unit configured to perform file summary calculation on the file content description information to obtain content matching information
- Feature information sending unit which is used to include file size, file modification time, file name
- the CRC value and the feature information of the content matching information are transmitted.
- the statistic module includes: a sorting unit, configured to sort the received feature information by a total number of repetitions;
- a deduplication unit configured to perform deduplication operation on the same feature message sent by the same client for each of the same feature information
- the statistics unit is configured to count the number of repetitions of each feature message for each identical feature information after the weight reduction.
- the system API function GetTickCount is called to calculate the scanning time from the start of scanning the file and ending the scanning of the file.
- the method further includes:
- a generating unit configured to store the extracted feature information into a data file, and generate a data packet according to the data file.
- the method before the generating of the data packet, the method further includes:
- the removing unit is configured to receive feature information of the unsecured file sent by the client, and not store the feature information in the data file or delete the feature information in the data packet that is the same as the feature information.
- the feature information of the file is matched to the feature information in the data packet by:
- Matching is done in the cache starting from the most efficient matching feature information.
- the file name and the file modification time match a piece of feature information in the database
- the file name is subjected to the cyclic redundancy check calculation to obtain a file name CRC value, and the file name CRC value is obtained.
- it also includes:
- the reminding module is configured to prompt the first user to select a quick scan when the first scan is performed, and if selected, scan the feature information of the file, and call the data packet to perform matching.
- the method further includes: an update record module, configured to store, in the first user end, the feature information of the security file in the current scan result into the security file information list of the data packet; when the first user end The next scan is performed based on the results of the safety record after the last scan.
- an update record module configured to store, in the first user end, the feature information of the security file in the current scan result into the security file information list of the data packet; when the first user end The next scan is performed based on the results of the safety record after the last scan.
- FIG. 6 is a schematic structural diagram of a file fast scanning system according to an embodiment of the present invention, including: a first user end 610, where the first user end includes:
- the obtaining module S611 is configured to obtain a data packet, where the data packet includes security file feature information used to determine whether the file in the system is a secure file;
- the feature information scanning module S612 is configured to scan the feature information of the file in the system one by one, and match the feature information with the feature information in the data packet; when matching, skip the current file and continue scanning the next file. ; when there is no match, skip the current file and continue Scan the next file and notify the security scanning module to perform a full scan of the file.
- the security scanning module S613 is configured to perform a complete scan on the file that is not matched.
- FIG. 7 there is shown a block diagram of a file fast scanning system in accordance with one embodiment of the present invention, including:
- a first client 710 a second client group 720 and a processing center server 730;
- the first user end includes 710:
- the first user terminal includes:
- the obtaining module S711 is configured to obtain a data packet; the data packet includes security file feature information used to determine whether the file in the system is a secure file.
- the feature information scanning module S712 is configured to scan the feature information of the file in the system by the feature information scanning module, and match the feature information with the security file feature information of the data packet in the data packet as the security file; The file is not scanned for anti-virus. For files that are not matched, the security scan module is notified to perform anti-virus scanning on the file.
- the security scanning module S713 is configured to perform an antivirus scanning on the file that is not matched.
- the processing center server 730 is configured to collect feature information of the security file sent by each client to the processing center server to obtain feature information of the security file;
- the second client group 720 is used for the feature information of the transmitted security file.
- the processing center server includes:
- a feature information module configured to receive feature information of a security file sent by each client; the feature information includes feature information of a file that is determined to be secure when the user scans the file completely; and a statistics module, configured to perform statistics on the same feature information. The number of repetitions;
- each user end of the second user group includes:
- a feature information acquiring unit configured to acquire feature information of the file when the scanned file is secure, where the feature information includes a file name, a file size, a file modification time, and file content description information;
- a file name calculation unit configured to perform a cyclic redundancy check calculation on the file name to obtain a file name CRC value
- a content description information calculation unit configured to perform file summary calculation on the file content description information to obtain content matching information
- the feature information transmitting unit is configured to send the feature information including the file size, the file modification time, the file name CRC value, and the content matching information.
- the statistic module includes: a sorting unit, configured to sort the received feature information by a total number of repetitions;
- a deduplication unit configured to perform a deduplication operation on the same feature message sent by the same client for each of the same feature information
- the statistics unit is configured to count the number of repetitions of each feature message for each identical feature information after the weight reduction.
- the system API function GetTickCount is used to calculate the scan time from the start of scanning the file and ending the scanning of the file, based on the point in time when the file is scanned and when the file is scanned.
- the method further includes:
- a generating unit configured to store the extracted feature information into a data file, and generate a data packet according to the data file.
- the method before the generating of the data packet, the method further includes:
- the removing unit is configured to receive feature information of the unsecured file sent by the client, and not store the feature information in the data file or delete the feature information in the data packet that is the same as the feature information.
- the feature information of the file is matched to the feature information in the data packet by:
- Matching is done in the cache starting from the most efficient matching feature information.
- the file name is subjected to the cyclic redundancy check calculation to obtain a file name CRC value, and the file name CRC value is obtained. Matching the file name CRC value of the piece of feature information;
- the file content description information is calculated by the message digest algorithm to obtain content matching information, and the content matching information and the feature are The content of the information matches the information to match.
- it also includes:
- the reminding module is configured to prompt the first user to select a quick scan when the first scan is performed, and if selected, scan the feature information of the file, and call the data packet to perform matching.
- FIG. 8 there is shown a flow chart of a method for quickly scanning a document according to an embodiment of the present invention, including:
- Step 810 Acquire a data packet; the data packet includes security file feature information used to determine whether a file in the system is a security file.
- Step 820 Scan the file feature information of the file in the system one by one, and match the currently scanned file; if the match, skip the antivirus scan of the current file, and continue scanning the next file; if not, the current file is disinfected. Scan, when the scan time is greater than or equal to the time threshold and is safe, the security file feature information of the file is updated to the data packet.
- an anti-virus scan is performed on malicious code or viruses included in the file content.
- Step S821 the system of the first user side scans the feature information of the file in the system one by one; in step S822, the currently scanned file feature information and the marked file in the data packet are The security file feature information of the security file is matched; if yes, go to step S823, skip the current file, and continue scanning the next file; if not, go to step S824 to perform complete antivirus on the current file.
- Scan when the scan time is greater than or equal to the time threshold and is safe, go to step S825 to update the security file feature information of the file to the data packet.
- step S825 can be obtained by the following steps:
- Step M1 acquiring feature information of the file, where the feature information includes a file name, a file size, a file modification time, and a file content description information;
- Step M2 performing a cyclic redundancy check calculation on the file name to obtain a file name CRC value;
- Step M3 performing file summary description information on the file content description information to obtain content matching information;
- step M4 the file size, the file modification time, the file name CRC value, and the content matching information are included as the security file feature information.
- the specific method from step M1 to step M4 is similar to the aforementioned steps S11 to S14.
- the feature information of the security file may be directly updated into the data packet in the local system, or the feature information of the security file may be sent to the processing center server, where the processing center server According to its rules, it is updated to the data packet corresponding to each application.
- the method further includes: confirming whether the fast scan is selected, and if yes, scanning the feature information of the file, and calling the data packet to perform matching.
- the first user can select to perform a quick scan or a complete scan of the file. If a fast scan is selected, the feature information of the file can be scanned, and the data packet is called to match to match the feature information. When the feature information of the file matches the feature information in the data packet, the current file is skipped and the next file is scanned.
- the first user when scanning for the first time, the first user may be prompted whether to select a quick scan, if selected, the feature information of the file is scanned, and the data packet is called for matching.
- the first user If the first user chooses to perform a fast scan, the first user first obtains the feature information of the first client file for matching when scanning, without scanning the entire content of the file.
- FIG. 9 a flow diagram of a method of generating a data packet in accordance with one embodiment of the present invention is shown, including:
- Step 910 Receive feature information of a security file sent by each client.
- the feature information includes a scan time of the file greater than or equal to a time threshold when the client scans the file completely.
- the characteristic information of the secure file is not limited to a time threshold when the client scans the file completely.
- the complete scan performs an antivirus scan for the entire content of each file in the client system.
- Step 920 Count the number of repetitions for the same feature information.
- Step 930 Extract feature information whose repetition number is greater than or equal to the number threshold.
- Step 940 Store the extracted feature information into a data file, and generate a data packet according to the data file.
- the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
- a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the device in accordance with embodiments of the present invention.
- the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
- a program implementing the present invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
- FIG. 10 illustrates a server, such as an application server, that can implement the file fast scanning method in accordance with the present invention.
- the server conventionally includes a processor 1100 and a computer program product or computer readable medium in the form of a memory 1200.
- Memory 1200 can be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
- Memory 1200 has a memory space 1300 for program code 1310 for performing any of the method steps described above.
- storage space 1300 for program code may include various program code 1310 for implementing various steps in the above methods, respectively.
- the program code can be read from or written to one or more computer program products.
- Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
- Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
- the storage unit may have a storage section, a storage space, and the like arranged similarly to the storage 1200 in the server of FIG.
- the program code can be compressed, for example, in an appropriate form.
- the storage unit includes computer readable code 1310', ie, code that can be read by, for example, a processor such as 1100, which when executed by the server causes the server to perform the operations described above The various steps in the method.
- an embodiment or “one or more embodiments” as used herein means that the particular features, structures, or characteristics described in connection with the embodiments are included in at least one embodiment of the invention.
- the phrase “in one embodiment” herein does not necessarily refer to the same embodiment.
- any reference signs placed between parentheses shall not be construed as a limitation.
- the word “comprising” does not exclude the presence of the elements or steps that are not in the claims.
- the word “a” or “an” preceding a component does not exclude the presence of a plurality of such elements.
- the invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item.
- the use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Virology (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Transfer Between Computers (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
文件快速扫描方法和系统 技术领域
本发明涉及网络技术领域, 特别是涉及一种文件快速扫描方法和系 统。 背景技术
随着计算机的普及, 用户端基本上都需要安装杀毒软件对计算机内 的文件进行扫描。 在杀毒软件进行扫描时, 需要大量的 CPU运算和磁盘 操作, 使得扫描过程漫长而且影响系统速度。 而对于计算机里的文件, 有很多文件都是相同的, 比如 Windows的文件, 很多软件的安装包文件, 帮助文件, 压缩文件等。
现有技术中, 用户端的杀毒软件第一次扫描时会全盘扫描计算机内 的所有文件, 并且会扫描文件中的各种内容, 如果对于包括内容比较大 的文件, 其扫描的时间耗费的相当多, 从而导致第一次扫描的时间非常 的长。 比如对于压缩包, 现有技术会按照正常的扫描流程将压缩包中的 内容解压逐个进行扫描, 以保证文件是安全的, 这样对于一个压缩包来 说, 现有技术的扫描时间比较长, 从而延长了整个扫描的时间, 而对于 用户来说, 由于长时间的扫描而长时间占用的 CPU运算和磁盘操作影响 了系统的速度, 从而影响的用户对计算机的使用。
另外, 通常杀毒软件会对上次扫描的安全文件记录进入白名单, 然 后在下一次扫描时, 逐个对当前文件与白名单中文件进行匹配; 如果匹 配上, 则跳过当前文件, 进入下一个文件扫描过程; 如果未匹配上, 则 对该未匹配上的文件的全部内容进行完整扫描, 扫描完毕后再进入下一 个文件扫描过程。 在这个过程中, 需要对上一个文件进行匹配或者完整 扫描后才能对下一个文件进行匹配和扫描过程, 下一个文件的等待时间 比较长, 导致整个杀毒软件对整个系统文件的扫描时间比较长的问题。 发明内容
鉴于上述问题, 提出了本发明以便提供一种克服上述问题或者至少 部分地解决或者减緩上述问题的文件快速扫描方法和系统。
根据本发明的一个方面, 提供了一种文件快速扫描方法, 其包括获 取数据包; 所述数据包包括用于确定系统中文件是否为安全文件的安全
文件 征信息; 逐个扫描系统中文件的文件特征信息, 若当前 描的文 配时, 则跳过对当前文件的杀毒扫描, 继续扫描下一个文件。
根据本发明的另一个方面, 提供了一种文件快速扫描系统, 其包括: 第一用户端, 所述第一用户端包括:
获取模块, 用于获取数据包; 所述数据包包括用于确定系统中文件 是否为安全文件的安全文件特征信息;
扫描匹配模块, 用于逐个扫描系统中文件的文件特征信息, 若当前 扫描的文件特征信息与所述数据包中标示文件为安全文件的安全文件特 征信息匹配时, 则跳过对当前文件的杀毒扫描, 继续扫描下一个文件。
根据本发明的又一个方面, 提供了一种计算机程序, 其包括计算机 可读代码, 当所述计算机可读代码在服务器上运行时, 导致所述服务器 执行根据权利要求 1-11中的任一个所述的方法。
根据本发明的再一个方面, 提供了一种计算机可读介质, 其中存储 了如权利要求 24所述的计算机程序。
本发明的有益效果为:
首先, 本公开内容通过利用包括用于确定系统中文件是否为安全文 件的安全文件特征信息的数据包, 新的用户在第一次扫描时, 如果扫描 到与所述数据包中特征信息相同的文件时就可以跳过其代表的时间长、 并且安全的文件, 可减少首次扫描的时间。
其次, 本公开内容通过设置两个扫描模块, 其中特征信息扫描模块 用于将第一用户端系统的文件的特征信息与数据包中安全文件的特征信 息进行匹配, 如果第一用户端系统的文件的特征信息未与数据包中安全 文件的特征信息匹配上, 则通知安全扫描模块对该文件的进行完整扫描, 而特征信息扫描模块继续扫描下一个文件。 通过上述方式, 使第一用户 端对于文件的特征信息的匹配过程和完整扫描过程相分离, 上一个未匹 配上的文件的扫描不会影响下一个文件的匹配, 这样节省了其中的等待 时间, 从而加快了文件的扫描速度。
上述说明仅是本发明技术方案的概述, 为了能够更清楚了解本发明 的技术手段, 而可依照说明书的内容予以实施, 并且为了让本发明的上 述和其它目的、 特征和优点能够更明显易懂, 以下特举本发明的具体实 施方式。 附图说明
通过阅读下文优选实施方式的详细描述, 各种其他的优点和益处对 于本领域普通技术人员将变得清楚明了。 附图仅用于示出优选实施方式 的目的, 而并不认为是对本发明的限制。 而且在整个附图中, 用相同的 参考符号表示相同的部件。 在附图中:
图 1是依据本发明一个实施例的文件快速扫描方法的流程示意图; 图 2是依据本发明一个实施例的数据包生成方法的流程示意图; 图 3是依据本发明一个实施例的压缩包头部数据的示例;
图 4是依据本发明一个实施例的文件快速扫描系统的结构示意图; 图 5是依据本发明一个实施例的文件快速扫描系统的结构示意图; 图 6是依据本发明一个实施例的文件快速扫描系统的结构示意图; 图 7是依据本发明一个实施例的文件快速扫描系统的结构示意图; 图 8是依据本发明一个实施例的文件快速扫描方法的流程示意图; 图 9是依据本发明一个实施例的数据包生成方法的流程示意图; 图 10示意性地示出了用于执行根据本发明的方法的服务器的框图; 以及
图 11示意性地示出了用于保持或者携带实现根据本发明的方法的程 序代码的存储单元。 具体实施例
下面结合附图和具体的实施方式对本发明作进一步的描述。
在实际中, 对于处于一定数量级(比如 105 )以上的用户端来说, 如 果在该数量级以上的用户端都对具有同样的特征 (比如包括文件名、 文 件大小、 文件修改时间、 文件内容描述信息、 内容信息等) 的文件进行 扫描时, 如果该种文件是安全的, 那么其他用户在使用具有同样特征的 文件基本上也是安全的。 本申请即根据该种特性统计巨量用户对完整扫 描耗时比较长, 并且安全的文件的特信息, 然后基于所述特征信息生成 待匹配的数据包 (升级补丁等) , 用户在使用所述数据包后, 可扫描文 件的特征信息与所述数据包中的特征信息进行匹配, 如果匹配上, 那么 即可跳过这些正常扫描时间比较长的文件, 从而可达到节省扫描时间的 目的。
参照图 1 , 其示出了本申请一种文件快速扫描方法的流程示意图, 包 括:
步骤 110 , 获取数据包; 所述数据包包括用于确定系统中文件是否为
安全文件的安全文件特征信息。
新的用户端首先获取包括安全特征信息的数据包, 然后新的用户端 则可根据该数据包进行扫描, 以节省第一次扫描的时间。 其中新的用户 端在本申请中釆用第一用户端进行描述, 所述第一用户端主要包括未安 装杀毒软件的用户端和安装过杀毒软件但未进行过全盘文件扫描的用户 端, 还可以包括安装过杀毒软件并且进行过全盘文件扫描的用户端, 但 在最近一次进行全盘文件扫描后用户端中出现了新的未扫描过的文件的 用户端。
第一用户端可通过安装存入所述数据包的安装包, 或者将已安装的 杀毒软件升级获取所述的数据包。 在实际中, 第一用户端可能完全没有 进行过扫描, 也可能在使用过程中可能会获取到很多新的文件, 而这些 文件用户端也可能没有进行完整扫描, 当该用户端想进行快速扫描时, 则可通过本申请的数据包进行。
其中, 所述数据包中的确定系统中文件为安全文件的特征信息可通 过统计各用户端的完整扫描结果获得。 比如, 对于多个用户进行完整扫 描的结果, 对于在各用户端中具有相同特征信息 (比如文件大小、 文件 修改时间、 文件名 CRC值和内容匹配信息等特征信息) 的文件, 如果各 用户端对该文件的扫描结果均安全, 那么即可将该特征信息存入所述数 据包, 用于确定系统中具有该特征信息的文件为安全文件。
任选地, 所述特征信息通过统计各用户端发送到处理中心服务器中 的安全文件特征信息获得。 即对于各用户端进行完整扫描得到的确认安 全的文件的特征信息, 处理中心服务器自动对其进行统计和分析, 可将 大于一定数量阔值的特征信息生成相应的数据包。 在本申请中, 首先需 要生成数据包, 参照图 2 , 示出了依据本发明一个实施例的数据包生成方 法的流程示意图, 包括:
步骤 210 , 接收各用户端发送的安全文件的特征信息; 所述特征信息 包括用户端完整扫描文件时, 确定安全的文件的特征信息。
在实际中, 存在第二用户端群, 其中包括了大量用户端, 这些用户 端都都可将对自己系统中的文件进行完整扫描后的符合条件的特征信息 发送至处理中心服务器中。 即当第二用户端群的各用户端选择完整扫描 其计算机中的文件时, 会将扫描耗时大于或大于等于一定时间阔值的安 全文件的特征信息发送到处理中心服务器。
在实际中, 本申请通过对巨量的用户端扫描正常的扫描耗时较长的
文件的特征信息进行统计, 然后基于大于或大于等于阔值的对应文件的 特征信息生成待匹配的数据包, 然后新的用户在第一次扫描时, 如果扫 描到与所述数据包中特征信息相同的文件时就可以跳过其代表的时间 长、 并且安全的文件, 可减少首次扫描的时间。
任选地, 在用户端完整扫描文件时:
所述的完整扫描为用户端系统中各文件的全部内容进行杀毒扫描。 步骤 S11 , 当所述扫描的文件安全时, 获取文件的特征信息, 所述特 征信息包括文件名、 文件大小、 文件修改时间和文件内容描述信息。
用户端选择完整扫描文件时, 扫描引擎逐个扫描用户端计算机中的 各个文件, 对于很多文件, 比如对于压缩包, 扫描引擎需要按照压缩包 的要求在引擎中先解压, 再对压缩包中的包括的各个文件进行杀毒扫描, 一般情况下, 这种扫描方式需要的时间相当的多; 又比如对于软件的安 装包, 扫描引擎也需要将安装包中的信息解压出来再进行扫描, 同样需 要耗费相当多的时间。 那么当用户端扫描整个文件花费的时间大于或者 大于等于阈值时, 则可获取当前文件的特征信息所述特征信息包括文件 名、 文件大小、 文件修改时间和文件内容描述信息, 所述特征信息包括 文件名、 文件大小、 文件修改时间和文件内容描述信息。
当所述扫描时间大于或大于等于时间阔值并安全时, 获取文件的特 征信息, 所述特征信息包括文件名、 文件大小、 文件修改时间和文件内 容描述信息。 其中, 计算用户端对于一个文件的扫描时间时, 可根据开 始扫描文件时和结束扫描文件时的时间点, 调用系统 API函数
GetTickCount计算从开始扫描文件和结束扫描文件时的扫描时间。 比如 开始扫描文件时间点为, 2012年 1月 17 日星期二 21时 50分 30秒和 00 毫秒, 结束扫描文件时时间点为 2012年 1月 17 日星期二 21时 51分 30 秒和 00毫秒, 那么用户端对于当前文件的扫描时间即为 1分钟。 如果设 置时间阔值为 30秒, 那么对于该文件来说, 用户端即获取该文件的特征 信息, 包括文件名、 文件大小、 文件修改时间和文件内容描述信息。
其中文件内容描述信息只占整个文件的很小一部分, 当用户端扫描 文件内容描述信息部分时, 所耗费时间远远小于扫描整个文件的时间。 比如对于压缩文件, 其文件内容描述信息在压缩包头部数据中, 扫描时 可根据头部数据告知的当前文件内容描述信息占用的字节数, 用户端只 需要扫描当前文件头部数据所在字节地址空间即可, 参照图 3 , 其为一种 压缩包的头部数据示例, 在压缩包的头部数据中描述了压缩包内的文件
信息 (文件名、 大小、 数据校验值等) , 只要这些关键数据没有变化, 就说明压缩包内容没有变化。 又比如对于软件的安装包, 内容描述信息 在安装包的尾部数据中, 扫描时可根据文件告知的尾部数据占用的字节 数, 扫描相应字节地址空间即可。
步骤 S12 , 将文件名进行循环冗余码校验计算, 得到文件名 CRC值。 由于文件名涉及用户的隐私, 本申请将文件名作一个循环冗余码校 验(CRC, Cyclical Redundancy Check ) 计算, 得到一个无可读性的文件 名 CRC值。
步骤 S13 , 将文件内容描述信息进行消息摘要算法计算, 得到内容匹 配信息。
对于文件内容描述信息, 相对整个文件来说, 文件内容描述信息虽 然很小, 但是如果以文件内容描述信息本身去进行匹配, 则可能由于文 件内容描述信息庞大而导致时间相对较多, 本申请则将文件内容描述信 息进行消息摘要算法( Message-Digest Algorithm )计算, 得到内容匹配信 息, 一般本申请进行 MD5 ( Message-Digest Algorithm 5 , 消息摘要算法 第五版) 计算, 得到的内容匹配信息为 MD5值, 通过 MD5值进行匹配 时能大大减少匹配时间, 保证快速的对比匹配, 同时也保证了文件的安 全性。
步骤 S14 , 将包括文件大小、 文件修改时间、 文件名 CRC值和内容 匹配信息的特征信息进行发送。
在得到上述的包括文件大小、 文件修改时间、 文件名 CRC值和内容 匹配信息的特征信息之后, 即可将所述特征信息发送至处理中心服务器, 等待处理中心服务器处理。
本申请的应用环境包括了提供杀毒软件相关安装包, 升级包等数据 的处理中心服务器, 大量的通过网络语处理中心服务器连接的用户端, 因此对于在线用户对文件进行的完整扫描工作, 均可进行上述步骤。
步骤 220 , 对于相同的特征信息, 统计其重复次数。
在本步骤中, 处理中心服务器会对收到的数据进行去重运算, 即将 相同客户端发送的多个具有相同特征信息的数据去重, 使其次数为 1. 任选地, 对于相同的特征信息, 统计其重复次数:
S21 , 将接收的特征信息按总重复次数进行排序。
首先将接收到的特征信息按总重复次数进行排序, 比如对于对应某 些用户端文件的特征信息(m,100kb, 2012/l/l l/21 :50:30: 10,n )其中 m为
文件名 CRC值, n为文件内容描述信息的内容匹配信息即 MD5值, 相应 的每条特征信息对应一个发送该信息的用户端, 比如以对用户端 A, 其 发送到处理中心服务器的信息可以 A-( m, 1 OOkb , 2012/1/11/21: 50: 30: 10,η ) 的形式表明。 将处理中心服务器接收到的所有条具有相同 (A,100kb, 2012/1/11/21 :50:30: 10,B ) 统计其重复总次数, 然后根据统计总次数进行 排序。 在该次统计排序的过程中, 能方便的找出相同用户端发送的具有 相同特征信息的数据。
S22, 对于各相同特征信息, 将属于同一个用户端发送的相同特征消 息进行消重运算。
对于同一个客户端发送的多个具有相同特征信息的数据, 比如客户 端 A发送特征信息为 ( m,100kb, 2012/l/l l/21 :50:30: 10,n )有 10条, 那 么将其去重, 使处理中心将该用户端重复发送的 (m,100kb,
2012/l/l l/21 :50:30: 10,n ) 特征信息记为 1次。 如此可以保证对于某个特 征信息进行统计时用户数量的准确性, 保证本申请的有效性。
S23 , 针对消重后的各相同特征信息, 统计各特征消息的重复次数。 再去重后, 可统计各特征消息的重复次数, 该次数与扫描得到该特 征信息的用户端数量一致。
本申请还可通过其他方法进行消重运算, 统计各个文件特征信息的 重复次数, 对此本申请不对其加以限制。
步骤 230 , 提取重复次数大于或大于等于数量阔值的特征信息。
在得到特征信息的重复次数以后, 将重复次数与数量阔值进行比较, 如果所述重复次数大于阔值, 则将其存入数据文件。 比如对于前述
( m,100kb, 2012/l/l l/21 :50:30: 10,n ) 特征信息的重复次数为 15万, 而 阔值设置为 10万, 那么可将该特征信息数据提取。
步骤 240 , 将所述提取出来的特征信息存入数据文件, 并依据所述数 据文件生成数据包。
在本申请中数据文件可以中的数据可以列表的形式存在, 每条特征 信息包括多个维度, 比如对于 ( m,100kb, 2012/l/l l/21 :50:30: 10,n ) , 则 列表中该条特征信息包括四个维度, 分别为文件大小、 文件修改时间、 文件名 CRC值和内容匹配信息。 然后在后续扫描匹配时以此四个维度进 行匹配。
对于生成的数据文件, 可以打包到杀毒软件的安装包, 也可以生成 升级补丁的形式。
另外, 在所述数据包生成之前还包括:
步骤 S210 , 接收用户端发送的不安全文件的特征信息, 不将该特征 信息存入数据文件或者将数据包中与该特征信息相同的特征信息进行删 除。
用户端对于完整扫描时间大于阔值的出现了病毒的文件, 也会将该 不安全文件的特征信息标记为不安全, 再发送至处理中心服务器中, 处 理中心服务器对于具有该特征信息的所有条数据可均不进行处理, 也不 存入数据文件。 比如有 5万个用户端发送了前述(m,100kb ,
2012/l/l l/21 :50:30: 10,n ) 特征信息的数据, 但其中一个用户端发送的该 特征信息的数据标识为不安全, 即发现病毒, 则处理中心服务器则可不 对具有 ( m,100kb , 2012/l/l l/21 :50:30: 10,n ) 特征信息的数据进行处理, 不将包括(m,100kb , 2012/l/l l/21 :50:30: 10,n )的特征信息存入数据包中。
另外, 在实际中, 处理中心服务器在对各用户端发送的特征信息进 行统计时, 一般以一定时间长度为周期进行统计, 并在对该周期的统计 结果生成安全文件的特性信息的数据包。 比如处理中心服务器以天为时 间单位对各用户端发送的特征信息数据进行统计, 然后生成数据包, 可 提供给下一周期的第一用户端使用。
步骤 120 , 逐个扫描系统中文件的文件特征信息, 若当前扫描的文件 时, 则跳过对当前文件的杀毒扫描, 继续扫描下一个文件。
比如对文件内容中包括的恶意代码或者病毒等进行杀毒扫描。
在获取到所述数据后, 则可进行快速扫描:
步骤 S121 , 第一用户端的系统逐个扫描系统中文件的特征信息; 步骤 S122 , 将当前扫描的文件特征信息与所述数据包中标示文件为 安全文件的安全文件特征信息进行匹配; 若匹配时, 则转入步骤 S123 , 跳过当前的文件, 继续扫描下一个文件; 若不匹配时, 则转入步骤 S124 , 对当前文件进行完整的杀毒扫描, 即扫描当前文件的所有内容。
在实际中, 在第一用户端进行扫描之前还包括: 确认是否选择快速 扫描, 如果是, 则扫描文件的特征信息, 并调用所述数据包进行匹配。
即第一用户端可以选择进行快速扫描或者是对文件的完整扫描, 如 果选择快速扫描, 则可扫描文件的特征信息, 并调用所述数据包进行匹 配进行特征信息的匹配。 当所述文件的特征信息与所述数据包中的特征 信息匹配时, 则跳过当前文件, 继续扫描下一个文件。
在本申请中, 当第一次扫描时, 可提示第一用户端是否选择快速扫 描, 如果选择则扫描文件的特征信息, 并调用所述数据包进行匹配。
如果第一用户端选择进行快速扫描, 那么第一用户端在扫描时则首 先获取第一用户端文件的特征信息进行匹配, 而不用扫描文件的全部内 容。
在第一用户端将所述文件的特征信息与所述数据包中的特征信息进 行匹配时:
在緩存中从匹配效率最高的特征信息开始进行匹配。
由于数据包中特征信息是多维的, 在判定是否匹配时, 可以从效率 最高的数据开始比较, 比如不需要进行而外计算的维度, 例如文件大小 和文件修改时间, 因为文件大小和修改时间是在遍历文件时即可获得的 系统数据, 不需要额外的运算, 那么如此操作可以提高预置緩存的比较 匹配的效率。
任选地, 在匹配时:
步骤 S31 , 当文件大小和文件修改时间与数据库中的一条特征信息匹 配时, 则将文件名进行所述循环冗余码校验计算, 得到文件名 CRC值, 并将所述文件名 CRC值与该条特征信息的文件名 CRC值进行匹配。 其 中, 文件名的 CRC运算是内存操作, 数据量很小。
在匹配时, 首先从匹配效率较高的维度进行匹配, 对于数据包中一 条特征信息维度中, 文件大小和文件修改时间不需要进行额外计算, 可 直接进行匹配, 那么当用户端扫描时, 对于获取到的特征信息的文件大 小和文件爹改时间 , 比如可首先比较文件大小 , 在比较文件爹改时间。 若当前扫描的文件的文件大小和文件修改时间相同时, 则比较计算量相 对较小的维度, 比如通过 CRC运算计算文件名 CRC值, 然后将所述文 件名 CRC值与该条特征信息的文件名 CRC值进行匹配, 如果未匹配上, 则进入完整扫描, 如果匹配上, 则进入计算量相对较多的维度进行匹配, 比如转入步骤 S32。
步骤 S32 , 当所述文件名 CRC值与该条特征信息的文件名 CRC值匹 配时, 则将文件内容描述信息进行所述消息摘要算法计算, 得到内容匹 配信息, 并将所述内容匹配信息与该条特征信息的内容匹配信息进行匹 西己。
当文件大小, 文件爹改时间和文件名 CRC值都匹配上时, 则将文件 内容描述信息进行消息摘要算法计算, 一般是进行 MD5计算, 得到文件
内容匹配信息, 则将所述内容匹配信息与该条特征信息的内容匹配信息 进行匹配, 当匹配上, 则跳过当前的文件, 转入扫描下一个文件。
在本申请中, 匹配时, 如果对于特征信息中, 有一个维度未匹配上, 即表示该文件未匹配上, 即可将该文件进行杀毒扫描。 比如前述的特征 信息的四个维度: 文件大小, 文件修改时间, 文件名 CRC值和内容匹配 信息, 该四个维度的匹配顺序为: 1、 文件大小, 2、 文件爹改时间, 3、 文件名 CRC值 4、 内容匹配信息; 那么如果一个将文件 A的文件大小与 数据包中的特征信息的第一维度, 即文件大小进行匹配时未匹配上时, 可不用进行 2、 3和 4维度的匹配, 即可文件 A需要进行杀毒扫描; 如果 文件 A的文件大小匹配上, 再将文件 A的文件^ ί'爹改时间与数据包中的该 条特征信息的第 2维度, 即文件修改时间进行匹配时未匹配上, 那么可 不用进行 3和 4维度的匹配, 即可将文件 Α进行杀毒扫描。 其他情况可 以依此类推。
另外, 在每次扫描时, 任选地, 在第一用户端进行扫描时, 将当次 扫描结果中安全文件的特征信息存入所述数据包的安全文件信息列表; 当第一用户端下一次进行扫描时根据上一次扫描后的记录进行扫描。
在第一用户端结合当前的数据包进行扫描时, 对于特征信息未包含 在数据包中的文件, 如果当次检测安全, 则可将其该安全文件的特征信 息存入数据包的安全文件信息列表中, 当第一用户端进行下一次扫描时, 可根据上一次的扫描结果更为快速的进行扫描。 另外, 当用户端对各文 件进行完整扫描时, 如果检测到某个文件不安全, 但该文件的特征信息 又在数据包中, 则可将其从数据包中的安全文件信息列表中删除。
相应的, 参照图 4 , 本申请还公开了一种文件快速扫描系统的结构示 意图, 包括:
第一用户端 410 , 所述第一用户端包括:
获取模块 S411 , 用于获取数据包; 所述数据包包括用于确定系统中 文件是否为安全文件的安全文件特征信息;
扫描匹配模块 S412 , 用于逐个扫描系统中文件的文件特征信息, 若 当前扫描的文件特征信息与所述数据包中标示文件为安全文件的安全文 件特征信息匹配时, 则跳过对当前文件的杀毒扫描, 继续扫描下一个文 件。
参照图 5 ,其示出了依据本发明一个实施例的文件快速扫描系统的结 构示意图, 包括:
第一用户端 510 , 第二用户端群 520和处理中心服务器 530;
所述第一用户端包括 510:
获取模块 S511 , 用于获取数据包; 所述数据包包括用于确定系统中 文件是否为安全文件的安全文件特征信息;
扫描匹配模块 S512 , 用于逐个扫描系统中文件的文件特征信息, 若 当前扫描的文件特征信息与所述数据包中标示文件为安全文件的安全文 件特征信息匹配时, 则跳过对当前文件的杀毒扫描, 继续扫描下一个文 件;
所述处理中心服务器 530用于统计各用户端发送到处理中心服务器 中的安全文件特征信息获得所述数据包中的特征信息;
所述第二用户端群 520用于发送的安全文件的特征信息。
任选地, 所述的处理中心服务器包括:
特征信息模块, 用于接收各用户端发送的安全文件的特征信息; 所 述特征信息包括用户端完整扫描文件时, 确定安全的文件的特征信息; 统计模块, 用于对于相同的特征信息, 统计其重复次数;
提取模块, 用于提取重复次数大于或大于等于数量阔值的特征信息。 任选地, 所述第二用户端群的各用户端包括:
特征信息获取单元, 用于当扫描的文件安全时, 获取文件的特征信 息, 所述特征信息包括文件名、 文件大小、 文件修改时间和文件内容描 述信息;
文件名计算单元, 用于将文件名进行循环冗余码校验计算, 得到文 件名 CRC值;
内容描述信息计算单元, 用于将文件内容描述信息进行消息摘要算 法计算, 得到内容匹配信息;
特征信息发送单元, 用于将包括文件大小、 文件修改时间、 文件名
CRC值和内容匹配信息的特征信息进行发送。
任选地, 所述统计模块包括: 排序单元, 用于将接收的特征信息按总重 复次数进行排序;
消重单元, 用于对于各相同特征信息, 将属于同一个用户端发送的 相同特征消息进行消重运算;
统计单元, 用于针对消重后的各相同特征信息, 统计各特征消息的 重复次数。
任选地, 在用户端完整扫描文件时:
根据开始扫描文件时和结束扫描文件时的时间点, 调用系统 API函 数 GetTickCount计算从开始扫描文件和结束扫描文件时的扫描时间。
任选地, 在提取模块之后还包括:
生成单元, 用于将所述提取出来的特征信息存入数据文件, 并依据 所述数据文件生成数据包。
任选地, 在所述数据包生成之前还包括:
去除单元, 用于接收用户端发送的不安全文件的特征信息, 不将该 特征信息存入数据文件或者将数据包中与该特征信息相同的特征信息进 行删除。
任选地, 通过如下方法将所述文件的特征信息与所述数据包中的特 征信息进行匹配:
在緩存中从匹配效率最高的特征信息开始进行匹配。
任选地, 当文件大小和文件修改时间与数据库中的一条特征信息匹 配时, 则将文件名进行所述循环冗余码校验计算, 得到文件名 CRC值, 并将所述文件名 CRC值与该条特征信息的文件名 CRC值进行匹配; 当所述文件名 CRC值与该条特征信息的文件名 CRC值匹配时, 则 将文件内容描述信息进行所述消息摘要算法计算, 得到内容匹配信息, 并将所述内容匹配信息与该条特征信息的内容匹配信息进行匹配。
任选地, 还包括:
提醒模块, 用于当第一次扫描时, 提示第一用户端是否选择快速扫 描, 如果选择则扫描文件的特征信息, 并调用所述数据包进行匹配。
任选地, 还包括: 更新记录模块, 用于在第一用户端进行扫描时, 将当次扫描结果中安全文件的特征信息存入所述数据包的安全文件信息 列表; 当第一用户端下一次进行扫描时根据上一次扫描后的安全记录结 果进行扫描。
对于系统实施例而言, 由于其与方法实施例基本相似, 所以描述的 比较简单, 相关之处参见方法实施例的部分说明即可。
参照图 6 ,其示出了依据本发明的一个实施例的文件快速扫描系统的 结构示意图, 包括: 第一用户端 610 , 所述第一用户端包括:
获取模块 S611 , 用于获取数据包; 所述数据包包括用于确定系统中 文件是否为安全文件的安全文件特征信息;
特征信息扫描模块 S612 , 用于逐个扫描系统中文件的特征信息, 并 将所述特征信息与所述数据包中的特征信息进行匹配; 当匹配上时, 跳 过当前文件,继续扫描下一个文件; 当未匹配上时, 第跳过当前文件,继续
扫描下一个文件, 并通知安全扫描模块对该文件进行完整扫描。
安全扫描模块 S613 , 用于对于未匹配上的文件, 对该文件进行完整 扫描。
参照图 7 ,其示出了依据本发明一个实施例的文件快速扫描系统的结 构示意图, 包括:
第一用户端 710 , 第二用户端群 720和处理中心服务器 730;
所述第一用户端包括 710:
所述第一用户端包括:
获取模块 S711 , 用于获取数据包; 所述数据包包括用于确定系统中 文件是否为安全文件的安全文件特征信息。
特征信息扫描模块 S712 , 用于特征信息扫描模块扫描系统中文件的 特征信息, 并将所述特征信息与所述数据包中标示文件为安全文件的安 全文件特征信息进行匹配; 对于匹配上的文件, 不对该文件进行杀毒扫 描, 对于未匹配上的文件, 通知安全扫描模块对该文件进行的杀毒扫描。
安全扫描模块 S713 , 用于用于对于未匹配上的文件, 对该文件进行 杀毒扫描。
所述处理中心服务器 730用于统计各用户端发送到处理中心服务器 中的安全文件特征信息获得所述安全文件的特征信息;
所述第二用户端群 720用于发送的安全文件的特征信息。
任选地, 所述的处理中心服务器包括:
特征信息模块, 用于接收各用户端发送的安全文件的特征信息; 所 述特征信息包括用户端完整扫描文件时, 确定安全的文件的特征信息; 统计模块, 用于对于相同的特征信息, 统计其重复次数;
提取模块, 用于提取重复次数大于或大于等于数量阔值的特征信息。 任选地, 所述第二用户端群的各用户端包括:
特征信息获取单元, 用于当所述扫描的文件安全时, 获取文件的特 征信息, 所述特征信息包括文件名、 文件大小、 文件修改时间和文件内 容描述信息;
文件名计算单元, 用于将文件名进行循环冗余码校验计算, 得到文 件名 CRC值;
内容描述信息计算单元, 用于将文件内容描述信息进行消息摘要算 法计算, 得到内容匹配信息;
特征信息发送单元, 用于将包括文件大小、 文件修改时间、 文件名 CRC值和内容匹配信息的特征信息进行发送。
任选地, 所述统计模块包括: 排序单元, 用于将接收的特征信息按 总重复次数进行排序;
消重单元, 用于对于各相同特征信息, 将属于同一个用户端发送的 相同特征消息进行消重运算;
统计单元, 用于针对消重后的各相同特征信息, 统计各特征消息的 重复次数。
任选地, 在用户端完整扫描文件时:
根据开始扫描文件时和结束扫描文件时的时间点, 调用系统 API函 数 GetTickCount计算从开始扫描文件和结束扫描文件时的扫描时间。
任选地, 在提取模块之后还包括:
生成单元, 用于将所述提取出来的特征信息存入数据文件, 并依据 所述数据文件生成数据包。
任选地, 在所述数据包生成之前还包括:
去除单元, 用于接收用户端发送的不安全文件的特征信息, 不将该 特征信息存入数据文件或者将数据包中与该特征信息相同的特征信息进 行删除。
任选地, 通过如下方法将所述文件的特征信息与所述数据包中的特 征信息进行匹配:
在緩存中从匹配效率最高的特征信息开始进行匹配。
任选地, 当文件大小和文件修改时间与数据库中的一条特征信息匹 配时, 则将文件名进行所述循环冗余码校验计算, 得到文件名 CRC值, 并将所述文件名 CRC值与该条特征信息的文件名 CRC值进行匹配;
当所述文件名 CRC值与该条特征信息的文件名 CRC值匹配时, 则 将文件内容描述信息进行所述消息摘要算法计算, 得到内容匹配信息, 并将所述内容匹配信息与该条特征信息的内容匹配信息进行匹配。
任选地, 还包括:
提醒模块, 用于当第一次扫描时, 提示第一用户端是否选择快速扫 描, 如果选择则扫描文件的特征信息, 并调用所述数据包进行匹配。
参照图 8 ,其示出了依据本发明的一个实施例的文件快速扫描方法的 流程示意图, 包括:
步骤 810 , 获取数据包; 所述数据包包括用于确定系统中文件是否为 安全文件的安全文件特征信息。
步骤 820 , 逐个扫描系统中文件的文件特征信息, 将当前扫描的文件 匹配; 若匹配时, 则跳过对当前文件的杀毒扫描, 继续扫描下一个文件; 若未匹配时, 对当前文件进行杀毒扫描, 当扫描时间大于或大于等于时 间阔值并且安全时, 将该文件的安全文件特征信息更新至数据包。
比如对文件内容中包括的恶意代码或者病毒等进行杀毒扫描。
在获取到所述数据后, 则可进行快速扫描:
步骤 S821 , 第一用户端的系统逐个扫描系统中文件的特征信息; 步骤 S822 , 将当前扫描的文件特征信息与所述数据包中标示文件为
安全文件的安全文件特征信息进行匹配; 若匹配时, 则转入步骤 S823 , 跳过当前的文件, 继续扫描下一个文件; 若不匹配时, 则转入步骤 S824, 对当前文件进行完整的杀毒扫描, 当扫描时间大于或大于等于时间阔值 并且安全时, 转入步骤 S825 , 将该文件的安全文件特征信息更新至数据 包。
在实际中, 步骤 S825中的特征信息可通过如下步骤获得:
步骤 Ml , 获取文件的特征信息, 所述特征信息包括文件名、 文件大 小、 文件修改时间和文件内容描述信息;
步骤 M2 , 将文件名进行循环冗余码校验计算, 得到文件名 CRC值; 步骤 M3 , 将文件内容描述信息进行消息摘要算法计算, 得到内容匹 配信息;
步骤 M4 , 将包括文件大小、 文件修改时间、 文件名 CRC值和内容 匹配信息的作为安全文件特征信息。步骤 Ml至步骤 M4具体方法与前述 步骤 S11至 S14相似。
其中, 更新数据包的过程中, 可直接将所述安全文件的特征信息更 新至本地系统中的数据包中, 也可将所述安全文件的特征信息发送至处 理中心服务器中, 由处理中心服务器根据其规则更新至对应各应用端的 数据包中。
在实际中, 在第一用户端进行扫描之前还包括: 确认是否选择快速 扫描, 如果是, 则扫描文件的特征信息, 并调用所述数据包进行匹配。
即第一用户端可以选择进行快速扫描或者是对文件的完整扫描, 如 果选择快速扫描, 则可扫描文件的特征信息, 并调用所述数据包进行匹 配进行特征信息的匹配。 当所述文件的特征信息与所述数据包中的特征 信息匹配时, 则跳过当前文件, 继续扫描下一个文件。
在本申请中, 当第一次扫描时, 可提示第一用户端是否选择快速扫 描, 如果选择则扫描文件的特征信息, 并调用所述数据包进行匹配。
如果第一用户端选择进行快速扫描, 那么第一用户端在扫描时则首 先获取第一用户端文件的特征信息进行匹配, 而不用扫描文件的全部内 容。
参照图 9 ,示出了依据本发明一个实施例的数据包生成方法的流程示 意图, 包括:
步骤 910 , 接收各用户端发送的安全文件的特征信息; 所述特征信息 包括用户端完整扫描文件时, 文件的扫描时间大于或大于等于时间阔值
的安全的文件的特征信息。
任选的, 在用户端完整扫描文件时, 当所述扫描时间大于或大于等 于时间阔值并安全时: 所述的完整扫描为用户端系统中各文件的全部内 容进行杀毒扫描。
步骤 920 , 对于相同的特征信息, 统计其重复次数。
步骤 930 , 提取重复次数大于或大于等于数量阔值的特征信息。
步骤 940 , 将所述提取出来的特征信息存入数据文件, 并依据所述数 据文件生成数据包。
对于与其它实施例类似的步骤, 在这里不再详述。
本发明的各个部件实施例可以以硬件实现, 或者以在一个或者多个 处理器上运行的软件模块实现, 或者以它们的组合实现。 本领域的技术 人员应当理解, 可以在实践中使用微处理器或者数字信号处理器 (DSP ) 来实现根据本发明实施例的 ***设备中的一些或者全部部件的一些或者 全部功能。 本发明还可以实现为用于执行这里所描述的方法的一部分或 者全部的设备或者装置程序 (例如, 计算机程序和计算机程序产品) 。 这样的实现本发明的程序可以存储在计算机可读介质上, 或者可以具有 一个或者多个信号的形式。 这样的信号可以从因特网网站上下载得到, 或者在载体信号上提供, 或者以任何其他形式提供。
例如, 图 10示出了可以实现根据本发明的文件快速扫描方法的服务 器, 例如应用服务器。 该服务器传统上包括处理器 1100和以存储器 1200 形式的计算机程序产品或者计算机可读介质。 存储器 1200可以是诸如闪 存、 EEPROM (电可擦除可编程只读存储器) 、 EPROM、 硬盘或者 ROM 之类的电子存储器。 存储器 1200具有用于执行上述方法中的任何方法步 骤的程序代码 1310 的存储空间 1300。 例如, 用于程序代码的存储空间 1300 可以包括分别用于实现上面的方法中的各种步骤的各个程序代码 1310。 这些程序代码可以从一个或者多个计算机程序产品中读出或者写 入到这一个或者多个计算机程序产品中。 这些计算机程序产品包括诸如 硬盘, 紧致盘 (CD ) 、 存储卡或者软盘之类的程序代码载体。 这样的计 算机程序产品通常为如参考图 11所述的便携式或者固定存储单元。 该存 储单元可以具有与图 10的服务器中的存储器 1200类似布置的存储段、 存储空间等。 程序代码可以例如以适当形式进行压缩。 通常, 存储单元 包括计算机可读代码 1310' , 即可以由例如诸如 1100之类的处理器读取 的代码, 这些代码当由服务器运行时, 导致该服务器执行上面所描述的
方法中的各个步骤。
本文中所称的 "一个实施例"、 "实施例"或者"一个或者多个实施例 "意 味着, 结合实施例描述的特定特征、 结构或者特性包括在本发明的至少 一个实施例中。 此外, 请注意, 这里"在一个实施例中"的词语例子不一定 全指同一个实施例。
在此处所提供的说明书中, 说明了大量具体细节。 然而, 能够理解, 本发明的实施例可以在没有这些具体细节的情况下被实践。 在一些实例 中, 并未详细示出公知的方法、 结构和技术, 以便不模糊对本说明书的 理解。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限 制, 并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计 出替换实施例。 在权利要求中, 不应将位于括号之间的任何参考符号构 造成对权利要求的限制。单词"包含"不排除存在未列在权利要求中的元件 或步骤。 位于元件之前的单词 "一"或"一个"不排除存在多个这样的元件。 本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计 算机来实现。 在列举了若干装置的单元权利要求中, 这些装置中的若干 个可以是通过同一个硬件项来具体体现。 单词第一、 第二、 以及第三等 的使用不表示任何顺序。 可将这些单词解释为名称。
此外, 还应当注意, 本说明书中使用的语言主要是为了可读性和教 导的目的而选择的, 而不是为了解释或者限定本发明的主题而选择的。 因此, 在不偏离所附权利要求书的范围和精神的情况下, 对于本技术领 域的普通技术人员来说许多修改和变更都是显而易见的。 对于本发明的 范围, 对本发明所做的公开是说明性的, 而非限制性的, 本发明的范围 由所附权利要求书限定。
Claims
1、 一种文件快速扫描方法, 其包括:
获取数据包; 所述数据包包括用于确定系统中文件是否为安全文件 的安全文件特征信息;
逐个扫描系统中文件的文件特征信息, 若当前 描的文件特征信息 过对当前文件的杀毒扫描, 继续扫描下一个文件。
2、 根据权利要求 1所述的方法, 其中:
若未匹配时,对当前文件进行杀毒扫描, 当扫描时间大于或大于等于 时间阈值并且安全时, 将该文件的安全文件特征信息更新至数据包。
3、 根据权利要求 1或 2所述的方法, 其中:
所述特征信息通过统计各用户端发送到处理中心服务器中的安全文 件特征信息获得。
4、 根据权利要求 3所述的方法, 其中, 通过如下步骤统计各用户端 发送到处理中心服务器中的安全文件特征信息获得所述特征信息:
接收各用户端发送的安全文件的特征信息; 所述特征信息包括用户 端完整扫描文件时, 确定安全的文件的特征信息;
对于相同的特征信息, 统计其重复次数;
提取重复次数大于或大于等于数量阔值的特征信息。
5、 根据权利要求 4所述的方法, 其中, 在用户端完整扫描文件时: 当所述扫描的文件安全时, 获取文件的特征信息, 所述特征信息包 括文件名、 文件大小、 文件修改时间和文件内容描述信息;
将文件名进行循环冗余码校验计算, 得到文件名 CRC值;
将文件内容描述信息进行消息摘要算法计算, 得到内容匹配信息; 将包括文件大小、 文件修改时间、 文件名 CRC值和内容匹配信息的 特征信息进行发送。
6、 根据权利要求 3或 5所述的方法, 其中, 对于相同的特征信息, 统计其重复次数:
将接收的特征信息按总重复次数进行排序;
对于各相同特征信息, 将属于同一个用户端发送的相同特征消息进 行消重运算;
针对消重后的各相同特征信息, 统计各特征消息的重复次数。
7、 根据权利要求 4所述的方法, 其中, 在提取重复次数大于或大于 等于数量阔值的特征信息之后包括:
将所述提取出来的特征信息存入数据文件, 并依据所述数据文件生 成数据包。
8、 根据权利要求 3所述的方法, 其中, 在所述数据包生成之前还包
括:
接收用户端发送的不安全文件的特征信息, 不将该特征信息存入数 据文件或者将数据包中与该特征信息相同的特征信息进行删除。
9、 根据权利要求 3所述的方法, 其中:
在生成上一个数据包后, 当统计到新的安全文件的特征信息后, 更 新至上一个数据包。
10、 根据权利要求 1 或 2所述的方法, 其中, 通过如下方法将所述 文件的特征信息与所述数据包中的特征信息进行匹配:
在緩存中从匹配效率最高的特征信息开始进行匹配。
11、 根据权利要求 10所述的方法, 其中:
当文件大小和文件修改时间与数据库中的一条特征信息匹配时, 则 将文件名进行所述循环冗余码校验计算, 得到文件名 CRC值, 并将所述 文件名 CRC值与该条特征信息的文件名 CRC值进行匹配;
当所述文件名 CRC值与该条特征信息的文件名 CRC值匹配时, 则 将文件内容描述信息进行所述消息摘要算法计算, 得到内容匹配信息, 并将所述内容匹配信息与该条特征信息的内容匹配信息进行匹配。
12、 一种文件快速扫描系统, 其包括:
第一用户端, 所述第一用户端包括:
获取模块, 用于获取数据包; 所述数据包包括用于确定系统中文件 是否为安全文件的安全文件特征信息;
扫描匹配模块, 用于逐个扫描系统中文件的文件特征信息, 若当前 扫描的文件特征信息与所述数据包中标示文件为安全文件的安全文件特 征信息匹配时, 则跳过对当前文件的杀毒扫描, 继续扫描下一个文件。
13、 根据权利要求 12所述的系统, 其中, 还包括:
第二用户端群和处理中心服务器;
所述处理中心服务器用于统计各用户端发送到处理中心服务器中的 安全文件特征信息获得所述数据包中的特征信息;
所述第二用户端群用于发送的安全文件的特征信息。
14、 根据权利要求 13所述的系统, 其中, 所述的处理中心服务器包 括:
特征信息模块, 用于接收各用户端发送的安全文件的特征信息; 所 述特征信息包括用户端完整扫描文件时, 确定安全的文件的特征信息; 统计模块, 用于对于相同的特征信息, 统计其重复次数;
提取模块, 用于提取重复次数大于或大于等于数量阔值的特征信息。
15、 根据权利要求 13所述的系统, 其中, 所述第二用户端群的各用 户端包括:
特征信息获取单元, 用于当扫描的文件安全时, 获取文件的特征信 息, 所述特征信息包括文件名、 文件大小、 文件修改时间和文件内容描
述信息;
文件名计算单元, 用于将文件名进行循环冗余码校验计算, 得到文 件名 CRC值;
内容描述信息计算单元, 用于将文件内容描述信息进行消息摘要算 法计算, 得到内容匹配信息;
特征信息发送单元, 用于将包括文件大小、 文件修改时间、 文件名 CRC值和内容匹配信息的特征信息进行发送。
16、 根据权利要求 14所述的系统, 其中, 所述统计模块包括: 排序 单元, 用于将接收的特征信息按总重复次数进行排序;
消重单元, 用于对于各相同特征信息, 将属于同一个用户端发送的 相同特征消息进行消重运算;
统计单元, 用于针对消重后的各相同特征信息, 统计各特征消息的 重复次数。
17、 根据权利要求 14所述的系统, 其中, 在提取模块之后还包括: 生成单元, 用于将所述提取出来的特征信息存入数据文件, 并依据 所述数据文件生成数据包。
18、 根据权利要求 14所述的系统, 其中, 在所述数据包生成之前还 包括:
去除单元, 用于接收用户端发送的不安全文件的特征信息, 不将该 特征信息存入数据文件或者将数据包中与该特征信息相同的特征信息进 行删除。
19、 根据权利要求 14所述的系统, 其中, 还包括:
更新模块, 用于在生成上一个数据包后, 当统计到新的安全文件的 特征信息后, 更新至上一个数据包。
20、 根据权利要求 15所述的系统, 其中, 通过如下方法将所述文件 的特征信息与所述数据包中的特征信息进行匹配:
在緩存中从匹配效率最高的特征信息开始进行匹配。
21、 根据权利要求 20所述的系统, 其中:
当文件大小和文件修改时间与数据库中的一条特征信息匹配时, 则 将文件名进行所述循环冗余码校验计算, 得到文件名 CRC值, 并将所述 文件名 CRC值与该条特征信息的文件名 CRC值进行匹配;
当所述文件名 CRC值与该条特征信息的文件名 CRC值匹配时, 则 将文件内容描述信息进行所述消息摘要算法计算, 得到内容匹配信息, 并将所述内容匹配信息与该条特征信息的内容匹配信息进行匹配。
22、 根据权利要求 12所述的系统, 其中, 还包括:
提醒模块, 用于当第一次扫描时, 提示第一用户端是否选择快速扫 描, 如果选择则扫描文件的特征信息, 并调用所述数据包进行匹配。
23、 根据权利要求 12所述的方法, 其中, 还包括:
更新记录模块, 用于在第一用户端进行扫描时, 将当次扫描结果中 安全文件的特征信息存入所述数据包的安全文件信息列表; 当第一用户 端下一次进行扫描时根据上一次扫描后的安全记录结果进行扫描。
24、 一种计算机程序, 包括计算机可读代码, 当所述计算机可读代 码在服务器上运行时, 导致所述服务器执行根据权利要求 1-11 中的任一 个所述的文件快速扫描方法。
25 , 一种计算机可读介质, 其中存储了如权利要求 24所述的计算机 程序。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US14/377,014 US9355250B2 (en) | 2012-02-07 | 2013-02-05 | Method and system for rapidly scanning files |
Applications Claiming Priority (6)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210026759.8A CN102609653B (zh) | 2012-02-07 | 2012-02-07 | 一种文件快速扫描方法和系统 |
| CN201210026585.5A CN102594809B (zh) | 2012-02-07 | 2012-02-07 | 一种文件快速扫描方法和系统 |
| CN201210026760.0 | 2012-02-07 | ||
| CN2012100267600A CN102609515B (zh) | 2012-02-07 | 2012-02-07 | 一种文件快速扫描方法和系统 |
| CN201210026759.8 | 2012-02-07 | ||
| CN201210026585.5 | 2012-02-07 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2013117151A1 true WO2013117151A1 (zh) | 2013-08-15 |
Family
ID=48946909
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2013/071383 Ceased WO2013117151A1 (zh) | 2012-02-07 | 2013-02-05 | 文件快速扫描方法和系统 |
Country Status (2)
| Country | Link |
|---|---|
| US (1) | US9355250B2 (zh) |
| WO (1) | WO2013117151A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110058873A (zh) * | 2019-03-12 | 2019-07-26 | 天津五八到家科技有限公司 | 应用页面更新方法、装置、设备和存储介质 |
Families Citing this family (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103714269A (zh) * | 2013-12-02 | 2014-04-09 | 百度国际科技(深圳)有限公司 | 病毒的识别方法及设备 |
| US11895138B1 (en) * | 2015-02-02 | 2024-02-06 | F5, Inc. | Methods for improving web scanner accuracy and devices thereof |
| RU2634175C2 (ru) * | 2015-12-18 | 2017-10-24 | Акционерное общество "Лаборатория Касперского" | Способ выполнения антивирусных проверок |
| US10705829B2 (en) * | 2016-03-30 | 2020-07-07 | International Business Machines Corporation | Software discovery using exclusion |
| RU2726877C1 (ru) * | 2019-04-15 | 2020-07-16 | Акционерное общество "Лаборатория Касперского" | Способ выборочного повторного антивирусного сканирования файлов на мобильном устройстве |
| RU2726878C1 (ru) * | 2019-04-15 | 2020-07-16 | Акционерное общество "Лаборатория Касперского" | Способ ускорения полной антивирусной проверки файлов на мобильном устройстве |
| CN115004184A (zh) * | 2020-03-24 | 2022-09-02 | 深圳市欢太科技有限公司 | 镜像安全扫描系统、方法、装置、设备及存储介质 |
| CN113468119A (zh) * | 2021-05-31 | 2021-10-01 | 北京明朝万达科技股份有限公司 | 一种文件扫描方法和装置 |
| KR102408433B1 (ko) * | 2021-07-27 | 2022-06-10 | 한국항공우주연구원 | 다중 데이터 전송 방법 및 시스템 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1964357A (zh) * | 2006-12-04 | 2007-05-16 | 北京金山软件有限公司 | 文件处理方法和信息处理装置 |
| CN101308533A (zh) * | 2008-06-30 | 2008-11-19 | 华为技术有限公司 | 病毒查杀的方法、装置和系统 |
| CN101639880A (zh) * | 2008-07-31 | 2010-02-03 | 华为技术有限公司 | 一种文件检测方法和装置 |
| CN102594809A (zh) * | 2012-02-07 | 2012-07-18 | 奇智软件(北京)有限公司 | 一种文件快速扫描方法和系统 |
| CN102609653A (zh) * | 2012-02-07 | 2012-07-25 | 奇智软件(北京)有限公司 | 一种文件快速扫描方法和系统 |
| CN102609515A (zh) * | 2012-02-07 | 2012-07-25 | 奇智软件(北京)有限公司 | 一种文件快速扫描方法和系统 |
Family Cites Families (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6836860B2 (en) * | 2001-09-04 | 2004-12-28 | Networks Associates Technology, Inc. | Data scanning for updatable predefined properties |
| US7934261B1 (en) * | 2007-06-13 | 2011-04-26 | Trend Micro, Inc. | On-demand cleanup system |
| US7392544B1 (en) * | 2007-12-18 | 2008-06-24 | Kaspersky Lab, Zao | Method and system for anti-malware scanning with variable scan settings |
| US8528075B2 (en) * | 2008-11-30 | 2013-09-03 | Red Hat Israel, Ltd. | Accelerating the execution of anti-virus programs in a virtual machine environment |
| US8353037B2 (en) * | 2009-12-03 | 2013-01-08 | International Business Machines Corporation | Mitigating malicious file propagation with progressive identifiers |
| RU2449348C1 (ru) * | 2010-11-01 | 2012-04-27 | Закрытое акционерное общество "Лаборатория Касперского" | Система и способ для антивирусной проверки на стороне сервера скачиваемых из сети данных |
| US8499150B1 (en) * | 2010-11-11 | 2013-07-30 | Symantec Corporation | Selectively trusting signed files |
| US10409987B2 (en) * | 2013-03-31 | 2019-09-10 | AO Kaspersky Lab | System and method for adaptive modification of antivirus databases |
-
2013
- 2013-02-05 US US14/377,014 patent/US9355250B2/en active Active
- 2013-02-05 WO PCT/CN2013/071383 patent/WO2013117151A1/zh not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1964357A (zh) * | 2006-12-04 | 2007-05-16 | 北京金山软件有限公司 | 文件处理方法和信息处理装置 |
| CN101308533A (zh) * | 2008-06-30 | 2008-11-19 | 华为技术有限公司 | 病毒查杀的方法、装置和系统 |
| CN101639880A (zh) * | 2008-07-31 | 2010-02-03 | 华为技术有限公司 | 一种文件检测方法和装置 |
| CN102594809A (zh) * | 2012-02-07 | 2012-07-18 | 奇智软件(北京)有限公司 | 一种文件快速扫描方法和系统 |
| CN102609653A (zh) * | 2012-02-07 | 2012-07-25 | 奇智软件(北京)有限公司 | 一种文件快速扫描方法和系统 |
| CN102609515A (zh) * | 2012-02-07 | 2012-07-25 | 奇智软件(北京)有限公司 | 一种文件快速扫描方法和系统 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110058873A (zh) * | 2019-03-12 | 2019-07-26 | 天津五八到家科技有限公司 | 应用页面更新方法、装置、设备和存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| US9355250B2 (en) | 2016-05-31 |
| US20150007328A1 (en) | 2015-01-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102609515B (zh) | 一种文件快速扫描方法和系统 | |
| CN102609653B (zh) | 一种文件快速扫描方法和系统 | |
| CN102594809B (zh) | 一种文件快速扫描方法和系统 | |
| CN102819713B (zh) | 一种检测弹窗安全性的方法和系统 | |
| US8978137B2 (en) | Method and apparatus for retroactively detecting malicious or otherwise undesirable software | |
| CN106682506B (zh) | 一种病毒程序检测方法和终端 | |
| US9355250B2 (en) | Method and system for rapidly scanning files | |
| US11632389B2 (en) | Content-based optimization and pre-fetching mechanism for security analysis on a network device | |
| CN102945349B (zh) | 未知文件处理方法与装置 | |
| WO2014194803A1 (zh) | 基于云安全的文件处理方法及装置 | |
| US9202050B1 (en) | Systems and methods for detecting malicious files | |
| CN103839005A (zh) | 移动操作系统的恶意软件检测方法和恶意软件检测系统 | |
| CN102945348A (zh) | 文件信息收集方法与装置 | |
| WO2013091534A1 (zh) | 一种木马检测的方法及装置 | |
| CN103136477B (zh) | 文件样本的扫描方法和系统 | |
| CN106709341A (zh) | 一种针对文件包的病毒处理方法及装置 | |
| CN103391520A (zh) | 一种拦截恶意短信的方法、终端、服务器及系统 | |
| WO2014000305A1 (zh) | 内容匹配方法和装置 | |
| WO2015081791A1 (zh) | 内核级恶意软件查杀的方法和装置 | |
| CN104253785A (zh) | 危险网址识别方法、装置及系统 | |
| CN103324886A (zh) | 一种网络攻击检测中指纹库的提取方法和系统 | |
| CN102111400A (zh) | 一种木马检测方法、装置及系统 | |
| CN103152356B (zh) | 检测文件样本安全性的方法、服务器和系统 | |
| CN104715197A (zh) | 一种文件快速扫描方法和系统 | |
| CN102438233A (zh) | 一种手机蠕虫检测方法 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13746534 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 14377014 Country of ref document: US |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 13746534 Country of ref document: EP Kind code of ref document: A1 |