LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: linyin

[安全技术]谁来解释下like-Unix/Unix系统不容易感染病毒的原理

[复制链接]
发表于 2005-9-22 01:02:43 | 显示全部楼层
记得听一位CCIE说过思科提倡的安全系统是一种纵深的防御系统。大概是层层的防御而不只是依赖某一个技术环节保护整个系统。更有一种说法是:安全不只是技术问题,更多是管理的问题

个人觉得UNIX/LINUX就是这样的一个思想,即使你得到了我的用户密码又怎么样,你还是不能对系统进行致命的攻击,或者病毒进入了系统也不能自动运行(只有root才能修改这些)。此外还有使用习惯等。一般windows用户不会过多理会那些网页或程序会在后台做什么坏事,而只是关心我的系统还是不是正常运行而已。用过LINUX就会养成一种事事查看的习惯,一般会对那些3721那一类不明来历的程序必杀的心理习惯。

而Windows实现上,某种程度上为病毒的自动进行提供了一种方便,而且windows那种多用户根本就不存在什么用户权限的概念。一般用户连个程序都不能执行,而且文件访问权限只限于My Document。所以一般都是以管理员做平时的操作。以管理员工作,如果病毒进入了系统并成功自动启动,只要隐藏得好,几乎可以对系统做任何操作,如自我复制,写注册表等。
回复 支持 反对

使用道具 举报

发表于 2005-9-22 14:12:36 | 显示全部楼层
http://www.lannetlinux.com/mgr_guide/Manager's-Guide-to-Linux.html#Virus-proofdesign
"Virus-proof" design

Boot-sector and file viruses have historically been known only in the PC world. Higher-end systems like Unix have two clearly demarcated privilege levels -- call them "user" and "system". A normal user, or a program owned by a normal user, has no privilege to delete system files or files belonging to other users, because such actions require "system" privileges. The administrator of a Unix system, or "super-user", is the only one with system privileges. Therefore, normal users of Unix have limited ability to cause damage to their systems by importing suspect files from elsewhere. That is why we never hear of Unix viruses. (We sometimes hear of Unix "worms", programs that choke systems by replicating themselves endlessly and filling up storage, even if they have no privilege to actually delete or corrupt files. Worms are not as destructive as viruses, and can also be blocked with a little diligence.)

All said, Linux, like Unix, can be considered relatively "virus-proof" compared to the "lightweight" operating systems -- MS-DOS, Windows 3.1, Windows 95, Windows 98 and the Macintosh. The deadly Chernobyl virus that irrevocably damaged hundreds of thousands of Windows 95/98 PCs around the world on April 26th left Linux machines unaffected. (The Mac is affected by a different, but no less deadly, set of viruses. Examples of Mac viruses are INIT-29 and Autostart 9805.)

Windows NT, like Unix, has separate "user" and "system" privilege levels, so NT is in theory as virus-proof as any version of Unix. However, Windows applications, even on NT, are vulnerable to a new kind of virus, the "macro virus", that spreads through e-mail attachments and infects Word and Excel documents. "Melissa" is one such macro virus that was recently in the news.

Computer users whose experience is limited to Windows PCs and Macintoshes could be excused for thinking that viruses are an inescapable part of life with computers. It should be pleasant news to them that there exist operating systems that are inherently resistant to viruses because of a better security design, -- Unix, Linux, and to a lesser degree, Windows NT.

Though Linux at present enjoys a virus-proof reputation, it has largely escaped the attention of virus writers because of its limited market presence compared to the ubiquity of Windows computers. As Linux gets more popular, viruses targeting it will certainly appear. A Linux virus could result in careless users losing their own files, even if system files and the files of other users are unaffected. Personal computer owners should be particularly careful not to log into their systems as the super-user for anything but system administration tasks. Inadvertently downloading viruses while logged in as the super-user can result in wholesale damage just like on a Windows PC.

Moreover, the addition of macro-like programming features to the free Gnumeric spreadsheet program is cause for concern. The developers claim that Gnumeric allows only trusted code to execute in a spreadsheet, and that a Melissa-type attack will not be possible. Unless backed up by a public-key infrastructure that authenticates external code, it is not easy to see how imported spreadsheets with useful macros can be viewed without danger.

So using Linux today certainly puts you in a more comfortable position with respect to virus protection, but there is no place for complacency. Eternal vigilance is the price of freedom.
回复 支持 反对

使用道具 举报

发表于 2005-9-22 20:49:43 | 显示全部楼层
分析的比较全面,少了一些深层技术细节
加上我的第一个回复就齐了,呵呵
回复 支持 反对

使用道具 举报

发表于 2005-9-22 20:49:47 | 显示全部楼层
开发的对象不同,不是不容易,很多针对unix的蠕虫比win下的要厉害的很,
回复 支持 反对

使用道具 举报

发表于 2005-9-22 20:58:19 | 显示全部楼层
e.g.? analysis ?

The first wide-spread worm in this world known as Morris Worm was in fact an UNIX worm
However, few UNIX worms since then could draw people's attention.
http://en.wikipedia.org/wiki/Morris_worm
回复 支持 反对

使用道具 举报

发表于 2005-9-23 13:57:57 | 显示全部楼层
树大招风和傻瓜操作是windows容易感染病毒的成因
回复 支持 反对

使用道具 举报

发表于 2005-10-10 16:33:13 | 显示全部楼层
Post by wangzhanf
树大招风和傻瓜操作是windows容易感染病毒的成因

这也是一个Linux的目标。
Linux不是有某个版本有漏洞么?怎么没人去攻击。是不是Linux 肉机太少,很难找?
回复 支持 反对

使用道具 举报

发表于 2005-10-10 19:07:08 | 显示全部楼层
Linux漏洞多了
没事去www.lwn.net看看吧
从内核到库到应用软件
不过基本上出来一个补一个
等你写出攻击的程序,说不定人家都补上了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表