mirror of
https://github.com/kai5263499/awesome-container-security.git
synced 2024-10-01 05:35:38 -04:00
210 lines
12 KiB
Markdown
210 lines
12 KiB
Markdown
container-security-awesome [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)[![Travis](https://api.travis-ci.org/kai5263499/container-security-awesome.svg?branch=master)](https://travis-ci.org/kai5263499/container-security-awesome)
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
A collection of container related security resources
|
|
|
|
* [**Image**](#image)
|
|
|
|
* [**Networking**](#networking)
|
|
|
|
* [**Security profiles**](#security-profiles)
|
|
|
|
* [**Exploits**](#exploits)
|
|
|
|
* [**Presentations**](#presentations)
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
## Image
|
|
|
|
------------------------------------------------------------------------------------------
|
|
### [Understanding and Hardening Linux Containers](https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2016/april/understanding-and-hardening-linux-containers/)
|
|
* The "War and Peace" of container security
|
|
|
|
### [Security Assurance Requirements for Linux Application Container Deployments](http://nvlpubs.nist.gov/nistpubs/ir/2017/NIST.IR.8176.pdf)
|
|
* Department of commerce guidance on container security
|
|
|
|
### [Dramatically Reducing Software Vulnerabilities](http://nvlpubs.nist.gov/nistpubs/ir/2016/NIST.IR.8151.pdf)
|
|
* NIST guidance on reducing software vulnerabilities
|
|
|
|
### [CoreOS Clair](https://coreos.com/blog/vulnerability-analysis-for-containers.html)
|
|
* Utility from CoreOS for automated vulnerability analysis for containers
|
|
* [Clair: The Container Image Security Analyzer (by Joey Schorr & Quentin Machu)](https://www.youtube.com/watch?v=Kri67PtPv6s) - Presentation about the Clair platform
|
|
* [A more polished presentation of Clair at CoreOS Fest 2016](https://www.youtube.com/watch?v=YDCa51BK2q0)
|
|
|
|
### [OpenSCAP Container Compliance](https://github.com/OpenSCAP/container-compliance)
|
|
* Utility for aiding in compliance checks against a container
|
|
|
|
### [Actuary](https://github.com/diogomonica/actuary)
|
|
* Automated security profiling for Docker image
|
|
* [drydock](https://github.com/zuBux/drydock) - Inspired by docker-bench-security with the ability to apply custom security profiles
|
|
* [Docker bench security](https://github.com/diogomonica/docker-bench-security) - One of the first security linting utility for Docker
|
|
|
|
### [Buildah](https://github.com/projectatomic/buildah)
|
|
* [Introduction](http://www.projectatomic.io/blog/2017/06/introducing-buildah/)
|
|
* Docker image building framework
|
|
|
|
### [Packer](https://www.packer.io/docs/builders/docker.html)
|
|
* Packer builds Docker containers without the use of Dockerfiles. By not using Dockerfiles, Packer is able to provision containers with portable scripts or configuration management systems that are not tied to Docker in any way. It also has a simple mental model: you provision containers much the same way you provision a normal virtualized or dedicated server.
|
|
|
|
### [LinuxKit](https://github.com/linuxkit/linuxkit)
|
|
* A toolkit for building custom minimal, immutable Linux distributions
|
|
|
|
### [Grafeas](https://github.com/Grafeas/Grafeas)
|
|
* An open-source API to audit and govern your software supply chain
|
|
|
|
### [Atomic Reactor](https://github.com/projectatomic/atomic-reactor)
|
|
* Python library that extends docker build. It's part of the RedHat Atomic project so its rather opinionated
|
|
|
|
### [Containers Internals Lab](https://github.com/fatherlinux/container-internals-lab)
|
|
* A series of exercises that provide a deep dive into the internals of containers. Also has a good SELinux training component
|
|
|
|
### [Anchore](https://anchore.io/)
|
|
* Free image scanning service with a commercial offering similar to Docker Cloud
|
|
|
|
### [Alpine CVE Check](https://github.com/tomwillfixit/alpine-cvecheck)
|
|
* Specialized CVE scanner
|
|
|
|
### [Protect Your Docker Containers Against Shellshock](https://blog.tutum.co/2014/10/09/protect-your-docker-containers-against-shellshock/)
|
|
* Most base images have patched out Shellshock, but its still a good exercise for thinking about how to mitigate similar attacks in the future
|
|
|
|
### [Banyan Collector: A framework to peek inside containers](https://github.com/banyanops/collector)
|
|
* Framework for peering inside docker images. Useful for rolling your own image scanning system
|
|
|
|
### Commercial solutions
|
|
* [Project Atomic](https://www.projectatomic.io/) - RedHat's complete container solution with strong built-in security
|
|
* [Black Duck Software](https://www.blackducksoftware.com/)
|
|
* [Docker Cloud](https://cloud.docker.com) - Continuous scanning of images along with a trust mechanism
|
|
* [Tenable](https://www.tenable.com/products/tenable-io/container-security) - Includes [FlawCheck](https://www.theregister.co.uk/2016/10/26/tenable_ate_flawcheck_for_devops_enhancement/)
|
|
* [GrSecurity](https://grsecurity.net/features.php) - A collection of image hardening tools
|
|
* [Aqua](https://www.aquasec.com/) - Full lifecycle container security management platform
|
|
* [LayeredInsight](http://layeredinsight.com/) - Continuous container scanning and auditing
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
## Networking
|
|
|
|
------------------------------------------------------------------------------------------
|
|
### [Cilium](https://github.com/cilium/cilium)
|
|
* Network policy enforcement based on eBPF
|
|
* [Cilium - Container Security and Networking Using BPF and XDP - Thomas Graf, Covalent](https://www.youtube.com/watch?v=CcGtDMm1SJA) - Presentation of Cilium by its creator
|
|
|
|
### [Linux Monitoring at Scale with eBPF (Brendan Gregg & Alex Maestretti)](https://www.youtube.com/watch?v=44nV6Mj11uw)
|
|
* bSides SF 2017 talk about container monitoring at Netflix using eBPF
|
|
|
|
### [Calico](https://www.projectcalico.org/)
|
|
* Security enforcement for [Flannel](https://github.com/coreos/flannel) SDN
|
|
|
|
### [Kube2IAM](https://github.com/jtblin/kube2iam)
|
|
* Apply Amazon Identity Management roles to Kubernetes Pods
|
|
|
|
### [Trieme](https://www.aporeto.com/trireme/)
|
|
* SDN application segmentation
|
|
|
|
### [Envoy](https://www.envoyproxy.io/)
|
|
* Sidecar and security enforcement system used at Lyft
|
|
|
|
### [Scope](https://github.com/weaveworks/scope)
|
|
* Realtime metrics gathering across the cluster
|
|
|
|
### [Segment Routing in Container Networks](http://work.delaat.net/rp/2016-2017/p95/report.pdf)
|
|
* Research paper on a practical implementation of segment routing in a container cluster
|
|
|
|
### [Whispers in the Hyper-space: High-speed Covert Channel Attacks in the Cloud](https://www.youtube.com/watch?v=d2TU_Q4U9DA)
|
|
* An exploration of covert channels
|
|
|
|
### Commercial solutions
|
|
* [StakRox](https://www.stackrox.com/product/) - Container security solution with adaptive threat protection
|
|
* [Netsil](https://netsil.com/) - Operations dashboard for Kubernetes
|
|
* [NeuVector](https://neuvector.com/) - Continuous network security
|
|
* [TwistLock](https://www.twistlock.com/) - Network activity profiling
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
## Security profiles
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
### [bane](https://github.com/jessfraz/bane)
|
|
* AppAromor profile generator for Docker containers
|
|
|
|
### [Container security as explained by the three pigs](https://www.youtube.com/watch?v=giFKMsIH4b0)
|
|
* [Bringing new security features to Docker](https://opensource.com/business/14/9/security-for-docker)
|
|
* [The Container Coloring Book](https://github.com/fedoradesign/coloringbook-containers/blob/master/Print-Ready/Web.pdf)
|
|
|
|
### [SELinux for Mere Mortals](https://www.youtube.com/watch?v=cNoVgDqqJmM)
|
|
* A gentle introduction to Security Enhanced Linux
|
|
|
|
### [SELinux is no Longer an Option](https://www.youtube.com/watch?v=dtclmj3H7ZU)
|
|
|
|
### [Firejail](https://github.com/netblue30/firejail)
|
|
* Linux namespaces and seccomp-bpf sandbox. Also works with GUI apps
|
|
|
|
### [Docker SELinux Capabilities reference](https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities)
|
|
* A handy list of capabilities that are enabled by default in Docker
|
|
|
|
### [Detailed post about SELinux Capabilities](https://forums.grsecurity.net/viewtopic.php?f=7&t=2522)
|
|
* An SELinux deep dive
|
|
|
|
### [What capabilities do I really need in my container?](https://danwalsh.livejournal.com/76358.html)
|
|
* Blog post about figuring out what capabilities a container needs
|
|
|
|
### [Secure Your Containers with this One Weird Trick](http://rhelblog.redhat.com/2016/10/17/secure-your-containers-with-this-one-weird-trick/)
|
|
* Spoiler, its using SELinux
|
|
|
|
### [Falco](https://www.sysdig.org/falco/)
|
|
* Open source container security monitoring
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
## Exploits
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
### [nsenter](https://coderwall.com/p/xwbraq/attach-to-your-docker-containers-with-ease-using-nsenter)
|
|
* This isn't an exploit but it allows user to access the host VM if run in privileged mode
|
|
|
|
### [Dirty COW](https://dirtycow.ninja/)
|
|
* CVE-2016-5195
|
|
* Privilege escalation vulnerability in Linux kernel
|
|
* [Proof of concepts](https://github.com/dirtycow/dirtycow.github.io/wiki/PoCs)
|
|
* [Dirty COW and why lying is bad even if you are the Linux kernel](https://chao-tic.github.io/blog/2017/05/24/dirty-cow)
|
|
|
|
### [Docker CVE List](https://www.cvedetails.com/vulnerability-list/vendor_id-13534/product_id-28125/Docker-Docker.html)
|
|
* List of known security vulnerabilities for Docker
|
|
|
|
### [Three Overlooked Lessons about Container Security](https://thenewstack.io/three-overlooked-lessons-container-security/)
|
|
* Outlines an interesting spear-phishing attack on image maintainers
|
|
|
|
### [Don't expose the Docker socket ](https://www.lvh.io/posts/dont-expose-the-docker-socket-not-even-to-a-container.html)
|
|
* Exploration of what an attacker could do with access to the Docker daemon
|
|
|
|
### [Docker Scan](https://github.com/cr0hn/dockerscan)
|
|
* Image scanning system with a red-team focus of exploitation
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
## Presentations
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
### [Introduction to Container Security](https://www.youtube.com/watch?v=ABFmXCGJlo8)
|
|
### [GoDaddy's Production Kubernetes Story & Moving Target Defense in Container Envs](https://www.youtube.com/watch?v=2nisq0stz-s)
|
|
### [Container Security Round Table](https://www.youtube.com/watch?v=eY0wIj7lsEw)
|
|
### [Secure Substrate: Least Privilege Container Deployment](https://www.youtube.com/watch?v=iHQCVFMBdCA)
|
|
### [A Docker Image Walks Into a Notary](https://www.youtube.com/watch?v=JvjdfQC8jxM)
|
|
### [How Secure Are Your Docker Images?](https://www.youtube.com/watch?v=dzm-8hp8MQo)
|
|
### [Docker Security Deep Dive - Docker Track](https://www.youtube.com/watch?v=tL4IYSKu7ZU)
|
|
* Securing the image pipeline from creation to delivery
|
|
### [Scaling Application Defense with Intent Based Security - Michael Withrow (Twistlock)](https://www.youtube.com/watch?v=970keZ7VfCg)
|
|
* A security model to match the deployment model of many orchestration utilities
|
|
### [Container Performance Analysis](https://www.youtube.com/watch?v=bK9A5ODIgac)
|
|
* Container performance analysis at Netflix. This contains similar material as the bSides talk listed above with
|
|
* [Evolution of Container Usage at Netflix](https://medium.com/netflix-techblog/the-evolution-of-container-usage-at-netflix-3abfc096781b) - Also provides insight into container monitoring, logging, and security at Netflix.
|
|
### [Docker Networking in Production at Visa](https://www.youtube.com/watch?v=k3SeQPt0f0o)
|
|
* Chief Systems Architect Sasi Kannappan describes how Docker is used at Visa
|
|
### [The Golden Ticket- Docker and High Security Microservices - Black Belt Track](https://www.youtube.com/watch?v=346WmxQ5xtk)
|
|
### [Docker Engine Security Cheatsheet](https://github.com/konstruktoid/Docker/blob/master/Security/CheatSheet.adoc)
|
|
* Collection of resources on hardening your Docker daemon
|