Last active
December 27, 2021 18:21
-
-
Save chasen-bettinger/6f4941d16b710e2bf97a60df7129906b to your computer and use it in GitHub Desktop.
JupiterOne Alert Rule - Unreviewed Changes To AWS Managed Policies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Unreviewed Changes To AWS Managed Policies", | |
"description": "AWS Managed Policies that have been unreviewed by the Security team.", | |
"version": 1, | |
"specVersion": 1, | |
"pollingInterval": "ONE_DAY", | |
"templates": {}, | |
"outputs": [ | |
"alertLevel" | |
], | |
"question": { | |
"queries": [ | |
{ | |
"name": "query0", | |
"query": "FIND aws_iam_policy\n WITH vendorManaged=true\n AND updatedOn > date(your_team_last_reviewed_date)\n AND accountId = 'your_aws_account_id'\n THAT ALLOWS >> as allow_relationship * as impacted_service\nWHERE allow_relationship._beginOn > date(your_team_last_reviewed_date)\n", | |
"version": "v1" | |
} | |
] | |
}, | |
"operations": [ | |
{ | |
"when": { | |
"type": "FILTER", | |
"specVersion": 1, | |
"condition": [ | |
"AND", | |
[ | |
"queries.query0.total", | |
">", | |
0 | |
] | |
] | |
}, | |
"actions": [ | |
{ | |
"type": "SET_PROPERTY", | |
"targetValue": "HIGH", | |
"targetProperty": "alertLevel" | |
}, | |
{ | |
"type": "CREATE_ALERT" | |
} | |
] | |
} | |
], | |
"tags": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment