Understanding Wazuh Cloud Security: CSPM, CNAPP, CWPP, CIEM, and IaC Security
Wazuh provides cloud security capabilities by unifying Security Information and Event Management (SIEM) and Extended Detection and Response (XDR) functions across multi-cloud and hybrid environments. By leveraging custom modules, security configuration assessm...
Wazuh provides cloud security capabilities by unifying Security Information and Event Management (SIEM) and Extended Detection and Response (XDR) functions across multi-cloud and hybrid environments. By leveraging custom modules, security configuration assessments, and agent-based host monitoring, Wazuh delivers visibility across Cloud Security Posture Management (CSPM), Cloud Workload Protection Platform (CWPP), Cloud Infrastructure Entitlement Management (CIEM), and Infrastructure as Code (IaC) security under an open-source Cloud-Native Application Protection Platform (CNAPP) operational model.
Contents
Decoding the Cloud Security Framework: How Wazuh Maps to CNAPP, CSPM, CWPP, CIEM, and IaC
Modern cloud security relies on several distinct domains designed to protect infrastructure, identities, workloads, and code pipelines. As organizations migrate to public and hybrid cloud environments, managing disparate tools for each domain creates security silos and alert fatigue. The Cloud-Native Application Protection Platform (CNAPP) model emerged to consolidate these capabilities into a single cohesive framework.
Wazuh functions primarily as an open-source security monitoring, log management, and threat detection platform. While traditional CNAPP products are built as all-in-one commercial Software-as-a-Service (SaaS) suites, Wazuh achieves CNAPP alignment through its extensible modular architecture. By integrating native cloud logging APIs, agent-based host telemetry, and custom security rules, Wazuh aggregates signals across cloud infrastructure, running workloads, identity access management, and build pipelines into a central operational console.
- Wazuh Dashboard & Central Engine (CNAPP Aggregation)
- CSPM Engine: Cloud APIs & SCA Checkers
- CWPP Module: Wazuh Agent (FIM/Vuln)
- CIEM Logging: IAM & Entra Log Analysis
- IaC Scanners: Checkov/Trivy Ingestion
Understanding how Wazuh addresses each domain requires evaluating its native capabilities alongside its integration points:
- Cloud Security Posture Management (CSPM): Evaluates cloud service configurations (such as Amazon S3 bucket permissions, Azure Storage Access Keys, or GCP Cloud Storage IAM settings) against compliance frameworks and security baselines.
- Cloud Workload Protection Platform (CWPP): Monitors active computing workloads—including virtual machines, containerized workloads running on Docker, and Kubernetes nodes—for runtime threats, system vulnerabilities, file integrity changes, and rootkits.
- Cloud Infrastructure Entitlement Management (CIEM): Tracks identity permissions, access logs, privilege escalation attempts, and anomalous user activity across public cloud Identity and Access Management (IAM) providers.
- Infrastructure as Code (IaC) Security: Audits terraform files, CloudFormation templates, and Ansible playbooks before deployment by ingesting scan results from specialized static analysis tools into the central detection engine.
Cloud Security Posture Management (CSPM) with Wazuh
Cloud Security Posture Management focuses on discovering misconfigurations, monitoring compliance, and managing risk across cloud infrastructure. Misconfigurations—such as publicly exposed storage buckets, unencrypted databases, or permissive security group rules—remain among the primary causes of cloud data breaches.
Wazuh implements CSPM through dedicated cloud integration modules combined with its Security Configuration Assessment (SCA) engine. Rather than relying solely on host-level data, Wazuh communicates directly with cloud provider APIs to audit infrastructure configurations continuously.
AWS Cloud Security Auditing
Wazuh integrates natively with Amazon Web Services (AWS) using the aws-s3 and aws-cloudtrail modules. It ingests logs from AWS CloudTrail, AWS Config, AWS GuardDuty, and VPC Flow Logs. Through pre-built rulesets, Wazuh flags high-risk posture events, such as:
- Disabling AWS CloudTrail logging or AWS Security Hub across regions.
- Creating security groups with unrestricted inbound access (
0.0.0.0/0) on sensitive ports like SSH (22) or RDP (3389). - Bucket policy modifications that grant public read or write permissions to Amazon S3 buckets.
Microsoft Azure Posture Monitoring
For Azure environments, Wazuh uses the azure-logs module to ingest telemetry from Azure Monitor, Azure Activity Logs, and Microsoft Defender for Cloud. This integration enables security teams to identify posture violations such as disabled Network Security Group (NSG) flow logs, unencrypted Azure Blob Storage containers, or unauthorized changes to resource group permissions.
Google Cloud Platform (GCP) Security Auditing
Wazuh connects to GCP via Google Cloud Pub/Sub and audit logs. The platform parses Pub/Sub message topics to evaluate service configurations, monitoring for exposed Cloud Storage buckets, open firewall rules in VPC networks, and missing IAM policy restrictions on sensitive GCP resources.
Security Configuration Assessment (SCA) Engine
On nodes running the Wazuh Agent, the SCA engine runs periodic automated checks against standardized security benchmarks, such as those maintained by the Center for Internet Security. SCA scans evaluate local configurations, kernel parameters, service settings, and access control lists, highlighting deviations from established hardening guidelines.
Cloud Workload Protection Platform (CWPP) Capabilities in Wazuh
While CSPM focuses on the cloud control plane, Cloud Workload Protection Platform (CWPP) protects the actual running workloads—whether they execute on virtual machines (such as Amazon EC2, Azure VMs, or Compute Engine instances), bare-metal servers, Docker containers, or Kubernetes clusters.
CWPP requires deep host-level visibility, runtime threat detection, vulnerability assessment, and immediate response capabilities. This domain represents one of Wazuh's strongest native functions, executed through the lightweight Wazuh Agent installed directly on target workloads.
- Wazuh Workload Agent
- Syscheck (FIM): Monitors system file modifications and registries.
- Vulnerability Detector: Correlates software package manifests with NVD CVEs to find exposures.
- Active Response: Triggers automatic firewall/command mitigations.
Host-Based Intrusion Detection (HIDS) and Runtime Defense
The Wazuh Agent collects real-time telemetry from operating system logs, active network connections, running processes, and user authentications. The central engine processes this data against thousands of default rules, flagging malicious behaviors such as execution of unauthorized binaries, brute-force access attempts, reverse shell activations, and privilege escalations.
File Integrity Monitoring (FIM)
The Wazuh syscheck module performs continuous File Integrity Monitoring. FIM tracks changes to critical system files, configuration files, system binaries, and registry keys (on Windows). If an attacker modifies system binaries, injects web shells, or alters administrative configurations, Wazuh records the cryptographic hash change (MD5, SHA1, SHA256) and immediately generates an operational alert detailing the user, process, and file modification.
Automated Vulnerability Detection
Wazuh features an integrated Vulnerability Detector module. The manager natively fetches feed data from official repositories—including the National Vulnerability Database (NVD), Red Hat, Ubuntu, Debian, and Microsoft security advisories. It correlates these vulnerability feeds against the inventory of installed software collected by agents, identifying unpatched CVEs across cloud workloads without requiring intrusive third-party network scans.
Container and Kubernetes Workload Security
Modern cloud workloads increasingly rely on containerization. Wazuh monitors containerized environments through two main approaches:
- Docker Listener Module: Connects directly to the Docker daemon socket (
/var/run/docker.sock) to log container lifecycle events (start, stop, pause, kill), track image changes, and monitor executed commands within active containers. - Kubernetes Audit Logging: Ingests Kubernetes API Server audit logs. This capability enables security operators to track cluster-wide activities, such as pod creation, service account privilege changes, volume mounts, and exec commands issued into running pods.
Active Response and Automated Remediation
When runtime threats are confirmed, Wazuh's Active Response framework executes automated scripts on affected agents. System administrators can configure automated responses to block attacking IP addresses via local host firewalls (iptables or Windows Firewall), terminate unauthorized processes, or isolate compromised virtual machines from the network.
Cloud Infrastructure Entitlement Management (CIEM) and Identity Security
Cloud Infrastructure Entitlement Management (CIEM) focuses on managing identity risks, mitigating over-privileged access, and enforcing the principle of least privilege across cloud environments. In complex cloud setups, human users, service accounts, serverless functions, and automated scripts accumulate permissions that often exceed their actual operational requirements.
Unused, dormant, or overly permissive entitlements represent a high-value target for cloud attackers seeking lateral movement or privilege escalation.
- Cloud Log Sources (CloudTrail, Azure AD/Entra ID, GCP IAM)
- Wazuh Central Parsing
- Rule Analysis: Excessive Permissions
- Rule Analysis: MFA Bypass / Suspicious Login
- Rule Analysis: Privilege Escalation
- Wazuh Dashboard & Security Alerts
Tracking Cloud Identity Telemetry
Wazuh functions as a CIEM monitoring platform by collecting identity and access logs across major cloud identity providers (IdPs) and cloud platform access layers:
- AWS IAM: Analyzes CloudTrail events like
CreateUser,AttachUserPolicy,CreateAccessKey, andAssumeRole. - Microsoft Entra ID (formerly Azure Active Directory): Ingests sign-in logs, audit logs, and risk detection events via Microsoft Graph API integrations.
- GCP IAM: Monitors identity policy changes, service account key creations, and administrative access privileges.
Detecting Excessive Privileges and Escalation Path
By continuously parsing cloud control plane activity, Wazuh flags behaviors that indicate compromise or identity misconfigurations, such as:
- Privilege Escalation: Alerts when a standard user account attaches full administrative policies (e.g.,
AdministratorAccessin AWS) to itself or another principal. - Access Key Abuse: Detects the creation of long-lived access keys for programmatic service accounts that bypass corporate Multi-Factor Authentication (MFA) requirements.
- Anomalous Sign-Ins: Identifies successful logins originating from unexpected geographic locations, Tor exit nodes, or concurrent logins across disparate regions (impossible travel scenarios).
- Dormant Identity Activation: Flags activity from service accounts or user identities that have been inactive for extended periods.
Infrastructure as Code (IaC) Security Integrations in DevSecOps Pipelines
Infrastructure as Code (IaC) allows organizations to define cloud resources declaratively using tools like Terraform, AWS CloudFormation, OpenTofu, Ansible, and Bicep. Shift-left security practices require scanning IaC templates during development or continuous integration (CI/CD) pipelines to stop security vulnerabilities before infrastructure is provisioned.
While Wazuh does not act as a static source-code parser natively, it functions as a centralized security management hub by ingesting, normalizing, and correlating security events generated by dedicated IaC scanning tools within DevSecOps pipelines.
Integration Workflow for IaC Scanning
Security engineering teams integrate open-source IaC scanners—such as Checkov, tfsec, Trivy, or KICS—into CI/CD build pipelines (e.g., GitHub Actions, GitLab CI, Jenkins). When developers commit code or trigger pipeline builds:
- Static Analysis: The scanner audits the IaC codebase for security flaws (such as hardcoded credentials, unencrypted storage resources, or open network ingress rules).
- Output Export: The scanner exports findings in standard structured formats like JSON or SARIF (Static Analysis Results Interchange Format).
- Wazuh Ingestion: The generated JSON reports are sent to the Wazuh Manager via syslogs, fluentd, or the custom Wazuh API log ingestion endpoint.
- Parsing & Correlating: Wazuh applies custom decoders and rulesets to parse the scan findings, mapping them to risk scores and dashboard metrics alongside operational runtime alerts.
Benefits of Pipeline-to-Runtime Visibility
Correlating IaC security data with runtime cloud telemetry provides two major operational advantages:
- Pre-Deployment Gatekeeping: Enables security teams to track recurring IaC policy violations across repository pipelines and prevent misconfigured infrastructure from reaching production.
- Root-Cause Tracing: When a CSPM alert triggers in production (e.g., an unencrypted storage bucket), operators can check historical IaC scan logs in Wazuh to determine whether the issue originated from a flawed Terraform module or an out-of-band manual change in the cloud console.
Architecture Comparison: Wazuh Capabilities vs. Dedicated CNAPP Frameworks
Selecting between an integrated open-source platform like Wazuh and specialized commercial security suites depends on architectural prerequisites, compliance mandates, operating budgets, and internal engineering resources.
The following table summarizes how Wazuh aligns across cloud security domains compared to dedicated enterprise tools:
| Feature / Capability Domain | Traditional / Specialized Commercial Tools | Wazuh Cloud Security Implementation | Primary Operational Mechanism |
|---|---|---|---|
| Cloud Security Posture Management (CSPM) | Palo Alto Prisma Cloud, Wiz, Orca Security | Native Cloud Modules (aws-s3, azure-logs, gcp-pubsub) + SCA Engine |
API log ingestion, JSON event parsing, CIS Benchmark auditing. |
| Cloud Workload Protection Platform (CWPP) | CrowdStrike Falcon Cloud, Trend Micro Cloud One | Native Wazuh Agent (HIDS, FIM, Vulnerability Detector) | Agent-based real-time host telemetry, syscheck, local CVE matching. |
| Cloud Infrastructure Entitlement Management (CIEM) | CyberArk, Ermetic, CrowdStrike Falcon Horizon | Log Ingestion & Pattern Detection via Custom Rulesets | CloudTrail, Entra ID, and GCP IAM audit log parsing for access anomaly detection. |
| Infrastructure as Code (IaC) Security | Snyk Infrastructure as Code, Bridgecrew | Third-Party Tool Ingestion (Checkov, tfsec, Trivy) | Ingests JSON scan results via CI/CD pipelines using custom decoders. |
| CNAPP Unified Operations Console | Fully integrated single-pane-of-glass SaaS dashboard | Centralized Wazuh Dashboard (OpenSearch-based UI) | Aggregates agents, cloud logs, container events, and IaC pipeline reports. |
| Deployment Model | Managed Commercial SaaS | Open-Source Self-Hosted or Wazuh Cloud Service | Self-managed cluster deployment (Indexer, Manager, Dashboard) or managed cloud. |
| Licensing Model | Per-workload or per-resource commercial subscription | Open Source (Apache 2.0 License) | Free open-source software engine; costs limited to hosting and operational overhead. |
Step-by-Step Architecture for Implementing Wazuh Cloud Security
Building a multi-tenant or enterprise-wide cloud security framework with Wazuh requires setting up the platform's central components and connecting cloud environments sequentially.
Detailed installation manuals and production sizing guides are maintained in the official Wazuh Documentation.
- Step 1: Deploy Core Stack
- Step 2: Install Workload Agents
- Step 3: Configure Cloud APIs
- Step 4: Pipeline Ingestion
Step 1: Deploy the Central Wazuh Architecture
Establish the three primary components of the Wazuh engine:
- Wazuh Indexer: A highly scalable, full-text search and analytics engine (built on OpenSearch) that stores and indexes log data.
- Wazuh Server (Manager): The central processing unit that receives telemetry, parses logs using decoders, executes threat analysis rules, manages agents, and triggers active responses.
- Wazuh Dashboard: The web-based user interface used to visualize security alerts, manage platform settings, inspect vulnerability reports, and perform incident investigations.
For production workloads, deploy the indexer and manager nodes in a high-availability clustered architecture behind an internal load balancer.
Step 2: Deploy Wazuh Agents to Cloud Workloads (CWPP Implementation)
Install the lightweight Wazuh Agent on virtual machines, cloud instances, and bare-metal nodes across target environments.
- Linux Workloads: Install the agent using standard package managers (
apt,yum, ordnf). Configure the agent to communicate with the central manager's IP address over encrypted TCP port1514. - Windows Instances: Deploy the MSI installer via enterprise deployment tools or cloud startup scripts (AWS EC2 User Data or Azure Custom Script Extensions).
- Containerized Hosts: Deploy the agent on host nodes running container runtimes, ensuring the user running the agent has read access to the Docker daemon socket for container event monitoring.
Enable the Vulnerability Detector, Security Configuration Assessment (SCA), and Syscheck (FIM) modules in the manager’s main configuration file (ossec.conf).
Step 3: Configure Native Cloud API Integrations (CSPM and CIEM Implementation)
Connect public cloud control planes to the Wazuh Manager to begin ingesting cloud platform audit logs without needing host agents.
AWS Integration:
- Enable AWS CloudTrail to log API activity across all accounts and aggregate log streams into a designated Amazon S3 bucket.
- Create an AWS IAM Policy granting read permissions (
s3:GetObject,s3:ListBucket) to the S3 log bucket. - Add the
aws-s3configuration block to the Wazuh Managerossec.conffile, specifying the target S3 bucket name and IAM authentication details.
1m organization-cloud-security wazuh-audit-sub /var/ossec/etc/gcp-credentials.json
Azure Integration:
- Configure Azure Monitor and Event Hubs to stream Azure Activity Logs and Entra ID audit logs.
- Register an application in Azure Active Directory (Entra ID) with client credentials authorized to read from the Event Hub.
- Add the
azure-logsintegration block to the Wazuh Manager, defining the application ID, tenant ID, client secret, and target Event Hub.
GCP Integration:
- Create a Google Cloud Sink that routes audit logs across the organization to a GCP Pub/Sub topic.
- Create a subscription for the Pub/Sub topic and create a Service Account with the
Pub/Sub Subscriberrole. - Generate a JSON credentials key file, store it securely on the Wazuh Manager, and configure the
gcp-pubsubmodule block inossec.conf.
Step 4: Integrate IaC Security Ingestion into DevSecOps Pipelines
Incorporate static code scanning tools into continuous integration workflows to capture IaC security risks prior to deployment.
- Add an IaC scanning step (e.g., Checkov or Trivy) to project CI/CD workflows (GitHub Actions or GitLab CI).
- Configure the scanner step to output report files in JSON format.
- Configure an automated script step in the pipeline to push the resulting JSON scan payload directly to the Wazuh Manager RESTful API or a central syslog receiver.
- Write custom Wazuh decoders and rules in
/var/ossec/etc/rules/local_rules.xmlto parse the scan outputs and flag high-severity configuration defects on the security dashboard.
Frequently Asked Questions
Can Wazuh replace commercial CNAPP tools like Wiz, Palo Alto Prisma Cloud, or CrowdStrike?
Wazuh can replace many functions of commercial CNAPP platforms—particularly host CWPP, vulnerability scanning, system integrity monitoring, and log-based CSPM/CIEM auditing—at a significantly lower software cost. However, specialized commercial platforms often offer agentless cloud disk inspection, automated cloud resource mapping, and out-of-the-box native IaC scanning engines. Organizations choosing Wazuh must be prepared to manage configuration tuning, custom rule creation, and integrations manually.
How does Wazuh monitor Docker containers and Kubernetes clusters?
Wazuh monitors containerized environments through a combination of host-level agent metrics and API log parsing. The host agent interfaces directly with the local Docker socket to track container lifecycle events, executed commands, and image modifications. For Kubernetes, Wazuh ingests API server audit logs, allowing security teams to detect unauthorized cluster access, changes toRBAC policies, and risky pod configurations.
What is the performance impact of running the Wazuh Agent on production cloud instances?
The Wazuh Agent is engineered to be lightweight and typically consumes minimal system resources (often under 1% CPU utilization and 50–100 MB of RAM). System administrators can tune scanning frequencies for resource-intensive operations—such as Syscheck (FIM) and Security Configuration Assessments—to run during off-peak hours or limit read throttles within the agent configuration file (ossec.conf).
How does Wazuh enforce Cloud Infrastructure Entitlement Management (CIEM)?
Wazuh implements CIEM by parsing audit logs generated by cloud Identity and Access Management (IAM) systems, such as AWS CloudTrail logs, Azure Entra ID audit logs, and GCP IAM logs. Through automated decoders and custom detection rules, Wazuh identifies security violations including privilege escalation events, creation of unapproved access keys, disabling of multi-factor authentication, and suspicious or geographically impossible user logins.
Is Wazuh suitable for compliance reporting across frameworks like PCI-DSS, SOC 2, and NIST?
Yes. Wazuh includes built-in dashboards and rule mappings for major regulatory standards and security frameworks, including PCI-DSS, NIST SP 800-53, TSC (SOC 2), HIPAA, and GDPR. The platform automatically tags generated security alerts with corresponding compliance control IDs, simplifying audit logging and automated compliance report generation.
Recommended Next Steps for Architecting Wazuh Cloud Security
Organizations seeking to build or expand an open-source Cloud-Native Application Protection Platform using Wazuh should adopt a phased deployment strategy focused on operational stability and log hygiene.
- Perform Host and Workload Baseline Monitoring: Start by deploying the Wazuh Agent across all virtual machines and container host nodes. Enable the Vulnerability Detector, Security Configuration Assessment (SCA), and Syscheck (FIM) engines to establish an operational security baseline for all running workloads.
- Connect Cloud Control Plane Log Streams: Enable native API integrations (
aws-s3,azure-logs, andgcp-pubsub) to ingest CloudTrail, Activity, and Audit logs into the central manager. Validate that cloud storage buckets, open security groups, and IAM permission modifications generate accurate alerts. - Incorporate DevSecOps Pipeline Scanning: Update existing CI/CD build scripts to run static IaC tools (such as Checkov, Trivy, or tfsec) against Terraform or CloudFormation templates. Route findings in JSON format into Wazuh to consolidate pre-deployment static risks alongside active runtime cloud alerts.
- Refine Custom Rules and Active Responses: Audit incoming alerts to minimize false positives by creating fine-tuned local rules in
/var/ossec/etc/rules/local_rules.xml. Configure automated Active Response scripts for high-confidence threats—such as blocking malicious IPs or isolating compromised instances—to establish effective automated incident response workflows.