Benign powershell Download

benign-local-decrypt.ps1

PowerShell calls .NET File.OpenReadRfc2898DeriveBytes name reference
SHA-25686a4a2660b9e586eebeb92334c432b730370d3561c3024c2b05d8556f5d5c05d

Evidence

Rfc2898DeriveBytes name reference lines 1–8
1# Control: password-based AES + gzip of a local backup; no machine id, no download
2param([string]$Path, [string]$Password)
3$salt = [byte[]](1..16)
4$kdf = New-Object System.Security.Cryptography.Rfc2898DeriveBytes($Password, $salt, 100000)
5$aes = [System.Security.Cryptography.Aes]::Create()
6$aes.Key = $kdf.GetBytes(32)
7$in = [IO.File]::OpenRead($Path)
8$gz = New-Object System.IO.Compression.GZipStream($in, [System.IO.Compression.CompressionMode]::Decompress)

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.