crowdsec-notifications : add ASN to notify
This commit is contained in:
parent
0ba128b5f7
commit
bc200b5f3b
@ -14,14 +14,14 @@ format: |
|
||||
{{if $alert.Source.Cn -}}
|
||||
{
|
||||
"title": "{{.Scenario}}",
|
||||
"description": ":flag_{{ $alert.Source.Cn | lower }}: {{$alert.Source.IP}}\n Hostname: {{Hostname}}\nAction: {{.Type}} {{.Duration}}\nLinks: [CTI](https://app.crowdsec.net/cti/{{$alert.Source.IP}}) | [Shodan](https://www.shodan.io/host/{{$alert.Source.IP}})",
|
||||
"description": ":flag_{{ $alert.Source.Cn | lower }}: {{$alert.Source.IP}}\n Hostname: {{Hostname}}\nAS{{ $alert.Source.AsNumber }}: {{ $alert.Source.AsName }}\nAction: {{.Type}} {{.Duration}}\nLinks: [CTI](https://app.crowdsec.net/cti/{{$alert.Source.IP}}) | [Shodan](https://www.shodan.io/host/{{$alert.Source.IP}})",
|
||||
"color": "16711680"
|
||||
}
|
||||
{{end}}
|
||||
{{if not $alert.Source.Cn -}}
|
||||
{
|
||||
"title": "{{.Scenario}}",
|
||||
"description": ":pirate_flag: {{$alert.Source.IP}}\nHostname: {{Hostname}}\nAction: {{.Type}} {{.Duration}}\nLinks: [CTI](https://app.crowdsec.net/cti/{{$alert.Source.IP}}) | [Shodan](https://www.shodan.io/host/{{$alert.Source.IP}})",
|
||||
"description": ":pirate_flag: {{$alert.Source.IP}}\nHostname: {{Hostname}}\nAS{{ $alert.Source.AsNumber }}: {{ $alert.Source.AsName }}\nAction: {{.Type}} {{.Duration}}\nLinks: [CTI](https://app.crowdsec.net/cti/{{$alert.Source.IP}}) | [Shodan](https://www.shodan.io/host/{{$alert.Source.IP}})",
|
||||
"color": "16711680"
|
||||
}
|
||||
{{end}}
|
||||
|
@ -10,6 +10,7 @@ format: |
|
||||
[ *{{.Scenario}}* ]
|
||||
{{if $alert.Source.Cn -}}{{ $alert.Source.Cn }}{{end}}{{if not $alert.Source.Cn -}}N/A{{end}} {{$alert.Source.IP}}
|
||||
Hostname: {{Hostname}}
|
||||
AS{{ $alert.Source.AsNumber }}: {{ $alert.Source.AsName }}
|
||||
Action: {{.Type}} {{.Duration}}
|
||||
Links: https://app.crowdsec.net/cti/{{$alert.Source.IP}}
|
||||
Links: https://www.shodan.io/host/{{$alert.Source.IP}}
|
||||
|
Loading…
Reference in New Issue
Block a user