kube-trivy

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2019 License: AGPL-3.0

README

A Simple and Comprehensive Vulnerability Scanner for Kubernetes

Abstract

KubeTrivy is a extends trivy for kubernetes. KubeTrivy is a simple and comprehensive vulnerability scanner for Kubernetes. KubeTrivy detects vulnerabilities of OS packages (Alpine, RHEL, CentOS, etc.) and application dependencies (Bundler, Composer, npm, yarn etc.). KubeTrivy is easy to use. Just install the binary and you're ready to scan. All you need to do for scanning is to specify an image name of container on kubernetes.

Check the about Trivy

Features

  • Detect comprehensive vulnerabilities
    • OS packages (Alpine, Red Hat Universal Base Image, Red Hat Enterprise Linux, CentOS, Debian and Ubuntu)
    • Application dependencies (Bundler, Composer, Pipenv, Poetry, npm, yarn and Cargo)
  • Managing vulnerabilities using kubectl command
    • Create a CRD on your Kubernetes
    • Get vulnerability info kubectl get vulnerability or kubetrivy get ${resourceName}
  • Extend Trivy features
    • kubetrivy is compatible with trivy's local DB.
    • kubetrivy is compatible with trivy's command options.

TODO:

  • Add kubectl plugin

Install

$ git clone https://github.com/masahiro331/kube-trivy
$ cd kube-trivy
$ go build -o kubetrivy cmd/kubetrivy/main.go
$ kubectl apply -f crd.yaml

Quick Start

Basic

$ kubetrivy -n default scan
$ kubetrivy -n default scan
$ kubectl get vulnerability -n default
$ kubetrivy -n default get ${resourceName}

Directories

Path Synopsis
cmd
pkg
apis/kubetrivy/v1
Package v1 is the v1 version of the API.
Package v1 is the v1 version of the API.
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/kubetrivy/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/kubetrivy/v1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL