Support

Akeeba Backup for Joomla!

#35410 Is it a Malicious File or a False-Positive?

Posted in ‘Akeeba Backup 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
Akeeba Backup version
n/a

Latest post by foxywd on Tuesday, 22 June 2021 04:32 CDT

foxywd

I got an emain yesterday from my hosting provider with a warning of file inclusion and it was directly to one of akeeba backup folders. Check:

This is an automated alert to inform you that we have detected a malicious attempt to access your account via http or ftp on our server.
We have put the following content into quarantine as we believe it contains viruses or other malicious code. If you feel this has been in error and
your file is false-positive (innocent), please submit a ticket to us and we will be happy to assist:

 '[RFI Exploit [P1419]]': /public_html/administrator/components/com_akeeba/backup/b074232b.sql

I have also installed Admin Tools Pro and I didn't get any DFI Shield notification. So I wonder, is it a real malware or a false-positive?

Thanks

nicholas
Akeeba Staff
Manager

This is a false positive.

The administrator/components/com_akeeba/backup folder on your site is the default backup output directory. This is where Akeeba Backup's backup archives are created. This is also where temporary files are created. When taking a backup, one of the steps is the database backup. Akeeba Backup writes the database dump into a temporary .sql file. When that file is big enough (according to your Configuration options, default is around 256KB) it is added to the backup archive and removed from your site.

It looks like your host is idiotically scanning your site for files with a .sql extension. If these files exist and have SQL (database) commands β€” in other words, their EXPECTED FILE CONTENTS, it sends you an email that these non-executable text files are a "virus" (executable code) or malicious. In other words, your host is run by amateurs who can't tell a non-executable SQL file from an executable virus/malware file. To put things in perspective, Joomla itself and all of its extensions include .sql files for the database installation and update. It's perfectly safe since .sql files CAN NOT execute by themselves. They'd require, you guessed it, executable PHP code to load them and execute them against your site's database. Saying that a .sql file is a virus or malicious file is like claiming that your car's clutch is a weapon used by terrorists just because a terrorist could use it to drive a car into a crowd. In short, it's beyond absurd. I'd say it's utterly moronic, if I wanted to be charitable.

My professional recommendation is to IMMEDIATELY look for a new host, preferably one ran by people who actually know what they are doing.

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!

foxywd

Hahaha... I could feel your indignation about this.

Thanks a lot for your answer and complete explanation. I appreciate it.

And of course we'll start looking for a better option of hosting. Thanks for that as well.

Have a great day :)

nicholas
Akeeba Staff
Manager

You're welcome :)

Some background info for people who might stumble into this public ticket. We write our own file scanner but we at least try really hard to not misrepresent the significance of its results. Scanning source code is very much like scanning poetry and trying to derive its meaning. Computers really suck at it β€” at least right now.

When we see a host that communicates a scanner's results as something definitive we do get upset. It's not because we'll spend an extra five minutes to explain why the file is not malicious. The main problem is that a host doing that results in eroding the trust in any kind of security scanner and security solution. Users start ignoring solid security advice which results in them getting hacked. This undermines the trust in the CMS. Many users will end up using a managed solution like Wix or Squarespace. This is a net loss, first and foremost for the hosting company.

Further to that, we have seen a very strong correlation between bad hosting and hosts which communicate file scanner results as something definitive. Instead of tightening security where it matters (analysing traffic patterns, defence against known attacks, monitoring email traffic to avoid spam etc) they go for the "cop out" solution of blindly trusting a file scanner which would report anything and everything useful as potentially dangerous. Instead of analysing its results to gain insight, block actually harmful scripts and whitelist innocuous files they choose to communicate everything as a definitive issue to their clients, essentially shifting the responsibility of maintaining a safe hosting environment from the hosting company to its users. This is just plain dumb and will most definitely backfire.

You'd think that both points would be fairly obvious to someone who's providing hosting services for a living. And yet, some of them just don't get it. They are happy cutting corners in the name of increasing their short term bottom line profit. Sigh...

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!

foxywd

Good points as well. :) Thanks.

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!