Code Monkey home page Code Monkey logo

infrastructure-as-code-goof's Introduction

Infrastructure as Code Goof

This repo consists of vulnerable configuration files, split per configuration type. The files contain various vulnerabilities which Snyk Infrastructure as Code can identify, as well as scripts for setting up demo environments to educate about the challenges and potential security issues in the Infrastructure as Code world.

Features

CloudFormation

The ./cloudformation directory contains various vulnerable CloudFormation templates which can be scanned by Snyk

Kubernetes

The ./k8s directory contains demo-able applications which emphasise why different settings in your configurations files can expose you to security attacks:

To start the demos, you need to follow these steps:

  1. Install and run minikube.
  2. Run minikube - minikube start
    • If you already have a running minikube, and you want to start with clean environment - minikube delete
  3. Run minikube dashboard and make sure you have a working (hopefully empty) Kubernetes cluster
  4. Run ./build.sh (from the main dir of every issue example)
    • The build.sh applies all of the required config for each and every example
  5. Look for the new components on your cluster (Pod / Deployment / Service / Ingress)
  6. Continue with the instructions of each one of the examples for more specific details
  7. When you're done - you can run ./cleanup.sh (from the main dir of every issue example) in order to revert all of the changes done by the build.sh script

This directory also contains various other vulnerable Kubernetes templates under ./k8s/templates, which can also be scanned by Snyk.

Terraform

The ./terraform directory contains various vulnerable Terraform files.

Testing for vulnerabilities

To scan any of the files and directories in this repo with Snyk, install snyk snyk iac test either from the main directory or by pointing at each file one by one.

For example:

  • to test a single file:
$ snyk iac test cloudformation/templates/aurora.yaml
  • to test a folder:
$ snyk iac test k8s/
  • to test a nested folder:
$ snyk iac test terraform/aws/

infrastructure-as-code-goof's People

Contributors

aviadhahami avatar fauxfaux avatar ipapast avatar kirill89 avatar ofekatr avatar orkamara avatar p0tr3c avatar ragsns avatar snyk-bot avatar teodora-sandu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.