Skip to main content

Crowdsec

Installation

Commandes utiles

Lister les décisions locales

cscli decisions list                                                                                                                                                                                      Wed Apr  5 15:28:48 2023

+----+----------+--------------------------------------------+--------------------------------------+--------+---------+----------------------------------------------------+--------+--------------------+----------+
| ID |  Source  |                Scope:Value                 |                Reason                | Action | Country |                         AS                         | Events |     expiration     | Alert ID |
+----+----------+--------------------------------------------+--------------------------------------+--------+---------+----------------------------------------------------+--------+--------------------+----------+
| 18 | crowdsec | Ip:2a01:cb00:8906:7e00:5401:1966:20ac:69ad | crowdsecurity/http-crawl-non_statics | ban    | FR      | 3215 Orange                                        | 89     | 3h59m43.090461234s | 18       |
| 17 | crowdsec | Ip:92.175.107.123                          | crowdsecurity/http-crawl-non_statics | ban    | FR      | 3215 Orange                                        | 49     | 3h59m13.25235483s  | 17       |
| 16 | crowdsec | Ip:79.81.205.138                           | crowdsecurity/http-crawl-non_statics | ban    | FR      | 15557 Societe Francaise Du Radiotelephone - SFR SA | 66     | 3h54m44.194349115s | 16       |
| 15 | crowdsec | Ip:212.23.165.14                           | crowdsecurity/http-crawl-non_statics | ban    | FR      | 12566 Societe Francaise Du Radiotelephone - SFR SA | 46     | 3h52m52.665948387s | 15       |
| 14 | crowdsec | Ip:83.206.19.140                           | crowdsecurity/http-crawl-non_statics | ban    | FR      | 3215 Orange                                        | 43     | 3h52m47.901151072s | 14       |
| 13 | crowdsec | Ip:84.55.185.70                            | crowdsecurity/http-crawl-non_statics | ban    | FR      | 9003 Societe Francaise Du Radiotelephone - SFR SA  | 42     | 3h51m2.636570684s  | 13       |
| 12 | crowdsec | Ip:194.254.79.4                            | crowdsecurity/http-xss-probbing      | ban    | FR      | 2200 Renater                                       | 6      | 3h49m7.676288661s  | 12       |
| 4  | crowdsec | Ip:2a01:cb11:6a0:2d00:bfe7:82c4:c724:9eb7  | crowdsecurity/http-crawl-non_statics | ban    | FR      | 3215 Orange                                        | 91     | 3h46m13.472584547s | 4        |
| 3  | crowdsec | Ip:176.168.162.101                         | crowdsecurity/http-crawl-non_statics | ban    | FR      | 5410 Bouygues Telecom SA                           | 46     | 3h45m27.591191061s | 3        |
| 2  | crowdsec | Ip:2001:41d0:302:1000::ca9                 | crowdsecurity/http-crawl-non_statics | ban    | GB      | 16276 OVH SAS                                      | 47     | 3h43m25.263040245s | 2        |
| 1  | crowdsec | Ip:134.158.79.158                          | crowdsecurity/http-crawl-non_statics | ban    | FR      | 789 Renater                                        | 45     | 3h41m26.974324678s | 1        |
+----+----------+--------------------------------------------+--------------------------------------+--------+---------+----------------------------------------------------+--------+--------------------+----------+
7 duplicated entries skipped

Lister les alertes

