β 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π’
- Contextual name: π§ prod.logic.yamlπ’
- ID:
/ce/ca/aws/guardduty/detector-eks-audit-logs/prod.logic.yaml
- Tags:
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Usesβ
Test Results π’β
Generated at: 2025-10-08T17:39:18.239567343Z Open
Result | Id | Condition Index | Condition Text | Runtime 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β
File | MD5 | |
---|---|---|
Open | /ce/ca/aws/guardduty/detector-eks-audit-logs/policy.yaml | B94A14AF34340B35815344DE61B096F8 |
Open | /ce/ca/aws/guardduty/detector-eks-audit-logs/prod.logic.yaml | 90ECAF7A74C6B8105F50B790244D29CE |
Open | /ce/ca/aws/guardduty/detector-eks-audit-logs/test-data.json | 669FB5BB76D9AD1AA6B04E50ED675DB5 |
Open | /types/CA10__CaAwsGuardDutyDetector__c/object.extracts.yaml | B1458F9B9038182B01C83196ED7E48C8 |
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β
---
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."