Incident response in the cloud: foggy with a ray of sunshine
Jeroen Vandeleur (Security Architecture Team Lead and Incident Manager · NVISO)
BruCON 0x0B · Day 2
Overview
Jeroen Vandeleur, Security Architecture Team Lead and Incident Manager at NVISO, presents a candid and insightful talk titled "Incident response in the cloud: foggy with a ray of sunshine" at BruCON. The presentation tackles the increasingly prevalent and complex challenges of conducting incident response within cloud environments, particularly Azure. Inspired by a frustrating week of cloud security incidents where crucial evidence was elusive, Vandeleur's talk promises to shed light on how automation can transform cloud incident response from a "search in the dark" to an efficient, effective process.

Key moments
- 0:00 Introduction and talk objectives: automate IR in Azure?
- 9:00 Lack of logs post-breach: Assume everything is breached!
- 12:00 Main challenges in cloud incident response
- 18:00 Critical cloud logs often not enabled by default
- 26:00 Why automate incident response: efficiency and effectiveness
- 41:00 Demo: Automated VM isolation and snapshot
- 44:30 Key lessons learned and automation caveats
- 56:45 Q&A: Strategies for multi-cloud security monitoring
Incident response in the cloud: foggy with a ray of sunshine
Speakers: Jeroen Vandeleur, Security Architecture Team Lead and Incident Manager, NVISO
Conference: BruCON
YouTube: https://www.youtube.com/watch?v=OvCfvxGunVo
Overview
Jeroen Vandeleur, Security Architecture Team Lead and Incident Manager at NVISO, presents a candid and insightful talk titled "Incident response in the cloud: foggy with a ray of sunshine" at BruCON. The presentation tackles the increasingly prevalent and complex challenges of conducting incident response within cloud environments, particularly Azure. Inspired by a frustrating week of cloud security incidents where crucial evidence was elusive, Vandeleur's talk promises to shed light on how automation can transform cloud incident response from a "search in the dark" to an efficient, effective process.
The core objective of the talk is to demonstrate the feasibility and benefits of automating incident response in Azure. Vandeleur recounts a real-world client scenario that vividly illustrates the pitfalls of misconfigured cloud environments and the dire consequences of inadequate logging. Against this backdrop of common cloud security failures, he explores the extensive yet often underutilized security monitoring capabilities offered by cloud providers like Microsoft Azure and Amazon Web Services (AWS), ultimately presenting a practical, automated solution for incident identification and containment.
This article delves into Vandeleur's narrative, technical deep dive, and proof-of-concept demonstration, providing a comprehensive analysis of the talk's key contributions. It aims to equip security professionals with actionable insights into leveraging native cloud functionalities for robust security monitoring and automated incident response, transforming the "foggy" landscape of cloud security into one illuminated by a "ray of sunshine."
Background
▶ Watch: Introduction and talk objectives: automate IR in Azure? (0:00)
The talk begins with a "once upon a time" story that serves as a powerful illustration of the pervasive challenges in cloud security. NVISO was engaged by a client planning to migrate their on-premise data center to Azure, seeking assistance with security design and controls. Leveraging industry standards such as CIS benchmarks and the Microsoft NIST blueprint model, NVISO conducted a design review, identifying 12 issues and providing nine high-priority recommendations. These recommendations, common across many cloud environments, included implementing multi-factor authentication (MFA), especially for privileged accounts, deploying Network Security Groups (NSGs) to filter traffic, enforcing Role-Based Access Controls (RBAC) to prevent local account proliferation, and crucially, enabling Azure logging for activity, network flow, and SQL servers.
Despite these proactive recommendations made during the design phase, a critical disconnect emerged during implementation. Driven by a desire for "agile and flexible" deployment, the client deviated significantly from the recommended secure design. Subnets were created, but crucial NSGs were omitted, leaving everything exposed to the internet. The consequences were swift and severe: within just three hours, the first server was compromised. When NVISO was called in for incident response, they faced an insurmountable hurdle: a complete lack of visibility. There were no NSG flow logs to trace traffic, no SQL audit logs to ascertain data exfiltration, Azure AD sign-in logs were irrelevant as local accounts were used and quickly rotated, and local system logs were either rotated or lost due to server reboots. The grim conclusion was inevitable: "assume everything is breached!"
This real-world incident is not an isolated case. Vandeleur highlights a SANS cloud security survey from the same year, revealing that 19% of respondents confirmed unauthorized access in their cloud environments. NVISO's own incident response hotline experienced an "immense increase" in cloud security incidents, investigating nine cases specifically focused on cloud environments in just two months. The main challenges consistently observed across these incidents echo the client's story:
- Lack of traffic filtering: Capabilities like NSGs exist but are often neglected.
- Inadequate default logging: Many assume cloud providers enable comprehensive logging by default, which is not the case.
- Insufficient log retention periods: Default retention (e.g., 90 days) is often too short for thorough investigations, and logs are frequently rotated or destroyed.
- Poor access management: Reliance on local user accounts instead of centralized RBAC.
- Insecure host configurations: Neglect of patching, antivirus, or exposing management ports.
- Difficulty identifying resource owners: The ease of spinning up resources in the cloud can lead to orphaned or untracked assets, complicating incident response.
These pervasive issues underscore the critical need for a more robust and automated approach to cloud security, which forms the basis for the "ray of sunshine" portion of the talk.
Key Findings
▶ Watch: Main challenges in cloud incident response (12:00)
The "ray of sunshine" in cloud incident response, as presented by Vandeleur, lies in the extensive security monitoring and automation capabilities inherent in cloud platforms, even if they are often underutilized or misconfigured. Cloud providers like Microsoft Azure and Amazon Web Services (AWS) offer a rich ecosystem of tools designed to provide visibility and enable rapid response, yet a fundamental disconnect often exists between available features and their actual implementation.
A primary finding is that while cloud platforms are feature-rich, critical security logs are not enabled by default. Vandeleur provides a comprehensive overview of analogous services across Azure and AWS, highlighting what is logged and, more importantly, what requires explicit configuration:
Azure Logging Capabilities:
- Azure AD logs: Record successful/failed sign-ins, suspicious IPs. Free/default license offers only 7 days retention; Premium licenses extend this to 30 or 90 days.
- Security Center: Provides recommendations and threat intelligence, with a free tier offering basic security posture management.
- Network Security Group (NSG) flow logs: Crucial for network traffic analysis, but not enabled by default.
- Unified Audit Logs (Office 365): Essential for SaaS activity, but disabled by default, requiring a single click to activate.
- ATP logs (Office 365 ATP, Azure ATP, Windows Defender ATP): Advanced threat protection logs based on Microsoft's threat intelligence, requiring additional licenses.
- Activity logs: Record actions on resources (e.g., creating a Docker container). On by default with 90 days retention.
- Diagnostic logs: Detail what happens within resources (e.g., container activity). Not on by default.
- Virtual machines and cloud services logs: Capture system data and logs, requiring manual activation or auto-deploy configuration.
- Azure Storage Analytics: Not enabled by default.
- Application Insights: For application-specific monitoring, not enabled by default.
- Security alerts: Require an additional license beyond basic recommendations.
AWS Logging Capabilities:
- IAM policy: Records failed/successful sign-ins.
- CloudWatch: Enables creation of use cases and alerts.
- VPC flow logs: Equivalent to NSG flow logs, not enabled by default.
- CloudTrail: Logs management API calls. Enabled by default with 90 days retention.
- GuardDuty: Advanced threat detection based on AWS threat intelligence.
- AWS Config: Monitors configuration changes, not enabled by default.
- Amazon S3 access logs: Crucial for data breach analysis, not enabled by default.
- Amazon CloudFront access logs: Not enabled by default.
- Database logging: Not enabled by default.
- Elastic Load Balancing (ELB) logs: Not enabled by default.
The overarching finding is that the shared responsibility model places the onus on the customer to configure and enable these vital logging features. Without these configurations, incident responders are left blind, as demonstrated by the opening case study.
The "ray of sunshine" emerges from the ability to centralize and analyze these logs. Vandeleur highlights Log Analytics Workspace in Azure and Amazon CloudWatch (with S3 and Elastic Stack) in AWS as scalable solutions for structured log storage. These central repositories allow for powerful querying, dashboard creation, and alert generation, effectively overcoming the limitations of distributed, ephemeral, or short-retention local logs.
Finally, the talk emphasizes that with centralized logging in place, automation of incident response becomes not just possible but essential. By describing incident response playbooks as step-by-step guidelines, Vandeleur argues that these can be translated into automated workflows, focusing initially on identification and containment to maximize efficiency and minimize attacker dwell time. This automation is critical given the perpetual shortage of security personnel, allowing analysts to focus on more complex, non-repetitive tasks.
Technical Deep Dive
▶ Watch: Why automate incident response: efficiency and effectiveness (26:00)
The technical core of Vandeleur's talk focuses on establishing robust security monitoring and then leveraging automation for rapid incident response within cloud environments. The foundation for both is centralized log management.
In Azure, the primary mechanism for log centralization is the Log Analytics Workspace. This service provides a scalable, structured repository for various types of data. Agents can be deployed on virtual machines (VMs) and other compute resources to push Windows Event Logs and other system data. Cloud services can directly feed logs, and API calls can push information into the workspace. Once ingested, data is stored in structured tables, enabling powerful queries (using Kusto Query Language, KQL) and the creation of custom dashboards. Critically, Log Analytics Workspaces allow organizations to define their own log retention policies, overcoming the often-limited default retention periods of individual services (e.g., 90 days). This also forms the backend for services like Azure Security Center, which builds its recommendations and alerts on top of the data in Log Analytics.
Similarly, in AWS, logs from services like S3, VPC Flow Logs, and agents on systems can be pushed to Amazon CloudWatch. From CloudWatch, data can be further processed by Lambda functions and then sent to an Elastic Stack (Elasticsearch, Logstash, Kibana) for analysis and custom dashboards. AWS also offers Security Hub, which aggregates security alerts and findings. The ability to perform queries on CloudTrail logs and define rules to trigger alerts based on specific events is a parallel capability.
Once centralized logging is established, the next logical step is automation. Vandeleur argues that automation is critical for increasing the efficiency and effectiveness of security operations centers (SOCs), which are often resource-constrained. By automating repetitive tasks, security analysts can be freed up for more advanced threat hunting and analysis, improving job satisfaction and retention. The focus for automation, as highlighted in this project, is primarily on identification and containment. While other incident response steps (eradication, recovery, post-incident analysis) may still require human intervention, rapid identification and containment are crucial for minimizing impact.
The talk explores various Azure tools for automation, comparing their suitability for incident response:
- Azure Automation Runbooks: These can execute PowerShell or Python scripts.
- Azure Functions: A serverless compute service that can run code (e.g., PowerShell) in response to events.
- Logic Apps: A low-code/no-code workflow automation service.
- Office 365 Flows (now Power Automate): Similar to Logic Apps, focused on Office 365 integrations.
Through their research, NVISO found that Logic Apps and Office 365 Flows were unsuitable for their automated containment scenario. Logic Apps failed because they couldn't be configured to run automatically on alert trigger (only "on demand") and, more critically, only provided a serial number rather than a resource ID for the affected asset. Without a resource ID, it's impossible to apply targeted containment actions. Office 365 Flows suffered from similar limitations regarding populated fields in alerts.
In contrast, both Azure Automation Runbooks and Azure Functions proved successful. The trigger for both was an Azure Monitor alert, which executes the corresponding runbook or function. While Automation Runbooks require manual inclusion of Azure interaction libraries, Azure Functions come with these libraries built-in, simplifying development.
However, some limitations were identified:
- Alert Query Interval: Azure Monitor alerts can only be executed once every five minutes. This means a single execution might process multiple alerts that occurred within that window, requiring the automation script to loop through and parse all alerts received in a single schema format.
- PowerShell Functions in Preview: At the time of the talk, PowerShell support for Azure Functions was in preview mode, implying potential bugs and limited documentation.
Despite these constraints, the ability to execute custom PowerShell code within Azure Functions in response to a high-severity alert provides a powerful mechanism for automated incident response. This sets the stage for the practical demonstration of automated containment.
Demo / Proof of Concept
▶ Watch: Demo: Automated VM isolation and snapshot (41:00)
The core of the "ray of sunshine" is illustrated through a compelling proof-of-concept demonstration of automated incident response in Azure, specifically focusing on identification and containment. Vandeleur notes the scarcity of public documentation for Azure automation in this context, contrasting it with readily available AWS examples, underscoring the novelty of their approach.
The demo scenario is structured as follows:
- Environment Setup: A simulated corporate network with an application gateway, multiple web servers, and an incident response subnet pre-configured. Each server has an agent installed, pushing Windows Event Logs and other security data to a central Log Analytics Workspace.
- Monitoring and Alerting: An Azure Monitor rule is configured to continuously query the Log Analytics Workspace for specific high-severity security alerts, such as the detection of a malicious file.
- Automation Trigger: When the Azure Monitor rule detects a high-severity alert, it triggers an Azure Function (or an Automation Runbook) which contains PowerShell code designed to execute automated incident response actions.
The malicious action demonstrated is straightforward: an adversary (simulated by Jeroen via SSH into a VM with a public IP – a practice he cautions against in production) drops and executes an EICAR test file on one of the web servers (VM01). Prior to the event, the VM has internet connectivity, symbolizing potential exfiltration or lateral movement capabilities for an attacker.
Upon execution of the EICAR file, the security agent on VM01 detects the malicious activity and forwards a high-severity alert to the Log Analytics Workspace. Within seconds (after a brief loading period in the Security Center dashboard), the Azure Monitor rule is triggered. This, in turn, executes the pre-configured Azure Function.
The PowerShell code within the Azure Function performs several critical containment and investigation actions:
- Network Isolation: The compromised VM (VM01) is immediately moved from its production subnet to a dedicated, isolated CSIRT subnet. This is achieved by dynamically changing the VM's network configuration via API calls, effectively cutting off its access to the production network and the internet, except for authorized access from the CSIRT network.
- Snapshot Creation: A snapshot of the compromised VM is created immediately after detection. This preserves the state of the system at the time of compromise for forensic analysis, even if the live system is further modified during investigation.
- SANS SIFT Workstation Deployment: A new SANS SIFT workstation (a specialized forensic analysis VM) is automatically spun up within the isolated CSIRT subnet. This provides incident responders with a pre-configured analysis environment to connect to the isolated VM and begin their investigation without impacting production systems.
The demo visually confirms these actions: the Security Center dashboard shows the high-severity alert for the EICAR file detection, the Azure Monitor rule's execution log confirms the Azure Function was triggered, and finally, the Azure portal shows VM01 now residing in the CSIRT subnet, with a newly created snapshot, and the associated network security group configured to allow no inbound or outbound access except from the SIFT workstation. An attempt to ping Google from the isolated VM fails, confirming successful network containment.
This proof of concept effectively demonstrates that automated incident response in Azure is not only possible but highly effective for rapid identification and containment, significantly limiting an attacker's window of opportunity.
Defensive Implications
▶ Watch: Q&A: Strategies for multi-cloud security monitoring (56:45)
The detailed account of cloud security failures and the successful demonstration of automated incident response offer several critical defensive implications for organizations operating in the cloud.
- Prioritize Foundational Logging: The most crucial takeaway is to explicitly enable and configure essential logging. Do not rely on default settings. Organizations must prioritize identity and access management (IAM) logs (Azure AD, AWS IAM), network flow logs (NSG flow logs, VPC flow logs), and system logs (Windows Event Logs, Linux syslog). These are the absolute basics required to reconstruct a timeline and understand the scope of an incident. Ensure these logs are ingested into a centralized repository like Azure Log Analytics Workspace or AWS CloudWatch/S3.
- Implement Robust Log Retention: Default log retention periods (e.g., 7 or 90 days) are often insufficient for thorough incident investigations or compliance. Organizations should configure longer retention periods in their centralized log management solutions, potentially offloading older logs to cheaper storage tiers (e.g., Azure Storage Accounts, AWS S3 Glacier) for long-term archival.
- Enforce Security by Design and RBAC: The initial client story highlights the catastrophic impact of ignoring security recommendations during implementation. Implement Network Security Groups (NSGs) or their AWS equivalents to segment networks and restrict traffic. Crucially, enforce Role-Based Access Controls (RBAC) across the cloud environment to prevent the use of local accounts and ensure a clear separation of duties. This also aids in identifying resource owners, solving a common incident response challenge.
- Secure Host Configurations: Cloud VMs are still operating systems that require diligent management. Ensure regular patch and update management, install and configure anti-malware/endpoint detection and response (EDR) solutions, and strictly avoid exposing management ports (e.g., SSH, RDP) directly to the internet.
- Automate Identification and Containment: Leverage cloud-native automation capabilities like Azure Functions (or AWS Lambda) and Azure Monitor (or AWS CloudWatch/Security Hub) to automate initial incident response steps. Focusing on rapid identification of threats and immediate containment (e.g., network isolation, snapshot creation) drastically reduces attacker dwell time and limits potential damage. This proactive approach transforms reactive incident response into a more resilient security posture.
- Account for Automation Nuances: Be aware of the practical limitations and "gotchas." The 5-minute alert query interval in Azure Monitor means automation scripts must be designed to process multiple events within a single trigger. Also, be cautious with auto-deployment features for security agents; while convenient, the 4-6 hour delay for agent installation can leave new instances vulnerable. Manual agent deployment via custom scripts ensures immediate logging. Recognize that features in "preview mode" may have bugs (e.g., browser compatibility issues).
- Training and Skill Development: Automation introduces a new skill set requirement for security analysts. Organizations need to invest in training their SOC teams in scripting (e.g., PowerShell), cloud APIs, and automation platforms to effectively build, maintain, and respond to automated workflows.
- Consider Multi-Cloud Strategies: For multi-cloud environments, Vandeleur suggests building "virtual SOCs" within each cloud. This means leveraging the native security tools and threat intelligence of each provider (e.g., Azure Security Center, AWS GuardDuty) to handle local log events and alerts. These cloud-specific alerts can then be forwarded to a central SIEM solution (like Microsoft Sentinel, which has AWS adapters) for consolidated monitoring and cross-cloud correlation, while still benefiting from the deep native capabilities of each platform.
While automation incurs some costs (e.g., $1.50 per alert run in the demo), the financial damage limited by rapid containment and the increased efficiency of SOC analysts far outweigh these expenses, making automation a strategic investment in cloud security.
Key Takeaways
- Cloud logging is not default-enabled: Critical security logs across Azure (e.g., NSG flow logs, Diagnostic logs, O365 Unified Audit Logs) and AWS (e.g., VPC flow logs, S3 access logs) are often disabled by default, requiring explicit configuration by the customer under the shared responsibility model.
- Centralized log management is essential: Services like Azure Log Analytics Workspace and AWS CloudWatch/S3 provide scalable, structured repositories for all security logs, enabling comprehensive querying, analysis, and custom retention policies beyond default service limits.
- Automated incident response is achievable and critical: By integrating cloud monitoring (Azure Monitor, AWS CloudWatch) with serverless compute (Azure Functions, AWS Lambda), organizations can automate key incident response steps, particularly identification and containment, to significantly increase efficiency and reduce attacker dwell time.
- Prioritize foundational security controls: Before advanced features, ensure proper implementation of multi-factor authentication, network segmentation (NSGs/VPCs), Role-Based Access Controls (RBAC), and secure host configurations (patching, anti-malware).
- Beware of "cloud-native" pitfalls: Auto-deployment of security agents can have significant delays (4-6 hours), leaving new instances vulnerable. Features in preview mode may have bugs. Always validate configurations and understand real-world deployment behaviors.
- Invest in new skill sets: Automating incident response necessitates training security analysts in scripting, cloud APIs, and automation platforms to effectively manage and leverage these new capabilities.
About the Speaker(s)
Jeroen Vandeleur is the Security Architecture Team Lead and Incident Manager at NVISO, a digital security company. He specializes in cyber architecture and cloud security, guiding organizations through secure cloud migrations and establishing robust security postures. Vandeleur's professional experience is deeply rooted in incident response, where he frequently encounters the challenges and opportunities presented by cloud environments. He is known for his practical, hands-on approach and ability to translate complex technical issues into actionable strategies. His personal interests include sports, with a commitment to the gym six days a week, and a humorous self-awareness about his name's pronunciation challenges during international presentations.