Having fun while learning about and pivoting into the world of DFIR.
by ogmini
This post will show why focused, repeatable testing is so important. Yesterday’s post hinted at some possible message logging tables in one of the sqlite databases. I had come across entries while testing for attachments that I had not seen previously. Initially, I had chalked that up to not having sent any emails to the Trash folder until I wanted to test what happened to cached attachments. Well…
I attempted some testing focused just on moving an email to the Trash folder. The steps were:
When I pulled the sqlite database from the phone and examined the two tables, I saw no records! Obviously, I must have made a mistake when running my test so I ran it again and got the same results. I did not run the same test again as that would truly be the mark of insanity. The question became what did I do differently when testing for the cached attachments? It took me a bit to figure this one out as I had to think of different testing steps as my notes from the attachment testing were not detailed enough in this case. It turns out that the following steps will give us the results we are looking for:
Just the act of going back to the Home Screen of the phone causes those logging records to go poof. My best guess/theory is that those records are transient and only present to support that “Undo” option that will pop up on the bottom of the screen.
I don’t want to say that going back to the Home Screen is the trigger for the cleanup as it could be some other process that just happens to be called when you exit out of the Gmail App. Not sure it is worth the time to figure out the exact mechanism that triggers the clenaup. With this information, I’m very tempted to say that this piece of knowledge is pretty useless. You’d literally need to be grabbing the artifact from a live phone before the Gmail App had a chance to flush the records. In a real word case, I don’t see that opportunity presenting itself and I was hoping for records that were not so transient.
tags: #Android #ALEAPP