DevOps Security Shift Left
Review CI/CD pipeline compromise and infrastructur
Review CI/CD pipeline compromise and infrastructure as code risks.
Formats
About this book
Free sample
Chapter 1: The Last Safe Assumption...--The first time Maya Chen saw a pipeline compromise, she almost missed it entirely.It was 3:47 AM on a Tuesday, and she was the only platform engineer on call for Fastlytics, a mid-sized fintech that had grown from twenty engineers to two hundred in eighteen months. Her Pager Duty had been quiet for six hours—unusual, but not impossible. She was half-asleep when the alert came in, but it wasn't the alert she expected.No disk space alarms. No latency spikes. No 5xx error floods.Just a single line in the Cloud Trail logs: Assume Role had been called at 3:42 AM from an IP address in a country where Fastlytics had no employees, no offices, and no customers.
The role was ci-deploy-role-prod—a service account that every build pipeline used to push containers to production.Maya sat up in bed. Her heart started moving before her brain did.She clicked through to the event details. The IP resolved to a small hosting provider known for bulletproof hosting—the kind that ignored abuse complaints. The user agent was not a CI system but a raw Python script. The access key used to call Assume Role belonged to a developer named Alex, who had left the company nine months ago.
His key had never been rotated.She checked the CI/CD audit logs. At 3:41 AM, someone had triggered a build of a rarely-used repository—a weekly reporting job that no one had touched in six months. The build had run for ninety seconds, then stopped. The logs showed something Maya had never seen before: a curl command sending environment variables to an external endpoint. The environment variables included AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN.The session token was fresh.
Issued at 3:42 AM. The same time as the Assume Role call.Maya understood what had happened, but she couldn't believe it. Someone had used a leaked developer key to assume the CI role, then triggered a malicious pipeline build that exfiltrated the temporary credentials. The attacker now had ci-deploy-role-prod—the same role that…
This is the end of the free sample. Get the eBook to keep going. Buy now
Contents
- Chapter 1
- Chapter 2
- Chapter 3
- Chapter 4
- Chapter 5
- Chapter 6
- Chapter 7
- Chapter 8
- Chapter 9
- Chapter 10
- Chapter 11
- Chapter 12
Details
- Author
- Whaley Destiny
- Publisher
- SamEnrico
- Language
- English
- Genre
- Non-Fiction, Annual Checkup, DevSecOps
- Released
- 2026-06-09
- Pages (approx.)
- 145
- Available as
- eBook, Audiobook
Read better in the ZLOADR app
Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.
More by Whaley Destiny
The Twelve Step Food Addiction GuideWhaley Destiny$11.99
Bipolar And Borderline OverlapWhaley Destiny$11.99
Telehealth Alcohol DetoxWhaley Destiny$11.99
Imposter Syndrome Success LogWhaley Destiny$11.99
The Quantum Strategist: Clausewitz and the Birth of Modern WarfareWhaley Destiny$11.99
Search Console Shopping FeedWhaley Destiny$12.99
China Export Green Label GuideWhaley Destiny$12.99
Understanding Primary CraniosynostosisWhaley Destiny$17.99
Construction TechnicianWhaley Destiny$11.99
How to Become a Composition MixerWhaley Destiny$11.99