BlackHat USA DevSecOps

BlackHat USA 2019 Las Vegas, USA
1 / 50
Slide 1 of BlackHat USA DevSecOps
Slide 2 of BlackHat USA DevSecOps
Slide 3 of BlackHat USA DevSecOps
Slide 4 of BlackHat USA DevSecOps
Slide 5 of BlackHat USA DevSecOps
Slide 6 of BlackHat USA DevSecOps
Slide 7 of BlackHat USA DevSecOps
Slide 8 of BlackHat USA DevSecOps
Slide 9 of BlackHat USA DevSecOps
Slide 10 of BlackHat USA DevSecOps
Slide 11 of BlackHat USA DevSecOps
Slide 12 of BlackHat USA DevSecOps
Slide 13 of BlackHat USA DevSecOps
Slide 14 of BlackHat USA DevSecOps
Slide 15 of BlackHat USA DevSecOps
Slide 16 of BlackHat USA DevSecOps
Slide 17 of BlackHat USA DevSecOps
Slide 18 of BlackHat USA DevSecOps
Slide 19 of BlackHat USA DevSecOps
Slide 20 of BlackHat USA DevSecOps
Slide 21 of BlackHat USA DevSecOps
Slide 22 of BlackHat USA DevSecOps
Slide 23 of BlackHat USA DevSecOps
Slide 24 of BlackHat USA DevSecOps
Slide 25 of BlackHat USA DevSecOps
Slide 26 of BlackHat USA DevSecOps
Slide 27 of BlackHat USA DevSecOps
Slide 28 of BlackHat USA DevSecOps
Slide 29 of BlackHat USA DevSecOps
Slide 30 of BlackHat USA DevSecOps
Slide 31 of BlackHat USA DevSecOps
Slide 32 of BlackHat USA DevSecOps
Slide 33 of BlackHat USA DevSecOps
Slide 34 of BlackHat USA DevSecOps
Slide 35 of BlackHat USA DevSecOps
Slide 36 of BlackHat USA DevSecOps
Slide 37 of BlackHat USA DevSecOps
Slide 38 of BlackHat USA DevSecOps
Slide 39 of BlackHat USA DevSecOps
Slide 40 of BlackHat USA DevSecOps
Slide 41 of BlackHat USA DevSecOps
Slide 42 of BlackHat USA DevSecOps
Slide 43 of BlackHat USA DevSecOps
Slide 44 of BlackHat USA DevSecOps
Slide 45 of BlackHat USA DevSecOps
Slide 46 of BlackHat USA DevSecOps
Slide 47 of BlackHat USA DevSecOps
Slide 48 of BlackHat USA DevSecOps
Slide 49 of BlackHat USA DevSecOps
Slide 50 of BlackHat USA DevSecOps

Abstract

A comprehensive guide to DevSecOps covering pipeline-stage integration, language-specific tooling matrices, cloud-native implementations across AWS/Azure/GCP, and securing the security toolchain itself.

AI Generated Summary

AI Generated Content Disclaimer

Note: This summary is AI-generated and may contain inaccuracies, errors, or omissions. If you spot any issues, please contact the site owner for corrections. Errors or omissions are unintended.

This expanded 50 slide deck is “DevSecOps: What, Why and How?”, presented at Black Hat USA 2019. It is the extended edition of the speaker’s DevSecOps briefing, adding detailed stage by stage pipeline breakdowns, language specific tooling, pipeline optimization, cloud native DevSecOps across AWS, Azure and GCP, sample lab implementations for Ruby, PHP, Python and Node.js, Fannie Mae and ABN Amro case studies, and a closing section on securing the security toolchain itself (“Who Watches the Watcher”).

Summary

The deck opens with a disclaimer that the tool list is not exhaustive, no vendor is endorsed, and every environment is different so ideas must be tested first. DevSecOps is defined as an effort to strive for “Secure by Default” via three moves: integrate security via tools, create a Security as Code culture, and promote cross skilling. The why: DevOps moves at rapid pace and traditional security just can’t keep up. The shift left diagram shows one SQL Injection caught at automated source code review costing fewer man day effort and no new deployments.

Pre-commit hooks filter access keys and SSH keys leaked through accidental git commits, working on a pure regex based approach as defense in depth. SCA reflects that we don’t write softwares, we build on frameworks: the biggest portion of software is third party libraries, and SCA identifies vulnerable or outdated ones. SAST is white box automated testing for low-hanging fruits like SQL Injection and Cross-Site Scripting, while DAST picks up deployment specific issues; comparing the two weeds out false positives. Security in IaC audits Docker/K8s environments and insists the environment is as secure as the base image. Compliance as code turns standards into version controlled test cases, and asset monitoring extends inventory to anything holding organization data.

Pipeline optimization is new: skip SCA for CSS only changes, skip SAST for pom.xml or gradle only changes, skip or fast track infra scans when IaC has zero changes, with full runs scheduled periodically. A language slide argues programming language matters, followed by a language specific matrix and four lab walkthroughs.

The cloud section reprises the changed threat landscape: providers differ, some tools still need sourcing regardless, and a mapping table aligns conventional infrastructure with AWS, Azure and GCP services. The cultural section warns automation alone will not solve the problems and adds a striking goal: the security team should try to eliminate the need of a dedicated security team. Security champions are one person per team bridging Dev, Sec and Ops. The security enablers model splits into People, Process and Technology pillars.

