当前位置:网站首页>服务器中挖矿病毒了,屮
服务器中挖矿病毒了,屮
2022-04-23 13:42:00 【菜鸟猫喵喵】
用top命令查看 , 这俩挖矿病毒,真屮了。
这俩我解决途径一样,举一个例子说吧。
查出PID
ps -ef | grep kdevtmpfsi
删除 进程
sudo kill -9 [PID]
可以通过 sudo crontab -l 查看是否有可疑的计划任务。
病毒一会就重启了,看它的守护进程
systemctl status [病毒PID]
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
删除病毒守护进程
sudo kill -9 30409 30985
删除 可疑文件’
一般都是在tmp目录下
可以看到kdevtmpfsi,这俩病毒文件
果断删除:
sudo rm kdevtmpfsi
在 /tmp目录下看以看到:
这些也全部删除
删除!
- 通过
find / -name "*kdevtmpfsi*"
命令搜索是否还有 kdevtmpfsi 文件
没有就可以了
现在cpu已经降下去了。
事后检查
- 通过
find / -name "*kdevtmpfsi*"
命令搜索是否还有 kdevtmpfsi 文件 - 查看 Linux ssh 登陆审计日志。
Centos
与RedHat
审计日志路径为/var/log/secure
,Ubuntu
与Debian
审计日志路径为/var/log/auth.log
。 - 检查 crontab 计划任务是否有可疑任务
后期防护
- 启用
ssh公钥登陆
,禁用密码登陆。 云主机
:完善安全策略,入口流量,一般只开放 80 443 端口就行,出口流量默认可以不限制,如果有需要根据需求来限制。物理机
:可以通过硬件防火墙
或者机器上iptables
来开放出入口流量规则。- 本机不是直接需要对外提供服务,可以拒绝外网卡入口所有流量,通过
jumper
机器内网登陆业务机器。
- 封禁ip
版权声明
本文为[菜鸟猫喵喵]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_45802080/article/details/124334437
边栏推荐
- 自动化的艺术
- QT calling external program
- [code analysis (3)] communication efficient learning of deep networks from decentralized data
- Campus takeout system - "nongzhibang" wechat native cloud development applet
- Failure to connect due to improper parameter setting of Rac environment database node. Troubleshooting
- Oracle lock table query and unlocking method
- Oracle clear SQL cache
- Tensorflow Download
- Reading notes: meta matrix factorization for federated rating predictions
- Small case of web login (including verification code login)
猜你喜欢
AI21 Labs | Standing on the Shoulders of Giant Frozen Language Models(站在巨大的冷冻语言模型的肩膀上)
Static interface method calls are not supported at language level '5'
SQL learning window function
Campus takeout system - "nongzhibang" wechat native cloud development applet
SSM project deployed in Alibaba cloud
QT calling external program
Detailed explanation of redis (Basic + data type + transaction + persistence + publish and subscribe + master-slave replication + sentinel + cache penetration, breakdown and avalanche)
Ai21 labs | standing on the shoulders of giant frozen language models
SAP ui5 application development tutorial 72 - trial version of animation effect setting of SAP ui5 page routing
Leetcode? The first common node of two linked lists
随机推荐
零拷贝技术
Express②(路由)
TIA博途中基於高速計數器觸發中斷OB40實現定點加工動作的具體方法示例
MySQL [acid + isolation level + redo log + undo log]
QT调用外部程序
Oracle job scheduled task usage details
Oracle RAC database instance startup exception analysis IPC send timeout
JS time to get this Monday and Sunday, judge the time is today, before and after today
Three characteristics of volatile keyword [data visibility, prohibition of instruction rearrangement and no guarantee of operation atomicity]
Apache Atlas Compilation and installation records
Dolphin scheduler scheduling spark task stepping record
MySQL index [data structure + index creation principle]
JS compares different elements in two arrays
Use of GDB
Tensorflow & pytorch common error reporting
Campus takeout system - "nongzhibang" wechat native cloud development applet
Handling of high usage of Oracle undo
The interviewer dug a hole for me: what's the use of "/ /" in URI?
Storage scheme of video viewing records of users in station B
The query did not generate a result set exception resolution when the dolphin scheduler schedules the SQL task to create a table