Skip to content

moabukar/cia

Repository files navigation

Container Image Analyser (CIA)

PkgGoDev Go Report Card Docker Pulls test Coverage Status release

Container Image Analyser (CIA) is a lightweight CLI tool designed to help DevOps engineers and developers analyse Docker container images for vulnerabilities and potential issues. It simplifies the process of ensuring the security and quality of containerized applications.

Table of Contents

Features

  • Vulnerability Scanning: CIA scans Docker container images for known vulnerabilities and rates their severity.
  • Detailed Reports: Generate detailed reports about the vulnerabilities found, including their CVE IDs, severity levels, and package information.
  • Remediation Suggestions: Get recommendations for remediation, such as updating specific packages or using alternative base images.
  • User-Friendly CLI: An easy-to-use command-line interface that supports a variety of options for scanning and reporting.

πŸ“ Usage

~$ cia

NAME:
   cia -  CIA is your go-to CLI tool for analyzing container images. It can pull images, scan for vulnerabilities, and output reports in multiple formats.

USAGE:
   cia [global options] command [command options] [arguments...]

COMMANDS:
   scan     Scans the given container image
   report   Generate a report of the last scan
   version  Show the version of CIA tool
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --format value  Report format (json, xml) (default: "json")
   --skip-pull     Skip pulling image before scanning
   --help, -h      show help

Installation

You can install CIA via go get or by downloading the binary release for your platform from the Releases page.

go get github.com/moabukar/cia

Directory structure

.
β”œβ”€β”€ CHANGELOG.md
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ LICENSE
β”œβ”€β”€ Makefile
β”œβ”€β”€ README.md
β”œβ”€β”€ cmd
β”‚   └── cia
β”‚       β”œβ”€β”€ cia
β”‚       └── main.go
β”œβ”€β”€ data
β”œβ”€β”€ go.mod
β”œβ”€β”€ go.sum
β”œβ”€β”€ internal
β”‚   β”œβ”€β”€ cli
β”‚   β”‚   └── main.go
β”‚   β”œβ”€β”€ cmd
β”‚   β”‚   └── main.go
β”‚   β”œβ”€β”€ report
β”‚   β”‚   └── report.go
β”‚   └── scanner
β”‚       └── scanner.go
└── tests