A source-cited reference library 399 modules · 19 subdomains · 5 domains
Research Library
U.S. Air Force photo by Tech. Sgt. Joshua Edwards
Photo: U.S. Air Force photo by Tech. Sgt. Joshua Edwards, Public domain, via Wikimedia Commons

Cybersecurity / Defense and Hardening

Detective Controls - AWS Prescriptive Guidance

CybersecurityDefense and Hardening596 words3 min readSource: docs.aws.amazon.com

Detective controls are security controls designed to detect, log, and alert after an event has occurred. They serve as a second line of defense, identifying security issues that bypassed preventative controls and enabling timely response to threats and misconfigurations within AWS environments.

How it works

Detective controls operate through a two-phase process: first, establishing centralized logging of events and resource states; second, analyzing those logs to detect anomalies indicative of threats. Centralized logging typically involves aggregating data from sources such as AWS CloudTrail, Amazon S3 access logs, and VPC Flow Logs into a unified repository like Amazon CloudWatch Logs. Once logs are centralized, analytical controls—such as pattern-matching queries or automated anomaly detection—are applied to identify suspicious behavior. When a match or deviation is detected, an alert is generated and routed to security teams or integrated systems for investigation. This process enables continuous monitoring and reactive identification of security events, including credential compromise, data exfiltration, and unauthorized infrastructure changes.

Varieties or components

Detective controls in AWS encompass a range of services and mechanisms tailored to specific detection objectives. These include monitoring services that analyze log sources for malicious activity, data security services that discover and protect sensitive information, configuration auditing tools that track resource changes, and vulnerability assessment services that scan for exposures. Key components involve centralized alert aggregation, automated remediation workflows, and integration with security information and event management (SIEM) systems. Controls may be configured to detect suspicious behavior, fraudulent activity, compliance violations, or anomalous access patterns, depending on organizational risk profiles and regulatory requirements. Each component functions independently or in conjunction with others to provide layered visibility across accounts, regions, and workloads.

Standards or algorithms that govern it

Detective controls are governed by established frameworks and technical approaches that ensure consistency and effectiveness. These include threat intelligence feeds, machine learning models, and anomaly-detection techniques used to identify deviations from baseline behavior. Pattern matching—both built-in and custom—is employed to recognize known indicators of compromise or policy violations. Configuration compliance is evaluated against predefined rules, whether AWS-managed or customer-defined, to detect drift from approved states. Risk scoring algorithms contextualize findings by assessing severity and potential impact, guiding prioritization of response actions. Integration with services like Amazon EventBridge and AWS Security Hub enables normalized alert formatting and correlation across sources, supporting standardized incident handling and reporting in alignment with operational and compliance standards.

Where it fails or is limited

Detective controls are inherently reactive and cannot prevent incidents before they occur, relying on post-event detection rather than real-time blocking. Their effectiveness depends on comprehensive log coverage; gaps in logging—such as disabled trails, excluded regions, or unmonitored resources—can result in undetected activity. False positives may arise from overly broad detection rules, leading to alert fatigue and reduced trust in automated systems. Conversely, sophisticated attackers may evade detection by mimicking legitimate behavior, exploiting blind spots in anomaly models, or timing actions to avoid scheduled analysis windows. Additionally, the value of detective controls diminishes if alerts are not timely investigated due to insufficient staffing, poor alert routing, or lack of playbook-defined responses. Without proper tuning, integration, and ongoing maintenance, detective controls may generate noise without actionable insight, undermining their role in security operations.

Control Type Primary Function Integrated AWS Services
Monitoring Services Analyze logs for malicious or unauthorized activity Amazon GuardDuty, AWS Security Hub CSPM
Data Security Services Discover and protect sensitive data in storage Amazon Macie
Configuration Auditing Track and record changes to resource configurations AWS Config
Vulnerability Management Scan workloads for exposures and software flaws Amazon Inspector
Infrastructure Optimization Identify security, performance, and cost improvement opportunities AWS Trusted Advisor
Source

Adapted for this library from the original article at https://docs.aws.amazon.com/prescriptive-guidance/latest/aws-security-controls/detective-controls.html — see the publisher's site for the authoritative version. (retrieved October 2026).