id: malware-protection-disabled info: name: GuardDuty Malware Protection - Disabled author: DhiyaneshDK severity: info description: | Ensure that the Malware Protection feature is enabled for your Amazon GuardDuty detectors. impact: | GuardDuty Malware Protection disabled increases the risk of undetected malware threats on EBS volumes, potentially leading to data compromise or system breaches. remediation: | Enable GuardDuty Malware Protection by configuring the feature in the GuardDuty console or using the AWS CLI, to scan EBS volumes for malware and ensure proactive threat detection. reference: - https://www.trendmicro.com/cloudoneconformity-staging/knowledge-base/aws/GuardDuty/enable-malware-protection.html - https://docs.aws.amazon.com/guardduty/latest/ug/malware-protection.html tags: cloud,devops,aws,amazon,guardduty,aws-cloud-config variables: region: "us-west-2" flow: | code(1) for(let DetectorIds of iterate(template.detectors)){ set("detector", DetectorIds) code(2) } self-contained: true code: - engine: - sh - bash source: | aws guardduty list-detectors --region $region --query 'DetectorIds' --output json extractors: - type: json name: detectors internal: true json: - '.[]' - engine: - sh - bash source: | aws guardduty get-detector --region $region --detector-id "$detector" --query 'DataSources.MalwareProtection.ScanEc2InstanceWithFindings.EbsVolumes.Status' --output json matchers: - type: word words: - "DISABLED" extractors: - type: dsl dsl: - '"GuardDuty Malware Protection " + detector + " is Disabled"' # digest: 4b0a00483046022100decfe07108934c7e0cc3a86caa2ebb9e10c7ab08a6eb81fdad419f5ccc0e4924022100b723fe87a025db147a310cb8210fc4ee048e49ca029d8c4d1e74eeab03b91eab:922c64590222798bb761d5b6d8e72950