Hardware: Old laptop YunoHost version: 11.1.8.2 I have access to my server : All the way Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
Hello to you,
A little panic. I have on my pro PC, my connection to my YunoHost open via Nextcloud where I only synchronize my pro files and otherwise I use the virtual file system.
I have just returned to my post (pc locked) and I realize that in the Nextcloud window, all the files were marked deleted 3 or 4 hours ago.
I have been on the admin panel and I have no trace in the tools tab then abnormal stuff log.
From the console in ssh and as root, I donât have any command line history with rm Rf or anything like that.
Do you have an idea ?
The data that left was on an external hard drive. The Nextcloud notes that are stored in the default location are still there.
I changed the admin password, root password, my user. How can I be sure there is no one else on my server?
Composer detected issues in your platform:
Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.33.
Starting scan for user 1 out of 4 (user1)
Starting scan for user 2 out of 4 (user2)
Starting scan for user 3 out of 4 (user3)
Starting scan for user 4 out of 4 (user4)
+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 8888 | 46776 | 00:01:26 |
+---------+-------+--------------+
But when i go to the interface web of Nextcloud my DDE is empty
But when i ls/media/DDE it return my folder
The problem could be a problem of ownership or bad rights on parents folder or on files. It can also be something else but it is the first thing you must verify (with ls -la)
To be honest, if we could be sure no one is on the server, the virtual world would be safer and cyber attack would not exist.
However, you can monitoring your server to detect intrusions with solution like wazuh/suricata/snort but i canât give you any information because i donât know these tools except by name. it is necessary to understand these tools if you use them otherwise itâs useless.
A good start can be to use logwatch and pflogsumm for mail. Itâs not real time detection but it give you a report once a day and it can be useful to find problems on server. Logwatch read the log and give you a summary.
Also it would be pretty unexpected that an attackerâs motivation would be « Lol Iâm gonna delete a bunch of random files, this is gonna be so annoying yay ! »
Like, attackers usually hack into systems with incentives like 1) steal credentials or secret information like bank account from which thereâs an actual gain such a âget moneyâ, or 2) cryptoransomware, ie encrypt your files and ask for a ransom, or 3) enlarge their botnets or 4) ???
And in scenarios 1 and 3, I guess the attacker is more comfortable with leaving no obvious trace rather than doing anything like âdelete all files in nextcloud randomlyâ that would bring attention to a possible breach in the serverâŠ