aws-samples / amazon-guardduty-to-slack

Demonstrates integrating Amazon GuardDuty with your Slack Channel
MIT No Attribution
132 stars 66 forks source link

GuardDuty events with no severity generate bad notifications #22

Closed wes-novack closed 4 years ago

wes-novack commented 4 years ago

When a GuardDuty Event occurs that does not have a severity, such as when you archive a finding, this guardduty-to-slack Lambda generates a junk notification to Slack, which looks like the below.

GuardDutyAPP  11:13
Finding in us-west-2 for Acct: XXXXXXXXXXXX
undefined
undefined
Severity
High
Region
us-west-2
Last Seen
<!date^NaN^{date} at {time} | undefined>

I've implemented a fix for this in my local copy & will submit a PR.