Hello community
I want to secure my vaultwarden with crowdsec because it’s awesome.
I have already installed vaultwarden in docker and it’s alreasy logging like this:
cat /var/log/vaultwarden/vaultwarden.log
[2024-04-03 18:44:08.371][vaultwarden::api::identity][ERROR] Username or password is incorrect. Try again. IP: 185.16.53.93. Username: dfgdfgdf@gmail.com.
[2024-04-03 18:44:09.346][vaultwarden::api::identity][ERROR] Username or password is incorrect. Try again. IP: 185.16.53.93. Username: dfgdfgdf@gmail.com.
[2024-04-03 18:44:10.290][vaultwarden::api::identity][ERROR] Username or password is incorrect. Try again. IP: 185.16.53.93. Username: dfgdfgdf@gmail.com.
Looks great but crowdsec is doing nothing. The acquis.yaml looks like this
#Generated acquisition file - wizard.sh (service: ssh) / files :
journalctl_filter:
- _SYSTEMD_UNIT=ssh.service
labels:
type: syslog
---
filenames:
- /var/log/vaultwarden/vaultwarden.log
labels:
type: Vaultwarden
cscli metris looks like this:
I already tried to bruteforce myself but after 10 retries vaultwarden says
[2024-04-03 18:44:18.027][vaultwarden::ratelimit][ERROR] Too many login requests
But crowdsec is doing nothing
root@Test:~# cscli decisions list
No active decisions
cscli explain
├ s00-raw
| ├ 🔴 crowdsecurity/syslog-logs
| └ 🟢 crowdsecurity/non-syslog (+5 ~8)
├ s01-parse
| ├ 🔴 crowdsecurity/sshd-logs
| └ 🟢 Dominic-Wagner/vaultwarden-logs (+11 ~2)
├ s02-enrich
| ├ 🟢 crowdsecurity/dateparse-enrich (+2 ~2)
| ├ 🟢 crowdsecurity/geoip-enrich (+13)
| └ 🟢 crowdsecurity/whitelists (unchanged)
├-------- parser success 🟢
├ Scenarios
├ 🟢 Dominic-Wagner/vaultwarden-bf
└ 🟢 Dominic-Wagner/vaultwarden-bf_user-enum
Any ideas what i am doing wrong?
Thanks for your help!