Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Automating Infrastructure Security with Bridgecrew

Automating Infrastructure Security with Bridgecrew

In this webinar, Guy Eisenkot (Co-founder and VP of Product at Bridgecrew) and I look at security best-practices for infrastructure-as-code and how Bridgecrew can be used to harden your code.

This version of the presentation was given at a webinar in August 2020.

Kerim Satirli

August 26, 2020
Tweet

More Decks by Kerim Satirli

Other Decks in Technology

Transcript

  1. LIVE WEBINAR August 2020 Agenda Intro to Bridgecrew Intro to

    HashiCorp How Terraform works Terraform best practices and benefits Developer security 101 IaC security best practices Common IaC misconfigurations Setting up Bridgecrew Workflow via GitHub Actions Terraform Cloud Runs Leave your questions in the Zoom panel INTRODUCTIONS TERRAFORM IAC SECURITY DEMO Q&A
  2. LIVE WEBINAR August 2020 FIND CLOUD MISCONFIGS Both infrastructure-as-code and

    cloud resources FIX ISSUES IN CODE, WITH CODE Merge-ready pull requests and automated playbooks PREVENT ISSUES FROM BEING DEPLOYED Enforce policy-as-code in all config modules via CI/CD Bridgecrew: Automating and codifying cloud security
  3. LIVE WEBINAR August 2020 IaC code analysis in build-time Open

    Pull Request IaC code committed Build triggered Run-time configuration analysis Remediation lambda Checks failed Checks failed Dashboards Compliance reports Notifications Logging & Analytics How Bridgecrew works CODE COMMIT BUILD & DEPLOY OPERATE
  4. LIVE WEBINAR August 2020 Terraform - Benefits CODIFY INFRASTRUCTURE Provision,

    manage, and version infrastructure and service components INCREASE VISIBILITY Separate plan and apply steps for more predictable changes CONSISTENT WORKFLOW Reproducible deployments across different environments and providers
  5. LIVE WEBINAR August 2020 COLLABORATIVE WORKFLOW Work with your team

    to review and iterate on infrastructure AUTOMATED WORKFLOW VCS connections and full API support for in-depth integrations Terraform Cloud - Benefits
  6. LIVE WEBINAR August 2020 Terraform – How it works CODE

    EDITOR resource "aws_instance" "bridgecrew" { ami = var.ami_id instance_type = "t3.large" availability_zone = "us-west-1" }
  7. LIVE WEBINAR August 2020 Terraform – How it works TERMINAL

    > terraform plan -out="bridgecrew.tfplan" Terraform will perform the following actions: # aws_instance.bridgecrew will be created + resource "aws_instance" "bridgecrew" Plan: 1 to add, 0 to change, 0 to destroy. This plan was saved to: bridgecrew.tfplan
  8. LIVE WEBINAR August 2020 Terraform – How it works TERMINAL

    > terraform apply "bridgecrew.tfplan" aws_instance.bridgecrew: Creating... aws_instance.bridgecrew: Still creating... [10s elapsed] aws_instance.bridgecrew: Creation complete after 12s Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
  9. LIVE WEBINAR August 2020 Developer security 101 Asset inventory Compliance

    assurance Secret vaulting Secure IAM access Network segmentation Data protection Package sourcing Secure images Backups Change tracking Code analysis Reproducibility CODE COMMIT BUILD & DEPLOY OPERATE
  10. LIVE WEBINAR August 2020 AUTOMED GOVERNANCE Enforce policies as early

    as possible through automation CONSISTENT GOVERNANCE IN CODE Policy-as-code provides a common language CONTINUOUS WORKFLOW Embedded into code review processes and CI/CD workflow Infrastructure-as-code security best practices OPEN SOURCE TERRAFORM AWS MODULES
  11. LIVE WEBINAR August 2020 Insecure code example Ensure RBAC is

    enabled on AKS clusters Ensure Kube Dashboard is disabled Ensure AKS cluster has Network Policy configured Ensure AKS has an API Server Authorized IP Ranges enabled Ensure AKS logging to Azure Monitoring is Configured Azure Kubernetes Engine cluster
  12. LIVE WEBINAR August 2020 Additional Resources BRIDGECREW CLOUD bridgecrew.cloud BRIDGECREW

    GITHUB ACTION code: github.com/bridgecrewio/bridgecrew-action blog: bridgecrew.io/blog/github-integrations BRIDGECREW TERRAFORM TUTORIAL blog: bridgecrew.io/blog/terraform-tutorial TERRAFORM CLOUD hashi.co/tf-cloud-bc