Attacking Pipelines--Security meets Continuous Delivery
Goal: Equip you with the
Theory, Examples and Tooling
so that you can begin Your
rugged journey with an
attacking pipeline you can
lovingly call your very own
Attacking Pipelines--Security meets Continuous Delivery
James Wickett
james@gauntlt.org

Austin, TX

Gauntlt Core Team

DevOps Days Austin Organizer

Velocity, LASCON, ISC2, AppSecUSA,
B-Sides, …
Why does this matter?
Attacking Pipelines--Security meets Continuous Delivery
“I want to solve a problem
so we can make awesome”
- Business
CIO say whut?
Attacking Pipelines--Security meets Continuous Delivery
…in 2 years with an
expensive, bloated project
that is so fragile that we
can only make changes to
it 4 times a year and only
after the sacred upgrade
rituals are performed
CISO say whut?
Attacking Pipelines--Security meets Continuous Delivery
Biz say whut?
Just Ship It!
SPOILER ALERT!
the business wins
Attacking Pipelines--Security meets Continuous Delivery
Attacking Pipelines--Security meets Continuous Delivery
How did we get here?
Software has Changed
Software as a Service
Software
as
Bricolage
Bolt on
Feature
Approach
Fragile Code as a
Service
Deploy Timelines Have
Changed
Dev and Ops have teamed
up in this new world
http://www.slideshare.net/jallspaw/10-deploys-per-day-dev-and-ops-cooperation-at-flickr
DevOps is 5 years old
now
The security organization
is stuck in 1997
… mostly
Why is that?
Compliance Driven
Culture: PCI, SOX, …
Ratio Problem
Devs / Ops / Security
100 / 10 / 1
Security Tools
are run out-of-band
But, there is hope
https://speakerdeck.com/garethr/security-monitoring-penetration-testing-meets-monitoring
http://www.youtube.com/watch?v=jQblKuMuS0Y
The Society of Rugged
Developers
!
ruggeddev.org
Attacking Pipelines--Security meets Continuous Delivery
Rugged Journey
Quality

Transparency

Value Creation

Culture infusion
#RuggedDevOps
http://www.slideshare.net/wickett/putting-rugged-into-your-devops-toolchain
Pipelines!
Continuous Integration
commit -> test -> deploy
github -> travis -> s3
git -> jenkins -> rundeck
you can now answer
the question of what is
deployed and how it
was tested
Simple is better
Continuous Integration Options
On premise: Jenkins

Cloud hosted: Travis CI, Circle CI,
CloudBees, Wercker, Shippable,
Drone.io…

Or a mix: DotCI
Attacking Pipelines--Security meets Continuous Delivery
Attacking Pipeline Guide
Check your app/service/thing into a github repo

Create some security tests

Setup Travis CI to talk to your repo

Create a .travis.yml file

Write code, write moar security tests…
Try this at home
github.com/gauntlt/gauntlt-demo
Fork This
What is gauntlt-demo
Contains vulnerable web apps written in
python and ruby on rails
Easy hooks for spinning up the apps
Contains labs and examples for writing attacks
An attacking pipeline Travis CI to attack the
web apps
Installation
$ git clone https://github.com/gauntlt/
gauntlt-demo
$ cd ./gauntlt-demo
$ git submodule update --init --recursive
$ bundle
$ bundle exec start_services
config/gruyere.rb
http://localhost:8008/
Attacking Pipeline Guide
Check your app/service/thing into a github repo

Create some security tests

Setup Travis CI to talk to your repo

Create a .travis.yml file

Write code, write moar security tests…
Security Testing
Static Code Analysis

Dynamic Testing

Virus Scanning

Code Signing Checks

Business logic/flow testing
convert thy pdf to tests!
Wouldn’t it be great if we
could automate our
security tests…
http://static.hothdwallpaper.net/51b8e4ee5a5ae19808.jpg
Security + Cucumber =
Gauntlt
Built on Cucumber
Gauntlt Philosophy
Gauntlt comes with pre-canned steps that hook
security testing tools

Gauntlt does not install tools

Gauntlt can be part of the CI/CD pipeline

Be a good citizen of exit status and stdout/stderr

MIT Open Source License
Who uses Gauntlt?
TLDR;
!
Gauntlt automates
security tools
Attack Logic
GIVEN

WHEN

THEN
Attacking Pipelines--Security meets Continuous Delivery
Let’s automate two
attacks
Garmr is Mozilla Security
policy distilled for the rest
of us
Attacking Pipelines--Security meets Continuous Delivery
Check for XSS
Attacking Pipelines--Security meets Continuous Delivery
Rake
require 'gauntlt'

task :gauntlt do

sh "cd ./vendor/gruyere && ./manual_launch.sh && cd ../.."

sh "cd ./examples && bundle exec gauntlt --tags @final &&
cd .."

sh "cd ./vendor/gruyere && ./manual_kill.sh && cd ../.."

