360 安全卫士 for Linux 使用结果

2015-01-01 08:21:26 +08:00
 efi

测试了一把,结果显示360基本对Linux社区规范和安全常识不give a fuck。

首先,这个deb包就是胡乱打包,依赖关系就没弄好:

$ dpkg-deb -I 360safeforlinux-3.0.0.66-stripped.deb 
[...]
 Package: 360safeforlinux
 Version: 3.0.0.66
 Architecture: amd64
 Maintainer: qihu360 company
 Installed-Size: 23617
 Depends: libc6 (>= 2.14),libglib2.0-0 (>= 2.38),python2.7 (>= 2.7.6),openssl(>= 1.0),curl,libqt4-network(>= 4.8.5),libqt4-sql(>= 4.8.5)
 Section: gnome
 Priority: required
 Essential: yes
 Description: 360 safe for linux

但是还实际依赖了libpython2.7和libqtgui4两个库没有标明,要我手动修复。

这个打包还通过滥用Essential标记来制造卸载的麻烦。

root@debian-amd64:/home/user# apt-get remove 360safeforlinux
[...]
The following packages will be REMOVED:
  360safeforlinux
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  360safeforlinux
[...]
**You are about to do something potentially harmful.**
To continue type in the phrase 'Yes, do as I say!'
 ?] 
Abort.

root@debian-amd64:/home/user# aptitude remove 360safeforlinux
The following packages will be REMOVED:  
  360safeforlinux 
[...]
The following ESSENTIAL packages will be REMOVED!
  360safeforlinux 

WARNING: Performing this action will probably cause your system to break!
         Do NOT continue unless you know EXACTLY what you are doing!
To continue, type the phrase "I am aware that this is a very bad idea":

关于Essential打包政策,DebianUbuntu都只保留给最必要的包。

安装后dpkg配置时它的postinst脚本直接给加上了setuid。如此随意地使用setuid,还能自称是安全?

if [ "$1" = "configure" ];then
    chmod u+s /opt/360safeforlinux/s360SafeForLinux
[...]
fi

这个的意思就是,以普通用户权限运行这个东西,它会变成root:

user@debian-amd64:~$ id
uid=1000(user) gid=1000(user) groups=1000(user),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev)
user@debian-amd64:~$ start360 &
[1] 4512
user@debian-amd64:~$ pstree -u
init─┬─dhclient
     ├─5*[getty]
     ├─login───bash(user)───startx───xinit─┬─Xorg(root)
     │                                     └─x-window-manage
[...]
     ├─urxvtd(user)
     └─urxvtd(user)─┬─bash───start360(root)─┬─{BackendTaskThre}
                    │                       ├─{BrowserHomePage}
                    │                       ├─{CpuMemUseState}
                    │                       ├─{FileWatcher}
                    │                       ├─{IsolateZone}
                    │                       ├─{LogCleanThread}
                    │                       ├─2*[{MyThread}]
                    │                       ├─{VdUpload}
                    │                       └─3*[{start360}]
                    └─bash───pstree

dpkg的prerm脚本还有奇怪的东西:

rc=`lsmod | grep "rk360" | xargs echo`
if [ -n "$rc" ];then
    rmmod rk360 2>/dev/null 1>&2
    rm -rf /etc/360safe/360safe.ko 2>/dev/null 1>&2
fi

rc=`lsmod | grep "immu" | xargs echo`
if [ -n "$rc" ];then
    rmmod immu 2>/dev/null 1>&2
    rm -rf /etc/360safe/immu.ko 2>/dev/null 1>&2
fi

360不仅不满足于root权限,还在用内核模块?不过这次使用中并未发现这两个内核模块。

start360启动,然后有两个运行时怪现状:

  1. 把pid保存到/etc/360safe/360safeforlinux.pid。会不会遵守FHS?
  2. 疯狂扫描系统文件,powertop显示闲置状态每秒30个唤醒,笔记本电池寿命已死。会不会用inotify?

它提供了一些功能。

./etc/360safe/urlcheck
./etc/360safe/urlcheck/normalize.py
./etc/360safe/urlcheck/Firefox
./etc/360safe/urlcheck/Firefox/360webshield@qihoo.com.xpi
./etc/360safe/urlcheck/lcloud.ini
./etc/360safe/urlcheck/browserextensionsinstaller.py
./etc/360safe/urlcheck/Chrome
./etc/360safe/urlcheck/Chrome/360WebShield.crx

360唯有一点用功了,就是列了一大堆非GPL的许可证:

license/zlib_license.txt
license/c-ares_license.txt
license/qt_license_lgpl.txt
license/unrar_license.txt
license/sqlite_license.txt
license/elftoolchain_license.txt
license/libcurl_license.txt
license/7-Zip_license.txt
license/boost_license.txt
license/openssl_licnese.txt
license/minizip_license.txt
license/jsoncpp_license.txt
license/protobuf_license.txt
license/Noto fonts_license.txt
license/qt_lgpl_exception.txt

这样人们就无权索要源代码。不过,一个安全产品不公开源代码,然后用setuid拿了root还要搞内核模块,谁知道你要干嘛?总之,360对Linux社区规范和安全常识基本不give a fuck。

29802 次点击
所在节点    Linux
78 条回复
9hills
2015-01-01 10:09:24 +08:00
@Jimrussell 猜测是给政府采购做的,毕竟所谓的自主操作系统就是linux
cbsw
2015-01-01 10:11:56 +08:00
进军 Linux 是数字公司的先见之明,因为上面已经吹风要推国产操作系统了,真正推广后必定会有大批小白用户,他们不能离开数字公司产品的保护
mcone
2015-01-01 10:52:13 +08:00
卸载部分笑尿 =。=
dant
2015-01-01 10:58:05 +08:00
rk360 模块应该是防止自己的进程被 kill 的。
不过在 gdb 面前就是一纸老虎。
danmary61
2015-01-01 11:25:19 +08:00
12月22日,由工信部软件与集成电路促进中心、国防科技大学联手Canonical共同研发的国产操作系统优麒麟Ubuntu Kylin15.04版开放下载~

其实这是很大的一步棋呢。数字觉得自己很识实务。
DreaMQ
2015-01-01 11:27:49 +08:00
用360的都不配用Unix
enotx
2015-01-01 11:30:28 +08:00
@riaqn
数字居然连~/.local都敢删,这是故意制造槽点吧
为什么不索性把$HOME一起删了
xfspace
2015-01-01 11:37:54 +08:00
欢迎楼主登上数字船。。。
feefk
2015-01-01 11:52:50 +08:00
火钳刘明
abscon
2015-01-01 11:58:40 +08:00
等着有人改/etc/hosts后被弎瘤蕶警告或者直接行首加#
zro
2015-01-01 12:11:25 +08:00
安卓版应该比这版本还更那个吧。。。
cicku
2015-01-01 12:31:45 +08:00
这是要干神马?
JamesRuan
2015-01-01 12:45:41 +08:00
求放过小白用户吧!昨天做了半个小时的思想工作都不能说服小白用户卸载360。
CRight
2015-01-01 12:49:38 +08:00
安全软件公开源码?你去卡饭与那里的人论战吧。
CRight
2015-01-01 12:54:23 +08:00
@JamesRuan 你这和福音堂里的大妈,拉着人传教有什么区别。每个人都有自己的想法,没必要去改变。
360多大仇啊,金山那怂货怎么没有这么多喷子。批评当然可以,但纯粹是无意义的、主观的、带有偏见的批评就没有必要了。好歹po主是列了一系列有用信息才加以批判的。
bitweaver
2015-01-01 12:58:55 +08:00
建议360等国产流氓软件还是速度滚回Windows那个圈子,欺负欺负电脑小白好了,别再开源和*nix圈子自找没趣!
VigoFen
2015-01-01 13:12:21 +08:00
火钳刘明
nikolai
2015-01-01 13:15:10 +08:00
给勇士点赞。。
imn1
2015-01-01 13:24:02 +08:00
后面几个早就可以预期,360 没有 root 还能干啥?
liubiantao
2015-01-01 13:31:12 +08:00
@JamesRuan 卸载以后你对人家电脑以后出现的各种问题和需求负责吗?

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

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

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

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

© 2021 V2EX