build your own open source penetration testing lab

26
Build your own Open Source Penetration Testing Lab FSec - FOI Security Symposium 22.9.2011 and 23.9.2011 – Varaždin Phillip Bailey www.bailey.st [email protected]

Upload: phillip-bailey

Post on 01-Dec-2014

126 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Build Your Own Open Source Penetration Testing Lab

Build your own Open Source Penetration Testing Lab

FSec - FOI Security Symposium 22.9.2011 and 23.9.2011 – Varaždin

Phillip Bailey

www.bailey.st

[email protected]

Page 2: Build Your Own Open Source Penetration Testing Lab

Penetration testing and

Security Assessment

Page 3: Build Your Own Open Source Penetration Testing Lab

Why do we need a pen test lab?

Legal issues

Page 4: Build Your Own Open Source Penetration Testing Lab

Why do we need a pen test lab?

Legal issues

Hack black boxes in a real life scenario

Page 5: Build Your Own Open Source Penetration Testing Lab

Why do we need a pen test lab?

Legal issues

Hack black boxes in a real life scenario

Security ( Intentional or not, Arp poison, DoS, etc-etc, attacks on the Corporate,

University, Hackerspace, network.)

Page 6: Build Your Own Open Source Penetration Testing Lab

Why do we need it Virtual and Open Source?

$$ Hardware cost savings $$

Page 7: Build Your Own Open Source Penetration Testing Lab

Why do we need it Virtual and Open Source?

$$ Hardware cost savings $$

Easy to maintain, replicate and redeploy.

Page 8: Build Your Own Open Source Penetration Testing Lab

Why do we need it Virtual and Open Source?

$$ Hardware cost savings $$

Easy to maintain, replicate and redeploy.

Modify, customize and share.

Page 9: Build Your Own Open Source Penetration Testing Lab

Who When Where

Security consultants

Ethical hacking University courses

Security tools developers

Corporate Information Security departments

Hackerspaces

Capture the flag competitions

Home

Page 10: Build Your Own Open Source Penetration Testing Lab

A bit of structure

Hardware

Virtualization platform

Methodologies and docs

Vulnerable machines and weak applications

PenTest tools and Linux distros

Network Security Monitoring tools

Page 11: Build Your Own Open Source Penetration Testing Lab

Hardware

Page 12: Build Your Own Open Source Penetration Testing Lab

Hardware

Minimal Configuration

Server/Workstation2GB RAM320 GB Disk Drive

Network Switch

Laptops

Large Deployment

Server (some cores)

8 GB RAM2 TB Disk Drive

Network Switch (managed)

Router (VPN Capable)

WiFi AP

Dedicate NSM/IDS Server

Laptops

Page 13: Build Your Own Open Source Penetration Testing Lab

Virtualization platforms

Page 14: Build Your Own Open Source Penetration Testing Lab

Methodologies and docs

OSSTMM - Open Source Security TestingMethodology Manual www.isecom.org

ISSAF penetration testing frameworkwww.oissg.org

OWASP Testing Guide www.owasp.org

Keep your own Wiki!!!

Page 15: Build Your Own Open Source Penetration Testing Lab

It's all about boxes

White-box testing

VS

Black-box testing

Page 16: Build Your Own Open Source Penetration Testing Lab

Vulnerable machines and weak applications (WebApps)

OWASP Hackademic Challenges

Realistic scenarios with known vulnerabilities in a safe, controllable environment.

UltimateLAMP

WordPress, MediaWiki, TikiWiki, Gallery, Moodle, PHPWebSite, Joomla, eGroupWare, Drupal, Php Bulletin Board, Sugar CRM WebCalendar, Dot

project, PhpAdsNew, OsCommerce, ZenCart, PhphMyAdmin, Webmin,Mutillidae 1.5 OWASP top 10

Page 17: Build Your Own Open Source Penetration Testing Lab

Vulnerable machines and weak applications (Sys&Serv)

Kioptrix Level 1 Remote OpenSSL exploit

De-ICE PenTest LiveCDs Weak credential and misconfigured services

MetasploitableTomcat 5.5 (with weak credentials), distcc, and an

older mysql.

Page 18: Build Your Own Open Source Penetration Testing Lab

PenTest tools and Linux distros

Tools

Nmap

Metasploit

Social Engineering Toolkit

Arachni

W3af

Sqlninja

Ncrack

WATOBO

Sqlmap

Linux Distributions

NodeZero

Make your ownGoogle for “pentes linux distro”

Page 19: Build Your Own Open Source Penetration Testing Lab

NodeZero - netinfinity.org

Page 20: Build Your Own Open Source Penetration Testing Lab

NodeZero - netinfinity.org

Page 21: Build Your Own Open Source Penetration Testing Lab

Network Security Monitoring

Insta-Snorby

Snort Engine

Smooth-Sec

Suricata Engine

https://github.com/Snorby/insta-snorby

https://sourceforge.net/projects/smoothsec

Page 22: Build Your Own Open Source Penetration Testing Lab

Small environment lab.

Page 23: Build Your Own Open Source Penetration Testing Lab

Big deployment lab

Page 24: Build Your Own Open Source Penetration Testing Lab

Notes

Pentest lab vulnerable servers-applications listhttp://tiny.cc/vmlist

Linux Penetration Testing distributions listhttp://tiny.cc/pentestdistro

Page 25: Build Your Own Open Source Penetration Testing Lab

Hvala!

Page 26: Build Your Own Open Source Penetration Testing Lab

Phillip Bailey

www.bailey.st

[email protected]