Case studies cover the Fannie Mae and ABN Amro DevSecOps journeys as positive examples, plus a negative case study of misconfigured cloud assets. “Is it Enough?” answers that periodic pen tests and continuous bug bounty remain the rite of passage and risk acceptance documentation is the worst case scenario, not the first bet. “Who Watches the Watcher” closes the technical arc: if an attacker controls security tools or the build chain (DevSecOops) it has limitless power, so the same practices must apply to the security tooling itself. Key takeaways: security is everyone responsibility, and DevSecOps is not a one size fit all.

Key Themes

  • DevSecOps Defined and Shift Left: An effort to strive for “Secure by Default” through integrating security via tools, a Security as Code culture and cross skilling; DevOps velocity outpaces traditional security, and a SQL Injection caught at the automated source code review stage costs fewer man day effort and no new deployments.
  • Complete Pipeline Architecture: Pre-commit hooks, IDE plugins, secrets management, SCA and SAST pre-build, DAST post-build, manual pentesting at QA/staging, and IaC security, compliance as code, alerting/monitoring, asset monitoring and vulnerability management in production.
  • Tools of the Trade and Selection Criteria: Open source preference across threat modeling, pre-commit, IDE, secrets, SCA, infrastructure and WAF categories; pipeline tools need API/CLI access, 15 minute max execution, containerization, minimal licensing limits, machine readable output and FP/FN configurability.
  • Pipeline Optimization: Tweak scans by change type (no SCA for CSS only, no SAST for pom.xml/gradle only, skip or fast track infra scans with zero IaC changes), tune by milestone, refresh dataset dependent tools, and periodically run the full unoptimized pipeline.
  • Language-Specific Tool Matrix: Different languages need different SAST and SCA tools; the deck maps Java, PHP, Python, Ruby/Rails, .NET and Node.js to specific options beyond multi-language tools like SonarQube.
  • Cloud-Native DevSecOps: A conventional-to-cloud mapping table across AWS, Azure and GCP for source control, IaC, CI/CD, artifacts, servers, monitoring, firewall, DLP, threat detection, vulnerability scanning and secrets management, acknowledging some tools must still be sourced regardless of provider.
  • Security Enablers and Champions: People, Process and Technology pillars (relationships, design-phase involvement, templatized tooling) plus one security champion per team incentivized through bug bounties, sponsored interactions and cross skilling, with the provocative goal that security should try to eliminate the need of a dedicated security team.
  • Case Studies and Who Watches the Watcher: Fannie Mae and ABN Amro DevSecOps journeys as positive adopters against a negative case of misconfigured cloud assets; security tooling and the build chain must be secured with the same practices, since an attacker controlling them has limitless power (DevSecOops).

Notable Points

  1. Pipeline tool criteria: API/command line access, execution start to final output within 15 minutes max, containerizable/scriptable, minimal licensing limitations (parallel scans or threads), parsable output (no stdout, yes JSON/XML), and configurability against false negatives and false positives.
  2. Pre-commit hooks and IDE plugins work on pure regex based filtering of access keys, access tokens and SSH keys; both are defense in depth because developers can circumvent them.
  3. SCA rationale: major languages provide module management (PIP, NPM, Gems, go get, perl cpan, php packager) and the biggest portion of software is third party libraries; DAST and SAST results can be compared to weed out false positives.
  4. Language tool matrix: Java (FindBugs, FindSecBugs SAST; OWASP Dependency-Check SCA), PHP (graudit), Python (Bandit, graudit; Safety), Ruby/Rails (Brakeman, graudit; Bundler-Audit), .NET (DotNet Security Guard; DotNET Retire, SafeNuGet), Node.js (NodeJsScan, npm-check; Retire.js, ClearlyDefined).
  5. Pipeline optimization samples: CSS only changes skip SCA, pom.xml or gradle only changes skip SAST, zero IaC changes skip or fast track the infra scan, with full non-optimized runs scheduled periodically.
  6. Cloud mapping examples from the table: Modsecurity versus AWS Firewall Manager/AWS WAF and Azure Firewall; MyDLP/OpenDLP versus Amazon Macie and Azure Information Protection; Snort/Kismet versus Amazon GuardDuty, Azure Advanced Threat Protection and Event Threat Detection (beta); OpenVAS/Nessus versus Amazon Inspector, Azure Security Center and Cloud Security Scanner; Hashicorp Vault/Docker Secrets versus AWS Secrets Manager and Azure Key Vault.
  7. Sample implementation videos: a Java DevSecOps pipeline walkthrough (youtube 7ILrzYLpr14) and an AWS cloud native DevSecOps walkthrough (youtu.be i38-YQsnqfw), plus DevSecOps labs for Ruby, PHP, Python and NodeJS.
  8. Alerting and monitoring tests control effectiveness with four questions: when did an attack occur, was it blocked, what level of access was achieved, what data was bought in and bought out.
  9. The cultural slide sets a provocative goal: the security team should try to eliminate the need of a dedicated security team, alongside avoiding the blame game and cultivating common goals.
  10. Case study sources: Fannie Mae DevSecOps journey (DevSecOps Days slideshare with Chitra Elango and John Willis) and ABN Amro DevSecOps journey (derweeksglobal slideshare); contact on the closing slide is @anantshri and anant@notsosecure.com, and references add the AWS scaling threat detection workshop alongside the BlackHat 2017, Sonatype 2018, Snyk 2019 and Veracode reports.

Notable Quotes

“Effort to strive for “Secure by Default””

“DevSecOps is Automation + Cultural Changes”

“Environment is as secure as the base image”

“Automation alone will not solve the problems”

“Security team should try to eliminate the need of dedicated security team”

“DevSecOops: If attacker controls security tools / build chain It has limitless power”

“Security is everyone responsibility”

Videos

BlackHat USA 2019 Recording

Conference Recording

Resources

Embed This Presentation

See Also