cscli alerts list
╭────┬───────────────────────────────────────────┬───────────────────────────────────────────┬─────────┬────────────────────────────────────────────────────┬───────────┬─────────────────────────────────────────╮
│ ID │                   value                   │                  reason                   │ country │                         as                         │ decisions │               created_at                │
├────┼───────────────────────────────────────────┼───────────────────────────────────────────┼─────────┼────────────────────────────────────────────────────┼───────────┼─────────────────────────────────────────┤
│ 15 │ Ip:212.23.165.14                          │ crowdsecurity/http-crawl-non_statics      │ FR      │ 12566 Societe Francaise Du Radiotelephone - SFR SA │ ban:1     │ 2023-04-05 13:21:28.67736235 +0000 UTC  │
│ 14 │ Ip:83.206.19.140                          │ crowdsecurity/http-crawl-non_statics      │ FR      │ 3215 Orange                                        │ ban:1     │ 2023-04-05 13:21:35.442813467 +0000 UTC │
│ 13 │ Ip:84.55.185.70                           │ crowdsecurity/http-crawl-non_statics      │ FR      │ 9003 Societe Francaise Du Radiotelephone - SFR SA  │ ban:1     │ 2023-04-05 13:19:50.40175296 +0000 UTC  │
│ 12 │ Ip:194.254.79.4                           │ crowdsecurity/http-xss-probbing           │ FR      │ 2200 Renater                                       │ ban:1     │ 2023-04-05 13:17:56.216060733 +0000 UTC │
│ 11 │ Ip:194.254.79.4                           │ crowdsecurity/http-cve-2021-41773         │ FR      │ 2200 Renater                                       │ ban:1     │ 2023-04-05 13:17:55.755095951 +0000 UTC │
│ 10 │ Ip:194.254.79.4                           │ crowdsecurity/http-path-traversal-probing │ FR      │ 2200 Renater                                       │ ban:1     │ 2023-04-05 13:17:54.292927884 +0000 UTC │
│ 9  │ Ip:194.254.79.4                           │ crowdsecurity/http-sensitive-files        │ FR      │ 2200 Renater                                       │ ban:1     │ 2023-04-05 13:17:52.403785142 +0000 UTC │
│ 8  │ Ip:194.254.79.4                           │ crowdsecurity/http-crawl-non_statics      │ FR      │ 2200 Renater                                       │ ban:1     │ 2023-04-05 13:17:52.017817973 +0000 UTC │
│ 7  │ Ip:194.254.79.4                           │ crowdsecurity/http-probing                │ FR      │ 2200 Renater                                       │ ban:1     │ 2023-04-05 13:17:52.309312166 +0000 UTC │
│ 6  │ Ip:194.254.79.4                           │ crowdsecurity/http-bad-user-agent         │ FR      │ 2200 Renater                                       │ ban:1     │ 2023-04-05 13:17:52.017572598 +0000 UTC │
│ 5  │ Ip:83.206.19.140                          │ crowdsecurity/http-crawl-non_statics      │ FR      │ 3215 Orange                                        │ ban:1     │ 2023-04-05 13:17:28.44454104 +0000 UTC  │
│ 4  │ Ip:2a01:cb11:6a0:2d00:bfe7:82c4:c724:9eb7 │ crowdsecurity/http-crawl-non_statics      │ FR      │ 3215 Orange                                        │ ban:1     │ 2023-04-05 13:14:35.443575184 +0000 UTC │
│ 3  │ Ip:176.168.162.101                        │ crowdsecurity/http-crawl-non_statics      │ FR      │ 5410 Bouygues Telecom SA                           │ ban:1     │ 2023-04-05 13:14:13.380354035 +0000 UTC │
│ 2  │ Ip:2001:41d0:302:1000::ca9                │ crowdsecurity/http-crawl-non_statics      │ GB      │ 16276 OVH SAS                                      │ ban:1     │ 2023-04-05 13:12:10.793700983 +0000 UTC │
│ 1  │ Ip:134.158.79.158                         │ crowdsecurity/http-crawl-non_statics      │ FR      │ 789 Renater                                        │ ban:1     │ 2023-04-05 13:10:13.259428338 +0000 UTC │
╰────┴───────────────────────────────────────────┴───────────────────────────────────────────┴─────────┴────────────────────────────────────────────────────┴───────────┴─────────────────────────────────────────╯

Supprimer une décision

cscli decisions delete -r 1.2.3.0/24
cscli decisions delete -i 1.2.3.4
cscli decisions delete --id 42