dfirhub

AVG

Author: Kirtan Shah and Dhiral Panjwani

description

AVG Antivirus Data

paths

7 paths
AntivirusAVG AV Logs (XP)
C:\Documents and Settings\All Users\Application Data\AVG\Antivirus\log
AntivirusAVG AV Report Logs (XP)
C:\Documents and Settings\All Users\Application Data\AVG\Antivirus\report
AntivirusAVG AV Logs
C:\ProgramData\AVG\Antivirus\log
AntivirusAVG Report Logs
C:\ProgramData\AVG\Antivirus\report
AntivirusAVG Persistent Logs
C:\ProgramData\AVG\Persistent Data\Antivirus\Logs
AntivirusAVG FileInfo DB
C:\ProgramData\AVG\AntivirusFileInfo2.db
AntivirusAVG lsdbj2 JSON
C:\ProgramData\AVG\Antiviruslsdb2.json
paths use Windows environment syntax

collection commands

# PowerShell Artifact Collection Script
# Target: AVG
# 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. AVG AV Logs (XP)
Collect-Artifact -SourcePath "C:\Documents and Settings\All Users\Application Data\AVG\Antivirus\log\*" -FolderName "AVG_AV_Logs__XP_"

# 2. AVG AV Report Logs (XP)
Collect-Artifact -SourcePath "C:\Documents and Settings\All Users\Application Data\AVG\Antivirus\report\*" -FolderName "AVG_AV_Report_Logs__XP_"

# 3. AVG AV Logs
Collect-Artifact -SourcePath "C:\ProgramData\AVG\Antivirus\log\*" -FolderName "AVG_AV_Logs"

# 4. AVG Report Logs
Collect-Artifact -SourcePath "C:\ProgramData\AVG\Antivirus\report\*" -FolderName "AVG_Report_Logs"

# 5. AVG Persistent Logs
Collect-Artifact -SourcePath "C:\ProgramData\AVG\Persistent Data\Antivirus\Logs\*" -FolderName "AVG_Persistent_Logs"

# 6. AVG FileInfo DB
Collect-Artifact -SourcePath "C:\ProgramData\AVG\Antivirus\FileInfo2.db" -FolderName "AVG_FileInfo_DB"

# 7. AVG lsdbj2 JSON
Collect-Artifact -SourcePath "C:\ProgramData\AVG\Antivirus\lsdb2.json" -FolderName "AVG_lsdbj2_JSON"

Write-Host "Collection complete!" -ForegroundColor Green

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

references

included in collections