Kaseya
Author: Drew Ervin and Andrew Rathbun
description
Kaseya Data
paths
C:\Documents and Settings\%user%\Application Data\Kaseya\Log\https://helpdesk.kaseya.com/hc/en-gb/articles/229009708-Live-Connect-Log-File-Locations
C:\Users\%user%\AppData\Local\Kaseya\Log\KaseyaLiveConnect\https://helpdesk.kaseya.com/hc/en-gb/articles/229009708-Live-Connect-Log-File-Locations
C:\Documents and Settings\All Users\Application Data\Kaseya\Log\Endpoint\https://helpdesk.kaseya.com/hc/en-gb/articles/229009708-Live-Connect-Log-File-Locations
C:\ProgramData\Kaseya\Log\Endpoint\https://helpdesk.kaseya.com/hc/en-gb/articles/229009708-Live-Connect-Log-File-Locations
C:\Program Files*\Kaseya\*\agentmon.log*https://helpdesk.kaseya.com/hc/en-gb/articles/229009708-Live-Connect-Log-File-Locations
C:\Users\%user%\AppData\Local\Temp\KASetup.loghttps://helpdesk.kaseya.com/hc/en-gb/articles/229011448
C:\Windows\Temp\KASetup.loghttps://helpdesk.kaseya.com/hc/en-gb/articles/229011448
C:\Windows.old\Windows\Temp\KASetup.loghttps://helpdesk.kaseya.com/hc/en-gb/articles/229011448
C:\ProgramData\Kaseya\Log\KaseyaEdgeServices\https://www.huntress.com/blog/rapid-response-kaseya-vsa-mass-msp-ransomware-incident
collection commands
# PowerShell Artifact Collection Script
# Target: Kaseya
# 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. Kaseya Live Connect Logs (XP)
$UserPath = Join-Path $env:USERPROFILE "Application Data\Kaseya\Log\"
Collect-Artifact -SourcePath "$UserPath\*" -FolderName "Kaseya_Live_Connect_Logs__XP_"
# 2. Kaseya Live Connect Logs
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Kaseya\Log\KaseyaLiveConnect\"
Collect-Artifact -SourcePath "$UserPath\*" -FolderName "Kaseya_Live_Connect_Logs"
# 3. Kaseya Agent Endpoint Service Logs (XP)
Collect-Artifact -SourcePath "C:\Documents and Settings\All Users\Application Data\Kaseya\Log\Endpoint\\*" -FolderName "Kaseya_Agent_Endpoint_Service_Logs__XP_"
# 4. Kaseya Agent Endpoint Service Logs
Collect-Artifact -SourcePath "C:\ProgramData\Kaseya\Log\Endpoint\\*" -FolderName "Kaseya_Agent_Endpoint_Service_Logs"
# 5. Kaseya Agent Service Log
Collect-Artifact -SourcePath "C:\Program Files*\Kaseya\*\\agentmon.log*" -FolderName "Kaseya_Agent_Service_Log"
# 6. Kaseya Setup Log
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Temp\"
Collect-Artifact -SourcePath "$UserPath\KASetup.log" -FolderName "Kaseya_Setup_Log"
# 7. Kaseya Setup Log
Collect-Artifact -SourcePath "C:\Windows\Temp\\KASetup.log" -FolderName "Kaseya_Setup_Log"
# 8. Kaseya Setup Log
Collect-Artifact -SourcePath "C:\Windows.old\Windows\Temp\\KASetup.log" -FolderName "Kaseya_Setup_Log"
# 9. Kaseya Agent Edge Service Logs
Collect-Artifact -SourcePath "C:\ProgramData\Kaseya\Log\KaseyaEdgeServices\\*" -FolderName "Kaseya_Agent_Edge_Service_Logs"
Write-Host "Collection complete!" -ForegroundColor Green› Save as .ps1 and run as Administrator. Use: powershell -ExecutionPolicy Bypass -File script.ps1