A Hybrid Algorithm of Backward Hashing and Automaton Tracking for Virus Scanning
Authors:
- 22 April 2010
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computers
- Vol. 60 (4) , 594-601
Abstract
Virus scanning involves computationally intensive string matching against a large number of signatures of different characteristics. Matching a variety of signatures challenges the selection of matching algorithms, as each approach has better performance than others for different signature characteristics. We propose a hybrid approach that partitions the signatures into long and short ones in the open-source ClamAV for virus scanning. An algorithm enhanced from the Wu-Manber algorithm, namely the Backward Hashing algorithm, is responsible for only long patterns to lengthen the average skip distance, while the Aho-Corasick algorithm scans for only short patterns to reduce the automaton sizes. The former utilizes the bad-block heuristic to exploit long shift distance and reduce the verification frequency, so it is much faster than the original WM implementation in ClamAV. The latter increases the AC performance by around 50 percent due to better cache locality. We also rank the factors to indicate their importance for the string matching performance.Keywords
This publication has 24 references indexed in Scilit:
- A Study of the Packer Problem and Its Solutions2008
- MDH: A High Speed Multi-phase Dynamic Hash String Matching Algorithm for Large-Scale Pattern Set2007
- Fast and memory-efficient regular expression matching for deep packet inspection2006
- Fast and scalable pattern matching for content filtering2005
- Over 10Gbps String Matching Mechanism for Multi-stream Packet Scanning Systems2004
- Tuning String Matching for Huge Pattern SetsLecture Notes in Computer Science, 2003
- Hitting the memory wallACM SIGARCH Computer Architecture News, 1995
- On improving the worst case running time of the Boyer-Moore string matching algorithmCommunications of the ACM, 1979
- A fast string searching algorithmCommunications of the ACM, 1977
- Space/time trade-offs in hash coding with allowable errorsCommunications of the ACM, 1970