-
Notifications
You must be signed in to change notification settings - Fork 503
/
test_toml.json
166 lines (166 loc) · 4.86 KB
/
test_toml.json
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[
{
"metadata": {
"creation_date": "2020/02/26",
"ecs_version": [
"1.4.0"
],
"maturity": "development",
"updated_date": "2020/02/26"
},
"rule": {
"description": "This rule detects network events that may indicate the use of SSH traffic from the Internet. SSH is commonly used by\nsystem administrators to remotely control a system using the command line shell. If it is exposed to the Internet, it\nshould be done with strong security controls as it is frequently targeted and exploited by threat actors as an initial\naccess or back-door vector.\n",
"false_positives": [
" SSH connections may be made directly to Internet destinations in order to access Linux cloud server instances but\n such connections are usually made only by engineers. In such cases, only SSH gateways, bastions or jump servers may\n be expected Internet destinations and can be exempted from this rule. SSH may be required by some work-flows such as\n remote access and support for specialized software products and servers. Such work-flows are usually known and not\n unexpected. Usage that is unfamiliar to server or network owners can be unexpected and suspicious.\n "
],
"index": [
"filebeat-*"
],
"language": "kuery",
"max_signals": 100,
"name": "SSH (Secure Shell) to the Internet",
"risk_score": 21,
"rule_id": "6f1500bc-62d7-4eb9-8601-7485e87da2f4",
"severity": "low",
"tags": [
"Elastic",
"Network"
],
"type": "query",
"version": 2,
"query": "network.transport: tcp and destination.port:22 and (\n network.direction: outbound or (\n source.ip: (10.0.0.0/8 or 172.16.0.0/12 or 192.168.0.0/16) and\n not destination.ip: (10.0.0.0/8 or 172.16.0.0/12 or 192.168.0.0/16)\n )\n)\n",
"threat": [
{
"framework": "MITRE ATT&CK",
"technique": [
{
"id": "T1043",
"name": "Commonly Used Port",
"reference": "https://attack.mitre.org/techniques/T1043/"
}
],
"tactic": {
"id": "TA0011",
"name": "Command and Control",
"reference": "https://attack.mitre.org/tactics/TA0011/"
}
}
]
}
},
{
"metadata": {
"field": "value"
},
"rule": {
"field2": "value2"
}
},
{
"metadata": {
"just": "some",
"flat": "fields",
"for": "testing",
"and": [
[
"fields",
"nested"
],
[
"!",
"too"
]
]
},
"rule": {
"first": "1st",
"second": "2nd",
"third": "3rd",
"fourth": 4,
"fifth": [
1,
2,
3
],
"list": [
{
"one": [
2,
3
]
},
{
"two": {
"three": 4
}
}
],
"more_data": {
"one": {
"two": {
"three": {
"four": {
"five": [
[
1,
22,
333
],
[[4], [5], [6]],
[["a"], ["b"], ["c"], [12, 13, 14]]
]
}
}
}
}
}
}
},
{
"metadata": {
"just": "some",
"flat": "fields",
"for": "testing"
},
"transform": {
"osquery": [
{
"label": "some label",
"query": "some query"
},
{
"label": "some label",
"query": "some query"
},
{
"label": "some label",
"query": "some query"
}
],
"investigate": [
{
"label": "some label",
"relativeFrom": "now-48h/h",
"relativeTo": "now",
"providers": [
[
{"field": "event.kind", "excluded": false, "queryType": "phrase", "value": "signal", "valueType": "string"},
{"field": "user.id", "excluded": false, "queryType": "phrase", "value": "{{user.id}}", "valueType": "string"}
]
]
},
{
"label": "some label",
"relativeFrom": "now-48h/h",
"relativeTo": "now",
"providers": [
[
{"field": "event.kind", "excluded": false, "queryType": "phrase", "value": "signal", "valueType": "string"},
{"field": "host.name", "excluded": false, "queryType": "phrase", "value": "{{host.name}}", "valueType": "string"}
]
]
}
]
}
}
]