Git Product home page Git Product logo

yatas's Introduction

YATAS

codecov

Yet Another Testing & Auditing Solution

Features

YATAS is a simple and easy to use tool to audit your infrastructure for misconfiguration or potential security issues.

demo

Installation

brew tap stangirard/tap
brew install yatas
cp .yatas.yml.example .yatas.yml

Modify .yatas.yml to your needs.

Usage

yatas ## --details 

Flags:

  • --details: Show details of the issues found.
  • --compare: Compare the results of the previous run with the current run and show the differences.
  • --ci: Exit code 1 if there are issues found, 0 otherwise.
  • --resume: Only shows the number of tests passing and failing.

Plugins

Name Description Checks
AWS AWS checks Good practices and security checks

Checks

Ignore results for known issues

You can ignore results of checks by add the following to your .yatas.yml file:

ignore:
  - id: "AWS_VPC_004"
    regex: true
    values: 
      - "VPC Flow Logs are not enabled on vpc-.*"
  - id: "AWS_VPC_003"
    regex: false
    values: 
      - "VPC has only one gateway on vpc-08ffec87e034a8953"

Exclude a test

You can exclude a test by adding the following to your .yatas.yml file:

plugins:
  - name: "aws"
    enabled: true
    description: "Check for AWS good practices"
    exclude:
      - AWS_S3_001

Specify which tests to run

To only run a specific test, add the following to your .yatas.yml file:

plugins:
  - name: "aws"
    enabled: true
    description: "Check for AWS good practices"
    include:
      - "AWS_VPC_003"
      - "AWS_VPC_004"

AWS - 45 Checks

APIGateway

  • AWS_APG_001 Apigateway Cloudwatch Logs enabled
  • AWS_APG_002 APIGateway stages protected, by ACL

AutoScaling

  • AWS_ASG_001 Autoscaling Desired Capacity vs Max Capacity below 80%

Backup

  • AWS_BAK_001 EC2 Snapshots Encryption
  • AWS_BAK_002 EC2 Snapshots Age

Cloudfront

  • AWS_CFT_001 TLS 1.2 Minimum
  • AWS_CFT_002 Cloudfront HTTPS Only
  • AWS_CFT_003 Standard Logging Enabled
  • AWS_CFT_004 Cookies Logging Enabled
  • AWS_CFT_005 ACL Used

CloudTrail

  • AWS_CLD_001 Cloudtrails Encryption
  • AWS_CLD_002 Cloudtrails Global Service Events Activated
  • AWS_CLD_003 Cloudtrails Multi Region

DynamoDB

  • AWS_DYN_001 Dynamodb Encryption
  • AWS_DYN_002 Dynamodb Continuous Backups

EC2

  • AWS_EC2_001 EC2 Public IP
  • AWS_EC2_002 Monitoring Enabled

ECR

  • AWS_ECR_001 Image Scanning Enabled

LoadBalancer

  • AWS_ELB_001 ELB Access Logs Enabled

GD

  • AWS_GD_001 GuardDuty Enabled

IAM

  • AWS_IAM_001 IAM 2FA
  • AWS_IAM_002 IAM Access Key Age
  • AWS_IAM_003 IAM User Can Elevate Rights

Lambda

  • AWS_LMD_001 Lambda Private
  • AWS_LMD_002 Lambda In Security Group

RDS

  • AWS_RDS_001 RDS Encryption
  • AWS_RDS_002 RDS Backup
  • AWS_RDS_003 RDS Minor Auto Upgrade
  • AWS_RDS_004 RDS Private
  • AWS_RDS_005 RDS Logging
  • AWS_RDS_006 RDS Delete Protection

S3 Bucket

  • AWS_S3_001 S3 Encryption
  • AWS_S3_002 S3 Bucket in one zone
  • AWS_S3_003 S3 Bucket object versioning
  • AWS_S3_004 S3 Bucket retention policy
  • AWS_S3_005 S3 Public Access Block

Volume

  • AWS_VOL_001 EC2 Volumes Encryption
  • AWS_VOL_002 EC2 Volumes Type
  • AWS_VOL_003 EC2 Volumes Snapshots

VPC

  • AWS_VPC_001 VPC CIDR
  • AWS_VPC_002 VPC Only One
  • AWS_VPC_003 VPC Gateway
  • AWS_VPC_004 VPC Flow Logs
  • AWS_VPC_005 At least 2 subnets
  • AWS_VPC_006 Subnets in different zone

yatas's People

Contributors

mend-bolt-for-github[bot] avatar renovate[bot] avatar stangirard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.