-
Notifications
You must be signed in to change notification settings - Fork 19
/
example-rule.yaml
68 lines (61 loc) · 1.4 KB
/
example-rule.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Known false positive for test user from internal IP
- conditions:
and:
- field: username
operator: equals
value: "test"
- field: ip_address
operator: equals
value: "192.168.1.1"
# Excluded based on email domain or internal domain
- conditions:
or:
- field: email
operator: contains
value: "@example.com"
- field: domain
operator: equals
value: "internal.local"
# Exclude fast responses
- conditions:
and:
- field: response_time
operator: equals
value: "fast"
# Exclude admin and superuser roles
- conditions:
or:
- field: user_role
operator: equals
value: "admin"
- field: user_role
operator: equals
value: "superuser"
# Exclude example.com URLs (including subdomains)
- conditions:
or:
- field: url
operator: regex
value: "^https?://(?:[a-z0-9]+\\.)*example\\.com/.*$"
# Exclude departments in sales or hr
- conditions:
or:
- field: department
operator: in
values:
- "sales"
- "hr"
# Exclude status not equals to active
- conditions:
and:
- field: status
operator: not_equals
value: "active"
# Exclude regions not in list
- conditions:
or:
- field: region
operator: not_in
values:
- "us-east-1"
- "us-west-2"