File name:

ocsagent.exe

Full analysis: https://app.any.run/tasks/2a8d2f8a-2df6-4935-b348-bce683f8ed5f
Verdict: Malicious activity
Analysis date: October 07, 2019, 17:45:42
OS: Windows 7 Professional Service Pack 1 (build: 7601, 32 bit)
Tags:
installer
Indicators:
MIME: application/x-dosexec
File info: PE32 executable (GUI) Intel 80386, for MS Windows, Nullsoft Installer self-extracting archive
MD5:

57B6CDD43DFB869EA259A1A3AB5EC129

SHA1:

ABC49495DC6FB83E6DADE525503975D46762CB0C

SHA256:

9C2CE8527CFE0342D3D21781D931E7B27B28A9D64488A056AA1F1DEBE6BC69C6

SSDEEP:

24576:w0wRLjw+QyoB8OJZxS0eVuaJEsbK7ohJk/J7dO7pSWss4P6Pa3VufpEuSOhG:3wRxwBFxS0eHJ9bKEhJ084W4MalMpBC

ANY.RUN is an interactive service which provides full access to the guest system. Information in this report could be distorted by user actions and is provided for user acknowledgement as it is. ANY.RUN does not guarantee maliciousness or safety of the content.
  • MALICIOUS

    • Loads dropped or rewritten executable

      • ocsagent.exe (PID: 3244)
      • instocs.exe (PID: 3228)
      • ocsservice.exe (PID: 2320)
      • ocsservice.exe (PID: 3492)
      • ocsservice.exe (PID: 2336)
      • download.exe (PID: 3344)
      • OcsSetup.exe (PID: 2600)
      • ocsinventory.exe (PID: 3480)
    • Application was dropped or rewritten from another process

      • instocs.exe (PID: 3228)
      • OcsSetup.exe (PID: 2600)
      • ocsservice.exe (PID: 2320)
      • ocsservice.exe (PID: 3492)
      • ocsservice.exe (PID: 2336)
      • ocsinventory.exe (PID: 3480)
      • download.exe (PID: 3344)
      • nsF9AD.tmp (PID: 3188)
      • setacl.exe (PID: 1944)
      • nsF084.tmp (PID: 2664)
      • setacl.exe (PID: 3688)
  • SUSPICIOUS

    • Executable content was dropped or overwritten

      • ocsagent.exe (PID: 3244)
      • instocs.exe (PID: 3228)
      • OcsSetup.exe (PID: 2600)
    • Executed as Windows Service

      • ocsservice.exe (PID: 2336)
    • Creates files in the program directory

      • OcsSetup.exe (PID: 2600)
      • ocsinventory.exe (PID: 3480)
      • ocsservice.exe (PID: 2336)
    • Starts application with an unusual extension

      • OcsSetup.exe (PID: 2600)
    • Connects to server without host name

      • ocsinventory.exe (PID: 3480)
    • Creates a software uninstall entry

      • OcsSetup.exe (PID: 2600)
  • INFO

    No info indicators.
Find more information about signature artifacts and mapping to MITRE ATT&CK™ MATRIX at the full report
No Malware configuration.

TRiD

.exe | NSIS - Nullsoft Scriptable Install System (94.8)
.exe | Win32 Executable MS Visual C++ (generic) (3.4)
.dll | Win32 Dynamic Link Library (generic) (0.7)
.exe | Win32 Executable (generic) (0.5)
.exe | Generic Win/DOS Executable (0.2)

EXIF

EXE

MachineType: Intel 386 or later, and compatibles
TimeStamp: 2006:11:27 18:36:12+01:00
PEType: PE32
LinkerVersion: 6
CodeSize: 23552
InitializedDataSize: 166400
UninitializedDataSize: 1024
EntryPoint: 0x3161
OSVersion: 4
ImageVersion: -
SubsystemVersion: 4
Subsystem: Windows GUI
FileVersionNumber: 4.0.6.1
ProductVersionNumber: 4.0.6.1
FileFlagsMask: 0x0000
FileFlags: (none)
FileOS: Win32
ObjectFileType: Executable application
FileSubtype: -
LanguageCode: English (U.S.)
CharacterSet: Windows, Latin1
Comments: OcsAgentSetup.exe v4.0.6.1 for OCS Inventory NG
CompanyName: Ocs Inventory Team
FileDescription: OcsAgentSetup.exe v4.0.6.1 for OCS Inventory NG
FileVersion: 4.0.6.1
LegalCopyright: Ocs Inventory Team
LegalTrademarks: OcsPackager is an addon for Ocs Inventory NG.
ProductName: Package made by OcsPackager

Summary

Architecture: IMAGE_FILE_MACHINE_I386
Subsystem: IMAGE_SUBSYSTEM_WINDOWS_GUI
Compilation Date: 27-Nov-2006 17:36:12
Detected languages:
  • English - United States
Comments: OcsAgentSetup.exe v4.0.6.1 for OCS Inventory NG
CompanyName: Ocs Inventory Team
FileDescription: OcsAgentSetup.exe v4.0.6.1 for OCS Inventory NG
FileVersion: 4.0.6.1
LegalCopyright: Ocs Inventory Team
LegalTrademarks: OcsPackager is an addon for Ocs Inventory NG.
ProductName: Package made by OcsPackager

DOS Header

Magic number: MZ
Bytes on last page of file: 0x0090
Pages in file: 0x0003
Relocations: 0x0000
Size of header: 0x0004
Min extra paragraphs: 0x0000
Max extra paragraphs: 0xFFFF
Initial SS value: 0x0000
Initial SP value: 0x00B8
Checksum: 0x0000
Initial IP value: 0x0000
Initial CS value: 0x0000
Overlay number: 0x0000
OEM identifier: 0x0000
OEM information: 0x0000
Address of NE header: 0x000000D8

PE Headers

Signature: PE
Machine: IMAGE_FILE_MACHINE_I386
Number of sections: 5
Time date stamp: 27-Nov-2006 17:36:12
Pointer to Symbol Table: 0x00000000
Number of symbols: 0
Size of Optional Header: 0x00E0
Characteristics:
  • IMAGE_FILE_32BIT_MACHINE
  • IMAGE_FILE_EXECUTABLE_IMAGE
  • IMAGE_FILE_LINE_NUMS_STRIPPED
  • IMAGE_FILE_LOCAL_SYMS_STRIPPED
  • IMAGE_FILE_RELOCS_STRIPPED

Sections

Name
Virtual Address
Virtual Size
Raw Size
Charateristics
Entropy
.text
0x00001000
0x00005BFE
0x00005C00
IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ
6.48354
.rdata
0x00007000
0x000011FE
0x00001200
IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ
5.27785
.data
0x00009000
0x000264F4
0x00000400
IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE
5.21099
.ndata
0x00030000
0x00008000
0x00000000
IMAGE_SCN_CNT_UNINITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE
0
.rsrc
0x00038000
0x00002D50
0x00002E00
IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ
4.59766

Resources

Title
Entropy
Size
Codepage
Language
Type
1
3.39203
892
UNKNOWN
English - United States
RT_VERSION
103
1.91924
20
UNKNOWN
English - United States
RT_GROUP_ICON
105
2.66174
256
UNKNOWN
English - United States
RT_DIALOG
106
2.88094
284
UNKNOWN
English - United States
RT_DIALOG
111
2.48825
96
UNKNOWN
English - United States
RT_DIALOG

Imports

ADVAPI32.dll
COMCTL32.dll
GDI32.dll
KERNEL32.dll
SHELL32.dll
USER32.dll
VERSION.dll
ole32.dll
No data.
screenshotscreenshotscreenshot
All screenshots are available in the full report
All screenshots are available in the full report
Total processes
49
Monitored processes
13
Malicious processes
7
Suspicious processes
1

Behavior graph

Click at the process to see the details
drop and start start drop and start drop and start drop and start drop and start drop and start ocsagent.exe instocs.exe ocssetup.exe ocsservice.exe no specs ocsservice.exe no specs ocsservice.exe no specs ocsinventory.exe download.exe no specs nsf084.tmp no specs setacl.exe no specs nsf9ad.tmp no specs setacl.exe no specs ocsagent.exe no specs

