WAF-SEC-150 β Vulnerability and patch management MUST cover compute instances, operating systems, and endpoints
Description
All virtual machines, bare-metal servers, and container hosts MUST receive automated security patches within defined SLAs. Critical vulnerabilities MUST be remediated within 7 days and high vulnerabilities within 30 days. Endpoint Detection and Response (EDR) MUST be deployed on all production instances. Patch compliance and scan results MUST be centrally reported and reviewed.
Rationale
| Risk | Description |
|---|---|
Risk |
Unpatched operating systems and endpoints are primary entry points for malware and lateral movement. |
Risk |
Missing EDR delays detection of compromised instances and impedes incident response. |
Requirements
-
All virtual machines, bare-metal servers, and container hosts MUST receive automated security patches within defined SLAs.
-
Critical vulnerabilities MUST be remediated within 7 days and high vulnerabilities within 30 days.
-
Endpoint Detection and Response (EDR) MUST be deployed on all production instances.
-
Patch compliance and scan results MUST be centrally reported and reviewed.
Implementation Guidance
-
Document the requirement in a version-controlled policy, ADR, or standard.
-
Assign ownership and establish a review cadence (e.g., quarterly).
-
Implement the required configuration as code in Terraform or equivalent IaC.
Maturity Levels
| Level | Name | Criteria |
|---|---|---|
L1 |
Ad hoc β control not consistently applied |
* Die Anforderung ist nicht einheitlich umgesetzt; Nachweis existiert nur punktuell oder fehlt. |
L2 |
Standardised β policy defined and communicated |
* Eine dokumentierte Policy oder ein Standard beschreibt die Anforderung. |
L3 |
Integrated β automated validation in CI/CD |
* Terraform-Checks oder IaC-Gates prΓΌfen die Anforderung automatisch in CI/CD. |
L4 |
Auditable β metrics and exceptions tracked |
* Abdeckung, Ausnahmen und QualitΓ€tsmetriken werden quartalsweise berichtet. |
L5 |
Optimised β continuous improvement based on data |
* Die EffektivitΓ€t wird kontinuierlich gemessen und automatisch optimiert. |
Checks
waf-sec-150.config.patch-policy-documented
Engine: config | Provider: any | Automated: No
OS patch policy and EDR coverage must be documented
OS patch policy and EDR coverage must be documented
Scope: file β docs/security/patch-management.md
Assertions:
* exists attribute_exists β Patch management policy must exist and cover SLA and EDR.
Remediation: OS patch policy and EDR coverage must be documented
# Example compliant with waf-sec-150.config.patch-policy-documented
# Example non-compliant with waf-sec-150.config.patch-policy-documented
waf-sec-150.tf.aws.ssm-patch-manager
Engine: terraform | Provider: aws | Automated: Yes
AWS SSM Patch Manager must be configured for managed instances
AWS SSM Patch Manager must be configured for managed instances
Scope: resource β aws_ssm_patch_baseline, aws_ssm_association
Assertions:
* name attribute_exists β Patch baseline must be defined.
Remediation: AWS SSM Patch Manager must be configured for managed instances
# Example compliant with waf-sec-150.tf.aws.ssm-patch-manager
# Example non-compliant with waf-sec-150.tf.aws.ssm-patch-manager
waf-sec-150.tf.azurerm.mde-deployed
Engine: terraform | Provider: azurerm | Automated: Yes
Azure VMs must have Microsoft Defender for Endpoint extension deployed
Azure VMs must have Microsoft Defender for Endpoint extension deployed
Scope: resource β azurerm_virtual_machine_extension
Assertions:
* type in ['MicrosoftMonitoringAgent', 'MDE.Windows', 'MDE.Linux'] β VM must have Defender for Endpoint or monitoring extension.
Remediation: Azure VMs must have Microsoft Defender for Endpoint extension deployed
# Example compliant with waf-sec-150.tf.azurerm.mde-deployed
# Example non-compliant with waf-sec-150.tf.azurerm.mde-deployed
Evidence
-
Terraform configuration implementing the requirement.
-
Policy, ADR, or standard documenting the requirement.
-
Optional cloud console or API output confirming runtime state.
Related Controls
-
WAF-SOV-120 == Regulatory Mapping
-
ISO 27001:2022: A.8.7 β Protection against malware, A.8.8 β Management of technical vulnerabilities
-
CIS Controls v8: CIS 7 β Continuous Vulnerability Management
-
PCI DSS v4.0: Req 6 β Develop and maintain secure systems and software
-
SOC 2 Type II: CC7.1 β Vulnerability detection
-
GDPR: Art. 32 β Security of processing
-
NIS2: Art. 21(2)(g) β Vulnerability handling and disclosure
-
DORA: Art. 9 β Protection and prevention
-
BSI C5:2020: INF-07 β Vulnerability management
-
NIST SP 800-53: RA-5 β Vulnerability Scanning, SI-2 β Flaw Remediation
-
NIST CSF 2.0: RS.MA-01 β Vulnerability management