droplet hacked? random sites added to cache?

Hi I created a new droplet from a snapshot. I haven’t shared the new droplet IP with anyone and I haven’t made a website public on it either.

I am using this new droplet for 1 website only and it has <meta name=‘robots’ content=‘noindex, nofollow’ /> on it so I don’t know how anyone has found this server.

I thinks the droplet is hacked because I went to clear the cache and saw lots of random websites have been added there -

/var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/http%2C3A /var/cache/mod_pagespeed/v3/https%2C3A /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/ /var/cache/mod_pagespeed/v3/

Does anyone know how these were added and how to stop them? They appear to be adding them everyday.

I made the snapshot on the 26th August. If I organized the above folders by last modified the was added 2 hours after I added my website

The old snapshot hasn’t got this issue - the cache folder only has the sites that I added myself.

Should I delete this snapshot and make a new one? Or fix the exploit?

I tried to Google the issue but nothing obvious has come up.

Please can someone help?

Thank you

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
September 2, 2022
Accepted Answer

Hi @twc8ac35a8636,

You need to fix the exploit before creating another Snapshot. Another alternative would be to restore the previous Snapshot that wasn’t exploited and secure it immediately.

Since you are receiving this in mod_pagespeed, I’ll recommend starting from there and seeing if there is any known exploit. Then just update everything on your Droplet. If the issue persists though, you might need a security specialist to help you out with the problem.

Site Moderator
Site Moderator badge
September 2, 2022

Hello @twc8ac35a8636

You can try to clear the cache and check if the issue remains.

Touch the cache.flush file

  1. sudo touch /var/cache/mod_pagespeed/cache.flush

Restart apache

  1. sudo service apache2 restart

You can examine the secure log and check if anyone has accessed your droplet via ssh. You can check if additional ssh-keys were added in the authorized_keys file and if you’re accessing the droplet using a password, then update it immediately.


Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel