Skip to content

Commit

Permalink
update GuardDuty notification content
Browse files Browse the repository at this point in the history
  • Loading branch information
grothja committed Aug 31, 2022
1 parent 24b84a1 commit f8d52ef
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion functions/notify_slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,26 @@ def format_guardduty_finding(message: Dict[str, Any], region: str) -> Dict[str,
"value": f"`{service['eventLastSeen']}`",
"short": True,
},
{"title": "Severity", "value": f"`{severity}`", "short": True},
{
"title": "Severity",
"value": f"`{severity}`",
"short": True
},
{
"title": "Count",
"value": f"`{service['count']}`",
"short": True,
},
{
"title": "Account ID",
"value": f"`{detail['accountId']}`",
"short": True,
},
{
"title": "Region",
"value": f"`{detail['region']}`",
"short": True,
},
{
"title": "Link to Finding",
"value": f"{guardduty_url}#/findings?search=id%3D{detail['id']}",
Expand Down

0 comments on commit f8d52ef

Please sign in to comment.