Skip to content

Amazon Web Services

Amazon Web Services is a public cloud; one connector covers one AWS account.

  • What DRACO uses: Configuration and IAM for posture scans, CloudTrail management events, findings export targets.
  • What for: Compliance and attack paths, detections and hunts on CloudTrail, response in the account, WAF and GuardDuty blocklists.

Add it in Connectors > Add connector: pick Amazon Web Services, then choose what DRACO collects and what it may change. Add more later with Add a part on its connector page. See Connectors for how connectors, sign-in and tags work.

Parts

Part What DRACO uses Access Permissions
Posture AWS read The managed policies SecurityAudit and ViewOnlyAccess on the IAM user (or role) DRACO scans with.
Logs AWS CloudTrail read Lookup events: cloudtrail:LookupEvents (included in SecurityAudit).
S3 mode: s3:ListBucket on the trail's bucket and s3:GetObject on /AWSLogs/*; kms:Decrypt on the trail's key when it uses SSE-KMS.
Response Block IP (AWS WAF IP set), Block public access to bucket (AWS S3), Disable access key (AWS IAM), Isolate instance (AWS EC2), Revoke role sessions (AWS IAM), Snapshot volumes for forensics (AWS EC2), Tag resource (AWS) write Block IP (AWS WAF IP set): wafv2:GetIPSet, wafv2:UpdateIPSet
Block public access to bucket (AWS S3): s3:GetBucketPublicAccessBlock, s3:PutBucketPublicAccessBlock
Disable access key (AWS IAM): iam:GetAccessKeyLastUsed, iam:ListAccessKeys, iam:UpdateAccessKey
Isolate instance (AWS EC2): ec2:DescribeInstances, ec2:DescribeSecurityGroups, ec2:CreateSecurityGroup, ec2:RevokeSecurityGroupEgress, ec2:ModifyNetworkInterfaceAttribute, ec2:CreateTags
Revoke role sessions (AWS IAM): iam:GetRolePolicy, iam:PutRolePolicy, iam:DeleteRolePolicy
Snapshot volumes for forensics (AWS EC2): ec2:DescribeInstances, ec2:DescribeSnapshots, ec2:CreateSnapshot, ec2:CreateTags (on snapshots); kms:CreateGrant for volumes encrypted with a customer managed key
Tag resource (AWS): tag:GetResources, tag:TagResources, tag:UntagResources and the service's own tagging permission (ec2:CreateTags, s3:PutBucketTagging...)
Enforcement AWS WAF IP set, AWS GuardDuty threat list write AWS WAF IP set: wafv2:ListIPSets, wafv2:GetIPSet, wafv2:CreateIPSet, wafv2:UpdateIPSet
AWS GuardDuty threat list: s3:PutObject and s3:GetObject on the object; guardduty:ListDetectors, guardduty:ListThreatIntelSets, guardduty:GetThreatIntelSet, guardduty:CreateThreatIntelSet, guardduty:UpdateThreatIntelSet, iam:PutRolePolicy (GuardDuty's service-linked role reads the object)
Notifications Amazon S3, AWS Security Hub write S3 export: s3:ListBucket on the bucket, s3:PutObject on /*, s3:DeleteObject on the test file, for a dedicated IAM user (the provider's credentials are not used).
Security Hub: securityhub:BatchImportFindings, securityhub:GetFindings and securityhub:DescribeHub for the provider's identity (or the keys entered in the integration).

Posture

DRACO scans an AWS account with read-only access. Connect it once per account; scans then run on the provider's schedule.

Connect the provider in DRACO

Step 1: Get Your AWS Account ID

  1. Log in to the AWS Console
  2. Locate your AWS account ID in the top-right dropdown menu

Step 2: Create the IAM User

Create a dedicated read-only IAM user named DRACO with an access key, as described in Authentication > Credentials. It needs the SecurityAudit and ViewOnlyAccess managed policies and the additional permissions inline policy.

Step 3: Set Up AWS Authentication

Credentials (Static Access Keys)
  1. Sign in to DRACO, open Connectors, click Add connector and pick Amazon Web Services: the wizard opens at Link a Provider.
  2. Under Choose how to connect this account, select Static access keys
  3. Fill in:
    • Account ID: the 12-digit account ID from step 1
    • AWS Access Key ID and AWS Secret Access Key of the DRACO user
    • AWS Session Token: leave empty for the user's access key
    • Provider alias (optional; the connector's name)
  4. Click Connect account. DRACO registers the account and tests the connection.
  5. On Launch Scan, launch the first scan (Run now or On a schedule), or click Skip for now.
  6. The wizard goes on with Collectors (tick Logs for CloudTrail) and Responders (tick what DRACO may change, with its own write access) on the same connector. Tick nothing more to keep scans only. Any part skipped is listed on the connector page under Not set up yet, with a Set up button back to its step.

A second AWS account is a second connector: add it the same way, with its own IAM user. Typing an account ID that a connector already has says it is already connected as … with Open it.

Note

Check that the AWS Security Token Service (STS) endpoint of the region DRACO calls is active in your account (IAM > Account settings). If it is not, DRACO cannot connect to the account.

If that is the case your STS configuration may look like this:

AWS STS configuration

To solve this issue, activate the STS endpoint of that region.

Rotate the access key every 90 days (see Rotation).

Every authentication option, with the exact policies: AWS authentication.

Logs

The AWS CloudTrail data source reads the account's CloudTrail with the sign-in of the posture part. Mode lookup events reads the management events of the last 90 days per region and needs no trail; mode S3 reads the trail's files, every region and data events.

  • Lookup events: nothing to set up. The AWS provider's IAM user already has cloudtrail:LookupEvents (SecurityAudit); pick the regions (global services such as IAM log to us-east-1).
  • S3:

    1. In CloudTrail > Trails note the trail's bucket and prefix.
    2. Add an inline policy to the IAM user of the AWS provider (IAM > Users > the DRACO user > Add permissions > Create inline policy), plus kms:Decrypt on the trail's key for SSE-KMS buckets:

      {
        "Version": "2012-10-17",
        "Statement": [
          {"Effect": "Allow", "Action": "s3:ListBucket", "Resource": "arn:aws:s3:::<bucket>"},
          {"Effect": "Allow", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::<bucket>/<prefix>/AWSLogs/*"}
        ]
      }
      
    3. Enter the bucket, the prefix (before AWSLogs/) and the bucket's region, then test.

Response

Runs response actions on the AWS account from incidents and workflows: Block IP (AWS WAF IP set), Block public access to bucket (AWS S3), Disable access key (AWS IAM), Isolate instance (AWS EC2), Revoke role sessions (AWS IAM), Snapshot volumes for forensics (AWS EC2) and Tag resource (AWS).

Setup: Response actions.

Enforcement

Keeps blocklists of threat intel indicators up to date: AWS WAF IP set and AWS GuardDuty threat list.

Setup: Push targets, Setting up the permissions.

Notifications

Sends findings to Amazon S3 and AWS Security Hub after every scan: see Amazon S3 and AWS Security Hub.

If you turn on several parts

When you connect AWS once and tick several parts, the wizard shows one guide for all of them: what to check first, the access to create once, one list of permissions that names the part each one is for, the extra steps of each part, and one test that checks every part on its own. Turning a part on later shows only what it adds.

Posture and CloudTrail read with the same IAM user or role (SecurityAudit includes cloudtrail:LookupEvents; the S3 mode adds read access to the trail's bucket). Response actions and the WAF IP set and GuardDuty blocklists need write permissions: one separate IAM user used as the write access, with only the policies of the parts you turn on. The S3 export uses its own IAM user.