To m D u c k e r i n g & P a t D o w n e y
SECURING THE PIPELINE
Ideas, practices and food for thought to improve the
security surrounding regular delivery of software to
production.
WHO ARE WE AND WHAT DO WE KNOW?
2
Dev OpsTom
& Pat
WHO ARE WE AND WHAT DO WE KNOW?
3
Dev Ops
Sec
Tom
& Pat
WHAT HAVE WE SEEN?
4
Insecure
& Fast
“Over secure”
& Slow
WHAT HAPPENS IN HERE?
5
User accounts

Secure coding

Algorithm choice
Penetration

testing
What about
the pipeline!?
YOUR BUILD SYSTEM
IS PRODUCTION!
6
SECURING THE
PIPELINE
From head to tail
7
PIPELINE
8
Workstation
Code
Repo
CI Server
Build
Agent
Deploy
Agent
Pkg
Repo
Local
Cache
Prod.
Staging
QA
3rd party
code
Devs
PIPELINE
9
Workstation
Code
Repo
CI Server
Build
Agent
Deploy
Agent
Pkg
Repo
Local
Cache
Prod.
Staging
QA
3rd party
code
Devs
SHARED ACCOUNTS
10
Pa$$w0rd2015
SECURE WORKSTATIONS
11
WHO COMMITED?
12
commit 4698b247268f053299230843dd1ae68e4d15a7e3
Author: You can put anything here <mickey.mouse@foo.com>
Date: Mon Jul 6 16:23:06 2015 +0100
#837: Send logs via syslog
Lorem ipsum dolor sit amet, consetetur sadipscing elitr,
sed diam nonumy eirmod tempor invidunt ut labore et dolore
magna aliquyam erat, sed diam voluptua. At vero eos et
accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est.
KEYS OR PASSWORDS?
13
USE HTTPS OR SSH
14
There’s simply no good reason not to.
CENTRALISED CONTROL
15
Code Repo User Directory
PIPELINE
16
Workstation
Code
Repo
CI Server
Build
Agent
Deploy
Agent
Pkg
Repo
Local
Cache
Prod.
Staging
QA
3rd party
code
Devs
HOW MUCH IS *YOUR* CODE?
17
WHERE TO START?
18
Use modelling and threat analysis to prioritise the susceptible
Discover what you depend on
Assess the origin of that code for maturity of security practices
PIPELINE
19
Workstation
Code
Repo
CI Server
Build
Agent
Deploy
Agent
Pkg
Repo
Local
Cache
Prod.
Staging
QA
3rd party
code
Devs
CI SERVER & IT’S AGENTS
20
It’s a remote execution problem
Separate agents to avoid compromises
Isolate builds using chroots and containers
PIPELINE
21
Workstation
Code
Repo
CI Server
Build
Agent
Deploy
Agent
Pkg
Repo
Local
Cache
Prod.
Staging
QA
3rd party
code
Devs
PACKAGING
22
Use package system facilities to verify and sign code
But lots of them need “root” :(
Containers and unikernels offer a possible approach
But they’re immature in other ways :(
PIPELINE
23
Workstation
Code
Repo
CI Server
Build
Agent
Deploy
Agent
Pkg
Repo
Local
Cache
Prod.
Staging
QA
3rd party
code
Devs
DEPLOYMENT EXECUTION
24
Deploy
Agent
Web
Server
Service A
Data
Store
Service B
Service C
Push deployments with:
automated key based ssh!
and rights to install as root!
to all machines!
Limit the commands (e.g. via
sudo and ssh)
Consider a notification and pull
based approach
KEEPING SECRETS
25
KEY, CERT & SECRET MANAGEMENT
26
Secrets required for credentials
Try to use PKI where you can
If it has to be a password then
encrypt them per environment.
Try not to move private keys
Plan for rotation
There’s a chaining problem. It’s
hard.
CONTROL VS. AUDIT
27
CONTROL VS. AUDIT
28
Stop bad thing from being possible Know when a bad thing happened
Impact of the threat is
greater than impact on
productivity
Productivity impacted
too much to stop it
completely
Need to know
immediately
Acceptable to know
afterwards
THE “NSA” WAY
29
Log all the things
Alert on bad things
Look for patterns
Tell everyone that you’re doing it (unlike the NSA)
COMPLIANCE
30
SEGREGATION OF DUTIES
31
Not always explicitly mandated so RTFM
Good principle: “no single person…”
Bring it forward in the pipeline with pairing, PRs and code reviews
HOW TO GET THERE?
32
HOW TO GET THERE?
33
Dev Sec Ops
Collaborative
Goal
HOW TO GET THERE?
34
Structured & Objective
HOW TO GET THERE?
35
No Silver Bullet.
Hard things still hard
QUESTIONS?
36
Tom Duckering 

tduckeri@thoughtworks.com
@tomduckering


Pat Downey 

pdowney@thoughtworks.com
@pat_downey
THANK YOU

More Related Content

PDF
ThoughtWorks Technology Radar Roadshow - Brisbane
PDF
[muCon2017]DevSecOps: How to Continuously Integrate Security into DevOps
PDF
Automated Virtualized Testing (AVT) with Docker, Kubernetes, WireMock and Gat...
PDF
Jenkins in the real world - DevOpsCon 2017
PDF
Embracing Observability in CI/CD with OpenTelemetry
PDF
Observability
PDF
Extensible dev secops pipelines with Jenkins, Docker, Terraform, and a kitche...
PPTX
DevSecOps reference architectures 2018
ThoughtWorks Technology Radar Roadshow - Brisbane
[muCon2017]DevSecOps: How to Continuously Integrate Security into DevOps
Automated Virtualized Testing (AVT) with Docker, Kubernetes, WireMock and Gat...
Jenkins in the real world - DevOpsCon 2017
Embracing Observability in CI/CD with OpenTelemetry
Observability
Extensible dev secops pipelines with Jenkins, Docker, Terraform, and a kitche...
DevSecOps reference architectures 2018

What's hot (20)

PDF
PuppetConf 2016: Keynote: Pulling the Strings to Containerize Your Life - Sco...
PDF
Enterprise DevOps Series: Using VS Code & Zowe
PDF
LFX Nov 16, 2021 - Find vulnerabilities before security knocks on your door
PDF
The DevSecOps Builder’s Guide to the CI/CD Pipeline
PDF
Cloud Native Engineering with SRE and GitOps
PDF
E bpf and profilers
PDF
Microsoft DevOps Forum 2021 – DevOps & Security
PDF
From Monolith to K8s - Spring One 2020
PDF
Building security into the pipelines
PDF
MJC 2021: "Debugging Java Microservices Running on Kubernetes with Telepresence"
PDF
Cloud native development without the toil
PPTX
360° Kubernetes Security: From Source Code to K8s Configuration Security
PDF
Scale DevSecOps with your Continuous Integration Pipeline
PDF
Embacing service-level-objectives of your microservices in your Cl/CD
PDF
use case ibm k8s_service+devops
PDF
What is Google Cloud Good For at DevFestInspire 2021
PDF
CNCF Webinar Series: "Creating an Effective Developer Experience on Kubernetes"
PDF
DevSecOps What Why and How
PDF
Google Cloud Build - Sfeir Lunch Janvier 2019
PDF
PKI in DevOps: How to Deploy Certificate Automation within CI/CD
PuppetConf 2016: Keynote: Pulling the Strings to Containerize Your Life - Sco...
Enterprise DevOps Series: Using VS Code & Zowe
LFX Nov 16, 2021 - Find vulnerabilities before security knocks on your door
The DevSecOps Builder’s Guide to the CI/CD Pipeline
Cloud Native Engineering with SRE and GitOps
E bpf and profilers
Microsoft DevOps Forum 2021 – DevOps & Security
From Monolith to K8s - Spring One 2020
Building security into the pipelines
MJC 2021: "Debugging Java Microservices Running on Kubernetes with Telepresence"
Cloud native development without the toil
360° Kubernetes Security: From Source Code to K8s Configuration Security
Scale DevSecOps with your Continuous Integration Pipeline
Embacing service-level-objectives of your microservices in your Cl/CD
use case ibm k8s_service+devops
What is Google Cloud Good For at DevFestInspire 2021
CNCF Webinar Series: "Creating an Effective Developer Experience on Kubernetes"
DevSecOps What Why and How
Google Cloud Build - Sfeir Lunch Janvier 2019
PKI in DevOps: How to Deploy Certificate Automation within CI/CD
Ad

Viewers also liked (20)

PPT
Next Generation Leadership: Integrated Talent Management for Robust Talent Pi...
PDF
Web browsers & the realtime web
PDF
Workshop The Family - Automate Your Startup
PPTX
My inspirational person english
PDF
CaseTalk Transformations - 10 slide intro
DOC
Waarom schuift paleis andere schaakstukken naar voor?
PPT
PPT
Build Your Confidence Muscles: Three Tips and Three Challenges
PDF
Timmy Global Health Presentation
DOCX
Curriculum Vitae Gary Smith
DOCX
Revision SD 4 SEMESTER GENAP T.P. 2015-2016 UNIT 16
PPTX
Vplyv online kampaní na offline výsledky
PDF
Bilingue si cresce - un incontro sul bilinguismo infantile
PPTX
PPTX
Web Tricks
PDF
Audi summary
DOCX
Equipo 3 planificador aamtic con ajustes de retroalimentación version 2.
PDF
Griffin Farley's Beautiful Minds
PPTX
El petroleo
PDF
Timeline of Emerging Science & Technology
Next Generation Leadership: Integrated Talent Management for Robust Talent Pi...
Web browsers & the realtime web
Workshop The Family - Automate Your Startup
My inspirational person english
CaseTalk Transformations - 10 slide intro
Waarom schuift paleis andere schaakstukken naar voor?
Build Your Confidence Muscles: Three Tips and Three Challenges
Timmy Global Health Presentation
Curriculum Vitae Gary Smith
Revision SD 4 SEMESTER GENAP T.P. 2015-2016 UNIT 16
Vplyv online kampaní na offline výsledky
Bilingue si cresce - un incontro sul bilinguismo infantile
Web Tricks
Audi summary
Equipo 3 planificador aamtic con ajustes de retroalimentación version 2.
Griffin Farley's Beautiful Minds
El petroleo
Timeline of Emerging Science & Technology
Ad

Similar to Securing the Pipeline (20)

PDF
Agile Bodensee - Testautomation & Continuous Delivery Workshop
PDF
Docker In Bank Unrated
PPTX
Pipeline your pipelines!
PDF
Secure GitOps pipelines for Kubernetes with Snyk & Weaveworks
PDF
TMF2014 CI-CD Workshop Michael Palotas
 
PDF
DIY Transparent Release Management_2024_07.pdf
PPTX
Cloud Platform Symantec Meetup Nov 2014
PPTX
AzureDay Kyiv 2016 Release Management
PDF
the grinder testing certification
PDF
Enterprise-Grade DevOps Solutions for a Start Up Budget
PDF
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
PPTX
Understanding AWS CodePipeline Presentation
PPTX
Understanding AWS CodePipeline Presentation
PDF
Improve Code Quality and Time to Market: 100% Cloud-Based Development Workflow
PPTX
Simplified CI/CD Flows for Salesforce via SFDX - Downunder Dreamin - Sydney
PDF
Deploy 22 microservices from scratch in 30 mins with GitOps
PPTX
The Hacking Games - A Road to Post Exploitation Meetup - 20240222.pptx
PDF
Codecoon - A technical Case Study
PDF
Von JavaEE auf Microservice in 6 Monaten - The Good, the Bad, and the wtfs...
Agile Bodensee - Testautomation & Continuous Delivery Workshop
Docker In Bank Unrated
Pipeline your pipelines!
Secure GitOps pipelines for Kubernetes with Snyk & Weaveworks
TMF2014 CI-CD Workshop Michael Palotas
 
DIY Transparent Release Management_2024_07.pdf
Cloud Platform Symantec Meetup Nov 2014
AzureDay Kyiv 2016 Release Management
the grinder testing certification
Enterprise-Grade DevOps Solutions for a Start Up Budget
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Understanding AWS CodePipeline Presentation
Understanding AWS CodePipeline Presentation
Improve Code Quality and Time to Market: 100% Cloud-Based Development Workflow
Simplified CI/CD Flows for Salesforce via SFDX - Downunder Dreamin - Sydney
Deploy 22 microservices from scratch in 30 mins with GitOps
The Hacking Games - A Road to Post Exploitation Meetup - 20240222.pptx
Codecoon - A technical Case Study
Von JavaEE auf Microservice in 6 Monaten - The Good, the Bad, and the wtfs...

More from Thoughtworks (20)

PDF
Design System as a Product
PDF
Designers, Developers & Dogs
PDF
Cloud-first for fast innovation
PDF
More impact with flexible teams
PDF
Culture of Innovation
PDF
Dual-Track Agile
PDF
Developer Experience
PDF
When we design together
PDF
Hardware is hard(er)
PDF
Customer-centric innovation enabled by cloud
PDF
Amazon's Culture of Innovation
PDF
When in doubt, go live
PDF
Don't cross the Rubicon
PDF
Error handling
PDF
Your test coverage is a lie!
PDF
Docker container security
PDF
Redefining the unit
PPTX
Technology Radar Webinar UK - Vol. 22
PDF
A Tribute to Turing
PDF
Rsa maths worked out
Design System as a Product
Designers, Developers & Dogs
Cloud-first for fast innovation
More impact with flexible teams
Culture of Innovation
Dual-Track Agile
Developer Experience
When we design together
Hardware is hard(er)
Customer-centric innovation enabled by cloud
Amazon's Culture of Innovation
When in doubt, go live
Don't cross the Rubicon
Error handling
Your test coverage is a lie!
Docker container security
Redefining the unit
Technology Radar Webinar UK - Vol. 22
A Tribute to Turing
Rsa maths worked out

Recently uploaded (20)

PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PPT
What is a Computer? Input Devices /output devices
PDF
UiPath Agentic Automation session 1: RPA to Agents
PDF
Credit Without Borders: AI and Financial Inclusion in Bangladesh
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
Hindi spoken digit analysis for native and non-native speakers
DOCX
search engine optimization ppt fir known well about this
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
PDF
Getting started with AI Agents and Multi-Agent Systems
PPTX
Chapter 5: Probability Theory and Statistics
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
Architecture types and enterprise applications.pdf
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
1 - Historical Antecedents, Social Consideration.pdf
sbt 2.0: go big (Scala Days 2025 edition)
A contest of sentiment analysis: k-nearest neighbor versus neural network
What is a Computer? Input Devices /output devices
UiPath Agentic Automation session 1: RPA to Agents
Credit Without Borders: AI and Financial Inclusion in Bangladesh
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
Module 1.ppt Iot fundamentals and Architecture
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
Hindi spoken digit analysis for native and non-native speakers
search engine optimization ppt fir known well about this
OpenACC and Open Hackathons Monthly Highlights July 2025
Getting started with AI Agents and Multi-Agent Systems
Chapter 5: Probability Theory and Statistics
Convolutional neural network based encoder-decoder for efficient real-time ob...
Architecture types and enterprise applications.pdf

Securing the Pipeline