21
Jun

文件捆绑器的原理

作者: Daxigua 410次浏览

最近在搜集文件捆绑器。然后就发现了一篇还不错的文章在介绍这个。就留下来。

http://www.safe123.net/bdyj/bdjs/2007-03-06/1069.html

一、传统的捆绑器

    这种原理很简单,也是目前用的最多的一种。就是将B.exe附加到A.exe的末尾。这样当 A.exe被执行的时候,B.exe也跟着执行了。这种捆绑器的代码是满网都是。我最早是从jingtao的一篇关于流的文章中得知的。就目前来说,已经没什么技术含量了。

    检测方法:稍微懂一点PE知识的人都应该知道。一个完整有效的PE/EXE文件,他的里面都包含了几个绝对固定的特点[不管是否加壳]。一是文件以MZ开头,跟着DOS头后面的PE头以PE\0\0开头。有了这两个特点,检测就变得很简单了。只需利用 UltraEdit一类工具打开目标文件搜索关键字MZ或者PE。如果找到两个或者两个以上。则说明这个文件一定是被捆绑了。不过值得注意的是,一些生成器也是利用了这个原理,将木马附加到生成器末尾,用户选择生成的时候读出来。另外网上流行的多款”捆绑文件检测工具”都是文件读出来,然后检索关键字MZ 或者PE。说到这里,相信大家有了一个大概的了解。那就是所谓的”捆绑文件检测工具”是完全靠不住的一样东西。

    二、资源包裹捆绑器

     就这原理也很简单。大部分检测器是检测不出来的,但灰鸽子木马辅助查找可以检测出捆绑后未经加壳处理的EXE文件。但一般人都会加壳,所以也十分不可靠。这个学过编程或者了解PE结构的人都应该知道。资源是EXE中的一个特殊的区段。可以用来包含EXE需要/不需要用到的任何一切东西。利用这个原理进行 100%免杀捆绑已经让人做成了动画。大家可以去下载看看。那捆绑器是如何利用这一点的呢?这只需要用到BeginUpdateResource、 UpdateResource和EndUpdateResource这三个API函数就可以搞定。这三个API函数是用来做资源更新/替换用的。作者只需先写一个包裹捆绑文件的头文件Header.exe.头文件中只需一段释放资源的代码。而捆绑器用的时候先将头文件释放出来,然后用上面说的三个API函数将待捆绑的文件更新到这个头文件中即完成了捆绑。类似原理被广泛运用到木马生成器上。

    检测方法:一般这种很难检测。如果你不怕麻烦,可以先将目标文件进行脱壳。然后用”灰鸽子木马辅助查找”或”ResTorator”一类工具将资源读出来进行分析。但这种方法毕竟不通用。所以还是推荐有条件的朋友使用虚拟机。

    三、编译器捆绑法

    暂时不知用什么名字来形容,所以只能用这个来代替。这种方法相当的阴险。是将要捆绑的文件转换成16进制保存到一个数组中。像这样muma:array[0..9128] of Byte=($4D,$5A,$50….$00);

     然后用时再用API函数CreateFile和WriteFile便可将文件还原到硬盘。这里稍稍学过编程的都知道。代码中的数组经过编译器、连接器这么一搞。连影都没了。哪还能有什么文件是吧?所以就这种方法而言,目前还没有可以查杀的方法。这种方法可以利用编程辅助工具jingtao的 DcuAnyWhere或Anskya的AnyWhereFileToPas来实现。

    四、最最毒辣的一种

    因为暂时用的人较少,且危害性及查杀难度太大。[一个被杀的病毒直接捆绑就能免杀,汗~]所以就不公布了。此法查杀方法通用性极差。如果流行,估计大家连动画都不敢下着看了。HOHO~

    补充:可以利用一些第三方工具将硬盘和注册表监视起来以后再运行那些你不确定是否被捆绑的程序。这样,一旦硬盘出现变化,或有文件新建,或有文件改变都会被记录在案。就算是查找起来也方便一点。

作者还卖了个关子没有说第四种
我也正在找第四种方法,然后会将这片文章补充完整。 

20
Jun

从1.0到Vista Windows启动画面回顾

作者: Daxigua 324次浏览

转自:http://news.77169.com/HTML/20061124000500.html

成千上万的PC用户每天打开电脑首先看到的就是Windows启动画面,我们带大家再来回顾从Windows 1.0到Windows vista的启动画面发展进程:)

win101

Windows 1.01: 像极了臭名昭著的蓝屏死机,是吧?

