Support

Admin Tools

#29291 PHP File Change Scanner

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 Friday, 30 March 2018 17:17 CDT

shields
Is there a way to mark all of the files Safe all at once when doing a new installation?

I like to do a file change scan immediately after installing a new Joomla site with Admin Tools. That way obviously, I can run a report and quickly see if the site has had malicious code added. However when trying to mark everything safe...I have to go through about 780 pages with 100 items selected at a time. Selecting ALL just causes the page to time out...

nicholas
Akeeba Staff
Manager
You can neither select all files as safe nor do you have to go through all 780 pages. You only need to mark files with a non-zero threat score as safe. You will see that this is just 3-4 pages. Just sort the results list by threat score descending :)

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!

shields
So am I right in assuming that I'm using PHP file scanner incorrectly? My thought was to establish a scan on a new installation and the run the automated PHP file change scan keeping a lookout for new or changed files so that I can address those changes directly in the event of an incident?

nicholas
Akeeba Staff
Manager
You are 99% there but not entirely correct.

Yes, you should run an initial scan and start marking files as safe, exactly as you have been doing. With one small change: instead of trying to mark all .php files as safe you should only do that for the files with a non-zero threat score.

The files with a zero threat score don't need to be marked as safe, they are implicitly safe (zero threat score). You will only see these zero threat score files popping up in a future report only if their content changes (modified). This will happen regardless of the Mark As Safe flag: when a file's contents change it's marked as Modified and it gets reported. That's why I'm telling you that marking zero threat score files as safe is wasted time. You just bloat the database and waste your time for no reason :)

So, after marking the non-zero threat score files as safe you can of course be on the lookout for modified files. Better yet, run the scanner before updating extensions (or Joomla itself) and again right after. Any files marked as changed on the file scan before need to be manually reviewed. Any files marked as suspicious on the file scan after can be marked as safe. Any files marked as changed on the scan right after can be ignored (you just installed them, that's why they are marked as changed).

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!