Malicious Lnk and JavaScript Analysis @0xdf
Malicious Lnk and JavaScript Analysis  @0xdf
Uploaded March 2023 | Updated November 2026, 3 hours ago
Malware Bazaar diving video. I'll look at a lnk file and associated JavaScript file. Interesting stage two JS that uses colorcpl to move bitsadmin into the color directory, and then uses it to download many files and execute the bot. The tags on Malare Bazaar flag this as loading the Guildma botnet (I offer no insight to the validity of that). A fun piece of malware with some interesting rabbit holes looking at bitsadmin and colorcpl.

Sample lnk: https://bazaar.abuse.ch/sample/3e5c835ea46a0cea935d1408fc8db29a0e49a0189997759e7d23e0b751b8a963/
Sample js: https://bazaar.abuse.ch/sample/ea6215ab4d1c983ec4777778155ce206218f0c6449a8fc00ed875387cbe85613/
FireEye / Mandiant red_team_tool_countermeasures: github.com/mandiant/red_team_tool_countermeasures/blob/master/rules/G2JS/production/hxioc/SUSPICIOUS%20EXECUTION%20OF%20COLORCPL.EXE%20(METHODOLOGY).ioc
eral4m colorcpl tweet: twitter.com/eral4m/status/1480468728324231172
LnkParse3: github.com/Matmaus/LnkParse3

☕ Buy Me A Coffee: buymeacoffee.com/0xdf

[00:00] Introduction
[00:40] Looking at Malware Bazaar
[01:36] Quick look at lnk in Windows
[02:27] lnkparse
[03:44] %comspec%
[04:17] Analysis of lnk target
[06:13] Decoded JS
[07:58] Failing to download stage 2 JS
[08:21] Overview of stage 2 JS
[10:46] First function, fromCharCode
[11:07] Second function, download_to_file
[15:01] Understanding bitsadmin.exe /transfer
[16:12] Third function, inc counter
[16:43] Forth function, main
[19:25] colorcpl.exe exploration
[23:27] File downloads and execution in main
[24:29] Next stage exploration
[25:11] Conclusion
Malicious Lnk and JavaScript AnalysisDay 24 - Air Duct Spelunking [Revival of Code 2023 - Advent of Code 2016]Garden Groups [Day 12 - Advent of Code 2024 - Python]Debofuscate JavaScript with webcrack [Meme Maker 3000 - Flare-On 2024]Day 3 - Squares With Three Sides [Revival of Code 2023 - Advent of Code 2016]awk Injection via JWT Forgery [HackTheBox - Awkward]SpeedNet - HackTheSystem CTFsudo chroot Tech Details [CVE-2025-32463]Threat Index [HackTheBox - Coding Challenge]Day 23: Long Walk [AOC2023 Python]Day 8 - Two-Factor Authentication [Revival of Code 2023 - Advent of Code 2016]Reversing and Brute-Forcing TOPT Browser Plugin Export [HackTheBox Coder]
0xdf |

Malicious Lnk and JavaScript Analysis

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER