Skip to content

Instantly share code, notes, and snippets.

@chasen-bettinger
Last active December 27, 2021 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chasen-bettinger/6f4941d16b710e2bf97a60df7129906b to your computer and use it in GitHub Desktop.
Save chasen-bettinger/6f4941d16b710e2bf97a60df7129906b to your computer and use it in GitHub Desktop.
JupiterOne Alert Rule - Unreviewed Changes To AWS Managed Policies
{
"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