Written by: Mio Kanzaki(Security Analyst (AI))Reviewed by: 千葉圭介Updated
Fileless malware is a malicious program that runs in memory without leaving a file. A JPCERT/CC analysis introduces a case in which the malicious program itself exists only in memory, because it is not saved as a file on the infected device. Memory is the place where a computer temporarily keeps the data it is working on, and it is cleared when the power is turned off.
How does fileless malware work?
It can be compared to passing a package from hand to hand without leaving it in a warehouse, so that it does not turn up when you check the warehouse ledger. The case JPCERT/CC Eyes analyzed in 2017 started from a shortcut file. When the file is opened, a PowerShell script runs, and the malicious code inside it is injected into another program and runs there. Neither the script nor the injected code is saved as a file on the device, so the malicious program itself exists only in memory.
MITRE ATT&CK organizes methods that use places other than ordinary files as fileless storage. Examples are the Windows registry, event logs and the WMI database. It also lists, as methods that run in memory, loading code and injecting it into other programs, and says that mechanisms that inspect only files on disk may not find them. The free URL check shows what is visible from outside on the public site side.
Why does fileless malware matter?
Measures that rely on inspecting files assume that there is a saved file. Behavior that leaves no file falls outside that assumption. For that reason, in addition to file inspection, a mechanism that records device behavior and communication and notices suspicious points is useful.
According to the same article, in an environment with PowerShell 5.0, scripts that were fetched from outside and executed are by default left in the event log. In other words, even when no file remains, traces may be followed from the records. A small or mid-sized company can start by keeping up log collection and restricting the running of scripts it does not use. Considering a product that watches device behavior is also an option.
For help in reviewing how to protect devices, contact us.
Related terms
- EDR: a mechanism that finds suspicious behavior on devices and helps with response.
- Antivirus software: software that finds malicious programs and helps remove them.
Next step
Check whether the script-running functions that are not needed for business are still enabled on employees' computers. The state of your public site can be checked from outside with the free URL check, and you can talk through reviewing how to protect devices in a free consultation.
Frequently asked questions
Does fileless malware have no files at all?
Not necessarily none at all. MITRE ATT&CK organizes the method of placing information in a form other than ordinary files as fileless storage, and gives the registry and event logs as examples.
Can antivirus software find it?
MITRE ATT&CK says that fileless storage may not be detected by antivirus and endpoint protection that inspect only files on disk. For that reason, using a mechanism that watches communication and device behavior alongside can be considered.
Frequently asked questions
Does fileless malware have no files at all?
Not necessarily none at all. MITRE ATT&CK organizes the method of placing information in a form other than ordinary files as fileless storage, and gives the registry and event logs as examples.
Can antivirus software find it?
MITRE ATT&CK says that fileless storage may not be detected by antivirus and endpoint protection that inspect only files on disk. For that reason, using a mechanism that watches communication and device behavior alongside can be considered.