Network Anti-Reconnaissance Messing with Nmap Through Smoke and Mirrors AltF4 Anti-Reconnaissance • Consider 3 main phases of a network attack: 1) Gain Access 2) Perform Reconnaissance 3) Exploit Vulnerability • Focusing on the second phase • Anti-Reconnaissance • Obscures the network -Obfuscate • Not Intrusion Detection / Prevention • Not Access Control Reconnaissance: HowTo • Find information to use in an exploit • Number of systems - ARP Sweep scan / ICMP Echo • Types (OS) of systems -OS detection scans • Open ports - TCP SYN / CONN (etc..) scans • Network Topology -Trace route • Running Services -Service Detection Scans Why Is Detecting Recon ard? •Signatures Fail • Identical at the packet level -ARP, TCPSYNs, ICMP, ... • Speed • Being very slow can be stealthy -One packet per hour • Being very fast can be stealthy -Finish before anyone notices • Already inside your network • Border security already bypased (firewall) Why Is Preventing Recon Metadata • Can't encrypt it Obfuscation Constraining The Problem A Needle in a Haystack • Drown real nodes with realistic fake ones • Honeyd Two goals: • Obfuscates the network - Reconnaissance gets lots of bogus results • Identifies Reconnaissance -Traffic to decoys are presumptively hostile oneypots and Decoys • Low Fidelity Honeypots • Not a real machine • Nor a "Virtual Machine" as you know it • Can't be exploited like a VM can • Can be produced en masse • Honeyd • Last update: 05/07/2007 • Nmap new probes since then -nmap-os-db • github.com/datasoft/honeyd Hay Attacker gains access • Massive network • Most machines are fake • Can't tell the difference Reconnaissance becomes: • Ineffective • Cumbersome • Obvious Classification • High Fidelity Honeypots • Inspect log files -Manually -Maybe automated tools •Signatures -IDS / Antivirus -Mostly fails Machine earning i i ▲ A K - Nearest Neighbors • N Statistical Features • Scalar Values - Packet Timing - IPs contacted - Ports contacted - Haystack nodes contacted Training Data • Programmed into the system - Like a spam filter • Plot data points in N dimensional space ▲ i l Machine Learning ▲ i j i i Query Point • Search for the k nearest neighbors • Majority vote - Distance metric libann Approximate Nearest Neighbors Introduces some error Large performance gains • Haystack Autoconfig • Scans your network • Builds a Haystack from it • Multiple Uls • WebUI, Qt, Terminal • Import /Export Training Data • Highly Multithreaded • Free Software Demo Questions & Contact Email I has a question altf4@phx2600.org Twitter @2600AltF4 Identi.ca • @altf4 Diaspora • altf4@joindiaspora.com Development github.com/DataSoft • IRC:OFTC#nova n Person • 1st Fridays, phx2600.org