New Sunday – new Funday! This week’s Sunday Funday presented the following challenge to solve:
What are all the methods of execution you can find that are not recorded in the Amcache hive?
All testing have been done on Windows 10 (Version 1803, OS Build 17134.523). For testing I used netscan.exe (x64), it’s available here, it was renamed according to its persistence mechanism/location. For parsing Amcache.hve both AmcacheParser by Eric Zimmerman and RegRipper by Harlan Carvey were used.
I started from running files without double-clicking. To do it, I used a number of persistence mechanisms. Here are the results:
Image File Execution Options Injection (T1183):
Shortcut modification (T1023):
Logon Scripts (T1037):
Registry Run Keys / Startup Folder (T1060):
c:\users\user\desktop\shortcut.exe (a shortcut to the file in the Startup folder)
Scheduled Task (T1053):
As you can see, every mechanism created evidence of execution in the Amcache.hve.
Let’s go further. I tried to run executables with cmd and PowerShell. Both finished with the same results – records in the amcache:
Next I dropped files to a number of different locations, every execution created amcache artifact as well:
c:\users\user\3d objects\3d objects.exe
c:\users\user\pictures\camera roll\camera roll.exe
c:\program files (x86)\program files 86.exe
c:\program files\program files.exe
c:\users\user\pictures\saved pictures\saved pictures.exe
c:\users\user\documents\new folder\new folder\new_folder_2.exe
c:\users\user\documents\new folder\new folder\new folder\new_folder_3.exe
I remembered that if you download an exacutable with IE or Edge it allows you to choose, if you want to run or download it. So I pasted a link to an exacutable previously uploaded to SendSpace and chose to run it. Again, I got an amcache record:
I have an internal RAID as D:\ drive. So I decided to run an executable from it and not my C:\ drive, and got an amcache record again:
I ran an executable and deleted it after running. Again, I got a record in the amcache:
Ok, now what? Let’s try to run it from external and network drives! I ran an executable from a flash drive (M:\ drive) and… no amcache records!
Next I ran an executable from an external USB drive (F:\ drive) and… no amcache records again!
Finally, a network drive (Z:\ drive). A-a-and… no amcache records!
So, it seems you can find only executables ran from internal drives. This is it. Anyway, it requires more testing I think.