File size: 3,057 Bytes
8377638
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<div align="center"><img src="images/title.svg" width="800"></div>

  [![Arsenal](https://rawgit.com/toolswatch/badges/master/arsenal/usa/2019.svg)](http://www.toolswatch.org/2019/05/amazing-black-hat-arsenal-usa-2019-lineup-announced/)  

## Concept
  **MalConfScan** is a [Volatility](https://github.com/volatilityfoundation/volatility) plugin extracts configuration data of known malware. Volatility is an open-source memory forensics framework for incident response and malware analysis. This tool searches for malware in memory images and dumps configuration data. In addition, this tool has a function to list strings to which malicious code refers.  

  ![MalConfScan sample](images/sample1.png)  

## Supported Malware Families
  MalConfScan can dump the following malware configuration data, decoded strings or DGA domains:

  - [x] Ursnif
  - [x] Emotet
  - [x] Smoke Loader
  - [x] PoisonIvy
  - [x] CobaltStrike
  - [x] NetWire
  - [x] PlugX
  - [x] RedLeaves / Himawari / Lavender / Armadill / zark20rk
  - [x] TSCookie
  - [x] TSC_Loader
  - [x] xxmm
  - [x] Datper
  - [x] Ramnit
  - [x] HawkEye
  - [x] Lokibot
  - [x] Bebloh (Shiotob/URLZone)
  - [x] AZORult
  - [x] NanoCore RAT
  - [x] AgentTesla
  - [x] FormBook
  - [x] NodeRAT (https://blogs.jpcert.or.jp/ja/2019/02/tick-activity.html)
  - [x] njRAT
  - [x] TrickBot
  - [x] Remcos
  - [x] QuasarRAT
  - [x] AsyncRAT
  - [x] WellMess (Windows/Linux)
  - [x] ELF_PLEAD
  - [ ] Pony

## Additional Analysis
  MalConfScan has a function to list strings to which malicious code refers. Configuration data is usually encoded by malware. Malware writes decoded configuration data to memory, it may be in memory. This feature may list decoded configuration data.  

## How to Install
  If you want to know more details, please check [the MalConfScan wiki](https://github.com/JPCERTCC/MalConfScan/wiki).

## How to Use
 MalConfScan has two functions **malconfscan**, **linux_malconfscan** and **malstrscan**.

### Export known malware configuration
```
$ python vol.py malconfscan -f images.mem --profile=Win7SP1x64
```

### Export known malware configuration for Linux
```
$ python vol.py linux_malconfscan -f images.mem --profile=LinuxDebianx64
```

### List the referenced strings
```
$ python vol.py malstrscan -f images.mem --profile=Win7SP1x64
```

## Overview & Demonstration

  Following [YouTube video](https://youtu.be/n36WAzgHldY) shows the overview of MalConfScan.

  [![MalConfScan_Overview](https://img.youtube.com/vi/n36WAzgHldY/sddefault.jpg)](https://youtu.be/n36WAzgHldY)

  And, following  [YouTube video](https://youtu.be/kPsOvoRHK3k) is the demonstration of MalConfScan.

  [![MalConfScan_Demonstration](https://img.youtube.com/vi/kPsOvoRHK3k/sddefault.jpg)](https://youtu.be/kPsOvoRHK3k)

## MalConfScan with Cuckoo
  Malware configuration data can be dumped automatically by adding MalConfScan to Cuckoo Sandbox. If you need more details on Cuckoo and MalConfScan integration, please check [MalConfScan with Cuckoo](https://github.com/JPCERTCC/MalConfScan-with-Cuckoo).