Home

Awesome

Carbonetes

carbonetes-scan: Container Security Tool for kubectl and oc

GitHub release (latest SemVer) GitHub Proudly written in Bash

This repository provides carbonetes-scan container security scan tool for Kubernetes cluster. Install →

carbonetes-scan provides comprehensive container analysis and policy evaluation as a fully managed service. Carbonetes analyzes your container images for native code vulnerabilities, software composition analysis (SCA), license types, malware, secrets and bill of materials.

:pushpin: To know more about Carbonetes, check our website.

carbonetes-scan

carbonetes-scan is a tool that seamlessly integrates complete container analysis directly into your Kubernetes cluster.

:pencil: Usage

~ % kubectl carbonetes-scan --help

Carbonetes Scan: Security Tool for kubectl and oc

This plugin provides comprehensive container analysis and policy evaluation as a fully managed service.
Carbonetes analyzes your container images for native code vulnerabilities, software composition analysis (SCA),
license types, malware, secrets, and bill of materials.

Usage:
    kubectl carbonetes-scan [flags]

Flags:
  -A, --all-namespaces      : List all the unique images on all namespaces

  -h, --help                : help for kubectl-carbonetes-scan

  -i, --image <string>      : the image to be scanned

  -p, --password <string>   : Carbonetes account password

  -r, --registry <string>   : Registry Uri (Added in Carbonetes Web Application)

  -u, --username <string>   : Carbonetes account username

  -v, --version             : version for kubectl-carbonetes-scan


Use "kubectl carbonetes-scan --image <string> --registry <string> --username <string> --password <string>" to execute a complete container analysis.

You need a valid credentials in Carbonetes to use this plugin.
If you don't have it yet, you can register at: https://carbonetes.com

:clipboard: Prerequisites

This plugin requires Docker installation and a valid Carbonetes credentials (email and password).

:bulb: Arguments

Argument NameDescription
registry *Registry Uri (Added in Carbonetes Web Application)
image *The image to be scanned.
username *The account username in Carbonetes.
password *The account password in Carbonetes.

* = required inputs.

:bulb: Outputs

Output NameDescription
VulnerabilitiesA list of known security risks that can be exploited by a threat actor listed with severities.
Software CompositionsSoftware that might cause a security risk listed with severities.
Software DependenciesPieces of software that rely on each other listed with vulnerability counts.
LicensesLegal compliance found on each software of the scanned image.
MalwareVirus threats found on the scanned image.
SecretsSecret data found on each software of the scanned image.
Bill of MaterialsA list of all the components exist in a software.
Policy ResultThe result of the policy evaluation, PASSED or FAILED.
Final ActionRecommends if you need to fix all the known vulnerabilities of the scanned image.

:dvd: Installation

:computer: Kubectl Plugins (macOs and Linux)

You can install kubectl-carbonetes-scan using Krew, a kubectl plugin manager. Krew itself is also a plugin on kubectl. You can easily install it with only a few steps, available on MacOS, Linux, and Windows.

via awesome-kubectl-plugins

via Carbonetes Custom Plugin Index:

Download the Manifest:

curl -sL https://raw.githubusercontent.com/carbonetes/kubectl-carbonetes-scan/main/.krew/carbonetes-scan.yaml > carbonetes-scan.yaml \
  && kubectl krew install --manifest=carbonetes-scan.yaml

Download the Binary:

  curl -LO https://github.com/carbonetes/kubectl-carbonetes-scan/archive/refs/tags/v1.1.0.tar.gz \
  && tar xf v1.1.0.tar.gz kubectl-carbonetes-scan-1.1.0/kubectl-carbonetes-scan \
  && chmod +x ./kubectl-carbonetes-scan-1.1.0/kubectl-carbonetes-scan \
  && mv -i ./kubectl-carbonetes-scan-1.1.0/kubectl-carbonetes-scan /usr/local/bin/kubectl-carbonetes_scan \
  && rm v1.1.0.tar.gz \
  && rm -rf ./kubectl-carbonetes-scan-1.1.0

You can verify the installation using the commands kubectl plugin list to see the list of installed plugins or kubectl carbonetes-scan --version to see the version of the installed kubectl-carbonetes-scan.

:email: Support

To help with this plugin, or have an issue or feature request, please contact: eng@carbonetes.com

If reporting an issue, please include:

License and Copyright

Copyright © 2021 Carbonetes

Licensed under MIT License.