Skip to content

Commit 149fab0

Browse files
committed
Add hyperlink in cti_search documentation
1 parent 1fca2a2 commit 149fab0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

crowdsec-docs/unversioned/cti_api/search_queries.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,25 +71,25 @@ Search is case insensitive.
7171

7272
:::
7373

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):
7575

7676
```bash
7777
reputation:"malicious"
7878
```
7979

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):
8181

8282
```bash
8383
cves:"CVE-2021-26086"
8484
```
8585

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):
8787

8888
```bash
8989
reputation:"malicious" AND cves:"CVE-2021-26086"
9090
```
9191

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 `.`:
9393

9494
```bash
9595
classifications.classifications.label:"TOR" AND behaviors.label:"http exploit"
@@ -107,7 +107,7 @@ Always use `AND`, `OR`, `NOT` in uppercase to ensure correct results.
107107

108108
The `AND` operator requires expression from each side to be `true`.
109109

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):
111111

112112
```bash
113113
reputation:"malicious" AND location.country:"FR"
@@ -117,7 +117,7 @@ reputation:"malicious" AND location.country:"FR"
117117

118118
The `OR` operator requires at least one of the expressions from each side to be `true`.
119119

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):
121121

122122
```bash
123123
reputation:"malicious" OR reputation:"suspicious"
@@ -127,7 +127,7 @@ reputation:"malicious" OR reputation:"suspicious"
127127

128128
The `NOT` operator excludes documents containing the specified term from search results.
129129

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):
131131

132132
```bash
133133
reputation:"malicious" AND NOT location.country:"FR"
@@ -137,19 +137,19 @@ reputation:"malicious" AND NOT location.country:"FR"
137137

138138
It is possible to combine many operators in a single query.
139139

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):
141141

142142
```bash
143143
reputation:"malicious" AND (behaviors.label:"http exploit" OR behaviors.label:"http scan")
144144
```
145145

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):
147147

148148
```bash
149149
reputation:"malicious" AND (confidence:"high" OR confidence:"medium") AND behaviors.label:"http exploit" AND location.country:"fr"
150150
```
151151

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):
153153

154154
```bash
155155
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:
177177
behaviors.label:HTTP\*
178178
```
179179
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):
181181
182182
```bash
183183
cves:CVE-* AND NOT classifications.classifications.name:scanner*
@@ -193,13 +193,13 @@ Do not enclose regular expression queries between double quotes.
193193
194194
Regular expression must be enclosed between `/`.
195195
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):
197197
198198
```bash
199199
cves:/CVE-2024-[0-9]+/
200200
```
201201
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):
203203
204204
```bash
205205
as_name:/(amazon-02|google)/

0 commit comments

Comments
 (0)