Walkthrough

CI/CD Pipeline Security

Secure the pipeline itself — a guided, one-scene-at-a-time walkthrough.

01 / 13
Hook
CI/CD Pipeline SecuritySecure the pipeline itselfCommitBuildTestPackageDeployScene 01 · Hook2What is CI/CD?CommitBuildTestStagingProductionCI · build + testCD · ship itDeliverymanual push to prodDeploymentfully automatedvsScene 02 · What is CI/CD3Why attackers love CI/CDReposServersBuild nodesDeploysPeopleHigh privilegeSolarWindsCodecovScene 03 · Why attackers love it4OWASP Top 10 CI/CD risksFlowcontrol1WeakIAM2Dependencyabuse3Poisonedpipeline4Pipelineaccess5Credentialhygiene6Insecureconfig7Third-partyservices8Artifactintegrity9Logginggaps10Scene 04 · Top 10 risks5Lock down your SCMSource controlNo auto-mergeMandatory reviewsProtected branchesSigned commitsMFA everywhereRestrict forksStay privateLeast permissionsScene 05 · Secure the SCM6Harden the pipelineSCMTLS 1.2+CI serverMFA + IP allowlistIsolated build nodesSecurityscansManualapprovalProductionConfig outsiderepoNo --privilegedLog everythingScene 06 · Harden the pipeline7Secrets managementNo secrets in codeVaultat runtimePipeline jobshort-livedTargetTemporarycredentialsIP-restrictedNever in logsor historyScan commitsfor leaksScene 07 · Secrets8Least privilege + identity lifecycleLeast privilegeIdentity lifecyclePipeline APipeline BDeny by defaultJoinerInventoryLeaverForgottenidentityAttackerTrack every identityScene 08 · Least privilege + identities9Dependency chain abuseTyposquattingDependencyconfusionAccounttakeoverPublic registryGateYour buildPin versionsVerify hashesOne private feedScoped namesScene 09 · Dependency abuse10Vet every plug-inNew plug-inVet firstCI platformTrusted vendorSecurity historyPopularActively maintainedWeakens config?We can run it?Keep patchedRemove unusedScene 10 · Plug-ins11Integrity: a tamper-evident chainSignedcommitPinnedhashesBuildCodesigningVerifySigstorein-toto attestationsScene 11 · Integrity12See everythingRepoCIRunnersLogsJSON · syslogSIEMAlertAnalystNo secrets in logsTune alertsExpect falsepositivesScene 12 · Visibility13Defense in depthHardenedSCMSecureconfigSecretsvaultLeastprivilegePinneddepsSigned +verifiedLogs +SIEMCommitBuildTestPackageDeploySecure the pipeline itselfScene 13 · Recap

Step through all 13 scenes with Previous / Next or Auto-play. Keyboard: ← → to move, Space to play.