Skip to content

Magento2.4.4 malware attack index.php and .htaccess auto generate

Hi everyone, 

Recently our website has been attacked and index.php and .htaccess are automatically created in pub directory. 
I have made backup of complete website and working fine on my local machine.

Please can you suggest solutions.
How can we detect malware script, code where is script running which is creating these files and 0444 permission is changed.


Thanks in advance.