win31

Windows 3.1: 出现了Windows大旗,这一设计一直延续到了Windows Me

win95

Windows 95: 经典的蓝天白云,有几个老网虫能够忘记?

win98

Windows 98: 更有气质和力量的白云,当然这款产品的力量也征服了全世界的玩家

win2k

Windows 2000: 蓝天白云没了,取而代之的是经典又庄重的视窗,一直以来许多用户都认为,它才是最棒的微软操作系统

winme

Windows ME: 最成功之后居然跟来的是最失败的微软系统,几乎天天被骂,但启动画面还是非常有特色的

xp.jpg

Windows XP: 第一次采用黑色界面,这种设计一直延续到现在

xp2.jpg

Windows XP SP2: 所有系统都是公平的—当然,他们都是Windows XP

2003.jpg

Windows Server 2003

vista.jpg

Windows vista:为了6秒钟时间,毁容又何妨?我豁出去了!当然这也是微软第一次使用多页面的启动画面

20
Jun

Exploit Sites 和0day公布的站点大全

作者: Daxigua 291次浏览

转自:http://hack.77169.com/HTML/20070620000016.html

Exploit Sites 和0day公布的站点大全
国外
www.frsirt.com/exploits/
es.wikipedia.org/wiki/Exploit
www.securiteam.com/exploits
http://shinnai.altervista.org/

国内
http://www.z1z8.com/
http://www.neeao.com/exp/

1 www.frsirt.com
http://www.dswlab.com/vir/v20070103.html

2 www.derkeiler.com
www.h4cky0u.org

3 http://www.security.nnov.ru/

http://governmentsecurity.org/

4 http://pforum.pccenter.com.tw/viewthread.php?tid=67&extra=page%3D1

5 http://www.swerat.com/forums/index.php?act=Login&CODE=01

6 http://chasenet.org/

7 http://swerat.com/

www.neoteam.com.br

我先来几个我认为比较好的
http://packetstormsecurity.nl/
http://hack.com.ru/
http://www.hackcoza.tk/
http://www.web-hack.ru/
http://www.securiteam.com/
http://www.security.nnov.ru/
http://www.hackerzhell.co.uk/indexmain.php
http://hacktheb0x.tk/
http://neworder.box.sk/
http://www.k-otik.com/
http://www.security-corporation.com/
http://www.securityfocus.com/

8 http://metasploit.blogspot.com/

9 http://www.godexp.org/

http://www.milw0rm.com/

这些都是我珍藏的好的漏洞发布网址:
国外:
www.frsirt.com/exploits/
es.wikipedia.org/wiki/Exploit
www.securiteam.com/exploits

国内:
http://www.z1z8.com/
http://forum.eviloctal.com/simple/index.php?f22.html

EXP
http://packetstormsecurity.nl/

http://hack.com.ru/

http://www.hackcoza.tk/

http://www.web-hack.ru/

http://www.securiteam.com/

http://securityvulns.com/exploits/

http://www.hackerzhell.co.uk/indexmain.php

http://hacktheb0x.tk/

http://neworder.box.sk/

http://www.k-otik.com/

http://www.security-corporation.com/

http://www.securityfocus.com/

http://www.hackcoza.com/lynx.html

http://www.anyside.com/

http://www.cnids.com

http://www.addict3d.org/index.php?page=security

http://www.frsirt.com

http://www.securitydot.net/

http://milw0rm.com

http://blog.csdn.net/group/ExploiT/

http://seclists.org

http://metasploit.com/projects/Framework/

0day

http://www.milw0rm.com/
http://www.frsirt.com/
http://www.derkeiler.com/
http://www.securiteam.com/
http://www.securityfocus.com/
http://www.packetstormsecurity.org/
http://www.addict3d.org/index.php?page=security
http://neworder.box.sk/
http://archives.neohapsis.com/archives/
http://security.nnov.ru/exploits/
http://securitydot.net/index.php
http://www.php-security.org/index.html
http://www.red-database-security.com/
http://packetstormsecurity.nl/
http://www.aspitalia.com/focuson/notizie_Microsoft_Security_Bulletin.aspx
http://marc.info/?l=bugtraq

19
Jun

看mop上关于刘德华事件的看法

作者: Daxigua 384次浏览

帖子的地址是:http://dzh.mop.com/topic/readSub_7619758_0_0.html 

