• This repository has been archived on 02/Aug/2023
  • Stars
    star
    108
  • Rank 321,259 (Top 7 %)
  • Language
    TypeScript
  • License
    Apache License 2.0
  • Created about 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CLI tool for auditing S3 buckets

s3audit-ts

This is an open source project published by The Scale Factory.

We currently consider this project to be hibernating. For our replacement (implemented in Rust), see s3audit-rs.

As a hibernated project, that means we’re no longer prioritising it, we are currently doing minimal maintenance for the benefit of the few customers we support who still use them.

ℹ️ We’re not regularly patching these projects, or actively watching for issues or PRs. We’ll periodically make updates or respond to contributions if one of the team has some spare time to invest.

Checks the settings for all S3 buckets in an AWS account for public access

oclif License

For an introduction, read Securing S3 buckets with s3audit

Install

Download and install the latest release from GitHub

Or install the NPM package:

$ npm install -g s3audit

Usage

Node

AWS credentials will be taken from environment variables. It is recommended to run this in combination with AWS Vault

Arguments

s3audit --bucket=s3-bucket=name
s3audit --format=console
s3audit --format=csv
s3audit --enable-check=policy --enable-check=acl
s3audit --disable-check=logging --enable-check=logging

IAM Role

You should use a role which is allowed these actions for all buckets in your account:

s3:ListAllMyBuckets,
s3:GetBucketAcl,
s3:GetBucketLogging,
s3:GetBucketPolicy,
s3:GetBucketPublicAccessBlock,
s3:GetBucketVersioning,
s3:GetBucketWebsite,
s3:GetEncryptionConfiguration
$ aws-vault exec <profile> -- s3audit

  ❯ Checking 1 bucket
    ❯ s3audit-demo
      ❯ Bucket public access configuration
        βœ– BlockPublicAcls is set to false
        βœ– IgnorePublicAcls is set to false
        βœ– BlockPublicPolicy is set to false
        βœ– RestrictPublicBuckets is set to false
      βœ– Server side encryption is not enabled
      βœ– Object versioning is not enabled
      βœ– MFA Delete is not enabled
      βœ” Static website hosting is disabled
      βœ” Bucket policy doesn't allow a wildcard entity
      βœ” Bucket ACL doesn't allow access to "Everyone" or "Any authenticated AWS user"
      βœ– Logging is not enabled

More Repositories

1

vagrant-multiprovider-snap

(NO LONGER SUPPORTED) Multi-provider snapshotting for Vagrant
Ruby
87
star
2

tfctl

Terraform wrapper for managing multi-account AWS infrastructures
Ruby
46
star
3

vagrant-cucumber

A Vagrant plugin to allow cucumber to work with VMs.
Ruby
40
star
4

terraform-cloudfront-auth

Terraform module to provision CloudFront Distribtition with Lambda@Edge authorization backed by a private S3 origin
JavaScript
40
star
5

aws-assume-role

Ruby
34
star
6

zcollective

Tools for rationalising Zabbix config with hosts found by MCollective
Ruby
22
star
7

terraform-tfe-workspaces

TFE/C workspaces Terraform module
HCL
10
star
8

s3audit-rs

Tool for auditing AWS S3 buckets
Rust
6
star
9

s3du

s3du is a command line tool for viewing space used by AWS S3 buckets
Rust
5
star
10

terraform-codepipeline-crossaccount-example

A Terraform reference module to create a CodePipeline which deploys files to an S3 bucket in another account
HCL
4
star
11

hcdl

A tool to safely download and install HashiCorp products.
Rust
4
star
12

sf-deploy

Pull-based software deployment with mcollective
Ruby
3
star
13

sf-fargate-workshop-demo

JavaScript
2
star
14

sf-hiera-aws

Hiera backend for querying AWS resources
Ruby
2
star
15

docker-atlantis-terragrunt

HCL
2
star
16

sf-puppet-metadata

TypeScript
1
star
17

zabbix-perl-agent

Perl implementation of a Zabbix agent
Perl
1
star
18

eni-usage-cloudwatch-metric

A Lambda function to publish metrics on AWS ENI usage
JavaScript
1
star
19

sf-r53-update

A tool to maintain Route53 resource record sets and health checks according to the addresses of server instances in Autoscaling Groups.
Ruby
1
star
20

demo_branch_environments

Demo for branch-based environments with GHA, Terraform and AWS for the blog post.
HCL
1
star