Posts

Showing posts from October, 2023

Windows Incident Response Triage Script

Image
 This script is to pull files for triaging Windows hosts.   https://github.com/wubbaroo/winirtriage/blob/main/winirtriage.ps1  

PIKABOT INFECTION WITH COBALT STRIKE Sigma Rules

Sigma Rule Detect Base64 Register Value This rule will detect persistence of an pikabot infection with Cobalt Strike. The rule will detect registry entry with base64 encoded values.  https://github.com/wubbaroo/sigma_rules/blob/main/pikabot_reg_base64_sigma.yml Sigma Rule Detect Schedule Task This rule will detect persistence of an pikabot infection with Cobalt Strike. The rule will detect schedule task creation. https://github.com/wubbaroo/sigma_rules/blob/main/pikabot_schedule_task.yml Sigma Rule Double File Extensions  This rule will detect persistence of an pikabot infection with Cobalt Strike. The rule will detect link files that appear to be PDFs.  https://github.com/wubbaroo/sigma_rules/blob/main/link_files_double_extention.yml  

Analysis of PIKABOT INFECTION WITH COBALT STRIKE

Image
Thank You    The malware in this analysis came from MALWARE-TRAFFIC-ANALYSIS.NET ( https://www.malware-traffic-analysis.net/2023/10/03/index.html ).   Analysis   The initial infection came from an email attachment containing a shortcut file that was a double file.   The command line argument for the shortcut file was an officiated CURL command that downloaded the payload. Below is yara rule to detect link files that call cmd.exe. (Note: rule needs to run on yara 4.4.0 or greater.)  rule link_file_calling_cmd {     strings:         $s0 = "cmd.exe" nocase     condition:         $s0 and lnk.is_lnk } Below is the EXIF information for the payload.   The payload sets persistence by creating the Windows registry “HKCU\Sofware\Microsoft\podogyniu” and string value (Birdman).   The string value is base64 encoded PowerShell script that attempts to conn...