Black Friday sale: an extra 40% off every course until Monday, November 30.New Year sale: an extra 30% off every course until Friday, January 1.Memorial Day sale: an extra 25% off every course until Monday, May 31.SysAdmin Day sale: an extra 25% off every course until Sunday, August 1.Back to School sale: an extra 25% off every course until Sunday, August 22.Labor Day sale: an extra 25% off every course until Monday, September 6.Black Friday sale: an extra 40% off every course until Monday, November 29.New Year sale: an extra 30% off every course until Saturday, January 1.Choose your certification →

Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

3.4.3.1. Security Auditing Services & Features (CloudTrail, AWS Config, VPC Flow Logs, CloudFormation drift detection)

3.4.3.1. Security Auditing Services & Features (CloudTrail, AWS Config, IAM Access Analyzer)

Security auditing answers three questions: Who did what? Is our configuration correct? Are our permissions too broad?

CloudTrail (who did what):

  • Records every API call with: principal, action, resource, timestamp, source IP
  • Organization trail captures all accounts
  • Log file integrity validation detects tampering
  • To prove logs can't be deleted, send the organization trail to a bucket in a separate log-archive account with S3 Object Lock in Compliance mode (no one, including root, can delete or shorten retention). Integrity validation detects tampering but doesn't prevent deletion. Member accounts can't modify or delete an organization trail

AWS Config (is our configuration correct):

  • Tracks resource configuration over time
  • Evaluates compliance against rules
  • Configuration timeline shows every change to a resource

IAM Access Analyzer (are our permissions too broad):

  • External access analysis: Finds resources shared with external accounts or public access (S3 buckets, IAM roles, KMS keys, Lambda functions, SQS queues)
  • Unused access analysis: Identifies IAM roles and permissions not used in 90+ days
  • Policy validation: Checks IAM policies for syntax errors and security issues
  • Policy generation: Creates least-privilege policies from CloudTrail activity
# Check for external access findings
aws accessanalyzer list-findings \
  --analyzer-arn "arn:aws:access-analyzer:us-east-1:123456789012:analyzer/org-analyzer" \
  --filter '{"status": {"eq": ["ACTIVE"]}, "resourceType": {"eq": ["AWS::S3::Bucket"]}}'

A finding shows that external access exists, not that it is unauthorized: confirm intent with the resource owner first, then archive intended access (or add an archive rule) and remove what isn't.

Exam Trap: IAM Access Analyzer's external access analysis only identifies resources accessible from outside the zone of trust (your account or organization). It doesn't flag overly permissive access within the account. For internal over-permissioning, use the unused access analyzer or policy generation features.

See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•26 professional certifications earned