bunkerity / bunkerweb

🛡️ Open-source and next-generation Web Application Firewall (WAF)
https://www.bunkerweb.io
GNU Affero General Public License v3.0
6.68k stars 380 forks source link

[nginx-ultimate-bad-bot-blocker] and [Fail2Ban.WebExploits] and [teler] #38

Closed thelittlefireman closed 3 years ago

thelittlefireman commented 4 years ago

As a memo, these are some useful repos that could be added in bunkerized maybe ?

https://github.com/kitabisa/teler

https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker

https://github.com/bigalownz/Fail2Ban.WebExploits

Some tests need to be done to avoid false positive with wordPress and other common sites.

Thanks :) Thomas

fl0ppy-d1sk commented 4 years ago

Hello @thelittlefireman, thanks for your suggestion.

From what I understand, teler is only detecting and not preventing. The database of resources is hosted at kitabisa/teler-resources and consists of :

We already download bad User-Agent list from nginx-ultimate-bad-bot-blocker. They also have bad IP and referrer lists, I will look into it deeper.

The Fail2Ban.WebExploits list contains too much generic urls like /admin, /blog, /demo, ... and will surely lead to FPs as you said. Fail2ban setup with 404 error codes should be enough IMO.

Let's keep this issue open while we integrate interesting stuff from these projects.

thelittlefireman commented 4 years ago

Thanks a lot, that's perfect :)

fl0ppy-d1sk commented 3 years ago

Hello @thelittlefireman,

We added the "bad referrers" blacklist that can be set with the BLOCK_REFERRER environment variable (default to yes). We also added the Crawler-Detect "bad User-Agents" to the existing one. Thanks !