dfirhub

InternetExplorer

Author: Eric Zimmerman

description

Internet Explorer

paths

13 paths
CommunicationsIndex.dat History
C:\Documents and Settings\%user%\Local Settings\History\History.IE5\index.dat
CommunicationsIndex.dat History subdirectory
C:\Documents and Settings\%user%\Local Settings\History\History.IE5\*\index.dat
CommunicationsIndex.dat cookies
C:\Documents and Settings\%user%\Cookies\index.dat
CommunicationsIndex.dat UserData
C:\Documents and Settings\%user%\Application Data\Microsoft\Internet Explorer\UserData\index.dat
CommunicationsIndex.dat Office XP
C:\Documents and Settings\%user%\Application Data\Microsoft\Office\Recent\index.dat
CommunicationsIndex.dat Office
C:\Users\%user%\AppData\Roaming\Microsoft\Office\Recent\index.dat
CommunicationsLocal Internet Explorer folder
C:\Users\%user%\AppData\Local\Microsoft\Internet Explorer\
CommunicationsRoaming Internet Explorer folder
C:\Users\%user%\AppData\Roaming\Microsoft\Internet Explorer\
CommunicationsIE 9/10 History
C:\Users\%user%\AppData\Local\Microsoft\Windows\History\
CommunicationsIE 9/10 Cookies
C:\Users\%user%\AppData\Local\Microsoft\Windows\Cookies\
CommunicationsIE 9/10 Download History
C:\Users\%user%\AppData\Local\Microsoft\Windows\IEDownloadHistory\
CommunicationsIE 11 Metadata
C:\Users\%user%\AppData\Local\Microsoft\Windows\WebCache\
CommunicationsIE 11 Cookies
C:\Users\%user%\AppData\Local\Microsoft\Windows\INetCookies\
paths use Windows environment syntax

collection commands

# PowerShell Artifact Collection Script
# Target: InternetExplorer
# 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. Index.dat History
$UserPath = Join-Path $env:USERPROFILE "Local Settings\History\History.IE5\"
Collect-Artifact -SourcePath "$UserPath\index.dat" -FolderName "Index_dat_History"

# 2. Index.dat History subdirectory
$UserPath = Join-Path $env:USERPROFILE "Local Settings\History\History.IE5\*\"
Collect-Artifact -SourcePath "$UserPath\index.dat" -FolderName "Index_dat_History_subdirectory"

# 3. Index.dat cookies
$UserPath = Join-Path $env:USERPROFILE "Cookies\"
Collect-Artifact -SourcePath "$UserPath\index.dat" -FolderName "Index_dat_cookies"

# 4. Index.dat UserData
$UserPath = Join-Path $env:USERPROFILE "Application Data\Microsoft\Internet Explorer\UserData\"
Collect-Artifact -SourcePath "$UserPath\index.dat" -FolderName "Index_dat_UserData"

# 5. Index.dat Office XP
$UserPath = Join-Path $env:USERPROFILE "Application Data\Microsoft\Office\Recent\"
Collect-Artifact -SourcePath "$UserPath\index.dat" -FolderName "Index_dat_Office_XP"

# 6. Index.dat Office
$UserPath = Join-Path $env:USERPROFILE "AppData\Roaming\Microsoft\Office\Recent\"
Collect-Artifact -SourcePath "$UserPath\index.dat" -FolderName "Index_dat_Office"

# 7. Local Internet Explorer folder
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Microsoft\Internet Explorer\"
Collect-Artifact -SourcePath "$UserPath\*" -FolderName "Local_Internet_Explorer_folder"

# 8. Roaming Internet Explorer folder
$UserPath = Join-Path $env:USERPROFILE "AppData\Roaming\Microsoft\Internet Explorer\"
Collect-Artifact -SourcePath "$UserPath\*" -FolderName "Roaming_Internet_Explorer_folder"

# 9. IE 9/10 History
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Microsoft\Windows\History\"
Collect-Artifact -SourcePath "$UserPath\*" -FolderName "IE_9_10_History"

# 10. IE 9/10 Cookies
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Microsoft\Windows\Cookies\"
Collect-Artifact -SourcePath "$UserPath\*" -FolderName "IE_9_10_Cookies"

# 11. IE 9/10 Download History
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Microsoft\Windows\IEDownloadHistory\"
Collect-Artifact -SourcePath "$UserPath\*" -FolderName "IE_9_10_Download_History"

# 12. IE 11 Metadata
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Microsoft\Windows\WebCache\"
Collect-Artifact -SourcePath "$UserPath\*" -FolderName "IE_11_Metadata"

# 13. IE 11 Cookies
$UserPath = Join-Path $env:USERPROFILE "AppData\Local\Microsoft\Windows\INetCookies\"
Collect-Artifact -SourcePath "$UserPath\*" -FolderName "IE_11_Cookies"

Write-Host "Collection complete!" -ForegroundColor Green

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

cyberchef recipes

Open in CyberChef to decode values extracted from this artifact.

references

included in collections