-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathaws_iam_accesskey_principal.yaml
41 lines (38 loc) · 1.02 KB
/
aws_iam_accesskey_principal.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "[Cartography] New IAM Access Key Detected"
description: "Access Key attached to an IAM user."
use_ssl: True
# Query:
# metadata.query_name:"iam_accesskey_principal"
index: transform-iam-accesskey-principal-cartography-max-min
type: any
filter:
- query_string:
query: "_type:_doc"
num_events: 1
timestamp_field: "@timestamp.min"
timeframe:
hours: 1
realert:
hours: 50
query_key:
- "a.id"
- "a.name"
- "p.name"
- "collect_distinct k.accesskeyid_"
alert_text: |
Elastalert Alert: Cartography detected new values in the query iam_accesskey_principal. Account: {1} [{0}] - Principal name: {2} - Key ID: {3}.
alert_text_args:
- "a.id"
- "a.name"
- "p.name"
- "collect_distinct k.accesskeyid_"
alert_text_type: alert_text_only
alert:
- slack:
slack_webhook_url: __slack_webhook_url.security-notifications__
- jira:
jira_server: https://jira.server.com
jira_project: PROJECT
jira_components: COMPONENT
jira_issuetype: Vulnerability
jira_account_file: jira-credentials.yaml