Process information

PID
CMD
Path
Indicators
Parent process
1944setacl -on "C:\Program Files\OCS Inventory Agent\service.ini" -ot file -rec cont_obj -actn ace -ace "n:S-1-5-32-545;p:write;s:y" -ace "n:S-1-5-32-547;p:write;s:y"C:\Users\admin\AppData\Local\Temp\nsl21D9.tmp\setacl.exensF9AD.tmp
User:
admin
Company:
Integrity Level:
HIGH
Description:
SetACL 2
Exit code:
0
Version:
2, 0, 3, 0
Modules
Images
c:\users\admin\appdata\local\temp\nsl21d9.tmp\setacl.exe
c:\systemroot\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\netapi32.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\netutils.dll
c:\windows\system32\srvcli.dll
c:\windows\system32\rpcrt4.dll
c:\windows\system32\wkscli.dll
2320"C:\Program Files\OCS Inventory Agent\ocsservice" -installC:\Program Files\OCS Inventory Agent\ocsservice.exeOcsSetup.exe
User:
admin
Company:
http://www.ocsinventory-ng.org
Integrity Level:
HIGH
Description:
Open Computers and Software Inventory Agent launcher service
Exit code:
0
Version:
4, 0, 6, 0
Modules
Images
c:\program files\ocs inventory agent\ocsservice.exe
c:\systemroot\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\program files\ocs inventory agent\libeay32.dll
c:\windows\system32\wsock32.dll
c:\windows\system32\ws2_32.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\rpcrt4.dll
c:\windows\system32\nsi.dll
2336"C:\Program Files\OCS Inventory Agent\ocsservice.exe"C:\Program Files\OCS Inventory Agent\ocsservice.exeservices.exe
User:
SYSTEM
Company:
http://www.ocsinventory-ng.org
Integrity Level:
SYSTEM
Description:
Open Computers and Software Inventory Agent launcher service
Exit code:
0
Version:
4, 0, 6, 0
Modules
Images
c:\program files\ocs inventory agent\ocsservice.exe
c:\systemroot\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\program files\ocs inventory agent\libeay32.dll
c:\windows\system32\wsock32.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\ws2_32.dll
c:\windows\system32\rpcrt4.dll
c:\windows\system32\nsi.dll
2600"C:\Users\admin\AppData\Local\Temp\nsw1787.tmp\OcsSetup.exe" /S /NOSPLASH /server:2.150.6.246 /np /now /NoOcs_ContactLnk /NotagC:\Users\admin\AppData\Local\Temp\nsw1787.tmp\OcsSetup.exe
instocs.exe
User:
admin
Company:
OCS Inventory NG Team
Integrity Level:
HIGH
Description:
OCS Inventory NG Agent for Windows installed as a service
Exit code:
0
Version:
4.0.6.1
Modules
Images
c:\users\admin\appdata\local\temp\nsw1787.tmp\ocssetup.exe
c:\systemroot\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\user32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\gdi32.dll
c:\windows\system32\lpk.dll
c:\windows\system32\usp10.dll
c:\windows\system32\shell32.dll
c:\windows\system32\msvcrt.dll
2664"C:\Users\admin\AppData\Local\Temp\nsl21D9.tmp\nsF084.tmp" setacl -on "OCS INVENTORY" -ot srv -actn ace -ace "n:S-1-5-32-545;p:start_stop;s:y" -ace "n:S-1-5-32-547;p:start_stop;s:y"C:\Users\admin\AppData\Local\Temp\nsl21D9.tmp\nsF084.tmpOcsSetup.exe
User:
admin
Integrity Level:
HIGH
Exit code:
0
Modules
Images
c:\users\admin\appdata\local\temp\nsl21d9.tmp\nsf084.tmp
c:\systemroot\system32\ntdll.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\user32.dll
c:\windows\system32\lpk.dll
c:\windows\system32\gdi32.dll
c:\windows\system32\usp10.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\advapi32.dll
2956"C:\Users\admin\AppData\Local\Temp\ocsagent.exe" C:\Users\admin\AppData\Local\Temp\ocsagent.exeexplorer.exe
User:
admin
Company:
Ocs Inventory Team
Integrity Level:
MEDIUM
Description:
OcsAgentSetup.exe v4.0.6.1 for OCS Inventory NG
Exit code:
3221226540
Version:
4.0.6.1
Modules
Images
c:\users\admin\appdata\local\temp\ocsagent.exe
c:\systemroot\system32\ntdll.dll
3188"C:\Users\admin\AppData\Local\Temp\nsl21D9.tmp\nsF9AD.tmp" setacl -on "C:\Program Files\OCS Inventory Agent\service.ini" -ot file -rec cont_obj -actn ace -ace "n:S-1-5-32-545;p:write;s:y" -ace "n:S-1-5-32-547;p:write;s:y"C:\Users\admin\AppData\Local\Temp\nsl21D9.tmp\nsF9AD.tmpOcsSetup.exe
User:
admin
Integrity Level:
HIGH
Exit code:
0
Modules
Images
c:\users\admin\appdata\local\temp\nsl21d9.tmp\nsf9ad.tmp
c:\systemroot\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\gdi32.dll
c:\windows\system32\user32.dll
c:\windows\system32\lpk.dll
c:\windows\system32\usp10.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\advapi32.dll
3228instocs.exeC:\Users\admin\AppData\Local\Temp\nsw1787.tmp\instocs.exe
ocsagent.exe
User:
admin
Integrity Level:
HIGH
Exit code:
0
Modules
Images
c:\users\admin\appdata\local\temp\nsw1787.tmp\instocs.exe
c:\systemroot\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\user32.dll
c:\windows\system32\gdi32.dll
c:\windows\system32\lpk.dll
c:\windows\system32\usp10.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\shlwapi.dll
3244"C:\Users\admin\AppData\Local\Temp\ocsagent.exe" C:\Users\admin\AppData\Local\Temp\ocsagent.exe
explorer.exe
User:
admin
Company:
Ocs Inventory Team
Integrity Level:
HIGH
Description:
OcsAgentSetup.exe v4.0.6.1 for OCS Inventory NG
Exit code:
0
Version:
4.0.6.1
Modules
Images
c:\users\admin\appdata\local\temp\ocsagent.exe
c:\systemroot\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\windows\system32\user32.dll
c:\windows\system32\gdi32.dll
c:\windows\system32\lpk.dll
c:\windows\system32\usp10.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\shlwapi.dll
3344download.exe /Notag /SERVER:2.150.6.246 /PNUM:80 /NPC:\Program Files\OCS Inventory Agent\download.exeocsinventory.exe
User:
admin
Company:
http://www.ocsinventory-ng.org
Integrity Level:
HIGH
Description:
OCS Inventory NG Agent Package Setup Tool
Exit code:
0
Version:
4, 0, 6, 1
Modules
Images
c:\program files\ocs inventory agent\download.exe
c:\systemroot\system32\ntdll.dll
c:\windows\system32\kernel32.dll
c:\windows\system32\kernelbase.dll
c:\program files\ocs inventory agent\libeay32.dll
c:\windows\system32\wsock32.dll
c:\windows\system32\ws2_32.dll
c:\windows\system32\msvcrt.dll
c:\windows\system32\rpcrt4.dll
c:\windows\system32\nsi.dll
Total events
1 089
Read events
1 061
Write events
28
Delete events
0

