suricata idps and linux kernel
play

Suricata IDPS and Linux kernel . Leblond, G. Longo Stamus Networks - PowerPoint PPT Presentation

Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Suricata IDPS and Linux kernel . Leblond, G. Longo Stamus Networks February 10, 2016 . Leblond, G. Longo (Stamus Networks)


  1. Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Suricata IDPS and Linux kernel É. Leblond, G. Longo Stamus Networks February 10, 2016 É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 1 / 28

  2. Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Suricata 1 Introduction Streaming Performance Suricata and Linux kernel 2 AF_PACKET NFQUEUE Suricata and offloading 3 Interest of offloading Implementation of framework Use it with NFQ Other Methods Conclusion 4 É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 1 / 28

  3. Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Suricata 1 Introduction Streaming Performance Suricata and Linux kernel 2 AF_PACKET NFQUEUE Suricata and offloading 3 Interest of offloading Implementation of framework Use it with NFQ Other Methods Conclusion 4 É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 1 / 28

  4. What is Suricata Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) IDS and IPS engine Get it here: http://www.suricata-ids.org Open Source (GPLv2) Initially publicly funded now funded by consortium members Run by Open Information Security Foundation (OISF) More information about OISF at http://www. openinfosecfoundation.org/ É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 2 / 28

  5. Suricata Features Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) High performance, scalable through multi threading Advanced Protocol handling Protocol recognition Protocol analysis: field extraction, filtering keywords Transaction logging in extensible JSON format File identification, extraction, on the fly MD5 calculation HTTP SMTP TLS handshake analysis, detect/prevent things like Diginotar Lua scripting for detection Hardware acceleration support: Endace Napatech, CUDA PF_RING É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 3 / 28

  6. Suricata capture modes Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) IDS pcap: multi OS capture af_packet: Linux high performance on vanilla kernel netmap: FreeBSD high performance NFLOG: Netfilter logging IPS NFQUEUE: Using Netfilter on Linux ipfw: Use divert socket on FreeBSD af_packet: Level 2 software bridge Offline analysis Pcap: Analyse pcap files Unix socket: Use Suricata for fast batch processing of pcap files É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 4 / 28

  7. Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Suricata 1 Introduction Streaming Performance Suricata and Linux kernel 2 AF_PACKET NFQUEUE Suricata and offloading 3 Interest of offloading Implementation of framework Use it with NFQ Other Methods Conclusion 4 É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 4 / 28

  8. Evasion technics Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Fooling detection Get your activity unnoticed Complete your attack and stay in place Principle Signature-based IDS relay on packet content Modification of traffic could be used to avoid detection Without changing the impact of the attack É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 5 / 28

  9. Play on interpretation issue Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) OS-based evasion All OS do not react the same RFC are incomplete. Improvisations have been made. Variation of traffic for a same flow is possible Overlapping Fragments Application-based evasion Different servers can treat the same request differently. No web server are treating a twice used argument the same way. É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 6 / 28

  10. Personnality Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Personnality IDS implements personnality It is possible to associate network and OS type For Suricata, HTTP servers can be personnified too. Suricata configuration host − os − policy : # Make the d ef a u lt po licy windows . windows : [ 0 . 0 . 0 . 0 / 0 ] bsd : [ ] bsd − r i g h t : [ ] old − l i n u x : [ ] l i n u x : [ 1 0 . 0 . 0 . 0 / 8 ] É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 7 / 28

  11. Suricata reconstruction and normalization Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 8 / 28

  12. Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Suricata 1 Introduction Streaming Performance Suricata and Linux kernel 2 AF_PACKET NFQUEUE Suricata and offloading 3 Interest of offloading Implementation of framework Use it with NFQ Other Methods Conclusion 4 É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 8 / 28

  13. A typical signature example Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Signature example: Chat facebook a l e r t http $HOME_NET any − > $EXTERNAL_NET any \ ( msg: "ET CHAT Facebook Chat ( send message ) " ; \ flow : established , to_server ; content : "POST" ; http_method ; \ content : " / ajax / chat / send . php " ; h t t p _ u r i ; content : " facebook .com" ; http_host ; \ content : " netdev " ; http_client_body ; reference : url ,www. emergingthreats . net / cgi − bin / cvsweb . cgi / sigs / POLICY / POLICY_Facebook_Chat ; \ sid :2010784; rev : 4 ; \ ) This signature tests: The HTTP method: POST The page: /ajax/chat/send.php The domain: facebook.com The body content: netdev É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 9 / 28

  14. No passthrough Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) All signatures are inspected Different from a firewall More than 15000 signatures in standard rulesets Optimization on detection engine Tree pre filtering approach to limit the set of signatures to test Multi pattern matching on some buffers É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 10 / 28

  15. CPU intensive Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 11 / 28

  16. Perf top Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 12 / 28

  17. Scalability Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Bandwith per core is limited From 150Mb/s To 500Mb/s Scaling Using RSS Splitting load on workers É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 13 / 28

  18. Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Suricata 1 Introduction Streaming Performance Suricata and Linux kernel 2 AF_PACKET NFQUEUE Suricata and offloading 3 Interest of offloading Implementation of framework Use it with NFQ Other Methods Conclusion 4 É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 13 / 28

  19. Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Suricata 1 Introduction Streaming Performance Suricata and Linux kernel 2 AF_PACKET NFQUEUE Suricata and offloading 3 Interest of offloading Implementation of framework Use it with NFQ Other Methods Conclusion 4 É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 13 / 28

  20. AF_PACKET Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Linux raw socket Raw packet capture method Socket based or mmap based É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 14 / 28

  21. AF_PACKET Proceedings of NetDev 1.1: The Technical Conference on Linux Networking (February 10th-12th 2016. Seville, Spain) Linux raw socket Raw packet capture method Socket based or mmap based Fanout mode Load balancing over multiple sockets Multiple load balancing functions Flow based CPU based RSS based É. Leblond, G. Longo (Stamus Networks) Suricata IDPS and Linux kernel February 10, 2016 14 / 28

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend