s3-cisbench

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

s3-cisbench

image

A simple command line tool that checks S3 bucket against (security-) best practices, mainly CIS benchmark based.

⚠ ⚠ This project is currently work-in-progress

CIS AWS Benchmark v1.4.0: Storage

The AWS Benchmark section 'Storage' contains the S3 bucket related items, namely:

  • 2.1.1 Ensure all S3 buckets employ encryption-at-rest
  • 2.1.2 Ensure S3 Bucket Policy is set to deny HTTP requests
  • 2.1.3 Ensure MFA Delete is enable on S3 buckets
  • 2.1.4 Ensure all data in Amazon S3 has been discovered (out of scope)
  • 2.1.5 Ensure that S3 Buckets are configured with 'Block public access'
    • ✖ ✔ BlockPublicAcls (BPA)
    • ✖ ✔ BlockPublicPolicy (BPP)
    • ✖ ✔ IgnorePublicAcls (IPA)
    • ✖ ✔ RestrictPublicBuckets (RPB)

Checks currently convered by this tool

⚠ ⚠ Again this is WIP

[X] Ensure all S3 buckets employ encryption-at-rest [CIS 2.1.1]

[X] S3 bucket versioning enabled (non-CIS)

Usage

$ s3-cisbench --help
s3-csibench is a tool that analyses S3 bucket against CIS benchmark rules.

Usage:
  s3-cisbench [flags]
  s3-cisbench [command]

Available Commands:
  audit       Audit S3 buckets against applicable CIS benchmark items
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  list        List AWS S3 buckets.

Flags:
  -d, --debug   Enable verbose logging
  -h, --help    help for s3-cisbench

Use "s3-cisbench [command] --help" for more information about a command.
'audit' Command Example
'audit -o json' Command Example with 'jq' processing

Usage of json output with leveraging jq for further filtering:

Build

git clone https://github.com/rollwagen/s3-cisbench
make

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
aws

Jump to

Keyboard shortcuts

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