1. /
  2. Security Response/
  3. Trojan.Lapka

Trojan.Lapka

Risk Level 1: Very Low

Discovered:
May 23, 2013
Updated:
May 24, 2013 5:27:30 AM
Type:
Trojan
Infection Length:
Varies
Systems Affected:
Windows 2000, Windows 7, Windows 95, Windows 98, Windows Me, Windows NT, Windows Server 2003, Windows Server 2008, Windows Vista, Windows XP
When executed, the threat copies itself as the following file:
%System%\wininitg.exe

Next, the threat creates the following files:
  • %System%\Black.dll
  • %System%\RCX1.tmp
  • %System%\RCX2.tmp
  • %System%\drivers\diskflt.sys
  • %System%\drivers\passthru.sys
  • %SystemDrive%\netsf.inf
  • %SystemDrive%\netsf_m.inf
  • %SystemDrive%\passthru.sys
  • %Temp%\install.bat
  • %Temp%\netsf.inf
  • %Temp%\netsf_m.inf
  • %Temp%\passthru.sys
  • %Temp%\snetcfg.exe
  • %Windir%\LastGood\system32\DRIVERS\passthru.sys
  • %Windir%\inf\netsf.inf
  • %Windir%\inf\netsf_m.inf
  • %Windir%\inf\passthru.sys

It then creates the following registry entries to register itself as a system service:
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Passthru\"DisplayName" = "Passthru Service"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Passthru\"ErrorControl" = "1"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Passthru\"ImagePath" = "system32\DRIVERS\passthru.sys"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Passthru\"Start" = "3"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Passthru\"Type" = "1"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Passthru\Security\"Security" = "[BINARY DATA]"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\win32 Tool\"Description" = "win32 Tool"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\win32 Tool\"DisplayName" = "win32 Tool"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\win32 Tool\"ErrorControl" = "0"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\win32 Tool\"ImagePath" = "%System%\wininitg.exe"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\win32 Tool\"ObjectName" = "LocalSystem"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\win32 Tool\"Start" = "2"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\win32 Tool\"Type" = "16"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\win32 Tool\Security\"Security" = "[BINARY DATA]"

The services have the following characteristics:
Startup type: Automatic
Image path: %System%\wininitg.exe
Display name: win32 Tool

Startup type: Manual
Image path: system32\DRIVERS\passthru.sys
Display name: Passthru Service

It then creates the following registry entries to register itself as a legacy driver service:
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_WIN32_TOOL\"NextInstance" = "1"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_WIN32_TOOL\0000\"Class" = "LegacyDriver"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_WIN32_TOOL\0000\"ClassGUID" = "{8ECC055D-047F-11D1-A537-0000F8753ED1}"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_WIN32_TOOL\0000\"ConfigFlags" = "0"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_WIN32_TOOL\0000\"DeviceDesc" = "win32 Tool"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_WIN32_TOOL\0000\"Legacy" = "1"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_WIN32_TOOL\0000\"Service" = "win32 Tool"

The threat then creates the following registry entries:
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}\{8E1E2F6F-2396-486E-BCE0-955C7272C431}\"Characteristics" = "17424"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}\{8E1E2F6F-2396-486E-BCE0-955C7272C431}\"ComponentId" = "ms_passthru"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}\{8E1E2F6F-2396-486E-BCE0-955C7272C431}\"Description" = "Passthru Driver"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}\{8E1E2F6F-2396-486E-BCE0-955C7272C431}\"InfPath" = "netsf.inf"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}\{8E1E2F6F-2396-486E-BCE0-955C7272C431}\"InfSection" = "Passthru.ndi"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}\{8E1E2F6F-2396-486E-BCE0-955C7272C431}\Ndi\"FilterClass" = "failover"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}\{8E1E2F6F-2396-486E-BCE0-955C7272C431}\Ndi\"FilterDeviceInfId" = "ms_passthrump"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}\{8E1E2F6F-2396-486E-BCE0-955C7272C431}\Ndi\"HelpText" = "Passthru Driver"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}\{8E1E2F6F-2396-486E-BCE0-955C7272C431}\Ndi\"Service" = "Passthru"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}\{8E1E2F6F-2396-486E-BCE0-955C7272C431}\Ndi\Interfaces\"FilterMediaTypes" = "ethernet, tokenring, fddi, wan"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}\{8E1E2F6F-2396-486E-BCE0-955C7272C431}\Ndi\Interfaces\"LowerRange" = "nolower"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}\{8E1E2F6F-2396-486E-BCE0-955C7272C431}\Ndi\Interfaces\"UpperRange" = "noupper"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E974-E325-11CE-BFC1-08002BE10318}\{8E1E2F6F-2396-486E-BCE0-955C7272C431}\Parameters\"Param1" = "4"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\MS_PASSTHRUMP,00\"HardwareID" = "ms_passthrump"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\MS_PASSTHRUMP\0000\"Class" = "Net"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\MS_PASSTHRUMP\0000\"ClassGUID" = "{4D36E972-E325-11CE-BFC1-08002BE10318}"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BITS\"Fuck_Time" = "2"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diskflt\"ErrorControl" = "1"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diskflt\"Start" = "0"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diskflt\"Tag" = "10"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diskflt\"Type" = "1"

