Dropbox_Metadata
Author: Chad Tilbury and Andrew Rathbun
description
Dropbox Cloud Storage Metadata
paths
C:\Users\%user%\AppData\Local\Dropbox\info.jsonGetting individual files because folder may contain very large extraneous files. Info.json contains user's Dropbox folder location
C:\Users\%user%\AppData\Local\Dropbox\host.dbSQLite database which contains the local path of the user's Dropbox folder encoded in BASE64.
C:\Users\%user%\AppData\Local\Dropbox\machine_storagetray-thumbnails.dbSQLite database containing references to image files at one time present in a user’s Dropbox instance.
C:\Users\%user%\AppData\Local\Dropbox\host.dbxSQLite database which contains the local path of the user's Dropbox folder encoded in BASE64. Decode each line separately, not together.
C:\Users\%user%\AppData\Roaming\Microsoft\Protect\*\Required for offline decryption of Dropbox databases
C:\Users\%user%\AppData\Local\Dropbox\instance*\instance folder holds multiple SQLite databases related to Dropbox activity and contents
collection commands
# PowerShell Artifact Collection Script
# Target: Dropbox_Metadata
# Run as Administrator
#Requires -RunAsAdministrator
$ErrorActionPreference = "SilentlyContinue"
$DestBase = "D:\Evidence"
# Function to handle directory creation and copying
function Collect-Artifact {
param (
[string]$SourcePath,
[string]$FolderName
)
$FullDest = Join-Path -Path $DestBase -ChildPath $FolderName
if (-not (Test-Path -Path $FullDest)) {
New-Item -ItemType Directory -Path $FullDest -Force | Out-Null
}
Copy-Item -Path $SourcePath -Destination $FullDest -Recurse -Force
}
# 1. Dropbox Metadata
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Dropbox\"
Collect-Artifact -SourcePath "$UserPath\info.json" -FolderName "Dropbox_Metadata"
# 2. Dropbox Metadata
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Dropbox\"
Collect-Artifact -SourcePath "$UserPath\host.db" -FolderName "Dropbox_Metadata"
# 3. Dropbox Metadata
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Dropbox\machine_storage"
Collect-Artifact -SourcePath "$UserPath\tray-thumbnails.db" -FolderName "Dropbox_Metadata"
# 4. Dropbox Metadata
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Dropbox\"
Collect-Artifact -SourcePath "$UserPath\host.dbx" -FolderName "Dropbox_Metadata"
# 5. Windows Protect Folder
$UserPath = Join-Path $env:USERPROFILE "AppData\Roaming\Microsoft\Protect\*\"
Collect-Artifact -SourcePath "$UserPath\*" -FolderName "Windows_Protect_Folder"
# 6. Dropbox Metadata
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Dropbox\instance*\"
Collect-Artifact -SourcePath "$UserPath\*" -FolderName "Dropbox_Metadata"
Write-Host "Collection complete!" -ForegroundColor Green› Save as .ps1 and run as Administrator. Use: powershell -ExecutionPolicy Bypass -File script.ps1