@@ -15,33 +15,56 @@ slack:
1515 # slack bot token
1616 token : " XXX"
1717 # Slack user that receives messages if the user is not found
18- fallback_user :
" [email protected] " 18+ security_user :
" [email protected] " 1919
2020falcon :
2121 clientid : " XXX"
2222 secret : " XXX"
2323 cloud_region : " eu-1"
24+ # skip vulnerabilities without patches available
25+ skip_no_mitigation : true
2426
2527email :
2628 # email domain
2729 domain : " mycompany"
2830
2931# what is sent to the user in Go templating
30- message : |
31- *:warning: We found security vulnerabilities on your device(s)*
32- Hi {{ .Slack.Profile.FirstName }} {{ .Slack.Profile.LastName }}! One or more of your devices seem to be vulnerable.
33- Luckily we noticed there are patches available. :tada:
34- Can you please update following software as soon as possible?
35-
36- {{ range $device := .User.Devices }}
37- :computer: {{ $device.MachineName }}
38- {{ range $vuln := $device.Findings }}
39- `{{ $vuln.ProductName }}`
40- {{ end }}
41- {{ end }}
42-
43- Please update them as soon as possible. In case of any issues, hop into *#security*.
44- Thank you! :wave:
32+ templates :
33+ user_message : |
34+ *:warning: We found security vulnerabilities on your device(s)*
35+ Hi {{ .Slack.Profile.FirstName }} {{ .Slack.Profile.LastName }}! One or more of your devices seem to be vulnerable.
36+ Luckily we noticed there are patches available. :tada:
37+ Can you please update following software as soon as possible?
38+
39+ {{ range $device := .User.Devices }}
40+ :computer: {{ $device.MachineName }}
41+ {{ range $vuln := $device.Findings }}
42+ `{{ $vuln.ProductName }}`
43+ {{ end }}
44+ {{ end }}
45+
46+ Please update them as soon as possible. In case of any issues, hop into *#security*.
47+ Thank you! :wave:
48+
49+ security_overview_message : |
50+ :information_source: *Device Posture overview* {{ .Date.Format "Jan 02, 2006 15:04:05 UTC" }}
51+
52+ {{ if not .Results }}Nothing to report! :white_check_mark: {{ else }}
53+ {{ range $result := .Results }}
54+ :man-surfing: *{{ $result.Email }}*
55+ {{ range $device := $result.Devices }}
56+ :computer: {{ $device.MachineName}}
57+ {{ range $vuln := $device.Findings }}- {{ $vuln.ProductName }} ({{ $vuln.CveSeverity }}) ({{ $vuln.TimestampFound }}) ({{ $vuln.CveID }}){{ end }}
58+ {{ end }}
59+ {{ end }}
60+ {{ end }}
61+
62+ {{ if .Errors }}
63+ :warning: *Errors:*
64+ {{ range $err := .Errors }}
65+ - {{ $err }}
66+ {{ end }}
67+ {{ end }}
4568` ` `
46694. Run ` css -config=your-config.yml`.
47705. See it popup in Slack!
0 commit comments