Volume 3 · Chapter 11 — Identity, Security and Compliance
The AWS Security and Compliance Services Suite
11.1 Introduction
The threat-detection chapter introduced CloudTrail, Config, GuardDuty, and Security Hub. The exam expects fluency across the full detective and compliance suite - Inspector, Macie, Detective, Audit Manager, Access Analyzer - and precise knowledge of what each does, because “which service detects X?” is a staple question. This chapter maps the suite so you can pick the right tool for each need.
11.2 CloudTrail in Depth
CloudTrailrecords API activity, and the exam tests its event types and features.Management events(control-plane operations like creating a bucket) are logged by default;data events(data-plane operations like S3 object-level GetObject or Lambda invokes) are high-volume and must be explicitly enabled;Insights eventsdetect unusual API activity patterns. Anorganization traillogs all accounts centrally.Log file validationproves logs weren’t tampered with (integrity), and you deliver logs to a locked, central S3 bucket (often in a separate log-archive account) so they’re immutable and an attacker can’t erase their tracks. Knowing management vs data vs insight events, org trails, and log validation is expected.
11.3 Threat Detection: GuardDuty, Inspector, Macie, Detective
Four detection services with distinct jobs - a classic exam matching exercise.GuardDutyis intelligent threat detection that continuously analyzes CloudTrail, VPC Flow Logs, and DNS logs with threat intelligence and ML to find compromised credentials, crypto-mining, reconnaissance, and malicious communication - no agents, just findings.Amazon Inspectoris automatedvulnerabilitymanagement - it scans EC2 instances, container images in ECR, and Lambda functions for software vulnerabilities (CVEs) and unintended network exposure.Amazon Macieuses ML to discover and classifysensitive data(PII, financial data) in S3 - for data-privacy and compliance.Amazon Detectiveanalyzes and visualizes security data to helpinvestigatethe root cause of findings (it doesn’t detect; it helps you investigate). The mnemonic: GuardDuty = threats from logs, Inspector = vulnerabilities in workloads, Macie = sensitive data in S3, Detective = investigate/root-cause.
flowchart TB GD[GuardDuty - threats from CloudTrail/VPC/DNS logs] --> Hub[Security Hub - aggregate + posture + standards] Insp[Inspector - CVE/vuln scan: EC2, ECR, Lambda] --> Hub Macie[Macie - sensitive data discovery in S3] --> Hub Cfg[Config - resource config + compliance rules] --> Hub Hub --> Det[Detective - investigate root cause] Hub --> Resp[Security team / automated response]
11.4 Config, Security Hub, and Audit Manager
Three services for compliance posture.AWS Configrecords the configuration of resources over time and evaluates them againstConfig Rules(managed or custom), giving configuration history, change tracking, and compliance status - and it can auto-remediate. It answers “is this resource compliant, and how was it configured at any point?”Security Hubaggregates findings from GuardDuty, Inspector, Macie, and Config into one dashboard and runs automated security-standard checks (CIS, PCI DSS, AWS Foundational Security Best Practices), giving a single posture view.Audit Managercontinuously collects evidence and maps it to compliance frameworks to streamline audits (producing audit-ready reports). Together: Config = per-resource compliance and history; Security Hub = aggregated posture and standards; Audit Manager = evidence collection for audits.
11.5 IAM Access Analyzer and the Complete Picture
IAM Access Analyzer(revisited here) identifies resources shared with external entities (external access findings) and unused access, and can validate and generate least-privilege policies. Putting the suite together as defense in depth:preventwith IAM, SCPs, and encryption;recordwith CloudTrail (to a locked central bucket);detectwith GuardDuty (threats), Inspector (vulnerabilities), and Macie (sensitive data);assesswith Config (compliance) and Access Analyzer (external access);aggregatewith Security Hub;investigatewith Detective; andevidencewith Audit Manager - all centrally managed across accounts (Firewall Manager for network policies, delegated administration for the security account). Knowing each service’s role and how they compose is exactly the professional-level security fluency the exam demands.
11.6 Banking Production Scenario
A bank’s security account is the delegated administrator for the suite. CloudTrail (organization trail, with data events on sensitive buckets and log-file validation) delivers to an immutable bucket in the log-archive account. GuardDuty watches every account for threats, Inspector continuously scans EC2, ECR images, and Lambda for CVEs, and Macie classifies sensitive customer data in S3 to enforce data-handling rules. Config rules enforce and record compliance (encryption on, no public access) with auto-remediation, and Security Hub aggregates all findings against PCI DSS and CIS standards into one posture view. When a GuardDuty finding fires, analysts use Detective to investigate the root cause, and Access Analyzer continuously flags any external sharing. Audit Manager assembles evidence for the bank’s regulatory audits. This full detective-and-compliance architecture is precisely the professional-level security design the certification targets.
11.7 Chapter Revision Notes
- CloudTrail: management events (default), data events (opt-in, high-volume), Insights (anomaly); org trail + log-file validation + locked central bucket for immutable audit.
- GuardDuty = threat detection from logs; Inspector = vulnerability/CVE scanning (EC2/ECR/Lambda); Macie = sensitive-data discovery in S3; Detective = investigate root cause.
- Config = per-resource configuration history + compliance rules (auto-remediate); Security Hub = aggregated findings + security-standard checks; Audit Manager = evidence collection for audits.
- IAM Access Analyzer = external-access and unused-access findings + least-privilege policy generation.
- Defense in depth: prevent (IAM/SCP/encryption) → record (CloudTrail) → detect (GuardDuty/Inspector/Macie) → assess (Config/Access Analyzer) → aggregate (Security Hub) → investigate (Detective) → evidence (Audit Manager).