Modification events

(PID) Process:(2320) ocsservice.exeKey:HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\eventlog\Application\OCS INVENTORY SERVICE
Operation:writeName:EventMessageFile
Value:
C:\Program Files\OCS Inventory Agent\ocsservice.DLL
(PID) Process:(2320) ocsservice.exeKey:HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\eventlog\Application\OCS INVENTORY SERVICE
Operation:writeName:TypesSupported
Value:
7
(PID) Process:(3480) ocsinventory.exeKey:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\ocsinventory_RASAPI32
Operation:writeName:EnableFileTracing
Value:
0
(PID) Process:(3480) ocsinventory.exeKey:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\ocsinventory_RASAPI32
Operation:writeName:EnableConsoleTracing
Value:
0
(PID) Process:(3480) ocsinventory.exeKey:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\ocsinventory_RASAPI32
Operation:writeName:FileTracingMask
Value:
4294901760
(PID) Process:(3480) ocsinventory.exeKey:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\ocsinventory_RASAPI32
Operation:writeName:ConsoleTracingMask
Value:
4294901760
(PID) Process:(3480) ocsinventory.exeKey:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\ocsinventory_RASAPI32
Operation:writeName:MaxFileSize
Value:
1048576
(PID) Process:(3480) ocsinventory.exeKey:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\ocsinventory_RASAPI32
Operation:writeName:FileDirectory
Value:
%windir%\tracing
(PID) Process:(3480) ocsinventory.exeKey:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\ocsinventory_RASMANCS
Operation:writeName:EnableFileTracing
Value:
0
(PID) Process:(3480) ocsinventory.exeKey:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\ocsinventory_RASMANCS
Operation:writeName:EnableConsoleTracing
Value:
0
Executable files
28
Suspicious files
0
Text files
83
Unknown types
1

