Top Banner
Static Analysis for Dynamic Assessments Greg Patton | September 2014
24

Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Dec 22, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Static Analysis for Dynamic Assessments

Greg Patton | September 2014

Page 2: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Agenda

• Introduction• Background & observations• Static analysis for dynamic

assessments– RIPSA tool

• Takeaways

Page 3: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Introduction

Greg PattonMobile Delivery Manager, HP Fortify on Demand

• Work on Fortify on Demand team• Web & mobile dynamic application testing• Attended first OWASP meeting on June 5, 2007 (Houston, TX)

[email protected]

Page 4: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

BACKGROUND & OBSERVATIONS

Page 5: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Great divides

• Security vs. Usability

• Builders vs. Breakers

• Dynamic vs. Static

Page 6: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Common dynamic challenges

• Lack of complete security assessments– Few conduct static and dynamic assessments in

concert

Page 7: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Common dynamic challenges

• Lack of complete security assessments– Few conduct static and dynamic assessments in

concert• Client-side false negatives– Dynamic tools and tests miss stuff

Page 8: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Common dynamic challenges

• Lack of complete security assessments– Few conduct static and dynamic assessments in

concert• Client-side false negatives– Dynamic tools and tests miss stuff

• “No source code available”– Dynamic testers rarely receive source code

Page 9: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

A possible solution

Use static tools during dynamic assessments

Deeper analysis of JavaScript, HTML, XML, and other client-side files

Page 10: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

STATIC ANALYSIS FORDYNAMIC ASSESSMENTS

Page 11: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

RIPSA

• Accepts XML from Burp– Target Site Map– Proxy History

• Parses and saves responses as individual files on tester’s machine

• Output files can be scanned with static tools and manually audited

Page 12: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Save Burp responses as XML

Page 13: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

RIPSA

Page 14: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Evaluate XMLSave files locally

Page 15: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Statically analyze local files

Page 16: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

DEMO: RIPSARESPONSE INTERPRETATION AND PREPARATION FOR STATIC ANALYSIS

Page 17: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

#Winning

Reduces potential false negatives by increasing breadth of dynamic web assessments

Utilizes information from Burp Suite that dynamic testers already collect

Pairs part of a static assessment with a full dynamic web assessment

Page 18: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

#Winning

• Static tools– Fortify SCA, FxCop, JSHint, etc.

• JavaScript analysis – DOM based XSS

• Silverlight analysis• Gather and group files

– .dll files for disassembly– .pdf files for strings analysis

Page 19: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

TAKEAWAYS

Page 20: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Takeaways

Embrace static

• Use static tools and techniques to dig deeper into client-side & DOM results– Use automated static tools– Disassemble and decompile

Java, Silverlight, Flash, etc.

Page 21: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Takeaways

Embrace static

• Use static information to assist with content discovery.– Map application– Identify files and targets

Page 22: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Call to the community

• ZAP extensions– Save responses as local files?– Static scanning signatures?

• Other ideas?

Page 23: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Special thanks

Special thanks toSam DenardDavid Nester

Page 24: Static Analysis for Dynamic Assessments Greg Patton | September 2014.

Reach out

[email protected]