dfirhub

1Password

Author: Matt Dawson

description

1Password Password Manager

paths

3 paths
Apps1Password Database
C:\Users\%user%\AppData\Local\1password\data1Password10.sqlite

Database which holds information about 1Password installation, such as accounts, categories, settings and more

Apps1Password Backup Databases
C:\Users\%user%\AppData\Local\1password\backups1Password10.sqlite

Backups of 1Password Database

Apps1Password Logs
C:\Users\%user%\AppData\Local\1password\logs*.log

Log of usage of 1Password - can be useful for identifying periods of user activity

paths use Windows environment syntax

collection commands

# PowerShell Artifact Collection Script
# Target: 1Password
# 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. 1Password Database
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\1password\data"
Collect-Artifact -SourcePath "$UserPath\1Password10.sqlite" -FolderName "1Password_Database"

# 2. 1Password Backup Databases
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\1password\backups"
Collect-Artifact -SourcePath "$UserPath\1Password10.sqlite" -FolderName "1Password_Backup_Databases"

# 3. 1Password Logs
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\1password\logs"
Collect-Artifact -SourcePath "$UserPath\*.log" -FolderName "1Password_Logs"

Write-Host "Collection complete!" -ForegroundColor Green

Save as .ps1 and run as Administrator. Use: powershell -ExecutionPolicy Bypass -File script.ps1

references