Skip to main content

⭐ Repository β†’ πŸ“ Compliance Engine β†’ πŸ“ CloudAware β†’ πŸ“ AWS β†’ πŸ“ GuardDuty β†’ πŸ›‘οΈ Detector EKS Audit Log Monitoring is not enabled🟒

🧠 AWS GuardDuty Detector EKS Audit Log Monitoring is not enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-10-08T17:39:18.239567343Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 199βœ”οΈ extract('caJsonFrom__dataSourcesJson__c').jsonQueryText('kubernetes.auditLogs.status') == 'DISABLED'βœ”οΈ null
🟒test2βœ”οΈ 299βœ”οΈ extract('caJsonFrom__dataSourcesJson__c').jsonQueryText('kubernetes.auditLogs.status') == 'ENABLED'βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/guardduty/detector-eks-audit-logs/policy.yamlB94A14AF34340B35815344DE61B096F8
Open/ce/ca/aws/guardduty/detector-eks-audit-logs/prod.logic.yaml90ECAF7A74C6B8105F50B790244D29CE
Open/ce/ca/aws/guardduty/detector-eks-audit-logs/test-data.json669FB5BB76D9AD1AA6B04E50ED675DB5
Open/types/CA10__CaAwsGuardDutyDetector__c/object.extracts.yamlB1458F9B9038182B01C83196ED7E48C8

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/guardduty/detector-eks-audit-logs/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/guardduty/detector-eks-audit-logs/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/guardduty/detector-eks-audit-logs/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/guardduty/detector-eks-audit-logs/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/guardduty/detector-eks-audit-logs/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsGuardDutyDetector__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsGuardDutyDetector__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "GuardDuty EKS Audit Log Monitoring is disabled."
remediationMessage: "Enable EKS Audit Log Monitoring in the GuardDuty data sources settings."
check:
IS_EQUAL:
left:
JSON_QUERY_TEXT:
expression: "kubernetes.auditLogs.status"
arg:
EXTRACT: "caJsonFrom__dataSourcesJson__c"
undeterminedIf:
evaluationError: "Json query text has failed."
resultTypeMismatch: "Json query text did not return text type."
right:
TEXT: "DISABLED"
- status: "COMPLIANT"
currentStateMessage: "GuardDuty EKS Audit Log Monitoring is enabled."
check:
IS_EQUAL:
left:
JSON_QUERY_TEXT:
expression: "kubernetes.auditLogs.status"
arg:
EXTRACT: "caJsonFrom__dataSourcesJson__c"
undeterminedIf:
evaluationError: "Json query text has failed."
resultTypeMismatch: "Json query text did not return text type."
right:
TEXT: "ENABLED"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."