You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crowdsec-docs/unversioned/cti_api/search_queries.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,25 +71,25 @@ Search is case insensitive.
71
71
72
72
:::
73
73
74
-
For example, if you want to search for malicious IPs:
74
+
For example, if you want [to search for malicious IPs](https://app.crowdsec.net/cti?q=reputation%3A%22malicious%22&page=1):
75
75
76
76
```bash
77
77
reputation:"malicious"
78
78
```
79
79
80
-
You can also query IPs reported for a specific CVE:
80
+
You can also [query IPs reported for a specific CVE](https://app.crowdsec.net/cti?q=cves%3A%22CVE-2021-26086%22&page=1):
81
81
82
82
```bash
83
83
cves:"CVE-2021-26086"
84
84
```
85
85
86
-
It is also possible to combine multiple expressions:
86
+
It is also possible [to combine multiple expressions](https://app.crowdsec.net/cti?q=reputation%3A%22malicious%22+AND+cves%3A%22CVE-2021-26086%22&page=1):
87
87
88
88
```bash
89
89
reputation:"malicious" AND cves:"CVE-2021-26086"
90
90
```
91
91
92
-
You can access a nested field by joining each part of its path by a `.`:
92
+
You can access [a nested field by joining each part of its path](https://app.crowdsec.net/cti?q=classifications.classifications.label%3A%22TOR%22+AND+behaviors.label%3A%22http+exploit%22&page=1) by a `.`:
93
93
94
94
```bash
95
95
classifications.classifications.label:"TOR" AND behaviors.label:"http exploit"
@@ -107,7 +107,7 @@ Always use `AND`, `OR`, `NOT` in uppercase to ensure correct results.
107
107
108
108
The `AND` operator requires expression from each side to be `true`.
109
109
110
-
For example, if you want to search for malicious IPs located in France:
110
+
For example, if you want [to search for malicious IPs located in France](https://app.crowdsec.net/cti?q=reputation%3A%22malicious%22+AND+location.country%3A%22FR%22&page=1):
111
111
112
112
```bash
113
113
reputation:"malicious" AND location.country:"FR"
@@ -117,7 +117,7 @@ reputation:"malicious" AND location.country:"FR"
117
117
118
118
The `OR` operator requires at least one of the expressions from each side to be `true`.
119
119
120
-
For example, you can query malicious or suspicious IPs:
120
+
For example, you can [query malicious or suspicious IPs](https://app.crowdsec.net/cti?q=reputation%3A%22malicious%22+OR+reputation%3A%22suspicious%22&page=1):
121
121
122
122
```bash
123
123
reputation:"malicious" OR reputation:"suspicious"
@@ -127,7 +127,7 @@ reputation:"malicious" OR reputation:"suspicious"
127
127
128
128
The `NOT` operator excludes documents containing the specified term from search results.
129
129
130
-
For example, you can query all malicious IPs except IPs located in France:
130
+
For example, you can [query malicious IPs except IPs located in France](https://app.crowdsec.net/cti?q=reputation%3A%22malicious%22+AND+NOT+location.country%3A%22FR%22&page=1):
131
131
132
132
```bash
133
133
reputation:"malicious" AND NOT location.country:"FR"
@@ -137,19 +137,19 @@ reputation:"malicious" AND NOT location.country:"FR"
137
137
138
138
It is possible to combine many operators in a single query.
139
139
140
-
For example, you can look for malicious IPs reported for HTTP exploitation or HTTP Scan:
140
+
For example, you can [look for malicious IPs reported for HTTP exploitation or HTTP Scan](https://app.crowdsec.net/cti?q=reputation%3A%22malicious%22+AND+%28behaviors.label%3A%22http+exploit%22+OR+behaviors.label%3A%22http+scan%22%29&page=1):
141
141
142
142
```bash
143
143
reputation:"malicious" AND (behaviors.label:"http exploit" OR behaviors.label:"http scan")
144
144
```
145
145
146
-
You can also search for malicious IPs reported with high or medium confidence for HTTP exploitation and not located in France:
146
+
You can also [search for malicious IPs reported with high or medium confidence for HTTP exploitation and not located in France](https://app.crowdsec.net/cti?q=reputation%3A%22malicious%22+AND+%28confidence%3A%22high%22+OR+confidence%3A%22medium%22%29+AND+behaviors.label%3A%22http+exploit%22+AND+location.country%3A%22fr%22&page=1):
147
147
148
148
```bash
149
149
reputation:"malicious" AND (confidence:"high" OR confidence:"medium") AND behaviors.label:"http exploit" AND location.country:"fr"
150
150
```
151
151
152
-
It is possible to search for malicious IPs reported for HTTP exploitation or HTTP scan but not SSH bruteforce:
152
+
It is possible [to search for malicious IPs reported for HTTP exploitation or HTTP scan but not SSH bruteforce](https://app.crowdsec.net/cti?q=reputation%3Amalicious+AND+%28%28behaviors.label%3A%22http+exploit%22+OR+behaviors.label%3A%22http+scan%22%29+AND+NOT+behaviors.label%3A%22ssh+bruteforce%22%29&page=1):
153
153
154
154
```bash
155
155
reputation:malicious AND ((behaviors.label:"http exploit" OR behaviors.label:"http scan") AND NOT behaviors.label:"ssh bruteforce")
@@ -177,7 +177,7 @@ You can query any IPs targeting HTTP protocol:
177
177
behaviors.label:HTTP\*
178
178
```
179
179
180
-
It is possible to search for IP addresses reported for at least one CVE and not classified as a public scanner:
180
+
It is possible [to search for IP addresses reported for at least one CVE and not classified as a public scanner](https://app.crowdsec.net/cti?q=cves%3ACVE-*+AND+NOT+classifications.classifications.name%3Ascanner*&page=1):
181
181
182
182
```bash
183
183
cves:CVE-* AND NOT classifications.classifications.name:scanner*
@@ -193,13 +193,13 @@ Do not enclose regular expression queries between double quotes.
193
193
194
194
Regular expression must be enclosed between `/`.
195
195
196
-
For example, you can query any IPs reported for a CVE published in 2024:
196
+
For example, you can [query any IPs reported for a CVE published in 2024](https://app.crowdsec.net/cti?q=cves%3A%2FCVE-2024-%5B0-9%5D%2B%2F&page=1):
197
197
198
198
```bash
199
199
cves:/CVE-2024-[0-9]+/
200
200
```
201
201
202
-
Or you can search for any IPs belonging to Amazon or Google:
202
+
Or you can [search for any IPs belonging to Amazon or Google](https://app.crowdsec.net/cti?q=as_name%3A%2F%28amazon-02%7Cgoogle%29%2F&page=1):
0 commit comments