35
The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Embed Size (px)

Citation preview

Page 1: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

The Defense RESTs: Automation and APIs for Better Security

September 26, 2012

David Mortman

Page 2: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Introduction

Page 3: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Want to get better at security?

Page 4: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Improve your operations

Page 5: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Improve your developement

Page 6: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

The Problem

Page 7: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Huge % of incidents revolve around

operational or coding issues

Page 8: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Why?

Page 9: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

People Are Bad At Repeatable Tasks!

Page 10: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Centralization, automation & testing can address this

Page 11: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Use APIs and existing ops/dev tools!

Page 12: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Chef, Puppet, etc

Page 13: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Compliance

&

Change Control

Page 14: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Configuration Drift

AKA

Variation is Evil

Page 15: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Key Management

Page 16: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Auto-Scaling

Page 17: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Auto-scanning on VM launch

Page 18: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

INSTANCE=`ec2-run-instances $AMI -t $TYPE -k $KEY | grep i- | cut -f 2`; until [ $IP ]; do sleep 15; IP=`ec2-describe-instances $INSTANCE | grep i- | cut -f 17`; done ; curl -H "X-Requested-With: DM Automation" -u $USER:$PASS "https://qualysapi.qualys.com/msp/asset_ip.php?action=add&host_ips=$IP"; curl -H "X-Requested-With: DM Automation" -u $USER:$PASS "https://qualysapi.qualys.com/msp/scan.php?ip=$IP&save_report=yes"

Page 19: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Jenkins

Page 20: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Findbugs et al.

http://findbugs.sourceforge.net/

Page 21: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Functional and Unit Testing

Page 22: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Positive and Negative Testing

Page 23: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Gauntlt

https://github.com/thegauntlet/gauntlt

Page 24: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Auto-code/site scanning on commit

Page 25: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

PUT https://sentinel.whitehatsec.com/api/vuln/retest/<id>

Page 26: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

A Little DevOps

Page 27: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Woodward:

Code Changes & Complexity

Page 28: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

APIs: REST vs SOAP

Page 29: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Future Directions

& Resources

Page 30: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

iControl

&

Space

Page 31: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

IF-MAP

Page 32: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Security Automation List

SecurityAutomata.Com

Page 33: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

IAM

SCIM/XACML

Page 34: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Conclusion

Page 35: The Defense RESTs: Automation and APIs for Better Security September 26, 2012 David Mortman

Any questions?

David MortmanChief Security Architect

[email protected]@mortman