HoneySpider Network 2.0
detecting client-side attacks the easy way Paweł Pawli´ nski
CERT Polska / NASK
24th Annual FIRST Conference 21 June 2012
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 1 / 23
HoneySpider Network 2.0 detecting client-side attacks the easy way - - PowerPoint PPT Presentation
HoneySpider Network 2.0 detecting client-side attacks the easy way Pawe Pawli nski CERT Polska / NASK 24th Annual FIRST Conference 21 June 2012 Pawe Pawli nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 1 / 23
detecting client-side attacks the easy way Paweł Pawli´ nski
CERT Polska / NASK
24th Annual FIRST Conference 21 June 2012
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 1 / 23
1
Introduction
2
Architecture
3
Services
4
Demonstration
5
Future plans
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 2 / 23
Introduction
1
Introduction
2
Architecture
3
Services
4
Demonstration
5
Future plans
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 3 / 23
Introduction
Joint project
CERT Polska NCSC-NL (GOVCERT.NL)
Started in 2011 Successor to HoneySpider Network version 1.x
used in production by CERTs we gained experience in scanning web pages automatically
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 4 / 23
Introduction
Detect attacks on client applications
web pages files
Apply multiple analyses
PDF, SWF, JavaScript, . . . low and high interaction honeypots
Configurable (processing details) Scalable (crawling) Open architecture
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 5 / 23
Introduction
Detect attacks on client applications
web pages files
Apply multiple analyses
PDF, SWF, JavaScript, . . . low and high interaction honeypots
Configurable (processing details) Scalable (crawling) Open architecture
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 5 / 23
Architecture
1
Introduction
2
Architecture
3
Services
4
Demonstration
5
Future plans
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 6 / 23
Architecture Overview
Framework
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 7 / 23
Architecture Overview
Reporting
Web GUI Alerts CLI Report DB
Operational
Framework
Monitoring Job Job Job Job
export
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 8 / 23
Architecture Overview
Network communication
Advanced Message Queueing Protocol Google Protocol Buffers
Storage
CouchDB JSON documents
Programming languages
Java Python (C++)
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 9 / 23
Architecture Configurability
Job start parameter A = "some value" ... accepted rejected yes no
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 10 / 23
Architecture Configurability
Job start accepted
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 10 / 23
Architecture Configurability
parameter A = "some value" ... accepted rejected yes no
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 10 / 23
Services
1
Introduction
2
Architecture
3
Services
4
Demonstration
5
Future plans
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 11 / 23
Services Implemented services
HtmlUnit-based custom browser emulator
implemented in Java uses Rhino engine complete control over all behaviors (requests, redirects, frames) link extraction
Thug (low interaction honeypot)
implemented in Python uses V8 engine less control detects common attacks
These are not crawlers!
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 12 / 23
Services Implemented services
Static JavaScript analyzer
port from version 1 n-grams + Bayes classifier
SWF analyzer (NASK) Shellcode detection (scdbg) Cuckoo Sandbox Capture-HPC
high-interaction honeypot used in HSN 1.x new features and stability fixes
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 13 / 23
Services Implemented services
Feeder
file with URLs search engine results . . .
URL normalizer Reporter (persistent data)
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 14 / 23
Services Razorback integration
Modular IDS Data acquisition decoupled from offline analyses Dispatcher: routes data Nuggets (services)
collection (Snort, SMTP , . . . ) analyzers enrichment (DNS, . . . )
SQL database GUI
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 15 / 23
Services Razorback integration
Modular IDS Data acquisition decoupled from offline analyses Dispatcher: routes data Nuggets (services)
collection (Snort, SMTP , . . . ) analyzers enrichment (DNS, . . . )
SQL database GUI
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 15 / 23
Services Razorback integration
Universal Razorback-to-HSN 2.0 adapter Only recompilation required, no changes to source code Tested nuggets:
swfScanner pdfFox clamavNugget
virusTotal archiveInflate
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 16 / 23
Services Extensibility
Open communication protocol Well-defined data contract for each service Open technologies: AMQP , protobuf, REST, JSON Libraries provided for Java and Python
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 17 / 23
Demonstration
1
Introduction
2
Architecture
3
Services
4
Demonstration
5
Future plans
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 18 / 23
Demonstration
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 19 / 23
Future plans
1
Introduction
2
Architecture
3
Services
4
Demonstration
5
Future plans
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 20 / 23
Future plans
All essential components implemented
framework storage web client
Growing set of analyzers Functional web interface More tests and stabilization needed
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 21 / 23
Future plans
Release as open source (soon!) Improve management of the whole system More analyzers
integrate existing tools analysis of sandbox data alternative web clients (high-interactive?) looking for more ideas!
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 22 / 23
Paweł Pawli´ nski (CERT Polska / NASK) HoneySpider Network 2.0 FIRST 2012 23 / 23