Giter Club home page Giter Club logo

kubesf's Introduction

KubeSF: Kubernetes Security Audit Tool ๐Ÿ›ก๏ธ

alt text

version

Welcome to KubeSF, An ultimate solution for Kubernetes security audits. KubeSF is a powerful security audit tool designed to assess the security of a Kubernetes clusters at namespace and pod level. By combining static and runtime analysis, KubeSF helps in identifing vulnerabilities and potential security risks, ensuring that the Kubernetes environment is robust and secure.

Features

  • Namespace-level Security Audit: Analyzes security configurations and permissions within Kubernetes namespaces to ensure proper isolation and access control.

  • Pod-level Security Assessment: Evaluates security at the pod level by performing both static and runtime analysis on the pods.

  • Static Analysis: Scans Kubernetes configuration files used to deploy a resource statically to identify misconfigurations and security loopholes.

  • Runtime Analysis: Performs real-time analysis on running pods and containers to detect runtime security threats and vulnerabilities.

  • Actionable Insights: Receive detailed reports with actionable insights to remediate security issues and enhance the Kubernetes security posture.

Getting Started

Prerequisites

  • Kubernetes Cluster: Ensure you have a running Kubernetes cluster where you have necessary permissions to perform security audits.

Installation

  1. Clone the Repository:

    git clone https://github.com/abhiabhi2306/KubeSF.git
    cd KubeSF
    
  2. Install the necessary packages

    pip3 install -r requirements.txt
    cd web-ui
    pip3 install -r requirements.txt
    
  3. Install kubectl (if not already available in PATH)

    curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
    sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
    

    Usage

Single Mode (To run in a specific pod):

python3 main.py --single [namespace-name] [pod-name]

All Mode (All namespaces will be audited):

python3 main.py --all-namespaces

List Mode (Run in a list of namespaces):

python3 main.py --list namespaces.txt

the namespaces.txt file should be in the example format:

demo-1 
demo-2
demo-3

where demo-1, demo-2, demo-3 are namespace names.

Future Roadmap

  • Additional recommendations like possible exploits and fix recommendations
  • Sensitive information in container images
  • Taints and tolerations checks
  • Additional privilege escalation checks
  • Container escape test cases
  • More concurrency-related features
  • Report Generation (PDF)

Contributors

  • Abhishek S (@abhiabhi2306)
  • Ajith Prabhu M (@agent-killjoy)

kubesf's People

Contributors

abhiabhi2306 avatar

Watchers

 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.