Next, the threat modifies the following registry entries:
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318},06\Linkage\"UpperBind" = "Tcpip"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318},08\Linkage\"UpperBind" = "RasPppoe,Ndisuio,Tcpip"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318},10\Linkage\"UpperBind" = "RasPppoe,Ndisuio,Tcpip"
  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\"Config" = "[BINARY DATA]"

It attempts to establish a connection with the following location over port 8699:
1000.ggxiaozi.com

It then sends a plain text string to the above location in the following form:
[VERSION][OPERATING SYSTEM][CPU_MHZ]


    Recommendations

    Symantec Security Response encourages all users and administrators to adhere to the following basic security "best practices":

    • Use a firewall to block all incoming connections from the Internet to services that should not be publicly available. By default, you should deny all incoming connections and only allow services you explicitly want to offer to the outside world.
    • Enforce a password policy. Complex passwords make it difficult to crack password files on compromised computers. This helps to prevent or limit damage when a computer is compromised.
    • Ensure that programs and users of the computer use the lowest level of privileges necessary to complete a task. When prompted for a root or UAC password, ensure that the program asking for administration-level access is a legitimate application.
    • Disable AutoPlay to prevent the automatic launching of executable files on network and removable drives, and disconnect the drives when not required. If write access is not required, enable read-only mode if the option is available.
    • Turn off file sharing if not needed. If file sharing is required, use ACLs and password protection to limit access. Disable anonymous access to shared folders. Grant access only to user accounts with strong passwords to folders that must be shared.
    • Turn off and remove unnecessary services. By default, many operating systems install auxiliary services that are not critical. These services are avenues of attack. If they are removed, threats have less avenues of attack.
    • If a threat exploits one or more network services, disable, or block access to, those services until a patch is applied.
    • Always keep your patch levels up-to-date, especially on computers that host public services and are accessible through the firewall, such as HTTP, FTP, mail, and DNS services.
    • Configure your email server to block or remove email that contains file attachments that are commonly used to spread threats, such as .vbs, .bat, .exe, .pif and .scr files.
    • Isolate compromised computers quickly to prevent threats from spreading further. Perform a forensic analysis and restore the computers using trusted media.
    • Train employees not to open attachments unless they are expecting them. Also, do not execute software that is downloaded from the Internet unless it has been scanned for viruses. Simply visiting a compromised Web site can cause infection if certain browser vulnerabilities are not patched.
    • If Bluetooth is not required for mobile devices, it should be turned off. If you require its use, ensure that the device's visibility is set to "Hidden" so that it cannot be scanned by other Bluetooth devices. If device pairing must be used, ensure that all devices are set to "Unauthorized", requiring authorization for each connection request. Do not accept applications that are unsigned or sent from unknown sources.
    • For further information on the terms used in this document, please refer to the Security Response glossary.
    Writeup By: Alan Neville, Jeet Morparia
    Summary| Technical Details| Removal

    Search Threats

    Search by name
    Example: W32.Beagle.AG@mm
    STAR Antimalware Protection Technologies
    Internet Security Threat Report, Volume 17
    Symantec DeepSight Screensaver