Skip to main content

🧠 AWS GuardDuty Detector S3 Protection is not enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-10-30T16:52:14.860703907Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 201βœ”οΈ CA10__featuresJson__c.delegatedTo(CA10__featuresJson__c).isEmpty()βœ”οΈ null
🟒test2βœ”οΈ 299βœ”οΈ extract('caJsonFrom__featuresJson__c').jsonQueryText('[?name==\'S3_DATA_EVENTS\'].status | [0]') != 'ENABLED'βœ”οΈ null
🟒test3βœ”οΈ 399βœ”οΈ extract('caJsonFrom__featuresJson__c').jsonQueryText('[?name==\'S3_DATA_EVENTS\'].status | [0]') == 'ENABLED'βœ”οΈ null
🟒test4βœ”οΈ 199βœ”οΈ extract('CA10__status__c') != 'ENABLED'βœ”οΈ null
🟒test5βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/guardduty/detector-s3-protection/policy.yamlA13EDC808F267A8A29CA2D9AB7E85812
Open/ce/ca/aws/guardduty/detector-s3-protection/prod.logic.yaml918679431ADE5719525528B4E88B7917
Open/ce/ca/aws/guardduty/detector-s3-protection/test-data.json6518561DE1864D7F4D3A8DE41E9F4C67
Open/types/CA10__CaAwsGuardDutyDetector__c/object.extracts.yaml8B76173EB0902B7F969958A52EDB9AD5

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/guardduty/detector-s3-protection/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/guardduty/detector-s3-protection/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/guardduty/detector-s3-protection/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/guardduty/detector-s3-protection/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/guardduty/detector-s3-protection/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: "INAPPLICABLE"
currentStateMessage: "This GuardDuty Detector is not enabled."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "ENABLED"
- status: "INCOMPLIANT"
currentStateMessage: "S3 Protection is not enabled for this detector."
remediationMessage: "Enable S3 Protection to monitor for suspicious activity related to your S3 buckets."
check:
NOT_EQUAL:
left:
JSON_QUERY_TEXT:
expression: "[?name=='S3_DATA_EVENTS'].status | [0]"
arg:
EXTRACT: "caJsonFrom__featuresJson__c"
undeterminedIf:
evaluationError: "Json query text has failed."
resultTypeMismatch: "Json query text did not return text type."
right:
TEXT: "ENABLED"
- status: "COMPLIANT"
currentStateMessage: "S3 Protection is enabled for this detector."
check:
IS_EQUAL:
left:
JSON_QUERY_TEXT:
expression: "[?name=='S3_DATA_EVENTS'].status | [0]"
arg:
EXTRACT: "caJsonFrom__featuresJson__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."