Skip to main content

Eze the one stop cli for security testing

Project description


         ______   ______  ______                 _____   _        _____ 
        |  ____| |___  / |  ____|               / ____| | |      |_   _|
        | |__       / /  | |__       ______    | |      | |        | |  
        |  __|     / /   |  __|     |______|   | |      | |        | |  
        | |____   / /__  | |____               | |____  | |____   _| |_ 
        |______| /_____| |______|               \_____| |______| |_____|

The one stop solution for security testing in modern development

GitHub GitHub tag (latest SemVer) Build Status GitHub issues Docker Pulls PyPI - Downloads

Overview

Eze is the one stop solution developed by RiverSafe Ltd for security testing in modern development.

Eze cli scans for vulnerable dependencies, insecure code, hardcoded secrets, and license violations across a range of languages

This docker image tool orchestrator is designed to be run by developers, security consultants, and ci pipelines

docker run -t -v FOLDER_TO_SCAN:/data riversafe/eze-cli test

Features:

  • Quick setup via Dockerfile with preinstalled tools
  • Auto-configures tools out the box, Supported languages: Python, Node and Java
  • SAST tools for finding security anti-patterns
  • SCA tools for finding vulnerable dependencies
  • Secret tools for finding hardcoded passwords
  • SBOM tools for generating a list of components
  • License scanning for violations (aka strong-copyleft usage)
  • Extendable plugin architecture for adding new security tools
  • Layering enterprise level reporting and auditing via the Eze Management Console (PAID service offered by RiverSafe)

Eze Usage

Just one line, via docker it'll automatically run the eze scan, and generate a configuration file for tailoring the scan ".ezerc.toml"

add -t to docker to enable terminal colours

docker run -t -v FOLDER_TO_SCAN:/data riversafe/eze-cli test

* For sysadmin and power users wanting to build their own images, see the README-DEVELOPMENT.md

Docker cli shortcuts

These commands will run a security scan against code in the current folder

CLI Command
linux/mac os bash docker run -t -v "$(pwd)":/data riversafe/eze-cli test
windows git bash docker run -t -v $(pwd -W):/data riversafe/eze-cli test
windows powershell docker run -t -v ${PWD}:/data riversafe/eze-cli test
windows cmd docker run -t -v %cd%:/data riversafe/eze-cli test

Other Common commands

Detect tools locally installed

docker run -t riversafe/eze-cli tools list
$ eze tools list
Available Tools are:
=======================
raw                   0.6.1             input for saved eze json reports
trufflehog            2.0.5             opensource secret scanner
semgrep               0.53.0            opensource multi language SAST scanner
...

Configuring Eze

Custom configuration

Eze runs off a local .ezerc.toml file, when this config is not present, a sample config will be generated automatically by scanning the codebase (eze test). You can customise it to:

  • Add/remove a scanning tool
  • Customise the arguments passed to a specific tool

Get Tool Configuration Help

To show information about a specific tool:

  • What version if any is installed.
  • Instructions how-to install it and configure
docker run -t riversafe/eze-cli tools help <TOOL>
Result
$ docker run -t riversafe/eze-cli tools help semgrep

Tool 'semgrep' Help
opensource multi language SAST scanner
=================================
Version: 0.52.0 Installed

Tool Configuration Instructions:
=================================
Configuration Format for SemGrep

[semgrep]
...

Opensource Tools in Eze

Type Name Version License Description
MISC raw 0.12.0-alpha inbuilt input for saved eze json reports
SECRET trufflehog 3.0.4 GNU opensource secret scanner
SAST semgrep 0.77.0 LGPL opensource multi language SAST scanner
SCA anchore-grype 0.28.0 Apache-2.0 opensource multi language SCA and container scanner
SBOM anchore-syft 0.34.0 Apache-2.0 opensource multi language and container bill of materials (SBOM) generation utility
SECRET gitleaks 7.5.0 MIT opensource static key scanner
SBOM java-cyclonedx 2.5.3 Apache-2.0 opensource java bill of materials (SBOM) generation utility
SCA java-dependencycheck 6.5.3 Apache-2.0 opensource java SCA tool class
SAST java-spotbugs 4.5.3 LGPL opensource java SAST tool class
SAST python-safety 1.10.3 MIT opensource python SCA scanner
SCA python-piprot 0.9.11 MIT opensource python outdated dependency scanner
SAST python-bandit 1.7.1 Apache-2.0 opensource python SAST scanner
SBOM python-cyclonedx 1.5.3 Apache-2.0 opensource python bill of materials (SBOM) generation utility
SCA node-npmaudit 8.3.0 NPM opensource node SCA scanner
SCA node-npmoutdated 8.3.0 NPM opensource node outdated dependency scanner
SBOM node-cyclonedx 3.3.1 Apache-2.0 opensource node bill of materials (SBOM) generation utility
SCA container-trivy 0.18.2 Apache-2.0 opensource container scanner
SCA kics 1.4.9 Apache-2.0 opensource infrastructure scanner

Updated: 18/01/2022

An updated list of tools, licenses, and sizes pre-installed in latest Eze Cli Dockerimage can be found using the command

docker run -t --rm riversafe/eze-cli tools list --include-source-type
docker run -t --rm riversafe/eze-cli tools help <tool-name>
# aka docker run -t --rm riversafe/eze-cli tools help trufflehog

Reporters in Eze

Name Version License Description
console 0.12.0-alpha inbuilt standard command line reporter
json 0.12.0-alpha inbuilt json output file reporter
s3 0.12.0-alpha inbuilt s3 uploader reporter
junit 0.12.0-alpha inbuilt junit output file reporter
quality 0.12.0-alpha inbuilt quality gate check reporter
eze 0.12.0-alpha inbuilt eze management console reporter
bom 0.12.0-alpha inbuilt json dx bill of materials reporter
bom-formatted 0.15.2 Apache-2.0 bill of materials multiformat reporter
sarif 0.12.0-alpha inbuilt sarif output file reporter

Updated: 18/01/2022

An updated list of reporters can be found using the command

docker run -t --rm riversafe/eze-cli reporters list --include-source-type
docker run -t --rm riversafe/eze-cli reporters help <reporter-name>
# aka docker run -t --rm riversafe/eze-cli reporters help console

Developers Documentation

To add your own tools checkout [README-DEVELOPMENT.md], this will walk you through installing eze locally for local development.

Contribute

To start contributing read [CONTRIBUTING.md]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eze-cli-0.13.2a0.tar.gz (103.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page