Dropped files

PID
Process
Filename
Type
3244ocsagent.exeC:\Users\admin\AppData\Local\Temp\ocspackage.logtext
MD5:
SHA256:
3228instocs.exeC:\Users\admin\AppData\Local\Temp\ocspackage.logtext
MD5:
SHA256:
2600OcsSetup.exeC:\Users\admin\AppData\Local\Temp\nsw1787.tmp\OcsAgentSetup.logtext
MD5:
SHA256:
3244ocsagent.exeC:\Users\admin\AppData\Local\Temp\nsw1787.tmp\ocsdat.initext
MD5:
SHA256:
3244ocsagent.exeC:\Users\admin\AppData\Local\Temp\nsw1787.tmp\pack.icoimage
MD5:6F26F0FC6014B0EA5899B9D075EEC459
SHA256:972D438129646352D4058B2053929692488C1E962D194F1C009E6A3ABD20B164
2600OcsSetup.exeC:\Users\admin\AppData\Local\Temp\nsl21D9.tmp\options.initext
MD5:
SHA256:
3244ocsagent.exeC:\Users\admin\AppData\Local\Temp\nsw1787.tmp\UserInfo.dllexecutable
MD5:B27F488ADB12BEF2CCF9B9B900EC090C
SHA256:62F30CA60CFC2E2A64C159F28B5CAF59C6AF96FAC64C59ED8D8512D7083E9439
3244ocsagent.exeC:\Users\admin\AppData\Local\Temp\nsw1787.tmp\instocs.exeexecutable
MD5:B3B8801243AA3CAC66CDF3C644C1CC5F
SHA256:25E1B44573DF661A08D187EA52CA942704550BF33C7DD46BCC53CF0C13FD8A4F
3228instocs.exeC:\Users\admin\AppData\Local\Temp\nsj1DE0.tmp\System.dllexecutable
MD5:68EDAAFEF887C72F0D85D4D64B6CBF52
SHA256:7D8CE82F2B89F544ED90CC8FEBFCFA57B32D2C8600BB77F79BC8D8980F0F7477
2600OcsSetup.exeC:\Users\admin\AppData\Local\Temp\nsl21D9.tmp\System.dllexecutable
MD5:00A0194C20EE912257DF53BFE258EE4A
SHA256:DC4DA2CCADB11099076926B02764B2B44AD8F97CD32337421A4CC21A3F5448F3
Download PCAP, analyze network streams, HTTP content and a lot more at the full report
HTTP(S) requests
1
TCP/UDP connections
1
DNS requests
0
Threats
0

HTTP requests

PID
Process
Method
HTTP Code
IP
URL
CN
Type
Size
Reputation
3480
ocsinventory.exe
POST
2.150.6.246:80
http://2.150.6.246/ocsinventory
NO
unknown
Download PCAP, analyze network streams, HTTP content and a lot more at the full report

Connections

PID
Process
IP
Domain
ASN
CN
Reputation
3480
ocsinventory.exe
2.150.6.246:80
Telenor Norge AS
NO
unknown

DNS requests

No data

Threats

No threats detected
No debug info