Skip to main content
Challenges Room: Banking trojan
Xonalar Hard Android banking trojan: .ab backup, encrypted configuration, C2 commands and exfiltration via SMS Solves: 4

Room: Banking trojan

Author: CyberSamSU
Points
100

Room scenario. Unauthorised transfers occurred from a bank customer's account. A backup of the customer's phone (device_backup.ab), a suspicious app found on the phone (overlay_malware.apk) and the trojan server's API log (server_api.log) were handed to the investigator. The archive is fraud_case.zip.

Technical notes: .ab — a 4-line text header (ANDROID BACKUP, version, compression flag, encryption 'none'), followed (if compression = 1) by a tar stream compressed with zlib. The APK is a zip under the name .apk that has already been unpacked with apktool (smali and assets/). Nothing is installed or run.

Stages (answers are not submitted):

  1. Task 1. Open the backup and find the device's ANDROID_ID value (settings_secure.xml). Other files of the app also contain similar values — which one does the trojan use? Read the smali Cfg.smali.
  2. Task 2. Decrypt assets/c.bin the way the smali shows (how the key is derived, which AES mode). What is written in the configuration: the bot identifier, the command format (kx, base64url), the SMS upload format and the OTP pattern?
  3. Task 3. Find this victim's bot in server_api.log (the log is full of other bots, and one is a decoy — a similar scenario). Decode the cmd field in the /v2/c responses according to the configuration format: which sms_forward commands, for which sender?
  4. Task 4. From the SMS messages uploaded by this bot (/v2/u), take only the codes that match the OTP pattern in the configuration (resends are repeated n), join them in n order and convert to ASCII — that is the flag.

Flag format: BAYROQ{...} (the last 16 characters are lowercase hex).

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

First solvers

1. Mirjaxon Qaxxarov 25.11.2026
2. Odam 25.11.2026
3. Asmaa Mottery 26.11.2026
4. 𝖛𝖊𝖑𝖐𝖆𝖓 28.11.2026