Answer the question
In order to leave comments, you need to log in
Unauthorized access to the site, how to protect yourself?
Hello!
There was a suspicion that the attackers gained access to the distribution kit with the site.
I checked the antivirus on the hosting (ClamAV), nothing was found.
Changed passwords from the admin panel and ftp.
The hoster recommends checking the scripts, I don't know how to do this.
It may have been accessed using a web shell.
Tell me how to be safe and check?
Answer the question
In order to leave comments, you need to log in
if there is a backup or the original code is not uploaded to the server - download and check for matching files (for starters, at least in size). If everything is ok - check for availability more seriously, check file modification dates on the server, check for content matches, somewhere a utility for checking file hashes flashed, google it.
And how can you be sure that the web-shell is located exactly in the files?!)
It can also be in the database.
The best option (if there is no "clean" copy of the backup): logging incoming and outgoing requests marked "good" packets, all "bad" - block and alert to mail.
All incoming requests must go to a single entry point to the application: we configure this filter there.
PHP security tips
1. The first thing to do is to set normal rights to files and directories:
#для директорий
find /path/to/dir/ -type d -exec chmod 775 {} \;
#для файлов
find /path/to/dir/ -type f -exec chmod 664 {} \;
I also had such questions. To begin with, I decided to introduce control over changes to CMS files on the hosting. For this, I found a good solution SANTI . The solution is free.
As part of a lot of additional buns in the form of backups and self-healing. I've been using for a couple of months. The flight is normal.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question