An open API service indexing awesome lists of open source software.

https://github.com/theunknownsoul/k8s-security

CLI tool for Kubernetes security inspection.
https://github.com/theunknownsoul/k8s-security

hacking kubernetes security security-tools trivy

Last synced: about 1 month ago
JSON representation

CLI tool for Kubernetes security inspection.

Awesome Lists containing this project

README

          

![Static Badge](https://img.shields.io/badge/Language%3A_-_Python_v.3-blue)
![Static Badge](https://img.shields.io/badge/Requires%3A_-_trivy_-purple)
![Static Badge](https://img.shields.io/badge/Requires%3A_-_CVEmap_-purple)
![Static Badge](https://img.shields.io/badge/Requires%3A_-_bash_-green)

# Kubernetes security inspector :lock: [![Awesome](https://awesome.re/badge.svg)](https://awesome.re)
Interactive CLI tool for Kubernetes security assessment.
## Introduction

![Скриншот](./img/screen.png)

Project consists of two main parts:
1. Python scripts for gathering information about Kubernetes cluster and its components.
2. Script that triggers trivy and scan vulnerabilities.
3. Python scripts that count number of vulnerabilities, group them by severity and
give additional info about them.

#### Required tools
* Python 3.*
* bash
* kubectl
* [Trivy](https://github.com/aquasecurity/trivy)
* [CVEmap](https://github.com/projectdiscovery/cvemap)

## Installation and usage
* clone repository with ```git clone https://github.com/TheUnknownSoul/k8s-security```
* run ```chmod +x k8_inspector.sh```
* run ```./k8_inspector.sh```
* using arrows select what you want to do
* follow instructions and hints in the terminal

### Version 0.0.1
- Check Role - base access control
- Count same type vulnerabilities
- Give info about CVE's

### Planned features
- Check Pod Security Policies
- Check Network Policies
- Check Ingresses
- Check ConfigMaps
- Check Service Accounts
- Check Nodes
- Check Deployments
- Check StatefulSets
- Check DaemonSets
- Check Jobs
- Check CronJobs
- Check Services
- Check Volumes
- Check Helm releases