There are malware tools available that can create Windows services with random service names and descriptions. Emotet infection is an example of malicious services created on the machine. This is due to how Emotet installs itself on a machine, creating randomly named numeric services, which in turn try to run another randomly named executable in C:\Windows . The example below shows four Emotet services (others may have more) that have been created on an infected machine.
Numerous malware families also create registry keys for persistence with randomized key names and values . Filenames are also may be an indicator of malware [3,4]. Also, Emotet utilizes random file names. Emotet is an advanced, modular banking Trojan that primarily functions as a downloader or dropper of other banking Trojans. Emotet continues to be among the costliest and destructive malware affecting state, local, tribal, and territorial (SLTT) governments, and the private and public sectors.
One last example is process names; often malware will put itself, randomly named, into a randomly named folder in AppData. There are actually two potential applications here: one for the name of the binary itself, and one for the randomly named folder in which it resides .
Monitoring for infected files
- C:Program Files
- C:Users/[current user]/AppData
- C:Users/[current user]/AppData/Roaming
- C:Users/[current user]/AppData/Roaming/Microsoft
LOGTITAN detects randomly-named files, registry keys, services and processes (Both created and spawned by) in real-time.
Event ID 7045 — A service was installed in the system
Event ID 4688 — A new process has been created
Event ID 4656 — A handle to an object was requested. File and Registry
Event ID 4697 — A service was installed in the system
And in Linux, just monitor /var/log/audit/audit.log file.
Suspicious processes, files, and services are detected in real-time and depicted in the InstallOperation field on the LOGTITAN schema. LOGTITAN utilizes ML to detect suspicious processes, files, and services.