Cybercriminals are increasingly infecting computers with malware that resides only in memory in order to make their attacks harder to detect.