Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Garrison Agent that mirrors AWS GuardDuty alerts and some extra compliance checks

Notifications You must be signed in to change notification settings

forward3d/garrison-agent-aws-guardduty

Repository files navigation

Garrison Agent - AWS GuardDuty

This is a part of the Garrison security project. This agent provides mirroring of the AWS GuardDuty alerts and other basic checks.

Checks Provided

Function Name Description
check_enabled Alerts if GuardDuty is not enabled in the region.
check_findings Retrieves all non-archived findings from GuardDuty.

Installation & Example

Docker Hub - https://hub.docker.com/r/forward3d/garrison-agent-aws-guardduty/

docker pull forward3d/garrison-agent-aws-guardduty
docker run --rm -e "GARRISON_URL=https://garrison.internal.acme.com" forward3d/garrison-agent-aws-guardduty check_enabled
docker run --rm -e "GARRISON_URL=https://garrison.internal.acme.com" -e "GARRISON_AWS_REGIONS=eu-west-1,us-west-2" forward3d/garrison-agent-aws-guardduty check_enabled

Agent Specific Configuration

These are additional specific configuration options for this agent. Global agent configurations still apply.

Environmental Variable Default Expects
GARRISON_AWS_REGIONS all [1] Comma Separated Strings eg. eu-west-1,us-west-2
  1. Standard AWS Regions as returned by the AWS SDK at runtime for GuardDuty.

AWS Authentication

As this requires access to the AWS API you will need this IAM policy as a minimum for it to operate correctly.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": [
              "guardduty:GetFindings",
              "guardduty:ListDetectors",
              "guardduty:ListFindings",
              "guardduty:GetDetector"
            ],
            "Resource": "*",
            "Effect": "Allow"
        }
    ]
}

We recommend using EC2/ECS Task roles so that you don't need to send credentials into the container, however if you can't use those or want to send in specific Access Keys and Secret keys, please see the AWS Documentation as to how you do that.