Skip to main content
Challenges Obfuscated PowerShell: static analysis
Digital forensics Medium Unpacking multi-layered obfuscated .ps1 manually/with Python without executing it Solves: 4

Obfuscated PowerShell: static analysis

Author: CyberSamSU
Points
50

A sync.ps1 script that runs daily at 02:00 via a scheduled task on the accounting server was found. At first glance, it looks like an 'invoice synchronization' module, but most of its text consists of numbers and quoted fragments. The analyst decided to never execute the script — it should only be read as text and decoded with Python.

The script uses common obfuscation techniques: splitting and concatenating strings, scrambling order with the -f (format) operator, character codes ([char]) and -join, a shifted list of numbers, and one layer nested inside another. The script contains two encoded payloads, but only one of them is actually executed; additionally, unused 'legacy' code remains in the inner layer.

The script ultimately prints a token: ... string. Find this actually printed value using static analysis. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).

Attached files
sync.ps1 Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −5 pts Log in
Hint 2 −10 pts Log in
Hint 3 −15 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 25.11.2026
2. Odam 25.11.2026
3. AGENT X 26.11.2026
4. Doston Allayarov 28.11.2026