end
Attacking Pipeline Guide
Check your app/service/thing into a github repo

Create some security tests

Setup Travis CI to talk to your repo

Create a .travis.yml file

Write code, write moar security tests…
Let’s set up the
pipeline
Setup Travis CI
Go to travis-ci.org, login with github credentials 

Find the repo you cloned (might need to sync)

Flip the switch ‘on’
Attacking Pipelines--Security meets Continuous Delivery
Attacking Pipeline Guide
Check your app/service/thing into a github repo

Create some security tests

Setup Travis CI to talk to your repo

Create a .travis.yml file

Write code, write moar security tests…
.travis.yml
language: ruby
rvm:
- 1.9.3
before_install:
- git submodule update --init --
recursive
.travis.yml
before_script:
- sudo apt-get install nmap
- export SSLYZE_PATH="/home/travis/build/
gauntlt/gauntlt-demo/vendor/sslyze/sslyze.py"
- export SQLMAP_PATH="/home/travis/build/
gauntlt/gauntlt-demo/vendor/sqlmap/sqlmap.py"
- 'cd vendor/Garmr && sudo python setup.py
install && cd ../..'
.travis.yml
script: bundle exec rake
.travis.yml
notifications:
irc:
channels:
- “chat.freenode.net#gauntlt"
use_notice: true
.travis.yml
deploy:
provider: s3
access_key_id: ASDBDSABDASDBDSDASD
secret_access_key:
secure:dasjdkla;sdjsakdsadasd
bucket: build-artifacts
Attacking Pipelines--Security meets Continuous Delivery
Attacking Pipelines--Security meets Continuous Delivery
Attacking Pipelines--Security meets Continuous Delivery
Sahweet!
Attacking Pipeline Guide
Check your app/service/thing into a github repo

Create some security tests

Setup Travis CI to talk to your repo

Create a .travis.yml file

Write code, write moar security tests…
https://speakerdeck.com/mkonda/appsecusa-2013-insecure-expectations
http://vimeo.com/75930344
more on gauntlt
• Google Group > https://groups.google.com/d/
forum/gauntlt

• Wiki > https://github.com/gauntlt/gauntlt/wiki

• Twitter > @gauntlt

• IRC > #gauntlt on freenode

• Issue tracking > http://github.com/gauntlt/gauntlt
https://vimeo.com/79797907
50% off Gauntlt Book
leanpub.com/hands-on-gauntlt/c/austin-sdlc
Caveat Emptor:
Under
development!
Valid until June 15th
Attacking Pipelines--Security meets Continuous Delivery
Questions?
!
twitter: @wickett
email: james@gauntlt.org

More Related Content

PPTX
Internship workshop
PPTX
Deloitte Final (1).pptx
PPTX
Developing your Employee Engagement Strategy for Business Success: Part 2
PDF
The National HR Audit framework presented by Bonnie Johansen, Chairperson: SA...
PPTX
Understanding Strategies, Tactics and Measurement
PDF
ICSM 2012 ERA
PPTX
Tagr power affirmations-day 001
PPTX
Coluna Prestes
Internship workshop
Deloitte Final (1).pptx
Developing your Employee Engagement Strategy for Business Success: Part 2
The National HR Audit framework presented by Bonnie Johansen, Chairperson: SA...
Understanding Strategies, Tactics and Measurement
ICSM 2012 ERA
Tagr power affirmations-day 001
Coluna Prestes

Similar to Attacking Pipelines--Security meets Continuous Delivery (20)

PDF
Pragmatic Pipeline Security
PDF
The "Holy Grail" of Dev/Ops
PPTX
CICD With GitHub, Travis, SonarCloud and Docker Hub
PDF
Gitlab ci, cncf.sk
PPTX
Security Testing with Zap
PPT
Continuous Integration using Cruise Control
PPTX
All you need is Zap - Omer Levi Hevroni & Yshay Yaacobi - DevOpsDays Tel Aviv...
PDF
Adopt DevOps philosophy on your Symfony projects (Symfony Live 2011)
PDF
Intro to DevOps 4 undergraduates
PDF
Simplified DevOps Bliss -with OpenAI API
PDF
DevSecOps and the CI/CD Pipeline
PPTX
Deploying R for Production - SRUG
PPTX
Azure from scratch part 4
PPTX
DevOps On AWS - Deep Dive on Continuous Delivery
PDF
Continuous Delivery for Python Developers – PyCon Otto
PDF
The DevSecOps Builder’s Guide to the CI/CD Pipeline
PDF
When to use Serverless? When to use Kubernetes?
PDF
The DevOps Paradigm
PDF
The DevOps paradigm - the evolution of IT professionals and opensource toolkit
PDF
WSO2Con EU 2015: Keynote - The Containerization of the Developer Workspace
Pragmatic Pipeline Security
The "Holy Grail" of Dev/Ops
CICD With GitHub, Travis, SonarCloud and Docker Hub
Gitlab ci, cncf.sk
Security Testing with Zap
Continuous Integration using Cruise Control
All you need is Zap - Omer Levi Hevroni & Yshay Yaacobi - DevOpsDays Tel Aviv...
Adopt DevOps philosophy on your Symfony projects (Symfony Live 2011)
Intro to DevOps 4 undergraduates
Simplified DevOps Bliss -with OpenAI API
DevSecOps and the CI/CD Pipeline
Deploying R for Production - SRUG
Azure from scratch part 4
DevOps On AWS - Deep Dive on Continuous Delivery
Continuous Delivery for Python Developers – PyCon Otto
The DevSecOps Builder’s Guide to the CI/CD Pipeline
When to use Serverless? When to use Kubernetes?
The DevOps Paradigm
The DevOps paradigm - the evolution of IT professionals and opensource toolkit
WSO2Con EU 2015: Keynote - The Containerization of the Developer Workspace
Ad

