-
Notifications
You must be signed in to change notification settings - Fork 0
/
Apricot-analysis.json
267 lines (255 loc) · 12.8 KB
/
Apricot-analysis.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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
{
"name": "Apricot-analysis",
"items": [
{
"name": "Anomalous HTTP Response Codes",
"value": "_path==\"http\" AND status_code >= 400 | count() by status_code | sort -r",
"description": "Shows the count of HTTP response codes that indicate errors (400 and above)"
},
{
"name": "HTTP Traffic by Content Type",
"value": "_path==\"http\" | count() by mime_type | sort -r",
"description": "Displays HTTP traffic distribution by MIME content types"
},
{
"name": "HTTP Responses with Large Payloads",
"value": "_path==\"http\" AND resp_size > 10MB | count() by uri | sort -r",
"description": "Detects HTTP responses with large payloads"
},
{
"name": "Identify Outbound HTTP Traffic to Suspicious IP Addresses",
"value": "_path==\"http\" AND id.resp_h in (\"malicious_ip1\", \"malicious_ip2\", \"malicious_ip3\") | count() by id.resp_h | sort -r",
"description": "Detects outbound HTTP traffic to known malicious IP addresses"
},
{
"name": "Identify HTTP Response Status Codes for Redirects",
"value": "_path==\"http\" AND status_code =~ /^3/ | count() by status_code | sort -r",
"description": "Detects HTTP responses with status codes indicating redirects"
},
{
"name": "Unusual Protocol Combinations",
"value": "_path==\"conn\" | count() by proto | sort -r | filter proto not in (\"tcp\", \"udp\", \"icmp\")",
"description": "Identifies unusual protocol combinations in network traffic"
},
{
"name": "Identify Short-Lived Network Connections",
"value": "_path==\"conn\" | put connection_duration := ts - orig_ts | filter connection_duration < 60 | count() by id.orig_h, id.resp_h | sort -r",
"description": "Detects short-lived network connections lasting less than 1 minute"
},
{
"name": "Identify Long-Lived Network Connections",
"value": "_path==\"conn\" | put connection_duration := ts - orig_ts | filter connection_duration > 3600 | count() by id.orig_h, id.resp_h | sort -r",
"description": "Detects long-lived network connections lasting more than 1 hour"
},
{
"name": "Top SMTP Senders",
"value": "_path==\"smtp\" | count() by id.orig_h | sort -r",
"description": "Shows the IP addresses sending the most SMTP traffic"
},
{
"name": "SMTP Traffic by Email Sender",
"value": "_path==\"smtp\" | count() by id.orig_h | sort -r",
"description": "Shows SMTP traffic distribution by email sender"
},
{
"name": "Identify Outbound SMTP Traffic to Unusual Domains",
"value": "_path==\"smtp\" AND mailfrom==\"\" AND NOT (domain==\"gmail.com\" OR domain==\"yahoo.com\" OR domain==\"hotmail.com\") | count() by domain | sort -r",
"description": "Identifies outbound SMTP traffic to domains not commonly associated with personal email services"
},
{
"name": "Large Outbound Email Attachments",
"value": "_path==\"smtp\" AND attachment.size > 10MB | count() by id.orig_h | sort -r",
"description": "Identifies SMTP traffic with large outbound email attachments"
},
{
"name": "SMTP Traffic Analysis",
"value": "_path==\"smtp\" | count() by command | sort -r",
"description": "Analyzes SMTP commands to understand SMTP traffic patterns"
},
{
"name": "SMTP Traffic Analysis by Sender Domain",
"value": "_path==\"smtp\" | cut mailfrom | split(mailfrom,\"@\") | count() by split_result[1] | sort -r",
"description": "Analyzes SMTP traffic by sender domain to identify traffic sources"
},
{
"name": "Identify SMB/CIFS Traffic Patterns",
"value": "_path==\"smb_files\" OR _path==\"smb_mapping\" | count() by command | sort -r",
"description": "Analyzes SMB/CIFS traffic patterns to identify common commands used in file sharing"
},
{
"name": "Potential DDoS Attack Detection",
"value": "_path==\"conn\" | count() by id.resp_h | sort -r | filter count > 1000",
"description": "Identifies potential DDoS targets by looking for IPs with a high number of connections"
},
{
"name": "Unauthorized SSH Access Attempts",
"value": "_path==\"ssh\" AND auth_success==\"F\" | count() by id.orig_h | sort -r",
"description": "Displays failed SSH access attempts to identify potential brute force attacks"
},
{
"name": "Suspicious HTTP User-Agents",
"value": "_path==\"http\" | count() by user_agent | sort -r | filter user_agent =~ /.*(curl|wget|python|java|libwww|httpclient).*/",
"description": "Identifies HTTP User-Agents that are commonly used by automated tools and scripts"
},
{
"name": "Unusual User-Agent Strings in HTTP Requests",
"value": "_path==\"http\" | filter user_agent !in (\"Mozilla\", \"Chrome\", \"Firefox\", \"Safari\", \"Edge\") | count() by user_agent | sort -r",
"description": "Identifies uncommon or suspicious User-Agent strings in HTTP requests"
},
{
"name": "Identify Outbound Traffic Using Rare User-Agent Strings",
"value": "_path==\"http\" | count() by user_agent | sort -r",
"description": "Detects outbound HTTP traffic with uncommon User-Agent strings, which may indicate non-standard or malicious behavior"
},
{
"name": "DNS Tunneling Detection",
"value": "_path==\"dns\" | filter query_length > 50 | count() by query | sort -r",
"description": "Detects potential DNS tunneling by looking for unusually long DNS queries"
},
{
"name": "DNS Tunneling Detection (NXDOMAIN)",
"value": "_path==\"dns\" AND rcode==\"NXDOMAIN\" | count() by query | sort -r",
"description": "Identifies potential DNS tunneling through NXDOMAIN responses"
},
{
"name": "DNS Queries for Newly Observed Domains",
"value": "_path==\"dns\" | cut query | uniq -c | filter count < 5",
"description": "Identifies DNS queries for domains that have been observed less than 5 times"
},
{
"name": "Identify Potential DNS Amplification Attacks",
"value": "_path==\"dns\" AND qtype==\"ANY\" AND rcode==\"NOERROR\" AND rlength > 512 | count() by id.orig_h | sort -r",
"description": "Detects potential DNS amplification attacks based on unusually large responses to ANY queries"
},
{
"name": "Identify Potential DNS Amplification Attacks",
"value": "_path==\"dns\" AND qtype==\"ANY\" AND rcode==\"NOERROR\" AND rlength > 512 | count() by id.orig_h | sort -r",
"description": "Detects potential DNS amplification attacks based on unusually large responses to ANY queries"
},
{
"name": "Identify Large DNS Responses",
"value": "_path==\"dns\" AND rlength > 512 | count() by query | sort -r",
"description": "Detects DNS responses exceeding the typical limit of 512 bytes"
},
{
"name": "Identify Outbound DNS Queries to Suspicious TLDs",
"value": "_path==\"dns\" AND query_root_domain in (\".tk\", \".xyz\", \".pw\", \".top\") | count() by query | sort -r",
"description": "Detects outbound DNS queries to suspicious top-level domains"
},
{
"name": "Insecure Protocols",
"value": "_path==\"conn\" AND proto in (\"ftp\", \"telnet\", \"http\") | count() by proto | sort -r",
"description": "Identifies the use of insecure protocols such as FTP, Telnet, and HTTP"
},
{
"name": "High-Risk IP Addresses",
"value": "_path==\"intel\" AND seen.where==\"remote\" | count() by seen.addr | sort -r",
"description": "Lists high-risk IP addresses detected by the threat intelligence framework"
},
{
"name": "Connections to Known Malicious IPs",
"value": "_path==\"conn\" AND intel.hit==\"T\" | cut id.orig_h, id.resp_h, service, proto | uniq",
"description": "Shows connections to IP addresses flagged by threat intelligence sources"
},
{
"name": "Top Network Services",
"value": "_path==\"conn\" | count() by service | sort -r",
"description": "Displays the most frequently used network services"
},
{
"name": "Unusual DNS Query Patterns",
"value": "_path==\"dns\" | cut query | count() by query | sort -r | filter count < 5",
"description": "Identifies unusual DNS query patterns with low occurrence"
},
{
"name": "SSH Brute Force Attempts",
"value": "_path==\"ssh\" AND auth_attempts >= 3 | count() by id.orig_h | sort -r",
"description": "Detects SSH brute force attempts with multiple authentication failures"
},
{
"name": "SSH Traffic Analysis",
"value": "_path==\"ssh\" | count() by command | sort -r",
"description": "Analyzes SSH commands to understand SSH traffic patterns"
},
{
"name": "Identify Outbound SSH Connections to Unusual Ports",
"value": "_path==\"ssh\" AND id.resp_p not in (22, 2222) | count() by id.resp_p | sort -r",
"description": "Detects outbound SSH connections to ports other than the standard SSH ports (22, 2222)"
},
{
"name": "SSL/TLS Certificate Expiry Analysis",
"value": "_path==\"ssl\" | cut id.resp_h, subject, issuer, valid_from, valid_until | sort valid_until",
"description": "Analyzes SSL/TLS certificate validity periods to identify potential expirations"
},
{
"name": "Identify Unusual SSL/TLS Handshake Patterns",
"value": "_path==\"ssl\" | count() by version, cipher | sort -r",
"description": "Analyzes SSL/TLS handshake patterns to identify unusual combinations of protocol versions and cipher suites"
},
{
"name": "Identify SSL/TLS Handshakes with Self-Signed Certificates",
"value": "_path==\"ssl\" AND certificate_chain_fuids == \"-\" | count() by id.orig_h | sort -r",
"description": "Detects SSL/TLS handshakes using self-signed certificates"
},
{
"name": "FTP Activity Analysis",
"value": "_path==\"ftp\" | count() by command | sort -r",
"description": "Analyzes FTP commands to identify FTP activity patterns"
},
{
"name": "FTP Uploads with Suspicious File Extensions",
"value": "_path==\"ftp\" AND command==\"put\" | filter arg !in (\".txt\", \".pdf\", \".doc\", \".xls\") | count() by arg | sort -r",
"description": "Identifies FTP uploads with suspicious file extensions"
},
{
"name": "FTP Login Attempts with Invalid Credentials",
"value": "_path==\"ftp\" AND reply_code==530 | count() by user | sort -r",
"description": "Identifies FTP login attempts with invalid credentials"
},
{
"name": "IRC Traffic Analysis",
"value": "_path==\"irc\" | count() by command | sort -r",
"description": "Analyzes IRC (Internet Relay Chat) traffic commands"
},
{
"name": "VoIP Traffic Analysis",
"value": "_path==\"sip\" | count() by method | sort -r",
"description": "Analyzes Session Initiation Protocol (SIP) traffic methods in VoIP communication"
},
{
"name": "ICMP Echo (Ping) Requests Analysis",
"value": "_path==\"icmp\" AND icmp_type==8 | count() by id.orig_h | sort -r",
"description": "Identifies hosts generating ICMP echo (ping) requests"
},
{
"name": "Identify Large ICMP Echo (Ping) Requests",
"value": "_path==\"icmp\" AND icmp_type==8 AND icmp_code==0 AND size > 1024 | count() by id.orig_h | sort -r",
"description": "Detects ICMP echo (ping) requests larger than 1 KB"
},
{
"name": "Unencrypted Traffic Analysis",
"value": "_path==\"conn\" AND NOT (proto==\"ssl\" OR proto==\"tls\") | count() by proto | sort -r",
"description": "Detects unencrypted network traffic by excluding SSL/TLS connections"
},
{
"name": "Identify SQL Injection Attempts in HTTP Requests",
"value": "_path==\"http\" AND uri =~ /.*(sql|xss|injection|select|union|exec).*/ | count() by id.orig_h | sort -r",
"description": "Detects HTTP requests containing common SQL injection keywords"
},
{
"name": "Identify Outbound UDP Traffic to Unusual Ports",
"value": "_path==\"conn\" AND proto==\"udp\" AND id.orig_p not in (53, 123, 161) | count() by id.orig_p | sort -r",
"description": "Detects outbound UDP traffic to ports other than commonly used UDP ports (DNS, NTP, SNMP)"
},
{
"name": "Identify Outbound Traffic to High-Entropy Domains",
"value": "_path==\"conn\" AND entropy(id.resp_h) > 4 | count() by id.orig_h | sort -r",
"description": "Detects outbound network traffic to domains with high entropy, which may indicate domain generation algorithms (DGAs) or fast flux networks"
},
{
"name": "Identify Outbound Traffic Using Long Domain Names",
"value": "_path==\"http\" AND length(host) > 30 | count() by id.orig_h | sort -r",
"description": "Detects outbound HTTP traffic to domains with unusually long names, which may indicate domain generation algorithms (DGAs) or obfuscation techniques"
}
]
}