透過您的圖書館登入
IP:18.221.165.246
  • 學位論文

比較PCRE與RE2正規表達式函式庫在Snort入侵偵測系統中之效能

Comparing the Performance of PCRE and RE2 Regular Expression Libraries in the Snort Intrusion Detection System

指導教授 : 蔡憶佳

摘要


現今網路蓬勃發展導致網路攻擊不斷地變換型態,對於未知的攻擊防禦所以網路安全就相對的重要。大多網路對外防禦攻擊通常為防火牆與網路入侵偵測系統搭配,防火牆僅能阻擋非法的連線請求,當有一挾帶惡意攻擊的封包順利通過防火牆,網路入侵防禦系統就占了相當重要的角色。近年來最廣為使用的網路入侵偵測系統Snort因開放原始碼且容易進行修改,也有許多網站因應各式各樣的網路攻擊型態撰寫Snort規則散布於網路上供使用者取得,而Snort比對的正規表達式寫於Snort規則內故本研究將以Snort規則作為研究對象。 Snort經由PCRE(Perl Compatible Regular Expressions)正規表達式函式庫進行特徵碼比對,以判斷封包是否有挾帶異常的行為,本研究以Google發布的RE2正規表達式函數庫在Snort規則上進行修改,並以PCRE與RE2的CPU使用率、執行時間及記憶體使用多寡進行比較,結果證明RE2在進行Snort規則比對的執行時間而言較PCRE穩定。

關鍵字

網路攻擊 封包擷取 Snort PCRE RE2

並列摘要


A huge amount of online personal information has led to growing number of cyber-attacks. Most network defense strategies use firewalls and network intrusion detection systems. Firewalls can only block illegal connection requests, however, malicious packets can still get through the firewall. Therefore, network intrusion prevention systems play an important role in the defense of attacks. Snort is a commonly used network intrusion detection system. It is an open source software and easy to modify. Snort rules consist of formal descriptions of the attack patterns and through which Snort used to determine abnormal network traffics. The pattern is written in PCRE (perl compatible regular expression). This study compares the use of Google's RE2 regular expression library and PCRE in Snort rules. Their cpu usages, execution time and memory amount are examined and the results showed RE2 has better performance than PCRE for certain patterns.

並列關鍵字

Network Attack Packet Capture Snort PCRE RE2

參考文獻


[8] 傅仁宏,「基於RE2的應用層封包過濾系統」,碩士論文,資訊工程學系在職專班,淡江大學,新北市, 2010。
[9] 關凡宇,「以成本角度選擇網頁應用程式防禦策略」,碩士論文,資訊工程系,大同大學,臺北市, 2010。
[10] Performance comparison of regular expression engines, [http://sljit.sourceforge.net/regex_perf.html], Oct 2011
[12] PCRE - Perl Compatible Regular Expressions, [http://www.pcre.org/]
[13] PCRE – Perl Compatible Regular Expression Library, [http://www.haifux.org/lectures/156/PCRE-Perl_Compatible_Regular_Expression_Library.pdf]

延伸閱讀