The Most/Recent Articles

Showing posts with label shimcache. Show all posts
Showing posts with label shimcache. Show all posts

Daily Blog #586: Forensic Lunch Test Kitchen Server 2019 Shimcache Srum Syscache

Forensic Lunch Test Kitchen Server 2019 Shimcache Srum Syscache by David Cowen - Hacking Exposed Computer Forensics Blog



Hello Reader,
      Tonight we extended our search to see if the Syscache hive came back to life by looking into Windows Server 2019, Here is what we learned:

  • No Syscache hive by default in Server 2019
  • There is a SRUM database by default in Server 2019
  • There is an Amcache hive by default in Server 2019
  • There is still no Preftech in Server 2019
  • Shimcache showed an interesting behavior that we need to regression test back versions of Windows where executables viewed in the Explorer GUI only got entered into the Shimcache hive when they were viewable and/or highlighted in the GUI Window
  • Executables not yet viewed in the GUI window scroll were not present in the Shimcache
You can watch the video here:


Also Read: Daily Blog #585

Daily Blog #561: Solution Saturday 12/8/18 - Battle of the Shims

Battle of the Shims - Winning answer to our most recent challenge by David Cowen - Hacking Exposed Computer Forensics Blog



Hello Reader,
       Another challenge where a new victor has emerged! One of the great things about these weekly challenges is that let's people within the larger community a chance to show what they got. This week Zach Stanford has made his mark with his winning submission.

The Challenge:


Document the order that the following shims are executed/data written in Windows 10:
  • Prefetch
  • Shimcache
  • Amcache
  • Userassist
  • SRUM
List the time stamps associated with the entry creation and whatever else you can determine about the order they are called

The Winning Answer:
https://medium.com/@z89127866x/battle-of-the-shims-60fdae38264e

Come back tomorrow for the next week's challenge!

Also Read: Daily Blog #560

Daily Blog #550: Forensic Lunch Test Kitchen 11/26/18 - Shimcache Testing

Shimcache Testing by David Cowen - Hacking Exposed Computer Forensics Blog


Hello Reader,
           Tonight we continued our shimcache testing and here is what we found out tonight:

  • Confirmed again that shimcache will record any executable viewable within the GUI
  • Shimcache will update the record if the executable is modified and then executed
  • Amcache does not immediately update an entry if an executable is modified and executed
  • Sysmon did not get added to the Amcache even though it has some type of GUI window (message box appearing) but this was not the standard win32 gui message box
  • Amcache added the executable we left on the desktop but did not execute on Friday at 5am UTC saturday, the process event log showed it was a background task manager. 
  • Sysmon was installed to see if we can get more detail on the process that is updating Amcache

We are now going to let the system update the registry overnight and see what changes it makes with the executable we left in the desktop and the downloads directory. 

You can watch the video here:


Also Read: Daily Blog #549 

Daily Blog #544: Forensic Lunch Test Kitchen 11/20/18 - Discussion on Shimcache, Amcache, and More

Discussion on Shimcache, Amcache, and More  by David Cowen - Hacking Exposed Computer Forensics Blog



Hello Reader,
          Tonight we continued our journey into the shimcache and amcache. Here is what we learned:

  • The extracted executable file from the command line that was not executed was still not present in the shimcache
  • Simply viewing the directory in the GUI that the extracted but not executed executable was in was enough to get it added to the shimcache
  • No new entries from the downloads directories were present in the Amcache

Tomorrow night we will see if the Amcache needed even more time, suggesting its a schedule task

You can watch the video here:


Also Read: Daily Blog #543

Daily Blog #543: Forensic Lunch Test Kitchen 11/19/18 - Discussion on GUI, Shimcache, and Amcache

Discussion on GUI, Shimcache, and Amcache by David Cowen - Hacking Exposed Computer Forensics Blog



Hello Reader,
     Tonight we continue to go down further into the application compatibility cache and its associated artifacts. Thanks to tonight's BFFs (Best forensic friends) Phill Moore, Jessica Hyde and Mike Cary for participating in the testing! Here is what we learned:

  • Approximately 6 hours or so after the tests were done on 11/16/18 in the prior video (https://www.hecfblog.com/2018/11/daily-blog-540-forensic-lunch-test.html) the entries we expected to show up in the Amcache were written to the registry 
  • In addition to the programs we executed being delayed in their writes, we also had more programs we extracted in the GUI but did not execute show up in Amcache
  • The timestamp of the key here did not reflect when the program executed but rather when it was added to the Amcache hive! We are setting up more testing to determine what the triggers are for Amcache updating
  • Extracting an executable from a zip file in the command line did not result in a Shimcache or Amcache entry being made, as suggested by Mike Cary on twitter. 
  • Executing an executable from the command line did get an entry in the shimcache on shutdown and reboot
  • We had an inconsistent result in the amcache on execution where once it appeared after shutdown and another time it didn't
  • We have enabled process creation event logging and the VM will run overnight to see when and what hopefully is updating the Amcache

You can watch the video here:


Also Read: Daily Blog #542

Daily Blog #540: Forensic Lunch Test Kitchen 11/16/18 - Testing Compatibility Cache artifacts

Testing Compatibility Cache artifacts by David Cowen - Hacking Exposed Computer Forensics Blog



Hello Reader,
    Tonight I'm back in my home lab with access to all my handy testing VMs! I decided to start up a series of tests on the Application Compatibility Cache artifacts (including Shimcache and Amcache amongst others to be tested). The tests have already shown more than I expected and here is what we learned tonight:


  • Extracting an executable from a zip into the Desktop directory on Windows 10 is enough to get a shimcache entry
  • There was no corresponding Amcache entry
  • Extracting an executable from a zip into the root of another file system all together on Windows 10 also created a shimcache entry
  • There was no corresponding Amcache entry
  • We also didn't get Amcache entries for the programs we did in fact execute
  • We did have Amcache entries for programs we never executed!
You can watch the video here:


Also Read: Daily Blog #539

Daily Blog #529: Human Bias and Shimcache

Human Bias and Shimcache by David Cowen - Hacking Exposed Computer Forensics Blog



Hello Reader,
         I've had the pleasure of teaching the SANS FOR500 Windows Forensics around the world the last couple of years. In that time I've been doing a bit of an experiment in each country and keeping track of where the students were from.

For every class in every country I bring up a spreadsheet of parsed shimcache records, with the header row shown. Each time I always ask the same question without providing any information. I ask:

"What do the dates in the first column mean?"

I say with the header row that says 'Last Modified' shown and they have their books open with the description of the artifact. Every class in every country has always replied with the same assumption first.

"It's the time of execution"

Then I have to explain to them that it's the time of modification for the executable. Then I explain that every other class has said the same thing because our brains and built in bias want that to be the time of execution.

So if there is one things humanity can unite with, it's that we are all wanting shimcache records to indicate when an executable ran. Do me a favor, be a force change and tell your friends that friends don't let friends be wrong about shimcache timestamps. It can drastically skew your analysis and make breaches appear to be worse than they really are.