大家好,我是瑶山,今天我的服务器被攻击了!
事件
是的,你没有看错,以下是阿里云的通知内容:



处理
这还得了,我登上服务器就是一个top命令

就是这么显眼,xmrig,几乎占满了我的cpu
XMRig是一个开源的、跨平台的Monero(XMR)挖矿软件,支持CPU、GPU和ASIC等多种设备。它设计用于在Monero网络中挖掘加密货币,并以其高效和易用性而受到矿工的欢迎。
刑啊!真是勤劳的矿工,先杀掉进程kill -9 pid,
kill -9 23613

这么简单杀掉了?。特意观察了,果然,过了一会又跑起来了

使用find命令查找xmrig相关文件
find / -name xmrig

根据找到的路径,使用
rm -rf
命令删除这些文件再次kill -9杀掉xmrig的进程,看到cpu异常升高的进程23612,一并杀掉


top命令看了10分钟,暂时恢复了正常,明天再观察下

最后,虽然恶意软件已清理,为了避免类似的问题再次发生,建议定期审查和更新服务器的安全策略,限制不必要的网络访问,并加强对潜在安全威胁的防范意识。
ending
人的一生 必须要学会做一件事 而且要做到透彻 才不枉此生...共勉 💪。
关注瑶山编程,分享技术和有趣的事!
