3d6f015211
* add duration expr to add duration formula
41 lines
908 B
YAML
41 lines
908 B
YAML
|
|
name: enforce_mfa
|
|
#debug: true
|
|
filters:
|
|
- 'Alert.Remediation == true && Alert.GetScenario() == "crowdsecurity/ssh-enforce-mfa" && Alert.GetScope() == "username"'
|
|
decisions: #remediation vs decision
|
|
- type: enforce_mfa
|
|
scope: "username"
|
|
duration: 1h
|
|
on_success: continue
|
|
---
|
|
name: default_ip_remediation
|
|
#debug: true
|
|
filters:
|
|
# try types.Ip here :)
|
|
- Alert.Remediation == true && Alert.GetScope() == "Ip"
|
|
decisions:
|
|
- type: ban
|
|
duration: 1h
|
|
on_success: break
|
|
---
|
|
#this one won't be reached ^^
|
|
name: default_ip_remediation_2
|
|
#debug: true
|
|
filters:
|
|
# try types.Ip here :)
|
|
- Alert.Remediation == true && Alert.GetScope() == "Ip"
|
|
decisions:
|
|
- type: ratatatata
|
|
duration: 1h
|
|
on_success: break
|
|
---
|
|
name: duration_expression
|
|
#debug: true
|
|
filters:
|
|
- Alert.Remediation == true && Alert.GetScope() == "Ip"
|
|
decisions:
|
|
- type: ban
|
|
duration: 1h
|
|
duration_expr: sprintf('%dh', 4*4)
|
|
on_success: break
|