Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New User Agents to Block #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

vxsh4d0w
Copy link

@vxsh4d0w vxsh4d0w commented Mar 3, 2021

Added new rule rules to block nikto user agent and sql injections attempts

Added new rule rules to block nikto user agent and sql injections attempts
@vxsh4d0w vxsh4d0w changed the title Added new rule rules Added new rules Mar 3, 2021
@drego85
Copy link
Owner

drego85 commented Mar 24, 2021

So, the new UAs to block would be:

libwww-perl
wget
python
nikto
curl
scan
java
winhttp
HTTrack
clshttp
archiver
loader
email
harvest
extract
grab
miner

Thanks for this very interesting list. But I don't think I want to block them all.

For example "curl" or "wget" are often used to invoke wp-cron.php and update WP Core, Themes or Plugin.

What software uses "email", "harvest", "archiver" as user agent? I find nothing potentially malicious...

@Mte90
Copy link

Mte90 commented Mar 24, 2021

A website that use wget to run wp-cron deserve to be blocked as there are better ways to do it in a more performant way without using a call to a webserver 😂

The wp-cron file can be executed with php from cli or with wp-cli https://developer.wordpress.org/cli/commands/cron/event/run/

@drego85
Copy link
Owner

drego85 commented Mar 24, 2021

@Mte90 you are absolutely right!

But the project was born with the intention of not being invasive; I don't want to risk interrupting the update processes of some installations.

@Mte90
Copy link

Mte90 commented Mar 24, 2021

Maybe you can do 2 sets of rules like basic and advanced

@drego85
Copy link
Owner

drego85 commented Mar 24, 2021

Good point!

@drego85
Copy link
Owner

drego85 commented Mar 25, 2021

We may select other user agents of interest from: https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker

@stramargio
Copy link

We may select other user agents of interest from: https://github.com/mitchellkrogza/apache-ultimate-bad-bot-blocker

Here too: https://perishablepress.com/ultimate-htaccess-blacklist/

@drego85
Copy link
Owner

drego85 commented Apr 7, 2021

Other user agent I would like to add:

Nuclei - Open-source project (github.com/projectdiscovery/nuclei)

@drego85 drego85 changed the title Added new rules New User Agents to Block Apr 7, 2021
@drego85
Copy link
Owner

drego85 commented May 10, 2021

Another UA likely to be blocked:

ltx71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants