百度空间 | 百度首页 
 
查看文章
 
IFEO hijack(映象劫持)使部分程序不可运行的解决方法
2007年03月15日 星期四 13:30

----------------------------------
teYqiu【天下无毒】原创文章,转载请标明。http://hi.baidu.com/teyqiu
百度知道反病毒知识专家崔衍渠 授权。 『转载请保留此申明!』
----------------------------------

Image File Execution Options (IFEO in short)劫持

一、典型症状
双击某些可执行程序无法正常执行(或者说执行了没看到预期的结果)但改一个名字就可以。

二、典型案例OSO.exe新变种60{.exe 美女游戏.pif (转载如下)

============================= 转载Start================================
OSO.exe 新变种
这是OSO.exe,美女游戏.pif,重要资料.exe的又一个新变种,以前截获的样本名为Worm.Pabug.ck ,这次由用户上报的病毒瑞星,金山均没有命名,但在病毒行为上大同小异。以下是具体分析:
此样本于2007年02月01日截获,跟上次的变种一样是采用记事本的图标,是一类IFEO映象劫持病毒。(变种不同这处用红色加粗标识)

病毒行为分析:病毒运行后,会不断打开run time error的消息提示,直到系统资源耗尽,当然用任务管理器,结束error窗口可暂时减少提示的生成。
生成文件如下:(以系统盘为C盘,XP SP2为例)
oso.exe的分析:
生成文件:
C:\WINDOWS\system32\drivers\60{.exe 38,510
C:\WINDOWS\system32\drivers\conime.exe           38,510
C:\WINDOWS\system32\severe.exe          38510
C:\WINDOWS\system32\.exe 38510
C:\WINDOWS\system32\.dll 38400
C:\WINDOWS\system32\hx1.dat 生成运行后自删除
C:\WINDOWS\system32\noruns.reg 生成运行后自删除
C:\WINDOWS\system32\kakatool.dll          删除卡卡助手的动态链接库
C:\WINDOWS\system32\drivers\etc\Hosts          1,465 字节 修改HOSTS文件,屏避对手的网站:
127.0.0.1               localhost
127.0.0.1               mmsk.cn
127.0.0.1               ikaka.com
127.0.0.1               safe.qq.com
127.0.0.1               360safe.com
127.0.0.1       
www.mmsk.cn
127.0.0.1       www.ikaka.com
127.0.0.1               tool.ikaka.com
127.0.0.1       
www.360safe.com
127.0.0.1               zs.kingsoft.com
127.0.0.1               forum.ikaka.com
127.0.0.1               up.rising.com.cn
127.0.0.1               scan.kingsoft.com
127.0.0.1               kvup.jiangmin.com
127.0.0.1               reg.rising.com.cn
127.0.0.1               update.rising.com.cn
127.0.0.1               update7.jiangmin.com
127.0.0.1               download.rising.com.cn
127.0.0.1               dnl-us1.kaspersky-labs.com
127.0.0.1               dnl-us2.kaspersky-labs.com
127.0.0.1               dnl-us3.kaspersky-labs.com
127.0.0.1               dnl-us4.kaspersky-labs.com
127.0.0.1               dnl-us5.kaspersky-labs.com
127.0.0.1               dnl-us6.kaspersky-labs.com
127.0.0.1               dnl-us7.kaspersky-labs.com
127.0.0.1               dnl-us8.kaspersky-labs.com
127.0.0.1               dnl-us9.kaspersky-labs.com
127.0.0.1               dnl-us10.kaspersky-labs.com
127.0.0.1               dnl-eu1.kaspersky-labs.com
127.0.0.1               dnl-eu2.kaspersky-labs.com
127.0.0.1               dnl-eu3.kaspersky-labs.com
127.0.0.1               dnl-eu4.kaspersky-labs.com
127.0.0.1               dnl-eu5.kaspersky-labs.com
127.0.0.1               dnl-eu6.kaspersky-labs.com
127.0.0.1               dnl-eu7.kaspersky-labs.com
127.0.0.1               dnl-eu8.kaspersky-labs.com
127.0.0.1               dnl-eu9.kaspersky-labs.com
127.0.0.1               dnl-eu10.kaspersky-labs.com
X:\autorun.inf (X在此指非系统盘,不包括移动设备)
X:\oso.exe (X在此指非系统盘,不包括移动设备)
U:\autorun.inf (U指移动设备 )
U:\oso.exe
U:\重要资料.exe
U:\美女游戏.pif
注册表修改情况:
添加自启动项
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
60{
C:\WINDOWS\system32\.exe
---------------------
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
@ ---默认项
C:\WINDOWS\system32\severe.exe
被映象劫持的软件名列表(这次被劫持和软件名多了NOD32杀毒软件和EGHOST
          HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\360Safe.exe
Debugger
C:\WINDOWS\system32\drivers\60{.exe          都是指向此项,以下不一一列述
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\adam.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\avp.com
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\avp.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\IceSword.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\EGHOST.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iparmo.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\kabaload.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\KRegEx.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\KvDetect.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\KVMonXP.kxp
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\KvXP.kxp
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\MagicSet.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\mmsk.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msconfig.com
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msconfig.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\NOD32.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\PFW.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\PFWLiveUpdate.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\QQDoctor.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Ras.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Rav.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\RavMon.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\regedit.com
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\regedit.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\runiep.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SREng.EXE
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\TrojDie.kxp
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\WoptiClean.exe
用一个批处理hx1.dat
修改系统时间为2004-1-22 使防病毒软件失效
          由于此病毒修改的内容较多手动修复相当麻烦,U盘病毒专杀工具USBCleaner可彻底清除此病毒。
此版本已在之官方网站发布,欢迎下载使用!
永久转向域名:http://nick429.126.com
友情提示:U盘病毒专杀工具USBCleaner 为免费绿色的查杀U盘类病毒木马的小工具

============================= 转载End================================

三、解决方法:

可以手动删除添加的非法 IFEO 劫持项目,重启后即可。

具体方法:

1、进入系统目录。例如 C:\windows

2、找到 regedit.exe ,复制,粘贴 ,运行“附件 regedit.exe”

3、按上面说的方法删除相应的被劫持项目即可。

四、提示:

防止Image File Execution Options         hijack(映象劫持)的方法是通过在SSM等行为防火墙中添加一条注册表的监控规则(如下图)来防御,
具体可google ,或点此此处链接。

图1

图2

~~~~~~~~~ 如下设置图与SSM版本有关 仅供参考,原作:baohe@forume.ikaka.com

位置:HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution

五、部分技术内幕:

Image File Execution Options (IFEO in short)

You can set up your application to start Visual Studio when you launch the application from Windows. Visual Studio will load your application, ready for debugging, but will not commence debugging until you issue an execution command. Having Visual Studio launch the debugger in this way is useful for debugging services and COM out-of-proc servers.

To setup an application to launch the debugger automatically

  1. Start the Registry Editor (regedit).
  2. In the Registry Editor, open the HKEY_LOCAL_MACHINE folder.
  3. Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\currentversion\image file execution options.
  4. Under the Image File Execution Options folder, locate the name of the application you want to debug (myapp.exe, for example). If you cannot find the application you want to debug:
    1. Right-click the Image File Execution Options folder and choose New Key from the shortcut menu.
    2. Right-click the new key and choose Rename from the shortcut menu.
    3. Edit the key name to the name of your application, for example, myapp.exe.
  5. Right-click the myapp.exe folder and choose New String Value from the shortcut menu.
  6. Right-click the new string value and choose Rename from the shortcut menu.
  7. Change the name to debugger.
  8. Right-click the new string value and choose Modify from the shortcut menu.

    The Edit String dialog box appears.

  9. In the Value data box, type devenv /debugexe.
  10. Click OK.
  11. From the Registry menu, choose Exit.

    The directory containing devenv.exe must be in your system path.

    Now, use any method to start your application. Visual Studio .NET will start and load the application.

    Note     If the application is managed, Visual Studio launches with the Debugger Type set to Auto. Before you debug, change the Debugger Type from Auto to Mixed in the Property Pages dialog box. For more information, see Specifying Debugger Settings.

See Also

Using the Debugger

----------------------------------
teYqiu【天下无毒】原创文章,转载请标明。http://hi.baidu.com/teyqiu
百度知道反病毒知识专家崔衍渠 授权。 『转载请保留此申明!』
----------------------------------


类别:『反病毒笔记』 | 添加到搜藏 | 浏览() | 评论 (19)
 
最近读者:
 
网友评论:
1
2007年03月15日 星期四 14:16
喔 .... 抢个沙发!
 
2
2007年03月15日 星期四 15:40
my god,这么多图
 
3
2007年03月15日 星期四 19:29
感觉回到幼稚园的看图说话时代
 
4
2007年03月15日 星期四 23:04
不错:)
 
5
2007年03月15日 星期四 23:37
曾遇到过,还真是不好对付呢!多谢提供如此详尽的解决方案。
 
6
2007年03月15日 星期四 23:55
最简单的方法:在%windir%里面重命名注册表编辑器打开删除映像劫持的东东就OK,不用那么麻烦嘀,呵呵
 
7
2007年03月15日 星期四 23:59
不错不错...
 
8
2007年03月16日 星期五 01:41
又在你的信箱里发了一个求助日志.麻烦啦... 百度提问地址: http://zhidao.baidu.com/question/22199458.html
 
9
2007年03月16日 星期五 15:03
江民论坛一个朋友中了该病毒询问,我正好看到崔老师博客,就给出了链接。 崔老师每天帮人解决病毒方面的问题,不感到累吗?钦佩您助人为乐的精神,但每天看sreng的生活,我简直不敢想像。HijackThis的日志还好些。 不晓得崔老师是做什么工作的,可能是IT行业吧。其实查杀病毒说难也难,说不难,用好几个工具也就差不多了。很多网友他们所中的病毒行为愚蠢,水平低下,清除模式也大体相似,所以这个活儿多半变成了纯体力活儿,对于电脑水平的提高,或许有,但总体来说,得不偿失。以您的水平,我总觉得这样做有些可惜了。。。 向崔老师问好。并附上我诚挚的祝福。
 
10
2007年03月16日 星期五 16:39
疑问,你发那么多都能发,为什么我发一点就说过长。
 
11
2007年03月16日 星期五 18:46
恶魔回来支持一下崔老师!!!!!
 
12
2007年03月17日 星期六 17:46
详细!谢谢崔老师提醒。
 
13
2007年04月12日 星期四 14:55
留个记号,这个一定要看看
 
14
2007年04月19日 星期四 00:32
学习了!这个知识第一次详细看。
 
15
2007年04月29日 星期日 05:51
崔老师,在奉献精神人人都值得学习。
 
16
2007年06月18日 星期一 18:16
刚刚搜索IFEO进来的,学习了
 
17
2007年07月03日 星期二 21:00
最简单的方法是,直接在注册表中把image file execution options项删除即可,IIFEO技术是程序员调试程序使用的,我们留他干嘛,删除了即安全有省事!
 
18
2007年11月27日 星期二 20:06
谢谢!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!......
 
19
2008年03月03日 星期一 16:14
写的不错,但是那个usbclear 的链接失效了
 
本篇日志被作者设置为禁止发表新评论

     

©2009 Baidu