28
©SecurityTube.net Chellam a Wi-Fi IDS/Firewall for Windows

Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

  • Upload
    others

  • View
    26

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Chellam – a Wi-Fi IDS/Firewall for Windows

Page 2: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Vivek Ramachandran

WEP Cloaking Defcon 19

Caffe Latte Attack Toorcon 9

Microsoft Security Shootout

Wi-Fi Malware, 2011

802.1x, Cat65k Cisco Systems

B.Tech, ECE IIT Guwahati

Media Coverage CBS5, BBC

Trainer, 2011

Page 3: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

SecurityTube and Pentester Academy

Page 4: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Motivation

• Attack! Attack! Attack!

• Defense?

• Important problem?

• Solution viable?

Page 5: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Enterprise Premise Focused

Enterprise

Page 6: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Roaming Clients?

• State of current solutions – Lockdown Wi-Fi, Bluetooth etc. – Policy based on SSID – Not BYOD ready – No Attack detection

• Heterogeneous Devices – Varied Operating Systems – Non standard Wi-Fi API – No low level support e.g. iOS

Page 7: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

What about the rest of us?

• World beyond Enterprise

• Millions of Personal Devices

• Every Internet capable device

• Internet Of Things (IoT)

Page 8: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Wi-Fi Client Attack Surface

• Honeypots – AP-less WEP/WPA/WPA2 Cracking

• Evil Twins

• Mis-Associations

• Hosted Network Backdoors

• …

Page 9: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Typical Attack

SSID1

SSID2

SSID3

SSID1

SSID2 SSID3

Page 10: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

AP-less Cracking No Encryption

WEP

WPA/WPA2 PSK

WPA/WPA2 PEAP, EAP-TTLS

AP-less Cracking Cloud

Cracking

• Caffe Latte • Hirte

Handshake, MS-CHAPv2 CR

Page 11: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Where are you SAFE? Nowhere!!!

Page 12: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Hijack Wi-Fi == Hijack Layer 2 • Traffic Monitoring • DNS Hijacking

• SSL MITM • Application Attacks

Page 13: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Defining the Scope

• Windows Endpoints – No custom hardware or drivers

• Detect Honeypot creation Tools

• Firewall like Rule Creation

– “Allow”, “Deny”

• Monitoring Wi-Fi state machine

• Detect Wi-Fi backdoors

Page 14: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Architecture Block Diagram

Wi-Fi Native API State Machine Scan Data Network

Profiles Card

Control

Data Collection Engine

Event Data

BSS Information

Profile XML Data

Hardware State Data

Data Storage

Analysis Engine Rule Matching Engine

Presentation Layer Interface

Application GUI

Page 15: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Wi-Fi Native API

Wi-Fi Native API State Machine Scan Data Network

Profiles Card

Control

State Machine

Scan Data

Network Profiles

Card Control

802.11 state machine per Wi-Fi card

Periodic Scan Results with BSS data

XML network profile data

Scan, Connect, Disconnect, Lock etc.

Page 17: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Demo – Data Sources

Page 18: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Data Collection and Storage

Data Collection Engine

Event Data

BSS Information

Profile XML Data

Hardware State Data

Data Storage

• Stored in SQLITE databases

• Makes it easy to write plugins

• 3rd party tools can use the database

Page 19: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Demo – SQLITE DB Data

Page 20: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Rule Matching and Analysis

Data Storage

Analysis Engine Rule Matching Engine

• Rules can be written to include: – BSSID – Neighboring Networks – Channel use patterns and frequencies – Information Elements in the Beacon / Probe Response – Access pattern based on time of day

Page 21: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Demo – Monitoring and Event Detection

Page 22: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Understanding Attack Detection

Internet

SSID

N1 N2

N3 N4

Page 23: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Fingerprinting the Network

SSID

• BSSID(s) • BSS type • PHY type • Beacon Interval • Channel(s) & Hopping • Rates – basic and extended • Capability Information • Information Element(s)

• Neighboring Access Points • AP details as above

• IP, Gateway • DNS, ARP cache

• Subnet scan • OS and service scan

802.11 (pre connect)

IP & Above (post connect)

Page 24: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Typical Attack Mitigation

SSID1

SSID2

SSID3

SSID1

SSID2 SSID3

• BSSID(s) • Channel(s) & Hopping • Rates – basic and extended • Capability Information • Information Element(s) • Neighboring Access Points • AP details as above

Page 25: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Demo – Attack Tool Detection (Airbase)

Page 26: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Why is this important?

• Attack tools will have to significantly improve

• Make it difficult to fingerprint – No hardcoded values, random BSSID etc.

• More features to mimic authorized networks

– Ability to “clone” network beacons / probe responses – Ability to closely follow Clocks (timestamp) – Have to be on the right channel and band

• Very difficult to beat Whitelist approach

Page 27: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Roadmap - Enhancements

• Whitelist vs Blacklist

• Plugin Architecture – SQL with Python

• Intrusion Prevention / Firewall with custom Driver

• Assisted and automatic learning of whitelists

• Downloadable blacklists for attack tools

Page 28: Chellam a Wi-Fi IDS/Firewall for Windows - Vivek - Chellam 2.pdf · Wi-Fi Malware, 2011 802.1x, Cat65k Cisco Systems B.Tech, ECE IIT Guwahati Media Coverage CBS5, BBC Trainer, 2011

©SecurityTube.net

Questions?