Crowdsec provides a powerful and easy-to-use security solution for protecting your servers, applications, and networks from a wide range of cyber threats. It includes a number of features and functionalities that allow you to detect and block malicious traffic in real time, including the use of crowd-sourced intelligence and a range of decision making algorithms.
One of the key features of Crowdsec is its ability to make decisions based on crowd-sourced intelligence. This means that, rather than relying solely on its own internal data sources, Crowdsec can tap into data from a wide range of sources around the world, including other users of the platform and public data sources.
Crowdsec’s List decisions from LAPI feature provides an efficient way
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 |
[root@zodiac-u8-dedic ~]# cscli decisions list ╭───────┬──────────┬──────────────────┬───────────────────────────┬────────┬─────────┬───────────────┬────────┬──────────────────┬──────────╮ │ ID │ Source │ Scope:Value │ Reason │ Action │ Country │ AS │ Events │ expiration │ Alert ID │ ├───────┼──────────┼──────────────────┼───────────────────────────┼────────┼─────────┼───────────────┼────────┼──────────────────┼──────────┤ │ 14990 │ crowdsec │ Ip:61.177.173.46 │ crowdsecurity/ssh-slow-bf │ ban │ CN │ 4134 Chinanet │ 11 │ 3h57m5.4215347s │ 4 │ │ 1 │ crowdsec │ Ip:61.177.173.53 │ crowdsecurity/ssh-bf │ ban │ CN │ 4134 Chinanet │ 7 │ 3h53m30.4675242s │ 1 │ ╰───────┴──────────┴──────────────────┴───────────────────────────┴────────┴─────────┴───────────────┴────────┴──────────────────┴──────────╯ 1 duplicated entries skipped [root@zodiac-u8-dedic ~]# cscli alerts inspect -d 5 FATA[08-02-2023 11:01:19] can't find alert with id 5: API error: object not found [root@zodiac-u8-dedic ~]# cscli alerts inspect -d 1 ################################################################################################ - ID : 1 - Date : 2023-02-08T15:54:37Z - Machine : 5869b8362778408f83935b13887c3f5dAwipi2nes2GdrLyu - Simulation : false - Reason : crowdsecurity/ssh-bf - Events Count : 7 - Scope:Value: Ip:61.177.173.53 - Country : CN - AS : Chinanet - Begin : 2023-02-08 15:54:19.223959266 +0000 UTC - End : 2023-02-08 15:54:36.759955939 +0000 UTC - Active Decisions : ╭────┬──────────────────┬────────┬──────────────────┬──────────────────────╮ │ ID │ scope:value │ action │ expiration │ created_at │ ├────┼──────────────────┼────────┼──────────────────┼──────────────────────┤ │ 1 │ Ip:61.177.173.53 │ ban │ 3h53m15.0865461s │ 2023-02-08T15:54:37Z │ ╰────┴──────────────────┴────────┴──────────────────┴──────────────────────╯ - Events : - Date: 2023-02-08 10:54:20 +0000 UTC ╭─────────────────┬──────────────────────╮ │ Key │ Value │ ├─────────────────┼──────────────────────┤ │ ASNNumber │ 4134 │ ├─────────────────┼──────────────────────┤ │ ASNOrg │ Chinanet │ ├─────────────────┼──────────────────────┤ │ IsInEU │ false │ ├─────────────────┼──────────────────────┤ │ IsoCode │ CN │ ├─────────────────┼──────────────────────┤ │ SourceRange │ 61.177.128.0/17 │ ├─────────────────┼──────────────────────┤ │ datasource_path │ /var/log/secure │ ├─────────────────┼──────────────────────┤ │ datasource_type │ file │ ├─────────────────┼──────────────────────┤ │ log_type │ ssh_failed-auth │ ├─────────────────┼──────────────────────┤ │ machine │ zodiac-u8-dedic │ ├─────────────────┼──────────────────────┤ │ service │ ssh │ ├─────────────────┼──────────────────────┤ │ source_ip │ 61.177.173.53 │ ├─────────────────┼──────────────────────┤ │ target_user │ root │ ├─────────────────┼──────────────────────┤ │ timestamp │ 2023-02-08T10:54:20Z │ ╰─────────────────┴──────────────────────╯ - Date: 2023-02-08 10:54:22 +0000 UTC ╭─────────────────┬──────────────────────╮ │ Key │ Value │ ├─────────────────┼──────────────────────┤ │ ASNNumber │ 4134 │ ├─────────────────┼──────────────────────┤ │ ASNOrg │ Chinanet │ ├─────────────────┼──────────────────────┤ │ IsInEU │ false │ ├─────────────────┼──────────────────────┤ │ IsoCode │ CN │ ├─────────────────┼──────────────────────┤ │ SourceRange │ 61.177.128.0/17 │ ├─────────────────┼──────────────────────┤ │ datasource_path │ /var/log/secure │ ├─────────────────┼──────────────────────┤ │ datasource_type │ file │ ├─────────────────┼──────────────────────┤ │ log_type │ ssh_failed-auth │ ├─────────────────┼──────────────────────┤ │ machine │ zodiac-u8-dedic │ ├─────────────────┼──────────────────────┤ │ service │ ssh │ ├─────────────────┼──────────────────────┤ │ source_ip │ 61.177.173.53 │ ├─────────────────┼──────────────────────┤ │ target_user │ root │ ├─────────────────┼──────────────────────┤ │ timestamp │ 2023-02-08T10:54:22Z │ ╰─────────────────┴──────────────────────╯ - Date: 2023-02-08 10:54:25 +0000 UTC ╭─────────────────┬──────────────────────╮ │ Key │ Value │ ├─────────────────┼──────────────────────┤ │ ASNNumber │ 4134 │ ├─────────────────┼──────────────────────┤ │ ASNOrg │ Chinanet │ ├─────────────────┼──────────────────────┤ │ IsInEU │ false │ ├─────────────────┼──────────────────────┤ │ IsoCode │ CN │ ├─────────────────┼──────────────────────┤ │ SourceRange │ 61.177.128.0/17 │ ├─────────────────┼──────────────────────┤ │ datasource_path │ /var/log/secure │ ├─────────────────┼──────────────────────┤ │ datasource_type │ file │ ├─────────────────┼──────────────────────┤ │ log_type │ ssh_failed-auth │ ├─────────────────┼──────────────────────┤ │ machine │ zodiac-u8-dedic │ ├─────────────────┼──────────────────────┤ │ service │ ssh │ ├─────────────────┼──────────────────────┤ │ source_ip │ 61.177.173.53 │ ├─────────────────┼──────────────────────┤ │ target_user │ root │ ├─────────────────┼──────────────────────┤ │ timestamp │ 2023-02-08T10:54:25Z │ ╰─────────────────┴──────────────────────╯ - Date: 2023-02-08 10:54:32 +0000 UTC ╭─────────────────┬──────────────────────╮ │ Key │ Value │ ├─────────────────┼──────────────────────┤ │ ASNNumber │ 4134 │ ├─────────────────┼──────────────────────┤ │ ASNOrg │ Chinanet │ ├─────────────────┼──────────────────────┤ │ IsInEU │ false │ ├─────────────────┼──────────────────────┤ │ IsoCode │ CN │ ├─────────────────┼──────────────────────┤ │ SourceRange │ 61.177.128.0/17 │ ├─────────────────┼──────────────────────┤ │ datasource_path │ /var/log/secure │ ├─────────────────┼──────────────────────┤ │ datasource_type │ file │ ├─────────────────┼──────────────────────┤ │ log_type │ ssh_failed-auth │ ├─────────────────┼──────────────────────┤ │ machine │ zodiac-u8-dedic │ ├─────────────────┼──────────────────────┤ │ service │ ssh │ ├─────────────────┼──────────────────────┤ │ source_ip │ 61.177.173.53 │ ├─────────────────┼──────────────────────┤ │ target_user │ root │ ├─────────────────┼──────────────────────┤ │ timestamp │ 2023-02-08T10:54:32Z │ ╰─────────────────┴──────────────────────╯ - Date: 2023-02-08 10:54:34 +0000 UTC ╭─────────────────┬──────────────────────╮ │ Key │ Value │ ├─────────────────┼──────────────────────┤ │ ASNNumber │ 4134 │ ├─────────────────┼──────────────────────┤ │ ASNOrg │ Chinanet │ ├─────────────────┼──────────────────────┤ │ IsInEU │ false │ ├─────────────────┼──────────────────────┤ │ IsoCode │ CN │ ├─────────────────┼──────────────────────┤ │ SourceRange │ 61.177.128.0/17 │ ├─────────────────┼──────────────────────┤ │ datasource_path │ /var/log/secure │ ├─────────────────┼──────────────────────┤ │ datasource_type │ file │ ├─────────────────┼──────────────────────┤ │ log_type │ ssh_failed-auth │ ├─────────────────┼──────────────────────┤ │ machine │ zodiac-u8-dedic │ ├─────────────────┼──────────────────────┤ │ service │ ssh │ ├─────────────────┼──────────────────────┤ │ source_ip │ 61.177.173.53 │ ├─────────────────┼──────────────────────┤ │ target_user │ root │ ├─────────────────┼──────────────────────┤ │ timestamp │ 2023-02-08T10:54:34Z │ ╰─────────────────┴──────────────────────╯ - Date: 2023-02-08 10:54:36 +0000 UTC ╭─────────────────┬──────────────────────╮ │ Key │ Value │ ├─────────────────┼──────────────────────┤ │ ASNNumber │ 4134 │ ├─────────────────┼──────────────────────┤ │ ASNOrg │ Chinanet │ ├─────────────────┼──────────────────────┤ │ IsInEU │ false │ ├─────────────────┼──────────────────────┤ │ IsoCode │ CN │ ├─────────────────┼──────────────────────┤ │ SourceRange │ 61.177.128.0/17 │ ├─────────────────┼──────────────────────┤ │ datasource_path │ /var/log/secure │ ├─────────────────┼──────────────────────┤ │ datasource_type │ file │ ├─────────────────┼──────────────────────┤ │ log_type │ ssh_failed-auth │ ├─────────────────┼──────────────────────┤ │ machine │ zodiac-u8-dedic │ ├─────────────────┼──────────────────────┤ │ service │ ssh │ ├─────────────────┼──────────────────────┤ │ source_ip │ 61.177.173.53 │ ├─────────────────┼──────────────────────┤ │ target_user │ root │ ├─────────────────┼──────────────────────┤ │ timestamp │ 2023-02-08T10:54:36Z │ |