阿里云登录日志有未知 ip,很奇怪

2018-04-08 15:31:01 +08:00
 diveIntoWork

root@master:~# last

root pts/0 124.16.137.xxx Sun Apr 8 15:21 still logged in

root pts/0 180.76.50.99 Wed Apr 4 10:13 - 10:13 (00:00)

root pts/2 180.76.50.99 Wed Apr 4 10:01 - 10:01 (00:00)

root pts/2 180.76.50.99 Wed Apr 4 09:42 - 09:42 (00:00)

root pts/1 124.16.137.xxx Wed Apr 4 09:34 - 12:09 (02:35)

root pts/1 180.76.50.99 Wed Apr 4 09:24 - 09:24 (00:00)

root pts/1 180.76.50.99 Wed Apr 4 09:21 - 09:21 (00:00)

root pts/1 180.76.50.99 Wed Apr 4 09:18 - 09:18 (00:00)

除了我自己的本机 ip 外,一直有个 180.76.50.99 的 ip 登录,而且也是秒登秒下,查了一下是海淀百度的 ip。检查了一下集群,crontab 里也没有异常,不过最近阿里云倒经常发短信提醒主机被扫描。 有大神分析一波吗?

3373 次点击
所在节点    程序员
19 条回复
udev
2018-04-08 15:32:39 +08:00
阿里云盾卸载了吗?
diveIntoWork
2018-04-08 15:37:21 +08:00
@udev 好像没装这项服务
harwck
2018-04-08 15:47:11 +08:00
密钥登陆搞了吗?密码登录关了吗?
mokeyjay
2018-04-08 15:47:39 +08:00
@diveIntoWork #2 这是预装的
niubee1
2018-04-08 15:48:37 +08:00
很显然有人在企图搞你, follow #3 楼的步骤加固一下
diveIntoWork
2018-04-08 15:51:11 +08:00
@harwck ssh 配了免密登录,密码登录没有关
diveIntoWork
2018-04-08 15:53:58 +08:00
@niubee1 我觉得被扫描挺正常,需不需要把 sshd 的 22 端口换一下?或者无视,暴力破解应该也没那么容易
hcymk2
2018-04-08 15:55:18 +08:00
http://180.76.50.99:8888/login
这什么鬼?
yexm0
2018-04-08 15:57:23 +08:00
@hcymk2 百度在搞黑产吧
f2f2f
2018-04-08 16:09:30 +08:00
@yexm0 这网址进去明显是装的宝塔面板然后换了标题……
diveIntoWork
2018-04-08 16:13:53 +08:00
@hcymk2 wtf,有点意思了,为什么查出来是百度的 ip 呢
huiyifyj
2018-04-08 16:16:04 +08:00
@f2f2f 还真是,点下忘了密码,跳转到 bt.cn😂🤣
wekw
2018-04-08 16:22:38 +08:00
确认过日志,你被黑了,重装吧
Tink
2018-04-08 16:24:54 +08:00
被黑了
labxx
2018-04-08 16:34:35 +08:00
被人搞了
wspsxing
2018-04-08 16:48:59 +08:00
我 TM 6 号才上车,禁止了 root 登录,而且根本没有 admin。。太可怕
```sh
~> sudo lastb
admin ssh:notty 113.172.191.116 Sun Apr 8 05:48 - 05:48 (00:00)
admin ssh:notty 113.172.191.116 Sun Apr 8 05:48 - 05:48 (00:00)
admin ssh:notty 123.118.206.182 Sun Apr 8 05:48 - 05:48 (00:00)
admin ssh:notty 123.118.206.182 Sun Apr 8 05:48 - 05:48 (00:00)
admin ssh:notty 171.5.36.149 Sun Apr 8 05:47 - 05:47 (00:00)
admin ssh:notty 171.5.36.149 Sun Apr 8 05:47 - 05:47 (00:00)
admin ssh:notty 163.172.190.197 Sat Apr 7 19:59 - 19:59 (00:00)
admin ssh:notty 163.172.190.197 Sat Apr 7 19:59 - 19:59 (00:00)
root ssh:notty 163.172.190.197 Sat Apr 7 19:59 - 19:59 (00:00)
admin ssh:notty 190.167.110.213 Sat Apr 7 17:31 - 17:31 (00:00)
admin ssh:notty 190.167.110.213 Sat Apr 7 17:31 - 17:31 (00:00)
admin ssh:notty 14.161.42.248 Sat Apr 7 17:31 - 17:31 (00:00)
admin ssh:notty 14.161.42.248 Sat Apr 7 17:31 - 17:31 (00:00)
admin ssh:notty 116.101.151.71 Sat Apr 7 17:31 - 17:31 (00:00)
admin ssh:notty 116.101.151.71 Sat Apr 7 17:31 - 17:31 (00:00)
admin ssh:notty 202.125.167.187 Sat Apr 7 04:59 - 04:59 (00:00)
admin ssh:notty 202.125.167.187 Sat Apr 7 04:59 - 04:59 (00:00)
root ssh:notty 202.125.167.187 Sat Apr 7 04:59 - 04:59 (00:00)
admin ssh:notty 217.182.252.114 Sat Apr 7 01:18 - 01:18 (00:00)
admin ssh:notty 217.182.252.114 Sat Apr 7 01:18 - 01:18 (00:00)
```
projectzoo
2018-04-08 20:53:15 +08:00
吓得我赶紧看一下我的机器去。
king2014
2018-04-09 07:29:10 +08:00
第一件事情更换 ssh 端口,第二件事情密钥登录,第三件事情关闭密码登录,第四件事情禁止 root 登录,这个流程走一遍试试
opengps
2018-04-09 13:15:51 +08:00
换非常规端口是必然要做的,一大堆自动扫描器,扫到后就开始暴力破解

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/445095

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX