Skip to content

Commit f8d52ef

Browse files
author
Jonathan Groth
committed
update GuardDuty notification content
1 parent 24b84a1 commit f8d52ef

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

functions/notify_slack.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,26 @@ def format_guardduty_finding(message: Dict[str, Any], region: str) -> Dict[str,
175175
"value": f"`{service['eventLastSeen']}`",
176176
"short": True,
177177
},
178-
{"title": "Severity", "value": f"`{severity}`", "short": True},
178+
{
179+
"title": "Severity",
180+
"value": f"`{severity}`",
181+
"short": True
182+
},
179183
{
180184
"title": "Count",
181185
"value": f"`{service['count']}`",
182186
"short": True,
183187
},
188+
{
189+
"title": "Account ID",
190+
"value": f"`{detail['accountId']}`",
191+
"short": True,
192+
},
193+
{
194+
"title": "Region",
195+
"value": f"`{detail['region']}`",
196+
"short": True,
197+
},
184198
{
185199
"title": "Link to Finding",
186200
"value": f"{guardduty_url}#/findings?search=id%3D{detail['id']}",

0 commit comments

Comments
 (0)