DevSecOps What Why

Blackhat Asia 2019

28 March 2019

The video of the session is available now

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.

DevSecOps: What, Why and How was presented at BlackHat ASIA 2019 in a compact 25-slide format. The deck introduces DevSecOps as the practice of reaching “Secure by Default” by folding security into DevOps pipelines, makes the shift-left business case, maps security controls to every pipeline stage, walks through tool categories and the criteria for admitting a tool into the pipeline, and closes on culture, security champions, and four short case studies.

Summary

The what: DevSecOps is an effort to strive for “Secure by Default” by integrating security into tools, creating a Security as Code culture, and promoting cross-skilling across development, operations, and security. The why: DevOps moves at a rapid pace and traditional security cannot keep up, so security has to become part of the process itself. The shifting-left slide put numbers on the argument: catch a single SQL injection at the developer or source code stage through automated source code review and it costs fewer man-days and no new deployments.

The how split into automation plus cultural change. A pipeline diagram injected controls at each stage: pre-commit hooks and IDE plugins at the developer, secrets management at the code repository, SAST and SCA at pre-build on the CI/CD server, DAST post-build, manual web application pentesting for business logic flaws in QA/staging, and security in Infrastructure as Code, compliance as code, alerting and monitoring, and vulnerability management in production.

Tools of the trade came with a disclaimer: the list is not exhaustive and no tool is endorsed, with preference given to open source. Named tools included Git Hound and truffleHog for pre-commit hooks, CAT.net as an IDE plugin, Keywhiz for secret management, ThreatSpec and the Microsoft Threat Modeling Tool for threat modeling, Retire.js for software composition analysis, Docker Bench for Security for infrastructure scanning, and Jackhammer for vulnerability management. The “to be or not to be in pipeline” slide then set admission criteria: API or command line access, execution start to final output within 15 minutes max, containerized or scriptable, minimal licensing limitations, machine-readable output (no stdout, yes to JSON/XML), and configurability against false negatives and false positives.

The cloud section flagged a changed threat landscape: identity and access management, billing attacks, security groups, permissions to resources, rogue or shadow admins, and forgotten resources that lead to compromises or surprise bills, with Infrastructure as Code enabling quick audits and linting. The culture section argued automation alone will not solve the problems: encourage a security mindset outside the security team, build allies as security champions, one person per team bridging Dev, Sec, and Ops, incentivize collaboration with internal bug bounties and sponsored cross-skilling, and avoid the blame game.

Four generic case studies closed the loop, each with a prevention: unaccounted and unmonitored assets (recurring asset inventory and automated assessments), auth tokens accidentally exposed (pre-commit hooks and continuous repository monitoring), cloud assets misconfiguration (continuous monitoring and review of cloud assets and config), and misconfiguration leading to code disclosure (patching and continuous monitoring of assets). The final slides asked “is it enough” and answered no: periodic penetration tests and continuous bug bounty remain, feedback has to be actioned, risk acceptance documentation should be the worst case scenario rather than the first bet, and DevSecOps is not a one size fit all because every environment is different.

Key Themes

Notable Points

  1. Definition slide: integrate security in tools, create a Security as Code culture, promote cross-skilling, all in service of “Secure by Default”.
  2. Shift-left math: one SQL injection caught at the source stage means fewer man-day effort and no new deployments.
  3. Pipeline controls mapped stage by stage: pre-commit hooks, IDE plugins, secrets management, SAST, SCA, DAST, manual web application pentesting, security in IaC, compliance as code, alerting and monitoring, and vulnerability management.
  4. Tool admission criteria: API or command line access, execution start to final output in 15 minutes max, containerized or scriptable, minimal licensing limitations (parallel scans or threads), output parsable and machine readable (no stdout, yes to JSON/XML), configurable against false negatives and false positives.
  5. Named tools: Git Hound and truffleHog (pre-commit hooks), CAT.net (IDE plugin), Keywhiz (secret management), ThreatSpec and Microsoft Threat Modeling Tool (threat modeling), Retire.js (SCA), Docker Bench for Security (infrastructure scan), Jackhammer (vulnerability management), with a stated preference for open source tools.
  6. Cloud focus areas: identity and access management, billing attacks, security groups, permissions to resources, rogue and shadow admins, and forgotten resources leading to compromises or billing surprises.
  7. Culture items: collaboration and inclusive culture, security mindset especially outside the security team, allies as security champions, avoid the blame game.
  8. Security champions: a single person per team, everyone given similar cross-skilling opportunities, incentivized through internal bug bounties, sponsored interactions, and sponsored cross-skilling trainings.
  9. Case study one: unaccounted and unmonitored assets, prevented by recurring asset inventory and automated assessments.
  10. Case study two: auth tokens accidentally exposed, prevented by pre-commit hooks and continuous repository monitoring; case study three: cloud assets misconfiguration, prevented by continuous monitoring and review of cloud assets and config; case study four: misconfiguration leading to code disclosure, prevented by patching and continuous monitoring of assets.
  11. Is it enough: periodic penetration tests and continuous bug bounty as a rite of passage, action on feedback, and risk acceptance documentation only as the worst case scenario.
  12. Takeaways: map your pipeline and inject checks at every stage, adopt the 15-minute rule, prioritize SCA because modern software is mostly third-party libraries, expand cloud focus to IAM and billing and inventory, and validate everything in your own environment since mileage will vary.

Notable Quotes

“DevOps moves at rapid pace, traditional security just can’t keep up”

“DevSecOps is Automation + Cultural Changes”

“Execution start to final output should be 15 minutes max”

“Automation alone will not solve the problems”

“Risk Acceptance Documentation should be the worst case scenario not your first bet”

“Security is everyone responsibility”

“DevSecOps is not a one size fit all: your mileage will vary”

Social chatter