approximate reduction of finite automata for high speed
play

Approximate Reduction of Finite Automata for High-Speed Network - PowerPoint PPT Presentation

Approximate Reduction of Finite Automata for High-Speed Network Intrusion Detection Milan Ce Vojt Luk a ska ech Havlena s Hol k Ond rej Leng al Tom a s Vojnar Brno University of Technology Czech Republic 18


  1. Approximate Reduction of Finite Automata for High-Speed Network Intrusion Detection Milan ˇ Ceˇ Vojtˇ Luk´ aˇ ska ech Havlena s Hol´ ık Ondˇ rej Leng´ al Tom´ aˇ s Vojnar Brno University of Technology Czech Republic 18 April 2018 (TACAS’18)

  2. Main Points reduction of nondeterministic finite automata (NFAs) ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 2 / 23

  3. Main Points reduction of nondeterministic finite automata (NFAs) the reduction does NOT preserve language ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 2 / 23

  4. Main Points reduction of nondeterministic finite automata (NFAs) the reduction does NOT preserve language BUT guarantees maximum error ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 2 / 23

  5. Main Points reduction of nondeterministic finite automata (NFAs) the reduction does NOT preserve language BUT guarantees maximum error w.r.t. a probabilistic distribution ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 2 / 23

  6. Main Points reduction of nondeterministic finite automata (NFAs) the reduction does NOT preserve language BUT guarantees maximum error w.r.t. a probabilistic distribution application in high-speed network intrusion detection ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 2 / 23

  7. Computer Network Intrusion Detection recently a large number of security incidents, e.g. ◮ WannaCry • ransomware, 1 G$ ◮ Spectre & Meltdown • security vulnerabilities in Intel CPUs exploits often spread via networks ◮ these attacks can be detected ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 3 / 23

  8. Computer Network Intrusion Detection Local Network Malicious User EVIL E V I L Internet E V I L L I V EVIL E NIDS NIDS = Network Intrusion Detection System ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 4 / 23

  9. Computer Network Intrusion Detection S NORT ◮ popular NIDS ◮ RegExes to describe attacks ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 5 / 23

  10. Computer Network Intrusion Detection S NORT ◮ popular NIDS ◮ RegExes to describe attacks /ˆPOST HTTP\/1\.[01]\r\n(\V+\r\n)*\r\n[\x00-\xff]*DROP TABLE/ /ˆHTTP\/1\.[01] 404[\x00-\xff]*(admin|wordpress)/ /ˆPOST HTTP\/1\.[01]\r\n(\V+\r\n)*\r\n[\x00-\xff]*admin:admin/ /ˆPOST HTTP\/1\.[01]\r\n(\V+\r\n)*\r\n[\x00-\xff]*admin:password/ /ˆPOST HTTP\/1\.[01]\r\n(\V+\r\n)*\r\n[\x00-\xff]*YWRtaW46cGFzc3dvcmQ/ /ˆPOST HTTP\/1\.[01]\r\n(\V+\r\n)*\r\n[\x00-\xff]*YWRtaW46YWRtaW4/ /ˆPOST HTTP\/1\.[01]\r\n(\V+\r\n)*\r\n[\x00-\xff]*\/bin\/sh/ ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 5 / 23

  11. Computer Network Intrusion Detection High-speed networks ◮ 100 Gbps, 400 Gbps NIDS 100 Gbps ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 6 / 23

  12. Computer Network Intrusion Detection High-speed networks ◮ 100 Gbps, 400 Gbps NIDS 100 Gbps — max. ∼ 150 Mpkt/s (100 / 84*8) ◮ cf. 56 kbps dial-up — max. ∼ 80 pkt/s ◮ ∼ 10 GB/s (of data) 100 Gbps ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 6 / 23

  13. Computer Network Intrusion Detection High-speed networks ◮ 100 Gbps, 400 Gbps NIDS 100 Gbps — max. ∼ 150 Mpkt/s (100 / 84*8) ◮ cf. 56 kbps dial-up — max. ∼ 80 pkt/s ◮ ∼ 10 GB/s (of data) consider 4 GHz CPU ◮ 0.4 cycle/B ◮ ∼ 27 cycles/pkt cf. DRAM latency ∼ 100 cycles 100 Gbps ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 6 / 23

  14. Computer Network Intrusion Detection High-speed networks ◮ 100 Gbps, 400 Gbps NIDS 100 Gbps — max. ∼ 150 Mpkt/s (100 / 84*8) ◮ cf. 56 kbps dial-up — max. ∼ 80 pkt/s ◮ ∼ 10 GB/s (of data) consider 4 GHz CPU ◮ 0.4 cycle/B ◮ ∼ 27 cycles/pkt cf. DRAM latency ∼ 100 cycles 100 Gbps no hope for SW solutions ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 6 / 23

  15. HW-accelerated NIDS HW-accelerated NIDS ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 7 / 23

  16. HW-accelerated NIDS HW-accelerated NIDS cooperation with ANT@FIT ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 7 / 23

  17. HW-accelerated NIDS HW-accelerated NIDS cooperation with ANT@FIT using a COMBO-100G accelerator card ◮ FPGA Xilinx Virtex-7 H580T ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 7 / 23

  18. HW-accelerated NIDS HW-accelerated NIDS cooperation with ANT@FIT using a COMBO-100G accelerator card ◮ FPGA Xilinx Virtex-7 H580T NIDS < 1 Gbps 100 Gbps used as a pre-filter ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 7 / 23

  19. HW-accelerated NIDS HW-accelerated NIDS RegEx matching in HW ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 8 / 23

  20. HW-accelerated NIDS HW-accelerated NIDS RegEx matching in HW ◮ NFAs ! ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 8 / 23

  21. HW-accelerated NIDS HW-accelerated NIDS RegEx matching in HW ◮ NFAs ! ◮ smaller than DFAs ◮ but still too big (even after language-preserving reduction) ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 8 / 23

  22. HW-accelerated NIDS HW-accelerated NIDS RegEx matching in HW ◮ NFAs ! ◮ smaller than DFAs ◮ but still too big (even after language-preserving reduction) ◮ many units in parallel ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 8 / 23

  23. HW-accelerated NIDS HW-accelerated NIDS RegEx matching in HW ◮ NFAs ! ◮ smaller than DFAs ◮ but still too big (even after language-preserving reduction) ◮ many units in parallel ◮ http-backdoor.pcre : 38.4 Gbps ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 8 / 23

  24. HW-accelerated NIDS HW-accelerated NIDS RegEx matching in HW ◮ NFAs ! ◮ smaller than DFAs ◮ but still too big (even after language-preserving reduction) ◮ many units in parallel ◮ http-backdoor.pcre : 38.4 Gbps ◮ � language non-preserving reduction ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 8 / 23

  25. Distance of NFAs Language non-preserving NFA reduction A → A red : ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 9 / 23

  26. Distance of NFAs Language non-preserving NFA reduction A → A red : trivial solutions not satisfactory ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 9 / 23

  27. Distance of NFAs Language non-preserving NFA reduction A → A red : trivial solutions not satisfactory need to quantify the error ◮ distance of NFAs ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 9 / 23

  28. Distance of NFAs Language non-preserving NFA reduction A → A red : trivial solutions not satisfactory need to quantify the error ◮ distance of NFAs Distance of NFAs: Jaccard distance, Ces` aro-Jaccard distance Levenshtein (edit) distance ◮ not suitable for languages . . . ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 9 / 23

  29. Distance of NFAs Language non-preserving NFA reduction A → A red : trivial solutions not satisfactory need to quantify the error ◮ distance of NFAs Distance of NFAs: Jaccard distance, Ces` aro-Jaccard distance Levenshtein (edit) distance ◮ not suitable for languages . . . not suitable! ◮ distribution of network packets is not uniform ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 9 / 23

  30. Distance of NFAs Probabilistic distance of NFAs: ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 10 / 23

  31. Distance of NFAs Probabilistic distance of NFAs: various packets have different likelihood ◮ e.g. Pr ( HTTP ) > Pr ( Gopher ) ◮ e.g. Pr HTTP ( GET ) > Pr HTTP ( POST ) ˇ Ceˇ ska, Havlena, Hol´ ık, Leng´ al , Vojnar Approximate Reduction of Finite Automata TACAS’18 10 / 23

Recommend


More recommend