Lesson 3 of 3 Compliance Monitoring with AWS Config and Trusted Advisor

Remediating AWS Trusted Advisor Findings

This lesson explains how AWS Trusted Advisor inspects accounts and recommends improvements, and how to remediate the security checks as the exam guide asks.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe check categories and support plan access.
  • Remediate common security checks.
  • Automate responses through EventBridge.

Checks and support plans

Trusted Advisor organises checks into categories: cost optimisation, performance, security, fault tolerance, service limits and operational excellence. Accounts on the Basic Support plan get a core set of checks, including several security checks and service limits; Business Support+, Enterprise Support and Unified Operations unlock the full set, programmatic access through the AWS Support API and Trusted Advisor API, and organisational view. Enterprise Support and Unified Operations also include Trusted Advisor Priority, which surfaces prioritised recommendations from the account team. Check results are green (no problem), yellow (investigation recommended) or red (action recommended), and can be refreshed and have items excluded.

True or false

Trusted Advisor checks

Exam skills 4.1.4

Check facts about Trusted Advisor and support plans.

Log in to try this activity Interactive activities are free with an account.

Security checks and their remediation

The following table lists common security checks and the standard remediation for each.

CheckFindingRemediation
Security groups - specific ports unrestricted0.0.0.0/0 on ports such as 22, 3389, 3306Restrict sources; use Session Manager instead of open SSH/RDP
MFA on root accountRoot user without MFAEnable MFA (passkey or security key) on root
IAM access key rotationKeys older than 90 daysRotate keys, prefer roles
Exposed access keysKeys found in public repositoriesDeactivate and rotate immediately, review CloudTrail
Amazon S3 bucket permissionsBuckets with open accessEnable Block Public Access, fix bucket policies and ACLs
Amazon EBS / RDS public snapshotsSnapshots shared publiclyMake private; enable block public access for snapshots
AWS CloudTrail loggingNo trail or not multi-RegionCreate a multi-Region trail
ELB security groups / listener securityWeak TLS policies or missing groupsUpdate security policy and groups
Match the pairs

Remediating Trusted Advisor findings

Exam skills 4.1.4

Match each Trusted Advisor security check with its remediation.

Log in to try this activity Interactive activities are free with an account.

Automating Trusted Advisor responses

Trusted Advisor publishes check status changes to EventBridge (in us-east-1) with source aws.trustedadvisor. A rule can match a specific check and status and invoke a Lambda function or Automation runbook to remediate, or notify a team. Weekly summary emails and organisational view reports provide regular visibility. Trusted Advisor also integrates with Security Hub, where its security check results appear as findings.

{
  "source": ["aws.trustedadvisor"],
  "detail-type": ["Trusted Advisor Check Item Refresh Notification"],
  "detail": {"status": ["ERROR"], "check-name": ["Exposed Access Keys"]}
}

The following diagram shows a check status change triggering remediation.

Automating a Trusted Advisor response. Check status changes are published to EventBridge in us-east-1 with source aws.trustedadvisor. A rule matching a check and status, such as security groups with unrestricted SSH, invokes a Lambda function or Automation runbook that closes the access, or notifies the team.
Rules must be created in us-east-1, where Trusted Advisor publishes its events.
Worked example

Automatically closing open SSH

Trusted Advisor repeatedly reports security groups with port 22 open to the world in a development account. The team creates an EventBridge rule in us-east-1 for the Security Groups - Specific Ports Unrestricted check with status ERROR, targeting a Lambda function that removes the offending ingress rules and posts a message to the team's channel through SNS. They also add the Config rule restricted-ssh with automatic remediation, which reacts faster because it evaluates on configuration change rather than on Trusted Advisor's refresh cycle, and they move engineers to Session Manager.

Check yourself

What do yellow and red check statuses mean?

Show answer

Yellow means investigate; red means action is recommended.

Exam Tips

Remember for the exam

  • Basic Support includes core security checks; Business Support+ and above unlock all checks and the API.
  • Red means action recommended, yellow means investigate.
  • Automate responses with EventBridge rules on aws.trustedadvisor events in us-east-1.
  • Exposed access keys: deactivate and rotate immediately, then investigate with CloudTrail.