38
New Adventures in Security Testing Dan Billing www.thetestdoctor.wordpress.com @TheTestDoctor

New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Embed Size (px)

Citation preview

Page 1: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

New Adventures

in Security

Testing

Dan Billing

www.thetestdoctor.wordpress.com

@TheTestDoctor

Page 2: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Reflections How far has just being a 'functional

tester' taken me?

Am I excited by my work anymore?

Have I maintained and developed my

skills as a tester?

What do I have to do to make a

change?

Page 3: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

"To know what skills to focus on learning you need

to know what skills you need for your chosen

career…compare this to what skills you currently

have. The difference between the two is where

you should focus your learning"

Remaining Relevant and employable in a changing world - Testers Edition

Rob Lambert, Leanpub, 2013

Focus your learning

Page 4: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Why

Security?

Page 5: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP
Page 6: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP
Page 7: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP
Page 8: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Potential Threats

...it's all about the attacks

Page 9: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP
Page 10: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP
Page 11: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP
Page 12: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Motivations behind attacks (Jan - Apr 2014)

Source: Hackmageddon.com

Cyber crime 61% Hacktivism 31%

Page 13: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Recent Significant Attacks

Page 14: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Recent Significant Attacks

Page 15: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Recent Significant Attacks

Page 16: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP
Page 17: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Boldly Going…?

Page 18: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

First Steps • Understand the threats to your systems -

STRIDE

• Explore the OWASP website –

www.owasp.org

• Learn the OWASP Top 10 – They are the

10 Commandments of Web Security

Testing

• Learn some techniques and when to use

them

Page 19: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

• Understand your applications

and their infrastructure

• Get to know your Dev/Ops team

– they’ll be your new best

friends

• Follow the security and hacking

bloggers like Troy Hunt

• Take a course or two

Page 20: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Play it Safe

• www.altoromutual.com – deliberately vulnerable

banking site - IBM

• http://google-gruyere.appspot.com – Structured

approach to learning exploits and vulnerabilities

– Google

• https://code.google.com/p/bodgeit/ - vulnerable

retail store, runs locally on Apache - OWASP

Page 21: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Play it Safe

• http://www.mmeit.be/bwapp/ – bWapp: an

extremely buggy web app

• https://www.owasp.org/index.php/OWASP_Bricks

- OWASP Bricks

• A VM running your own applications

• Mobisec – a mobile security testing framework

and emulator

Page 22: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Know Your Enemy

• www.hackmageddon.com – news and updates

on recent attacks and hacks

• www.securityninja.com – great news, research

and guidance resource

• www.hackthissite.org – Hackers legal sandbox

• www.hackthis.co.uk – another hackers sandbox

from the UK

Page 23: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

“Once you start down the dark path, forever it will dominate your destiny. Consume you it will” - Yoda

Page 24: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP
Page 25: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

STRIDE SPOOFING – illegally using another's authentication information to gain

access

TAMPERING – malicious modification to either persistent data, or as it

flows through a network

REPUDIATION – Denying performing an action without other parties

having a way to prove otherwise

INFORMATION DISCLOSURE – Exposure of information to those who

should not have access

DENIAL OF SERVICE – Denying valid user access to a service

ELEVATION OF PRIVILEGE – Allowing a user access to a system

above their privilege level

Page 26: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Injection in a Nutshell

Xkcd.com/327 – Exploits of a Mom

Page 27: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Injection in a Nutshell

Xkcd.com/327 – Exploits of a Mom

Page 28: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Injection – an Example

Page 29: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Injection – an Example

Page 30: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Cross Site Scripting

Page 31: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

XSS – an example

Exploits a victims trust in a

particular site

Page 32: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

XSS – an example

Page 33: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Weapon of Choice

• Browser Developer Tools

• Browser plugins e.g.

TamperData, Firebug, The

Postman

• OWASP Mantra

Page 34: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Man in the Middle • Fiddler

• Zed Attack Proxy

• Burpsuite

• nMap/Zenmap

• Beef

• Wireshark

Page 35: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Where next…?

• Automated scanning and

regression

• Better vulnerability

detection and analysis

• Sharing knowledge

• Increased confidence

Page 36: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

SEEK! LOCATE! EXTERMINATE!

Page 37: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

EX – EXPLORE

T – THREATS

E – EXPERIMENT

R – RISKS

M – MONITOR

IN – INTERROGATE

A – ANALYSIS

T – TARGETED

E - EXPEDITED

A Security Testing

Mnemonic

Page 38: New Adventures in Security Testing - Nordic Testing Days · New Adventures in Security Testing Dan Billing @TheTestDoctor. Reflections How far has just being a 'functional ... - OWASP

Q&A

• Senior Test Engineer at New Voice Media

• www.newvoicemedia.com

• Blog: www.thetestdoctor.wordpress.com

• Twitter @thetestdoctor