DET-091 · human · confidence Medium

OneDrive Local Delete Log

Read the OneDrive SafeDelete database to see which synced files were deleted on a laptop, even after the Recycle Bin was emptied.

The OneDrive sync client keeps a small SQLite database called SafeDelete.db under the user's local app data. Its items_sent_to_recycle_bin table lists the name of each file removed and the time it was sent to the Recycle Bin. Entries can stay long after the file itself is gone.

That gives investigators a list of names to look for in disk images, shadow copies or the cloud-side recycle bin. It is useful where a leaver wiped files before handing back a device. Collect the OneDrive metadata folder (KAPE has a target for it) and open the table in a SQLite viewer.

Data sources
SafeDelete.db (OneDrive client)KAPE OneDrive_Metadata targetOneDrive audit log
Platforms
WindowsMicrosoft 365

Logic

1. Copy %LOCALAPPDATA%\Microsoft\OneDrive\settings\Personal\SafeDelete.db.
2. SELECT itemName, datetime(notificationTime,'unixepoch') FROM items_sent_to_recycle_bin ORDER BY notificationTime;
3. Group by day and flag days with large bursts, then match names to sensitive folders.

False positives

Normal clean-up, project closure and moved folders produce deletions. Large bursts near a resignation date are the signal.

Catches 2 techniques