So couple of days ago I have upgraded to PHP 7.2 and ever since my main account/site keeps on getting infected. It is running latest version of WordPress with all recent updates and WordFence plugin.
I am noticing new encoded php file, as well as some of existing files being modified to include additional encoded code. I am finding out about it as most of time the files uploaded start to send email junk so I get notifications. That specific WordPress site is set to run using php 7.2, suphp, PHP-FPM. CENTOS 6.9 kvm v68.0.30
Scrip Alert Email
Time: Thu Mar 15 02:34:54 2018 -0400
Path: '/home/USER/public_html/.tmb'
Count: 201 emails sent
Sample of the first 10 emails:
2018-03-15 02:27:23 cwd=/home/USER/public_html/.tmb 4 args: /usr/sbin/sendmail -t -i [email protected]
2018-03-15 02:27:23 cwd=/home/USER/public_html/.tmb 4 args: /usr/sbin/sendmail -t -i [email protected]
2018-03-15 02:27:23 cwd=/home/USER/public_html/.tmb 4 args: /usr/sbin/sendmail -t -i [email protected]
2018-03-15 02:27:23 cwd=/home/USER/public_html/.tmb 4 args: /usr/sbin/sendmail -t -i [email protected]
Prior to that I got LOCALRELAY Alert
Type: LOCALRELAY, Local Account - USER
Count: 101 emails relayed
Blocked: No
Sample of the first 10 emails:
2018-03-15 02:27:23 1ewMMF-0007DE-N3 <= [email protected] U=myuser P=local S=1682 [email protected] T="C\363mprate el agrandador de miembro urgentemente" for [email protected]
2018-03-15 02:27:23 1ewMMF-0007DK-Qe <= [email protected] U=myuser P=local S=1674 [email protected] T="C\363mprate el agrandador de miembro urgentemente" for [email protected]
When I looked into that folder I found one encoded php file.
Another file prior to that was:
Time: Tue Mar 13 04:39:52 2018 -0400
Path: '/home/MyUser/public_html/wp-content/plugins/recent-tweets-widget/assets'
Count: 201 emails sent
Sample of the first 10 emails:
2018-03-13 04:31:30 cwd=/home/myuser/public_html/wp-content/plugins/recent-tweets-widget/assets 4 args: /usr/sbin/sendmail -t -i [email protected]
This all started after an update, any ideas what it could be and how can I figure out how the files are created?
I am noticing new encoded php file, as well as some of existing files being modified to include additional encoded code. I am finding out about it as most of time the files uploaded start to send email junk so I get notifications. That specific WordPress site is set to run using php 7.2, suphp, PHP-FPM. CENTOS 6.9 kvm v68.0.30
Scrip Alert Email
Time: Thu Mar 15 02:34:54 2018 -0400
Path: '/home/USER/public_html/.tmb'
Count: 201 emails sent
Sample of the first 10 emails:
2018-03-15 02:27:23 cwd=/home/USER/public_html/.tmb 4 args: /usr/sbin/sendmail -t -i [email protected]
2018-03-15 02:27:23 cwd=/home/USER/public_html/.tmb 4 args: /usr/sbin/sendmail -t -i [email protected]
2018-03-15 02:27:23 cwd=/home/USER/public_html/.tmb 4 args: /usr/sbin/sendmail -t -i [email protected]
2018-03-15 02:27:23 cwd=/home/USER/public_html/.tmb 4 args: /usr/sbin/sendmail -t -i [email protected]
Prior to that I got LOCALRELAY Alert
Type: LOCALRELAY, Local Account - USER
Count: 101 emails relayed
Blocked: No
Sample of the first 10 emails:
2018-03-15 02:27:23 1ewMMF-0007DE-N3 <= [email protected] U=myuser P=local S=1682 [email protected] T="C\363mprate el agrandador de miembro urgentemente" for [email protected]
2018-03-15 02:27:23 1ewMMF-0007DK-Qe <= [email protected] U=myuser P=local S=1674 [email protected] T="C\363mprate el agrandador de miembro urgentemente" for [email protected]
When I looked into that folder I found one encoded php file.
Another file prior to that was:
Time: Tue Mar 13 04:39:52 2018 -0400
Path: '/home/MyUser/public_html/wp-content/plugins/recent-tweets-widget/assets'
Count: 201 emails sent
Sample of the first 10 emails:
2018-03-13 04:31:30 cwd=/home/myuser/public_html/wp-content/plugins/recent-tweets-widget/assets 4 args: /usr/sbin/sendmail -t -i [email protected]
This all started after an update, any ideas what it could be and how can I figure out how the files are created?