真的挺佩服《同一首歌》的,在央视的节目里作导演的就是牛,想骂哪个明星就骂哪个,想封杀你以后你就甭指望能有出头之日。遭央视封杀的艺人已经不少了,陈佩斯、郭德纲,这两位都是不买央视的帐的主,还有前不久被导演大骂的蔡依林。这几位之所以会得罪央视,大概就是因为没有整天在嘴里把央视当作大爷念叨着。这次《同一首歌》的导演指责刘德华的理由实在是太幼稚了,而且让人感到恶心,“刘德华,你有什么了不起!为了英雄母亲,连个爱字都不能写?”央视的一个策划这样诉说了近日让他们感到惊讶和不解的一件事,那就是刘德华拒绝参加《同一首歌》正在策划制作的“英雄母亲”特别节目,连外景VCR的制作都以无时间的理由说不,总导演孟欣当场泪下。

跟上次痛骂蔡依林不愿跟歌迷合唱的理由惊人的相似,都是不合作,不买账,耍大牌,而且说者都是义正严词,好像自己是正义的化身。而且他们还透露,《同一首歌》可能将会开始拒绝刘德华了,“这样的明星不值得在央视亮相,我们更没必要为他提供赚钱的机会。谁都知道,对于明星来说,这个节目是名利双收的。刘德华,你凭什么对英雄母亲说不?”

对于这样的说法我们不禁要问:“为什么刘德华非得要买《同一首歌》的帐?凭什么不能对央视说不?”到处打着公益的幌子利用观众的同情心赚取着暴利,安排的那些煽情的桥段也一点创意没有,人家花钱是去听明星唱歌的,不是去看那些低劣的煽情表演的,难道非得与歌迷合唱才能显得与民同乐,动不动就要封杀,如同暴君一样,就因为刘德华不愿写一个爱字就要喊打喊杀的,还上纲上线说“难道就不能为英雄的母亲写个爱字”,请问一下,这个爱字真的是英雄的母亲要的吗?还是你们只能想处这样没有任何创意的办法来表达对英雄母亲的敬意?别的艺人接受邀请愿意帮忙是因为他们不想多生事端,比较聪明,刘德华人家不愿写这个爱“字”难道就真的十恶不赦吗?难道就真的人品有问题吗?只能说明他为人比较直率,公益的事人家自己会去做,为什么非得听从央视的那些笨蛋导演的摆布。再说一个人的人品好坏也不需要你们央视来定,而是由群众来定的,刘德华这么多年来能够在演艺圈屹立不倒就是一个很好的说明了.

刘德华这次不买央视的帐说实在的,真是好样的,早就需要一个这样的有威望艺人出来对央视说“不”了,好让他有一个清醒的认识,没有你们央视的舞台是不会死人的,不是任何人都怕你们的封杀令的。

我个人的看法是:

cctv典型官僚主义机构,
他不认为自己是一个企业或者单位,
他总是把自己摆到gov的地位上来看待自己,
谁不听自己的谁就要被和谐掉。老刘二十几年来辛辛苦苦在演艺圈积攒下来的名声就被这么被cctv给说烂了。但是群众的眼睛是雪亮的。当初cctv的《同一首歌》来学校不是还收了好多钱,具体数目咱就不说了,还让一群抽签去现场的人,先把欢呼的场面录下来,等着以后剪辑用。这个时候一群学生就在导演的指挥下对着空气高呼,制造出所谓的热烈气氛。真呀的恶心!!

不说他了,官僚主义作风。

18
Jun

转:上班族

作者: Daxigua 262次浏览

work1

work2

1148275079935.jpg

1148275108745.jpg1148275137378.jpg1148275144572.jpg1148275167594.jpg1148275213732.jpg1148275254118.jpg1148275298272.jpg1148275373419.jpg1148275403473.jpg1148275445526.jpg1148276201423.jpg

1148276226665.jpg1148276253372.jpg1148276272027.jpg1148276295895.jpg1148276323542.jpg1148276358716.jpg1148276417209.jpg1148276456710.jpg1148276507061.jpg1148276536099.jpg

18
Jun

半夜起来看球

作者: Daxigua 360次浏览

恍惚中临晨四点起来了,迷迷糊糊的考虑是不是看球。当时想昨天下午午休了2个小时,就当是补充回来吧。然后就去客厅把电视打开了,还把超牛吵醒了。皇马落后,我想起了那次天下足球做的那个专题“十大逆转夺冠 ”,好像里面有3次还是4次来着,都是巴萨在最后一轮反超夺取了西甲冠军。

在皇马落后的时候,巴萨取得了4:0的领先,老天也太照顾巴萨了吧。皇马的球员很急,感觉每次都是急匆匆的过去,然后把进攻的机会浪费,贝克汉姆任意球还踢到了横梁上,运气不好啊。雷耶斯的上场扭转了颓势,进球后我看到了劳尔把球抱出来的时候 那股兴奋,这几年对劳尔实在是太难了。可怜的金童啊,皇马里面我最喜欢的球员。最后皇马逆转夺取了冠军,这是对贝克汉姆和卡洛斯最好的送行的礼物。

我喜欢巴萨的流畅的进攻,但是我也喜欢皇马的众星云集。卡佩罗的政策我不知道是好是坏,但是至少让皇马夺取了事隔多年的西甲冠军。

卡洛斯

世界上最优秀的左后卫之一 。至少在我心中认为只有卡洛斯和马尔蒂尼是真正的左后卫。

贝克汉姆

一直勤勤恳恳的踢球,但是英俊的外表让他让世界上众多的球迷喜欢,也让他总是背上只是靠脸蛋混名气的黑锅。我只能说,如果你看过贝克汉姆踢球,你就知道他是最认真的。

劳尔

永远的金童,永远的劳尔。金童也会老去,劳尔永远在伯纳乌发光。

恭喜劳尔,恭喜伯纳乌!恭喜银河战舰!!

17
Jun

经典拒绝服务技术

作者: Daxigua 581次浏览

拒绝服务技术的创新已经基本尘埃落定,而上个世纪最后十年的发明也逐渐遥远。然而,随着宽带接入、自动化和如今家庭计算机功能的日益强大,使得对拒绝服务 攻击的研究有些多余。尤其是当我们发现一些本已在90年代末销声匿迹的古老的攻击方式,(例如land ,其使用类似的源和目标 IP 地址和端口发送 UDP 信息包)这些攻击技术 现在又卷土重来时,这个结论就更加显而易见。在这一方面唯一的进步就是可以发起并行任务,从而可以通过简单的 486 处理器所无法实现的方式来显著提高攻击强度。

另一个要考虑的重点是事实上IP堆栈似乎并未正确地安装补丁程序。计算机不再会因为单一的信息包而崩溃;但是,CPU操作会为了处理这种信息包而保持 高速运行。因为补丁失效期间生成的信息包是有限的,所以要实现有效的攻击并不容易。可能是技术提高得太快。不管是什么原因,这些陈旧过时的攻击方式现在又 卷土重来,而且还非常有效。
阅读全文 »

16
Jun

From:http://www.viruslist.com/en/analysis?pubid=204791931
Nikolay Grebennikov

In February 2005, Joe Lopez, a businessman from Florida, filed a suit against Bank of America after unknown hackers stole $90,000 from his Bank of America account. The money had been transferred to Latvia.

An investigation showed that Mr. Lopez’s computer was infected with a malicious program, Backdoor.Coreflood, which records every keystroke and sends this information to malicious users via the Internet. This is how the hackers got hold of Joe Lopez’s user name and password, since Mr. Lopez often used the Internet to manage his Bank of America account.

However the court did not rule in favor of the plaintiff, saying that Mr. Lopez had neglected to take basic precautions when managing his bank account on the Internet: a signature for the malicious code that was found on his system had been added to nearly all antivirus product databases back in 2003.

Joe Lopez’s losses were caused by a combination of overall carelessness and an ordinary keylogging program.

About Keyloggers

The term ‘keylogger’ itself is neutral, and the word describes the program’s function. Most sources define a keylogger as a software program designed to secretly monitor and log all keystrokes. This definition is not altogether correct, since a keylogger doesn’t have to be software – it can also be a device. Keylogging devices are much rarer than keylogging software, but it is important to keep their existence in mind when thinking about information security.

Legitimate programs may have a keylogging function which can be used to call certain program functions using “hotkeys,” or to toggle between keyboard layouts (e.g. Keyboard Ninja). There is a lot of legitimate software which is designed to allow administrators to track what employees do throughout the day, or to allow users to track the activity of third parties on their computers. However, the ethical boundary between justified monitoring and espionage is a fine line. Legitimate software is often used deliberately to steal confidential user information such as passwords.

Most modern keyloggers are considered to be legitimate software or hardware and are sold on the open market. Developers and vendors offer a long list of cases in which it would be legal and appropriate to use keyloggers, including:

  • Parental control: parents can track what their children do on the Internet, and can opt to be notified if there are any attempts to access websites containing adult or otherwise inappropriate content;
  • Jealous spouses or partners can use a keylogger to track the actions of their better half on the Internet if they suspect them of “virtual cheating”;
  • Company security: tracking the use of computers for non-work-related purposes, or the use of workstations after hours;
  • Company security: using keyloggers to track the input of key words and phrases associated with commercial information which could damage the company (materially or otherwise) if disclosed;
  • Other security (e.g. law enforcement): using keylogger records to analyze and track incidents linked to the use of personal computers;
  • Other reasons.

However, the justifications listed above are more subjective than objective; the situations can all be resolved using other methods. Additionally, any legitimate keylogging program can still be used with malicious or criminal intent. Today, keyloggers are mainly used to steal user data relating to various online payment systems, and virus writers are constantly writing new keylogger Trojans for this very purpose.

Furthermore, many keyloggers hide themselves in the system (i.e. they have rootkit functionality), which makes them fully-fledged Trojan programs.

As such programs are extensively used by cyber criminals, detecting them is a priority for antivirus companies. Kaspersky Lab’s malware classification system has a dedicated category for malicious programs with keylogging functionality: Trojan-Spy. Trojan-Spy programs, as the name suggests, track user activity, save the information to the user’s hard disk and then forward it to the author or ‘master’ of the Trojan. The information collected includes keystrokes and screen-shots, used in the theft of banking data to support online fraud.

Why keyloggers are a threat

Unlike other types of malicious program, keyloggers present no threat to the system itself. Nevertheless, they can pose a serious threat to users, as they can be used to intercept passwords and other confidential information entered via the keyboard. As a result, cyber criminals can get PIN codes and account numbers for e-payment systems, passwords to online gaming accounts, email addresses, user names, email passwords etc.

Once a cyber criminal has got hold of confidential user data, s/he can easily transfer money from the user’s account or access the user’s online gaming account. Unfortunately access to confidential data can sometimes have consequences which are far more serious than an individual’s loss of a few dollars. Keyloggers can be used as tools in both industrial and political espionage, accessing data which may include proprietary commercial information and classified government material which could compromise the security of commercial and state-owned organizations (for example, by stealing private encryption keys).

Keyloggers, phishing and social engineering (see ‘Computers, Networks and Theft’) are currently the main methods being used in cyber fraud. Users who are aware of security issues can easily protect themselves against phishing by ignoring phishing emails and by not entering any personal information on suspicious websites. It is more difficult, however, for users to combat keyloggers; the only possible method is to use an appropriate security solution, as it’s usually impossible for a user to tell that a keylogger has been installed on his/ her machine.

According to Cristine Hoepers, the manager of Brazil’s Computer Emergency Response Team, which works under the aegis of the country’s Internet Steering Committee, keyloggers have pushed phishing out of first place as the most-used method in the theft of confidential information. What’s more, keyloggers are becoming more sophisticated – they track websites visited by the user and only log keystrokes entered on websites of particular interest to the cyber criminal.

In recent years, we have seen a considerable increase in the number of different kinds of malicious programs which have keylogging functionality. No Internet user is immune to cyber criminals, no matter where in the world s/he is located and no matter what organization s/he works for.

How cyber criminals use keyloggers

One of the most publicized keylogging incidents recently was the theft of over $1million from client accounts at the major Scandinavian bank Nordea. In August 2006 Nordea clients started to receive emails, allegedly from the bank, suggesting that they install an antispam product, which was supposedly attached to the message. When a user opened the file and downloaded it to his/ her computer, the machine would be infected with a well known Trojan called Haxdoor. This would be activated when the victim registered at Nordea’s online service, and the Trojan would display an error notification with a request to re-enter the registration information. The keylogger incorporated in the Trojan would record data entered by the bank’s clients, and later send this data to the cyber criminals’ server. This was how cyber criminals were able to access client accounts, and transfer money from them. According to Haxdoor’s author, the Trojan has also been used in attacks against Australian banks and many others.

On January 24, 2004 the notorious Mydoom worm caused a major epidemic. MyDoom broke the record previously set by Sobig, provoking the largest epidemic in Internet history to date. The worm used social engineering methods and organized a DoS attack on www.sco.com; the site was either unreachable or unstable for several months as a consequence. The worm left a Trojan on infected computers which was subsequently used to infect the victim machines with new modifications of the worm. The fact that MyDoom had a keylogging function to harvest credit card numbers was not widely publicized in the media.

In early 2005 the London police prevented a serious attempt to steal banking data. After attacking a banking system, the cyber criminals had planned to steal $423 million from Sumitomo Mitsui’s London-based offices. The main component of the Trojan used, which was created by the 32-year-old Yeron Bolondi, was a keylogger that allowed the criminals to track all the keystrokes entered when victims used the bank’s client interface.

In May 2005 in London the Israeli police arrested a married couple who were charged with developing malicious programs that were used by some Israeli companies in industrial espionage. The scale of the espionage was shocking: the companies named by the Israeli authorities in investigative reports included cellular providers like Cellcom and Pelephone, and satellite television provider YES. According to reports, the Trojan was used to access information relating to the PR agency Rani Rahav, whose clients included Partner Communications (Israel’s second leading cellular services provider) and the HOT cable television group. The Mayer company, which imports Volvo and Honda cars to Israel, was suspected of committing industrial espionage against Champion Motors, which imports Audi and Volkswagen cars to the country. Ruth Brier-Haephrati, who sold the keylogging Trojan that her husband Michael Haephrati created, was sentenced to four years in jail, and Michael received a two-year sentence.

In February 2006, the Brazilian police arrested 55 people involved in spreading malicious programs which were used to steal user information and passwords to banking systems. The keyloggers were activated when the users visited their banks’ websites, and secretly tracked and subsequently sent all data entered on these pages to cyber criminals. The total amount of money stolen from 200 client accounts at six of the country’s banks totaled $4.7million.

At approximately the same time, a similar criminal grouping made up of young (20 – 30 year old) Russians and Ukrainians was arrested. In late 2004, the group began sending banking clients in France and a number of other countries email messages that contained a malicious program – namely, a keylogger. Furthermore, these spy programs were placed on specially created websites; users were lured to these sites using classic social engineering methods. In the same way as in the cases described above, the program was activated when users visited their banks’ websites, and the keylogger harvested all the information entered by the user and sent it to the cyber criminals. In the course of eleven months over one million dollars was stolen.

There are many more examples of cyber criminals using keyloggers – most financial cybercrime is committed using keyloggers, since these programs are the most comprehensive and reliable tool for tracking electronic information.

Increased use of keyloggers by cyber criminals

The fact that cyber criminals choose to use keyloggers time and again is confirmed by IT security companies.

One of VeriSign’s recent reports notes that in recent years, the company has seen a rapid growth in the number of malicious programs that have keylogging functionality.


Source: iDefense, a VeriSign Company

One report issued by Symantec shows that almost 50% of malicious programs detected by the company’s analysts during the past year do not pose a direct threat to computers, but instead are used by cyber criminals to harvest personal user data.

According to research conducted by John Bambenek, an analyst at the SANS Institute, approximately 10 million computers in the US alone are currently infected with a malicious program which has a keylogging function. Using these figures, together with the total number of American users of e-payment systems, possible losses are estimated to be $24.3 million.

Kaspersky Lab is constantly detecting new malicious programs which have a keylogging function. One of the first virus alerts on www.viruslist.com, Kaspersky Lab’s dedicated malware information site, was published on 15th June 2001. The warning related to TROJ_LATINUS.SVR, a Trojan with a keylogging function. Since then, there has been a steady stream of new keyloggers and new modifications. Kaspersky antivirus database currently contain records for more than 300 families of keyloggers. This number does not include keyloggers that are part of complex threats (i.e. in which the spy component provides additional functionality).

Most modern malicious programs are hybrids which implement many different technologies. Due to this, any category of malicious program may include programs with keylogger (sub)functionality. The number of spy programs detected by Kaspersky Lab each month is on the increase, and most of these programs use keylogging technology.

Keylogger construction

The main idea behind keyloggers is to get in between any two links in the chain of events between when a key is pressed and when information about that keystroke is displayed on the monitor. This can be achieved using video surveillance, a hardware bug in the keyboard, wiring or the computer itself, intercepting input/ output, substituting the keyboard driver, the filter driver in the keyboard stack, intercepting kernel functions by any means possible (substituting addresses in system tables, splicing function code, etc.), intercepting DLL functions in user mode, and, finally, requesting information from the keyboard using standard documented methods.

Experience shows that the more complex the approach, the less likely it is to be used in common Trojan programs and the more likely it is to be used in specially designed Trojan programs which are designed to steal financial data from a specific company.

Keyloggers can be divided into two categories: keylogging devices and keylogging software. Keyloggers which fall into the first category are usually small devices that can be fixed to the keyboard, or placed within a cable or the computer itself. The keylogging software category is made up of dedicated programs designed to track and log keystrokes.

