Initial commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
onsuccess: next_stage
|
||||
filter: "evt.Overflow.Alert.Remediation == true && evt.Overflow.Alert.GetScope() == 'Ip'"
|
||||
name: crowdsecurity/rdns
|
||||
description: "Lookup the DNS associated to the source IP only for overflows"
|
||||
statics:
|
||||
- method: reverse_dns
|
||||
expression: evt.Overflow.Alert.Source.IP
|
||||
- meta: reverse_dns
|
||||
expression: evt.Enriched.reverse_dns
|
||||
@@ -0,0 +1,14 @@
|
||||
name: crowdsecurity/cdn-whitelist
|
||||
description: "Whitelist CDN providers"
|
||||
whitelist:
|
||||
reason: "CDN provider"
|
||||
expression:
|
||||
- "any(File('cloudflare_ips.txt'), { IpInRange(evt.Overflow.Alert.Source.IP ,#)})"
|
||||
- "any(File('cloudflare_ip6s.txt'), { IpInRange(evt.Overflow.Alert.Source.IP ,#)})"
|
||||
data:
|
||||
- source_url: https://www.cloudflare.com/ips-v4
|
||||
dest_file: cloudflare_ips.txt
|
||||
type: string
|
||||
- source_url: https://www.cloudflare.com/ips-v6
|
||||
dest_file: cloudflare_ip6s.txt
|
||||
type: string
|
||||
@@ -0,0 +1,18 @@
|
||||
name: crowdsecurity/seo-bots-whitelist
|
||||
description: "Whitelist good search engine crawlers"
|
||||
whitelist:
|
||||
reason: "good bots (search engine crawlers)"
|
||||
expression:
|
||||
- "any(File('rdns_seo_bots.txt'), { len(#) > 0 && evt.Enriched.reverse_dns endsWith #})"
|
||||
- "RegexpInFile(evt.Enriched.reverse_dns, 'rdns_seo_bots.regex')"
|
||||
- "any(File('ip_seo_bots.txt'), { len(#) > 0 && IpInRange(evt.Overflow.Alert.Source.IP ,#)})"
|
||||
data:
|
||||
- source_url: https://raw.githubusercontent.com/crowdsecurity/sec-lists/master/whitelists/benign_bots/search_engine_crawlers/rdns_seo_bots.txt
|
||||
dest_file: rdns_seo_bots.txt
|
||||
type: string
|
||||
- source_url: https://raw.githubusercontent.com/crowdsecurity/sec-lists/master/whitelists/benign_bots/search_engine_crawlers/rnds_seo_bots.regex
|
||||
dest_file: rdns_seo_bots.regex
|
||||
type: regexp
|
||||
- source_url: https://raw.githubusercontent.com/crowdsecurity/sec-lists/master/whitelists/benign_bots/search_engine_crawlers/ip_seo_bots.txt
|
||||
dest_file: ip_seo_bots.txt
|
||||
type: string
|
||||
Reference in New Issue
Block a user