首页 > 其他分享 >Backdoor:Win32/Noancooe 使用IDA进行恶意软件分析

Backdoor:Win32/Noancooe 使用IDA进行恶意软件分析

时间:2023-08-03 21:05:29浏览次数:34  
标签:exe PC 恶意软件 FileName Win32 Backdoor threat ShellExecute your

Backdoor:Win32/Noancooe

先看下微软官方怎么说这个恶意软件:

Detected by Microsoft Defender Antivirus

Aliases: Trojan-Ransom.Win32.Foreign.muyq (Kaspersky)

Summary

Windows Defender detects and removes this threat.

This threat can give a malicious hacker unauthorized access and control of your PC.

Find out ways that malware can get on your PC.

The following can indicate that you have this threat on your PC:

  • You see a file similar to:
  • %APPDATA%\c97e261a-abeb-4aa5-9797-7611f82457ca\run.dat
  • %TEMP%\windowsus\windows.exe
  • You see registry modifications such as:
  • In subkey: HKCU\Software\Microsoft\Windows\CurrentVersion\Run
    Sets value: "Windows.exe"
    With data: "c:\users\admini~1\appdata\local\temp\windowsus\windows.exe"
  • You see the following mutex:
  • {d84f6a6b-ea26-49f1-a11d-082520f7fa1c}

Threat behavior

Installation

This threat can create files on your PC, including:

 

  • %APPDATA%\c97e261a-abeb-4aa5-9797-7611f82457ca\run.dat
  • %TEMP%\windowsus\windows.exe

It modifies the registry so that it runs each time you start your PC. For example:

In subkey: HKCU\Software\Microsoft\Windows\CurrentVersion\Run

Sets value: "Windows.exe"
With data: "c:\users\admini~1\appdata\local\temp\windowsus\windows.exe"

The malware uses code injection to make it harder to detect and remove. It can inject code into running processes.

Payload

Allows backdoor access and control

This threat can give a malicious hacker access and control of your PC. They can then perform a number of different actions, such as:

  • Deleting files
  • Downloading and running files
  • Logging your keystrokes or stealing your sensitive data
  • Modifying your system settings
  • Running or stopping applications
  • Spreading malware to other PCs
  • Uploading files

Connects to a remote host

We have seen this threat connect to a remote host, including:

  • a.config.skype.com using port 53
  • dawood01.ddns.net using port 9500
  • dns.msftncsi.com using port 53

Malware can connect to a remote host to do any of the following:

  • Check for an Internet connection
  • Download and run files (including updates or other malware)
  • Report a new infection to its author
  • Receive configuration or other data
  • Receive instructions from a malicious hacker
  • Search for your PC location
  • Upload information taken from your PC
  • Validate a digital certificate
Additional information

Creates a mutex

This threat can create a mutex on your PC. For example:

  • {d84f6a6b-ea26-49f1-a11d-082520f7fa1c}

It might use this mutex as an infection marker to prevent more than one copy of the threat running on your PC.

This malware description was published using automated analysis of file SHA1 2adc13a2ecf5d9268c9d67b702c253dd1e176835.

 

 

What Backdoor:MSIL/Noancooe.B!MTB virus can do?

  • Executable code extraction
  • Injection (inter-process)
  • Injection (Process Hollowing)
  • Injection with CreateRemoteThread in a remote process
  • Creates RWX memory
  • A process attempted to delay the analysis task.
  • At least one IP Address, Domain, or File Name was found in a crypto call
  • Reads data out of its own binary image
  • The binary likely contains encrypted or compressed data.
  • Executed a process and injected code into it, probably while unpacking
  • Attempts to remove evidence of file being downloaded from the Internet
  • Exhibits behavior characteristic of Nanocore RAT
  • Collects information to fingerprint the system

 

我用IDA反汇编后看到的一些关键代码:

执行shellexecute

Backdoor:Win32/Noancooe 使用IDA进行恶意软件分析_句柄

ShellExecute

ShellExecute的功能是运行一个外部程序(或者是打开一个已注册的文件、打开一个目录、打印一个文件等等),并对外部程序有一定的控制。有几个API函数都可以实现这些功能,但是在大多数情况下ShellExecute是更多的被使用的,同时它并不是太复杂。

例子

首先记得加上头文件<windows.h>

//调用计算器

ShellExecute(0,"open","calc.exe","","",SW_SHOWNORMAL);

如果是C++语言,可能会出现参数类型不兼容的情况,改为:

ShellExecute(0,(LPCWSTR)L"open",(LPCWSTR)L"CALC.EXE",(LPCWSTR)L"",(LPCWSTR)L"",SW_SHOWNORMAL);

(下同)

//调用记事本

ShellExecute(0,"open","NOTEPAD.EXE","","",SW_SHOWNORMAL);

●hWnd:用于指定父窗口句柄。当函数调用过程出现错误时,它将作为Windows消息窗口的父窗口。例如,可以将其设置为应用程序主窗口句柄,即Application.Handle,也可以将其设置为桌面窗口句柄(用GetDesktopWindow函数获得)。

●Operation:用于指定要进行的操作。其中“open”操作表示执行由FileName参数指定的程序,或打开由FileName参数指定的文件或文件夹;“print”操作表示打印由FileName参数指定的文件;“explore”操作表示浏览由FileName参数指定的文件夹。当参数设为nil时,表示执行默认操作“open”。

●FileName:用于指定要打开的文件名、要执行的程序文件名或要浏览的文件夹名。

●Parameters:若FileName参数是一个可执行程序,则此参数指定命令行参数,否则此参数应为nil或PChar(0)。

●Directory:用于指定默认目录。

●ShowCmd:若FileName参数是一个可执行程序,则此参数指定程序窗口的初始显示方式,否则此参数应设置为0。