The most common methods used to construct keylogging software are as follows:

  • a system hook which intercepts notification that a key has been pressed (installed using WinAPI SetWindowsHook for messages sent by the window procedure. It is most often written in C);
  • a cyclical information keyboard request from the keyboard (using WinAPI Get(Async)KeyState or GetKeyboardState – most often written in Visual Basic, sometimes in Borland Delphi);
  • using a filter driver (requires specialized knowledge and is written in C).

We will provide a detailed explanation of the different ways keyloggers are constructed in the second half of this article (to be published in the near future). But first, here are some statistics.

A rough breakdown of the different types of keyloggers is shown in the pie chart below:

Recently, keyloggers that disguise their files to keep them from being found manually or by an antivirus program have become more numerous. These stealth techniques are called rootkit technologies. There are two main rootkit technologies used by keyloggers:

  • masking in user mode;
  • masking in kernel mode.

A rough breakdown of the techniques used by keyloggers to mask their activity is shown in the pie chart below:

How keyloggers spread

Keyloggers spread in much the same way that other malicious programs spread. Excluding cases where keyloggers are purchased and installed by a jealous spouse or partner, and the use of keyloggers by security services, keyloggers are mostly spread using the following methods):

  • a keylogger can be installed when a user opens a file attached to an email;
  • a keylogger can be installed when a file is launched from an open-access directory on a P2P network;
  • a keylogger can be installed via a web page script which exploits a browser vulnerability. The program will automatically be launched when a user visits a infected site;
  • a keylogger can be installed by another malicious program already present on the victim machine, if the program is capable of downloading and installing other malware to the system.

How to protect yourself from keyloggers

Most antivirus companies have already added known keyloggers to their databases, making protecting against keyloggers no different from protecting against other types of malicious program: install an antivirus product and keep its database up to date. However, since most antivirus products classify keyloggers as potentially malicious, or potentially undesirable programs, users should ensure that their antivirus product will, with default settings, detect this type of malware. If not, then the product should be configured accordingly, to ensure protection against most common keyloggers.

Let’s take a closer look at the methods that can be used to protect against unknown keyloggers or a keylogger designed to target a specific system.

Since the chief purpose of keyloggers is to get confidential data (bank card numbers, passwords, etc.), the most logical ways to protect against unknown keyloggers are as follows:

  1. using one-time passwords or two-step authentication,
  2. using a system with proactive protection designed to detect keylogging software,
  3. using a virtual keyboard.

Using a one-time password can help minimize losses if the password you enter is intercepted, as the password generated can be used one time only, and the period of time during which the password can be used is limited. Even if a one-time password is intercepted, a cyber criminal will not be able to use it in order to obtain access to confidential information.

In order to get one-time passwords, you can use a special device such as:

  1. a USB key (such as Aladdin eToken NG OTP):

  2. a ‘calculator’ (such as RSA SecurID 900 Signing Token):

In order to generate one-time passwords, you can also use mobile phone text messaging systems that are registered with the banking system and receive a PIN-code as a reply. The PIN is then used together with the personal code for authentication.

If either of the above devices is used to generate passwords, the procedure is as described below:

  1. the user connects to the Internet and opens a dialogue box where personal data should be entered;
  2. the user then presses a button on the device to generate a one-time password, and a password will appear on the device’s LCD display for 15 seconds;
  3. the user enters his user name, personal PIN code and the generated one-time password in the dialogue box (usually the PIN code and the key are entered one after the other in a single pass code field);
  4. the codes that are entered are verified by the server, and a decision is made whether or not the user may access confidential data.

When using a calculator device to generate a password, the user will enter his PIN code on the device ‘keyboard’ and press the “>” button.

One-time password generators are widely used by banking systems in Europe, Asia, the US and Australia. For example, Lloyds TSB, a leading bank, decided to use password generators back in November 2005.

In this case, however, the company has to spend a considerable amount of money as it had to acquire and distribute password generators to its clients, and develop/ purchase the accompanying software.

A more cost efficient solution is proactive protection on the client side, which can warn a user if an attempt is made to install or activate keylogging software.


Proactive protection against keyloggers in Kaspersky Internet Security

The main drawback of this method is that the user is actively involved and has to decide what action should be taken. If a user is not very technically experienced, s/he might make the wrong decision, resulting in a keylogger being allowed to bypass the antivirus solution. However, if developers minimize user involvement, then keyloggers will be able to evade detection due to an insufficiently rigorous security policy. However, if settings are too stringent, then other, useful programs which contain legitimate keylogging functions might also be blocked.

