A Fast Regular Expressions Matching Algorithm for NIDS

作者:Zhang, Meng-meng*; Sun, Yan; Wang, Jing-zhong
来源:Applied Mathematics & Information Sciences, 2013, 7(2): 755-761.
DOI:10.12785/amis/070245

摘要

In this paper, we propose a new algorithm to accelerate the searching speed in network intrusion detection system (NIDS) and we implement our algorithm in Snort, a popular open-source intrusion detection system. The algorithm is based on the fact that normal data stream rarely matches any virus signature and different packets need to check different keys. The algorithm does not need preprocessing and can check multiple characters in parallel. Experimental results show that our implementation is faster than original NFA/DFA based algorithms to deal with the same real packet traces while consuming an order of magnitude less memory.