The Most/Recent Articles

Showing posts with label shellbags. Show all posts
Showing posts with label shellbags. Show all posts

Daily Blog #750: Solution Saturday 2/15/25

 


 

Hello Reader,

  It's always a surprise to me what gets lots of entries and what just gets a few dedicated researchers. This week we have another winning answer from Ilya Kobzar. Ilya took the time to research Windows 11 shell bags and we can test this in an upcoming test kitchen!

 The Challenge:

Test what causes a shell bag to be created or updated based on the following actions:

1. A directory created in the command line

2. A file being copy and pasted

3. A folder being copy and pasted

4. A file being cut and pasted

5. a folder being cut and pasted

6. A directory being opened from file explorer

7. A directory being opened from the desktop

8. A directory being clicked on from file explorer

9. A directory being clicked on from the desktop

 

 The Winning Answer:

Ilya's Answer


Also Read: Happy Valentines Day

Daily Blog #744: Sunday Funday 2/9/25

Hello Reader,

It's Sunday! This week's challenge is all about shellbags in Windows 11! Every version of windows changes the behavior of how our artifacts work, it's time for you to find out what's new in Windows 11!


The Prize:

$100 Amazon Giftcard


The Rules:

  1. You must post your answer before Friday 2/14/25 7PM CST (GMT -5)
  2. The most complete answer wins
  3. You are allowed to edit your answer after posting
  4. If two answers are too similar for one to win, the one with the earlier posting time wins
  5. Be specific and be thoughtful
  6. Anonymous entries are allowed, please email them to dlcowen@gmail.com. Please state in your email if you would like to be anonymous or not if you win.
  7. In order for an anonymous winner to receive a prize they must give their name to me, but i will not release it in a blog post
  8. AI assistance is welcomed but if a post is deemed to be entirely AI written it will not qualify for a prize. 


The Challenge:

 Test what causes a shell bag to be created or updated based on the following actions:

1. A directory created in the command line

2. A file being copy and pasted

3. A folder being copy and pasted

4. A file being cut and pasted

5. a folder being cut and pasted

6. A directory being opened from file explorer

7. A directory being opened from the desktop

8. A directory being clicked on from file explorer

9. A directory being clicked on from the desktop


Also Read: Solution Saturday 2/8/25

 

Daily Blog #616: Solution Saturday 2/2/19 - ShellBags Entry Challenge Winner Announcement

ShellBags Entry Challenge Winner Announcement



Hello Reader,
        I had some great submissions this week as people really got into shellbags research. This week Kevin Pagano managed to edge out a win with the extra work he did in showing the differences in how the data was recorded with different preferences in sorting and other features. The biggest thing that I took away from this is that we can tell the difference between a directory didn't have access to and interacted with one that they did have access to.

Next we did to determine a difference on just clicking on a directory versus opening it.

The Challenge:

Within a single shellbags entry answer the following:

1. What within the shellbags entry would tell you how the user had set their directory viewing preferences (sort order, thumbnail view, standard view)

2. What is the default view if they don't change anything?

3. If a user attempts to access the system volume information directory and a shellbag entry gets created (it should deny them access) what directory viewing settings are left behind

The Winning Answer:
Kevin Pagano

https://www.stark4n6.com/2019/02/shellbags-folder-views-and-windows.html




Also Read: Daily Blog #615

Forensic Lunch 11/28/14 - Thanksgiving Hangover edition with Eric Zimmerman

Forensic Lunch  Thanksgiving Hangover edition by David Cowen - Hacking Exposed Computer Forensics Blog


Hello Reader,
We had a pretty great Forensic Lunch today. We only had one guest but we had enough to talk about to fill the hour and probably another hour in the future.

This week we had Eric Zimmerman, @ericrzimmerman, talking about Shellbags, his tool Shellbag explorer and our research into new things we can determine from them.

We discussed:
  • How shellbags are stored
  • How they are ordered
  • How to manually validate them
  • How to use Eric's tool to visualize them
  • How to determine what file system is being accessed
  • Recovering FTP accesses
  • and much more!

You can download Shellbag Explorer (It's Free!) here: https://www.dropbox.com/s/lw9d0zrzqcr...

You can watch the lunch on Youtube here: https://www.youtube.com/watch?v=7dZICx3PV-Q
Or right below: 



Daily Blog #346: A quick note on Shellbag analysis in Windows 7/8

A quick note on Shellbag analysis in Windows 7/8

Hello Reader,
        If you are like me you love shellbags and use them on a regular basis to try to get some insight on what exists on external drives. One of the problems we run into though is that Shellbags stores full paths but not volume names or serial numbers so we cannot see from the entry what external device a recorded path was contained on from just that entry. We can do timeline analysis of devices plugged in, files accessed, drive letters assigned and the like to narrow down which device was plugged in but you are still sometimes left with multiple devices in play. I am going to go more in depth with this in a later series but I wanted to pass on a few tips.

NTFS v FAT entries

One of the easiest ways to tell the difference between drives requires that your sbag parser shows you the file record number and sequence number of the path it is pointing to. Sbag from TZWorks does this. If your tool is reporting this is becomes very easy to separate out the NTFS vs the FAT disks accessed as FAT does not record sequence numbers (its not part of its file system structure) so the sequence values will be null. 

NTFS v NTFS entries


A common thing we see is the same folder being copied to multiple drives, when this happens you can get seemingly duplicate entries in the shellbags. Look closer! The file record and sequence number will be unique between them allowing you to determine that they where contained on different drives.

Identifying the directory accessed

One of the questions I often get asked by clients is, did the drive they return contain the data they copied on to these external drives. Using the same file record and sequence number (or lack there of) we talked about above we can now match those accesses to each drive. I would not expect two drives to have the same file record and sequence number as well as creation times so you can also use the the creation times of the directories as a second factor in verifying that this is in fact the drive they accessed.

Daily Blog #79: Student Research and You

Daily Blog #79: Student Research and You

Hello Reader,
            Jonathan Rajewski reached out to the community on twitter asking for ideas for student research topics. I replied with an idea about shellbag testing and a student named Chad Waibel has picked up the task! You can follow his work here:


He posted the initial set of questions to be answered we came up with and is promising to update it every two weeks. Shellbags are something I have continued to rely heavily on when determining usage and theft so I'm very interested to see what he finds. The greater our ability to say with greater precision how, what, when and why an artifact is created the more powerful it becomes.

If you would like to ask additional questions or provide more tools/information to Chad his blog is soliciting comments. If you are a professor with students looking for digital forensic research projects that don't involve intense development let me know!

Also Read: Daily Blog #78

Daily Blog #59: Understanding the artifacts ShellBags

Understanding the artifacts ShellBags

Hello Reader,
           Another day, another blog. They say if you've done something for two weeks it becomes a habit. Well it's been two months and I will tell you that I know each evening that I should be writing tomorrows blog, but life (and good tv shows/movies) often gets in the way. 

So I just got back from lunch and its time to push through the remaining usage artifacts so we can talk about the combined analysis of them. I think after I'm done with all of these posts I will feel some feeling of relief but also another separate list of which artifacts I need to go into more technical detail on in the future. Blog posts sometimes just write other blog posts, but mainly your comments are what help drive the direction of my writing. Also please note that if you have not added me to your Google+ circles and made your comment limited, I can't see it.

Let's talk about Shell Bags! Shell bags is one of my favorite Windows artifacts as it reveals so much as to what the custodian was interested in data wise. For a technical primer on shell bags, go here:
http://computer-forensics.sans.org/blog/2011/07/05/shellbags
and
http://windowsir.blogspot.com/2012/08/shellbag-analysis.html

As has been stated shellbags record a users preference for each folder viewed within the gui explorer. That is important as the only ways to get around a shellbag in viewing folders that I know of is to:

  • Load a command prompt
  • Utilize a third party file system navigation tool
  • Browse for files inside of an application that does not use the win32 browser call
Otherwise, if a folder is accessed and viewed within the GUI a shellbag entry is going to be made to record their preferences. As a by product of storing those preferences (item list type, window size, sorting) it also stores the MAC times of the directory, the full path, the last time of update to the registry key and in Windows 7 the MFT record number. 
For the most in depth treatise on the shell item format and how its changed between Windows versions read this: https://googledrive.com/host/0B3fBvzttpiiSajVqblZQT3FYZzg/Windows%20Shell%20Item%20format.pdf

This is important. Why you ask? While full paths are great for static drive letters, without volume serial numbers (as we find in LNK files) we have no way to uniquely match them to removable devices without doing some deep timeline analysis showing what was attached at what times. With the addition of the MFT record number (consisting of the entry number and sequence number) which will allows us to identify uniquely the directories and files being recorded in the shellbags to the directory/file located on external media.

Now I just assumed something of you reader, I assumed you understand the power of shellbags in getting more information about what was contained on removable devices. The shellbag entries are stored on a per user basis and are not limited in scope to just the local disks. Whatever removable or network based storage the user views through the GUI explorer gets recorded. As far as I know, and please leave a comment and correct me if i'm wrong, the shellbags are the only artifact that will reveal the existence of directories accessed without the need of a file being accessed within them. LNK files do get created pointing to directories at times, but not the breadth and depth that the shellbag entries show you. 

So, shellbags are awesome. You should be checking them. 
This is my favorite tool to check them with:
https://www.tzworks.net/prototype_page.php?proto_id=14

Don't exclude them in your analysis just because its not a built in feature of your tool.

Tomorrow we move onward towards more artifacts and greater understanding!