The final method which can be used to protect against both keylogging software and hardware is using a virtual keyboard. A virtual keyboard is a program that shows a keyboard on the screen, and the keys can be ‘pressed’ by using a mouse.

The idea of an on-screen keyboard is nothing new - the Windows operating system has a built-in on-screen keyboard that can be launched as follows: Start > Programs > Accessories > Accessibility > On-Screen Keyboard.


An example of the Windows on-screen keyboard

However, on-screen keyboards aren’t a very popular method of outsmarting keyloggers. They were not designed to protect against cyber threats, but as an accessibility tool for disabled users. Information entered using an on-screen keyboard can easily be intercepted by a malicious program. In order to be used to protect against keyloggers, on-screen keyboards have to be specially designed in order to ensure that information entered or transmitted via the on-screen keyboard cannot be intercepted.

Conclusions

This article has provided an overview of how keyloggers – both keylogging software and hardware - function and are used.

  • Even though keylogger developers market their products as legitimate software, most keyloggers can be used to steal personal user data and in political and industrial espionage.
  • At present, keyloggers – together with phishing and social engineering methods – are one of the most commonly used methods of cyber fraud.
  • IT security companies have recorded a steady increase in the number of malicious programs that have keylogging functionality.
  • Reports show that there is an increased tendency to use rootkit technologies in keylogging software, to help the keylogger evade manual detection and detection by antivirus solutions.
  • Only dedicated protection can detect that a keylogger is being used for spy purposes.
  • The following measures can be taken to protect against keyloggers:
    • use a standard antivirus that can be adjusted to detect potentially malicious software (default settings for many products);
    • proactive protection will protect the system against new ,modifications of existing keyloggers;
    • use a virtual keyboard or a system to generate one-time passwords to protect against keylogging software and hardware.

Source:

Kaspersky Lab

16
Jun

WikiPedia的英文版解封了

作者: Daxigua 316次浏览

昨天在一个QQ群里面看到了这个消息,为止振奋。
当时的第一想法就是赶紧去看看中文的,发现我们伟大的GFW依然在正常工作。而且有人怀疑说英文版的解封是GFW出错,呵呵,我想不大可能。

毫不犹豫,赶紧的注册了一个用户,准备创建一个自己的条目的时候发愁了,不知道写什么东西。。。。我想图好玩,估计bupt没人写吧,搜索出来居然就直接是我们学校的简介了,当时我就不敌了。罢了,还是老老实实的自己慢慢看吧。等什么时候小爷自己搞出来一个东西后在往上面添加。

16
Jun

对于过去的回忆是真是假

作者: Daxigua 393次浏览

昨天看了姜文拍的《阳光灿烂的日子》

我发现姜文作为导演还是很厉害的,挺有才的。我也非常喜欢他的另外一部片子《鬼子来了》,找个机会还要再看一遍。这片子是王朔的小说《动物凶猛》改编的。小说我没看过,上次看这部片子应该也是几年前了。很多情节都已经模糊了,只记得一群人在喝酒打架了。估计是当时年纪还小吧,没有什么太多的感动或者说感觉。但是现在把他拿出来再看一遍,就又有了新的体验了。

故事回顾了那个文革那个动乱的年代里一群在军队大院里面长大长大的孩子的故事。与其再说故事是在讲述马小军不如说姜文和王朔在讲述他们年轻时的故事(ps:姜文原名叫做姜小军)。我不想过多的描述故事的情节,如果你记不起来了就赶紧去找了看看吧。社会是混乱的,人的精神是空虚的,一群父母不在身边管教的孩子拿什么来填充空虚的灵魂呢。。。。。。喝酒,打架,甚至以打开其他家的门来作为自己精神的最大胜利。这能怪当时的那些孩子吗?这就是社会,这就是当时的社会,一个扭曲的社会。

故事的精彩点出现在后面和结尾的地方。姜文推翻了自己前面所有的回忆,把故事重新按照另外一个版本讲述了一遍。当十几二十几年过去后,当一群童时的玩伴坐在豪华的加长车里面的时候,看到了军队大院门口那个骑着木棍的,他们高呼着,喊叫着,宣泄着。古伦木的一句“傻逼”,一句京味十足的骂语是对他们过去日子的最好的诠释,堪称画龙点睛之笔。

这个时候我们还有必要去仔细的追究那两段不同的回忆,那段是真的,那段是假的吗?

一切都素过眼浮云。。。。。。。。。

共 95 页 第86 页« First...«8485868788»...末页 »