Skip to content

Instantly share code, notes, and snippets.

@epomatti
Last active February 23, 2023 12:59
Show Gist options
  • Save epomatti/b780fa28136c47d50c9b93dead62b556 to your computer and use it in GitHub Desktop.
Save epomatti/b780fa28136c47d50c9b93dead62b556 to your computer and use it in GitHub Desktop.
AWS Assessment Permissions

AWS Audit Permissions

Handy policies for assessment of AWS resources in a read-only approach, useful when you're doing some audit.

Request/add the policies below.

Managed policies:

  • AWSResourceExplorerReadOnlyAccess
    • Or AWSResourceExplorerFullAccess if the service has not yet been enabled
  • IAMUserChangePassword
  • ReadOnlyAccess
  • SecurityAudit

Request these permissions for MFA. Replace <account>, <user>, and <device> accordingly:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "",
      "Effect": "Allow",
      "Action": [
        "iam:DeactivateMFADevice",
        "iam:DeleteVirtualMFADevice",
        "iam:EnableMFADevice",
        "iam:ResyncMFADevice",
        "iam:CreateVirtualMFADevice",
        "iam:ListMFADevices"
      ],
      "Resource": [
        "arn:aws:iam::<account>:user/<user>",
        "arn:aws:iam::<account>:mfa/<device>"
      ]
    },
    {
      "Sid": "",
      "Effect": "Allow",
      "Action": [
        "iam:GetAccountPasswordPolicy",
        "iam:ListAccountAliases",
        "iam:ListMFADevices",
        "iam:ListVirtualMFADevices",
        "iam:GetAccountSummary"
      ],
      "Resource": "*"
    }
  ]
}

Trusted Advisor:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "trustedadvisor:Describe*",
        "trustedadvisor:RefreshCheck"
      ],
      "Resource": "*"
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment