dfirhub

SnipAndSketch

Author: Kevin Pagano & CERT CWATCH - ALMOND

description

Snip & Sketch Cached Images

paths

3 paths
FileKnowledgeSnip & Sketch
C:\Users\*\AppData\Local\Packages\Microsoft.ScreenSketch_8wekyb3d8bbwe\TempState\*.png

Pulls all temporary .png images generated by the Snip & Sketch screen capture tool built into Windows

FileKnowledgeSnip & Sketch
C:\Users\*\AppData\Local\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TempState\*.png

Pulls all temporary .png images generated by the Snip & Sketch screen capture tool built into Windows 11 22h2+

FileKnowledgeSnip & Sketch
C:\Users\*\AppData\Local\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TempState\ScreenClip\*.json

Pulls all temporary .json files related to the images generated by the Snip & Sketch screen capture tool built into Windows 11 22h2+

paths use Windows environment syntax

collection commands

# PowerShell Artifact Collection Script
# Target: SnipAndSketch
# 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. Snip & Sketch
Collect-Artifact -SourcePath "C:\Users\*\AppData\Local\Packages\Microsoft.ScreenSketch_8wekyb3d8bbwe\TempState\\*.png" -FolderName "Snip___Sketch"

# 2. Snip & Sketch
Collect-Artifact -SourcePath "C:\Users\*\AppData\Local\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TempState\\*.png" -FolderName "Snip___Sketch"

# 3. Snip & Sketch
Collect-Artifact -SourcePath "C:\Users\*\AppData\Local\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TempState\ScreenClip\\*.json" -FolderName "Snip___Sketch"

Write-Host "Collection complete!" -ForegroundColor Green

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

references