Support

Admin Tools

#36266 Reporting for WAF Blocked Requests?

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Thursday, 06 January 2022 20:17 CST

nstine1209

Is there a way to generate a report (preferrably monthly) of the requests blocked by the WAF? Much like what you see in the Dashboard when you are logged in to the backend of Joomla.

I couldn't find anything about this in the documentation.

Thank you!

nicholas
Akeeba Staff
Manager

You cannot do that and you should not do that. The number of blocked attacks IS NOT A VALID KEY PERFORMANCE INDICATOR FOR SECURITY. See https://www.akeeba.com/documentation/admin-tools/atlotsofexceptions.html 

The TL;DR version is that the number of attacks against your site varies over time for reasons unrelated to anything that you are doing. One month your site may be getting probed by an attacker and you will see, let's say, 100,000 attacks being blocked. The next month the attacker is no longer probing your site, having determined they cannot find a viable exploit, and you see only 50 attacks being blocked. Treating the number of blocked requests as a KPI would mislead you into thinking that your security is not working when, in fact, the reality is the exact opposite.

I was a business consultant before I started this software development company. I understand KPIs and how a bad metric can lead to perilous decisions being made. That's why I made sure I am never going to give you a bad KPI which would mislead you into shooting your feet.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

nstine1209

Thank you for the replyΒ Nicholas. I think you misunderstand my question. I am NOT looking to report for KPI purposes. I agree, the number of attacks blocked each month is irrelevant.

I am looking for some type of report just to show that the WAF is working... the number of attacks blocked is not important. It is only important to show that some attacks were blocked.

Other WAFs I have used have had this feature. Is there any reporting feature or data export?

Thank you.Β 

nicholas
Akeeba Staff
Manager

As I explicitly stated in my previous reply, the number of attacks blocked does NOT prove or disprove that the WAF is working. Even though you are saying you don't want to use it as a KPI, what you want to use it for is the very definition of a KPI.

Again: any attack detected will be blocked. However, you do not know how many attacks are launched against your site, nor do you have any control over them. Therefore reporting just the number of blocked requests (attacks stopped) tells you nothing at all.

If one month you have 100,000 blocked requests and the next month you have 0 does it mean that the WAF stopped working? It's actually impossible to tell! In most likelihood one month you were under attack / being probed by an attacker and the next month nobody attacked or tried to probe your site. Or they kept on doing that from the same IP addresses which were already blocked, thereby extending the time they are blocked. Or your host noticed a pattern of malicious requests and blocks them at the web host level. Or you are using a CDN in front of your site which is now blocking these malicious requests.

That's what I am saying all along. The number of blocked requests does not tell you ANYTHING.

If you really want to measure that you can of course look at the number of records in the #__admintools_exceptions table which records the blocked requests. Do note that by default the access from blocked IPs will NOT be recorded. You can configure that in the Configure WAF page. However, spamming your database table with possibly hundreds of thousands of blocked requests just to be able to report a high number at the expense of site performance sounds a lot like shooting your feet.

Yes, I am aware that other WAFs report the number of blocked requests (and we also do in the Admin Tools Control Panel page) but it's NOT a metric that tells you anything useful. Zero blocked requests does NOT necessarily mean your WAF is not working.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

nstine1209

What I am gathering from your response then, is that you do NOT provide an external report that mimics what is seen in theΒ the Admin Tools Control Panel page.

Thank you. That was what I was asking all along.

nicholas
Akeeba Staff
Manager

Okay, it was unclear what you were asking.

No, we do not provide an external report. You can always copy the information and the graph from the Control Panel.

The data source for this information is the #__admintools_exceptions table. Over there you will see all blocked requests with a date and time stamp. You can pull that information in Excel (either with a direct MySQL data source or by exporting the table to CSV using phpMyAdmin on your host's control panel) and create all the graphs and reports you need. In my experience as a business consultant, trying to implement reports in whatever software is always going to be a very poor attempt at what Excel (and Apple Numbers, LibreOffice Calc and other spreadsheets) can provide.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

nstine1209

Thank you! This answers my question. I hope you have a lovely day.

nicholas
Akeeba Staff
Manager

Thank you and have a great day!

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!