forked from wrayjustin/yaids
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_D.yar
187 lines (177 loc) · 5.64 KB
/
test_D.yar
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
//%c%-14s%-14s%-14s%-17s%-17s%-46s%-5s%-46s%-5s
/*
* Header Offsets:
* Payload Offset: 0
* Packet Length (Original): 1
* Frame Protocol: 6
* Network Protocol: 20
* Transport Protocol: 34
* Frane Source Address: 48
* Frame Destination Address: 65
* Network Source Adderess: 82
* Transport Source (Port): 128
* Network Destination Address: 133
* Transport Destination (Port): 179
*/
rule test_D_01 {
meta:
author = "YAIDS.io"
description = "YAIDS Testing: Test_A_01 (HTTP GET Requests, Expected: 21)"
more_info = "https://yaids.io"
strings:
$frameProtocol = "ETH"
condition:
$frameProtocol at frameProtocol
}
rule test_D_02 {
meta:
author = "YAIDS.io"
description = "YAIDS Testing: Test_A_01 (HTTP GET Requests, Expected: 21)"
more_info = "https://yaids.io"
strings:
$frameProtocol = "ETH"
$netProtocol = "IP"
condition:
$frameProtocol at frameProtocol and
$netProtocol at netProtocol
}
rule test_D_03 {
meta:
author = "YAIDS.io"
description = "YAIDS Testing: Test_A_01 (HTTP GET Requests, Expected: 21)"
more_info = "https://yaids.io"
strings:
$frameProtocol = "ETH"
$netProtocol = "IP"
$transportProtocol = "TCP"
condition:
$frameProtocol at frameProtocol and
$netProtocol at netProtocol and
$transportProtocol at transportProtocol
}
rule test_D_04 {
meta:
author = "YAIDS.io"
description = "YAIDS Testing: Test_A_01 (HTTP GET Requests, Expected: 21)"
more_info = "https://yaids.io"
strings:
$frameProtocol = "ETH"
$netProtocol = "IP"
$transportProtocol = "TCP"
$frameSource = "00:16:47:9D:F2:C2"
condition:
$frameProtocol at frameProtocol and
$netProtocol at netProtocol and
$transportProtocol at transportProtocol and
$frameSource at frameSource
}
rule test_D_05 {
meta:
author = "YAIDS.io"
description = "YAIDS Testing: Test_A_01 (HTTP GET Requests, Expected: 21)"
more_info = "https://yaids.io"
strings:
$frameProtocol = "ETH"
$netProtocol = "IP"
$transportProtocol = "TCP"
$frameSource = "00:16:47:9D:F2:C2"
$frameDest = "00:0C:29:89:D0:73"
condition:
$frameProtocol at frameProtocol and
$netProtocol at netProtocol and
$transportProtocol at transportProtocol and
$frameSource at frameSource and
$frameDest at frameDest
}
rule test_D_06 {
meta:
author = "YAIDS.io"
description = "YAIDS Testing: Test_A_01 (HTTP GET Requests, Expected: 21)"
more_info = "https://yaids.io"
strings:
$frameProtocol = "ETH"
$netProtocol = "IP"
$transportProtocol = "TCP"
$frameSource = "00:16:47:9D:F2:C2"
$frameDest = "00:0C:29:89:D0:73"
$networkSource = "192.168.21.101"
condition:
$frameProtocol at frameProtocol and
$netProtocol at netProtocol and
$transportProtocol at transportProtocol and
$frameSource at frameSource and
$frameDest at frameDest and
$networkSource at networkSource
}
rule test_D_07 {
meta:
author = "YAIDS.io"
description = "YAIDS Testing: Test_A_01 (HTTP GET Requests, Expected: 21)"
more_info = "https://yaids.io"
strings:
$frameProtocol = "ETH"
$netProtocol = "IP"
$transportProtocol = "TCP"
$frameSource = "00:16:47:9D:F2:C2"
$frameDest = "00:0C:29:89:D0:73"
$networkSource = "192.168.21.101"
$transportSource = "80"
condition:
$frameProtocol at frameProtocol and
$netProtocol at netProtocol and
$transportProtocol at transportProtocol and
$frameSource at frameSource and
$frameDest at frameDest and
$networkSource at networkSource and
$transportSource at transportSource
}
rule test_D_08 {
meta:
author = "YAIDS.io"
description = "YAIDS Testing: Test_A_01 (HTTP GET Requests, Expected: 21)"
more_info = "https://yaids.io"
strings:
$frameProtocol = "ETH"
$netProtocol = "IP"
$transportProtocol = "TCP"
$frameSource = "00:16:47:9D:F2:C2"
$frameDest = "00:0C:29:89:D0:73"
$networkSource = "192.168.21.101"
$transportSource = "80"
$networkDest = "192.168.202.90"
condition:
$frameProtocol at frameProtocol and
$netProtocol at netProtocol and
$transportProtocol at transportProtocol and
$frameSource at frameSource and
$frameDest at frameDest and
$networkSource at networkSource and
$transportSource at transportSource and
$networkDest at networkDest
}
rule test_D_09 {
meta:
author = "YAIDS.io"
description = "YAIDS Testing: Test_A_01 (HTTP GET Requests, Expected: 21)"
more_info = "https://yaids.io"
strings:
$frameProtocol = "ETH"
$netProtocol = "IP"
$transportProtocol = "TCP"
$frameSource = "00:16:47:9D:F2:C2"
$frameDest = "00:0C:29:89:D0:73"
$networkSource = "192.168.21.101"
$transportSource = "80"
$networkDest = "192.168.202.90"
$transportDest = "33783"
condition:
$frameProtocol at frameProtocol and
$netProtocol at netProtocol and
$transportProtocol at transportProtocol and
$frameSource at frameSource and
$frameDest at frameDest and
$networkSource at networkSource and
$transportSource at transportSource and
$networkDest at networkDest and
$transportDest at transportDest
}