若ShellExecute函数调用成功,则返回值为被执行程序的实例句柄。若返回值小于32,则表示出现错误。

上述仅仅是ShellExecute函数的标准用法,下面将介绍它的特殊用法。

 

 

获取系统信息:

 

Backdoor:Win32/Noancooe 使用IDA进行恶意软件分析_Windows_02

 

 

Backdoor:Win32/Noancooe 使用IDA进行恶意软件分析_安全分析_03

 

 

Backdoor:Win32/Noancooe 使用IDA进行恶意软件分析_安全分析_04

Backdoor:Win32/Noancooe 使用IDA进行恶意软件分析_ci_05

 

Backdoor:Win32/Noancooe 使用IDA进行恶意软件分析_Windows_06

 

Backdoor:Win32/Noancooe 使用IDA进行恶意软件分析_Windows_07

 

Backdoor:Win32/Noancooe 使用IDA进行恶意软件分析_Windows_08

 

 

涉及socket通信相关的代码:

Backdoor:Win32/Noancooe 使用IDA进行恶意软件分析_Windows_09

可以看到有socket,listen,accept,bind,recv,send,sendto等网络通信调用。

 

send

Backdoor:Win32/Noancooe 使用IDA进行恶意软件分析_安全分析_10

 

Backdoor:Win32/Noancooe 使用IDA进行恶意软件分析_Windows_11

 

至于这些代码里具体操作,发送的数据是什么,还需要进一步深入分析了。

 

标签:exe,PC,恶意软件,FileName,Win32,Backdoor,threat,ShellExecute,your
From: https://blog.51cto.com/u_11908275/6952938

相关文章

  • 18.python打包win32print时报错,说找不到该模块
    相关插件自己提前安装好。代码:1#encoding:utf-823fromtkinterimport*4fromtkinterimportmessagebox5importwin32print6importtime7fromtkinterimportscrolledtext89#控制输入框只能输入数字且小于8位数10defvalidate_op(in......
  • 恶意软件分类——MalwareLabel
    MalwareLabelVocab-1.0MAECVOCABULARIESSCHEMAThe MalwareLabelVocab-1.0 isthedefaultMAECVocabularyforcommonmalwarelabels.VocabularyItemsItemDescriptionadwareThe'adware'valuespecifiesanysoftwarethatisfundedbyadvertising.Somead......
  • 恶意软件加密通信——2021年的报告,比较新
    NearlyhalfofmalwarenowuseTLStoconcealcommunicationsAsmoreoftheInternetusesTransportLayerSecurity,analysisofdetectiontelemetryshowsthevolumeofTLSencryptedcommunicationsbymalwarehasdoubledinayear.Writtenby SeanGallagherA......
  • 如何查看加壳的恶意软件 Lab1-2 Lab1-3 恶意代码分析
    Lab1-2分析Lab1.2.exe文件目录Lab1-22.是否有这个文件被加壳或混淆的任何迹象?3.有没有任何导入函数能够暗示出这个程序的功能?4.哪些基于主机或基于网络的迹象可以被用来确定被这个恶意代码所感染的机器? 2.是否有这个文件被加壳或混淆的任何迹象?利用PEID进行查看普通扫描如下:普......
  • 《Win32篇》纯C和Win32实现窗口
    纯C和Win32实现窗口参考链接:https://www.cnblogs.com/zjutzz/p/10806955.htmlwindows下实现窗口显示,如果限定是C/C++语言,并且是原生Windows支持,需要使用GDI或GDI+。一般是在VisualStudio里新建Win32应用程序,而不是Win32consoleapplication(控制台程序),然后使用GDI的一些API,例如......
  • 《Win32篇》新建项目vs2008
    VS2008新建项目参考链接:https://blog.csdn.net/candyliuxj/article/details/7350053(1)新建Win32项目点击上图的确定后,出现Win32应用程序向导,点击下一步,出现下图界面,选择附加选项中的空项目,点击完成,新建项目完成。(2)添加预编译头从解决方案资源管理器中可看到,新建的Win32项目......
  • 《Win32篇》新建项目vs2015
    vs2015新建项目参考链接:https://blog.csdn.net/wowocpp/article/details/79260945创建一个最简单的win32应用程序使用的是vs2013中文版首先创建一个win32应用程序工程也可以使用快捷键Ctrl+Shift+N创建的工程名字是HelloApp下一步建立一个空项目创建后的工程如......
  • 《Win32篇》空项目、Win32项目、MFC项目、Win32控制台的区别
    空项目、Win32项目、MFC项目、Win32控制台的区别参考链接:https://www.cnblogs.com/MCSFX/p/13267287.html参考链接:https://www.zhihu.com/question/20524989/answer/17575697空项目控制台控制台没有窗口,控制台与有窗口的(例如:win32、mfc)交互方式不同,前者是CML(命令模式),后者是G......
  • 报from PyQt5.QtWidgets import * ImportError: DLL load failed: %1 不是有效的 Win3
    导入时,报fromPyQt5.QtWidgetsimport*ImportError:DLLloadfailed:%1不是有效的Win32application!查了很多资料,发现原来PyQt5安装包也是区分电脑位数的,我的电脑是32位的,装的PyQt5确是64位的,由于我这边用pipinstallPyQt5一直报timeout错误,所以我采用的是去官网直接下......
  • python win32com 写入excel
    如何使用Python的win32com库写入Excel作为一名经验丰富的开发者,我可以教会你如何使用Python的win32com库来实现在Excel中写入数据的功能。下面是整个流程的步骤表格:步骤描述1导入所需的库2创建Excel应用程序对象3打开或创建Excel工作簿4选择或创建工作表......