More from James Wickett (20)

PDF
A Pragmatic Union: Security and SRE
PDF
A Way to Think about DevSecOps: MEASURE
PDF
The Security, DevOps, and Chaos Playbook to Change the World
PDF
A Tale of Woe, Chaos, and Business
PDF
A DevSecOps Tale of Business, Engineering, and People
PDF
The New Ways of DevSecOps - The Secure Dev 2019
PDF
NewOps Days 2019: The New Ways of Chaos, Security, and DevOps
PDF
The New Ways of Chaos, Security, and DevOps
PDF
DevOpsDays Austin: Security in the FaaS Lane
PDF
The Seven Habits of the Highly Effective DevSecOp
PDF
Serverless Security: A How-to Guide @ SnowFROC 2019
PDF
Release Your Inner DevSecOp
PDF
Security in the FaaS Lane
PDF
The New Security Playbook: DevSecOps
PDF
The Emergent Cloud Security Toolchain for CI/CD
PDF
Adversary Driven Defense in the Real World
PDF
The State of DevSecOps in 2018
PDF
DevSecOps in the Year 2018
PDF
DevSecOps and the New Path Forward
PDF
The Emergent Cloud Security Toolchain for CI/CD
A Pragmatic Union: Security and SRE
A Way to Think about DevSecOps: MEASURE
The Security, DevOps, and Chaos Playbook to Change the World
A Tale of Woe, Chaos, and Business
A DevSecOps Tale of Business, Engineering, and People
The New Ways of DevSecOps - The Secure Dev 2019
NewOps Days 2019: The New Ways of Chaos, Security, and DevOps
The New Ways of Chaos, Security, and DevOps
DevOpsDays Austin: Security in the FaaS Lane
The Seven Habits of the Highly Effective DevSecOp
Serverless Security: A How-to Guide @ SnowFROC 2019
Release Your Inner DevSecOp
Security in the FaaS Lane
The New Security Playbook: DevSecOps
The Emergent Cloud Security Toolchain for CI/CD
Adversary Driven Defense in the Real World
The State of DevSecOps in 2018
DevSecOps in the Year 2018
DevSecOps and the New Path Forward
The Emergent Cloud Security Toolchain for CI/CD
Ad

Recently uploaded (20)

PDF
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
PDF
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
PDF
4 layer Arch & Reference Arch of IoT.pdf
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
PDF
Introduction to MCP and A2A Protocols: Enabling Agent Communication
PDF
Build Real-Time ML Apps with Python, Feast & NoSQL
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
PDF
CEH Module 2 Footprinting CEH V13, concepts
PDF
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
The AI Revolution in Customer Service - 2025
PPTX
Presentation - Principles of Instructional Design.pptx
PDF
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
Connector Corner: Transform Unstructured Documents with Agentic Automation
DOCX
Basics of Cloud Computing - Cloud Ecosystem
PDF
Auditboard EB SOX Playbook 2023 edition.
PPTX
SGT Report The Beast Plan and Cyberphysical Systems of Control
PDF
A symptom-driven medical diagnosis support model based on machine learning te...
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
4 layer Arch & Reference Arch of IoT.pdf
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
Early detection and classification of bone marrow changes in lumbar vertebrae...
Introduction to MCP and A2A Protocols: Enabling Agent Communication
Build Real-Time ML Apps with Python, Feast & NoSQL
Data Virtualization in Action: Scaling APIs and Apps with FME
CEH Module 2 Footprinting CEH V13, concepts
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
The AI Revolution in Customer Service - 2025
Presentation - Principles of Instructional Design.pptx
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
Co-training pseudo-labeling for text classification with support vector machi...
Connector Corner: Transform Unstructured Documents with Agentic Automation
Basics of Cloud Computing - Cloud Ecosystem
Auditboard EB SOX Playbook 2023 edition.
SGT Report The Beast Plan and Cyberphysical Systems of Control
A symptom-driven medical diagnosis support model based on machine learning te...

Attacking Pipelines--Security meets Continuous Delivery