Shedding Skin: LNK Malware Analysis
Analysis of a Windows LNK dropper family that self-deletes, uses Dropbox for C2, and ships Korean lures—plus behavioural detection notes (crazy_lady).

A shortcut family that hides in plain sight, deletes itself, and talks through Dropbox.
This is one of the best LNK samples we’ve ever dissected. A single Windows shortcut that carries its own decoy, its own hidden archive, finds itself on disk by measuring its own length, installs persistence, deletes itself, and then takes orders from a Dropbox folder. Three builds, three different sets of broken indicators, and one set of behaviours the actor could not shake. Let’s take it apart.
Key findings
- Family: Shedding Skin, a Windows
.lnkdropper (user execution), three builds observed- C2: Dropbox API with a hard-coded OAuth app; no attacker-owned infrastructure
- Lure: Korean-language Hancom/Hangul PDF decoy,
Agricampaign tag- Notable: self-locating polyglot that self-deletes; Build 3 hides its payload as a number list in the arguments field
- Detection: behavioural logic crazy_lady, plus Sigma/KQL/PowerShell below
- ATT&CK: T1204.002, T1059.001, T1053.005, T1102.002, T1027, T1070.004
A Windows shortcut is 1 to 2 KB of boring structure. The first sample in this family was 68,502 bytes, carried a Korean-language decoy document and a hidden archive inside itself, found its own file on disk by measuring its own length, installed persistence, and then deleted itself. Its command-and-control server was a Dropbox folder.
Three builds of the family reached us. Each one broke a different set of indicators from the one before. This post walks the full chain, shows what changed between builds, and separates what we confirmed from what we are inferring.
How to read this post
Every claim carries a marker:
◆ CONFIRMED read directly from the sample, script, or metadata
◇ ASSESSED inference from evidence; could be wrong
○ OPEN not yet determined
And a glyph key for the diagrams:
▣ the shortcut (container) ◧ decoy document ▥ encoded payload
⚙ loader / script host ☁ dead drop (Dropbox) ⟳ poll cycle
◌ hidden (attrib +h +s) ✂ self-deletion ⊕ XOR / cipher step
TL;DR
- ◆ A shortcut-borne dropper family delivers a Korean-language decoy, stages hidden directories, installs a 16-minute scheduled task, and polls a Dropbox account for operator-staged batch files.
- ◆ No attacker-owned infrastructure exists anywhere in the chain. Domain and IP pivots are dead on arrival.
- ◆ Build 2 broke every static anchor from Build 1: file size, variable prefix, directory root, task prefix, obfuscation split points.
- ◆ Build 3 drops the embedded-blob architecture and carries its payload as an encoded number list inside the arguments field. A Kaspersky heuristic named after
ZDI-CAN-25373(a whitespace-padding technique) fired on a sample from this family. - ◆ Static indicators broke on every rebuild. The constraints the technique forces did not: §7 lays out 20 behavioural primitives (
crazy_lady), an evidence matrix across all three builds, composite chains, a static pre-execution gate, deployable Sigma/KQL, and policy changes. - ◇ TTPs overlap with groups Trend Micro lists as exploiting
ZDI-CAN-25373(Konni, ScarCruft among them). That is overlap, not attribution.
1. Build 1: the self-locating polyglot
The container
0x00000 ┌─────────────────────────────────┐
│ ▣ LNK structure + ~2,000-char │ 5,946 B
│ command line │
0x0173A ├─────────────────────────────────┤
│ ◧ decoy PDF (plaintext) │ 59,358 B (0xE7DE)
0x0FF18 ├─────────────────────────────────┤
│ ▥ ZIP, single-byte XOR 0xBF │ 3,198 B (0x0C7E)
0x10B96 └─────────────────────────────────┘ = 68,502 B total
◆ The three regions are contiguous with no slack: 0x173A + 0xE7DE = 0xFF18 and 0xFF18 + 0x0C7E = 0x10B96. The script hard-codes that final value as its own identity.
The shortcut itself
◆ Flags set: HasName, HasArguments, HasIconLocation, IsUnicode, HasExpString, PreferEnvironmentPath. Target timestamps null, target size 0, attributes 0, show-command SW_SHOWMINNOACTIVE.
◆ Absent: TargetIDList, LinkInfo, and the TrackerDataBlock. Windows populates all of these when it creates a shortcut through any standard API. Their absence means the file was written by a custom serializer, and it removes the build machine’s MAC address, NetBIOS name, and Droid GUIDs from the analyst’s toolbox.
◆ Execution target comes solely from an EnvironmentVariableDataBlock: %windir%\SysWOW64\cmd.exe.
The launch line
cmd.exe /k for /f "tokens=*" %a in (
'dir C:\Windows\SysWow64\WindowsPowerShell\v1.0\powershell.exe /s /b /od'
) do call %a "<script>" && exit
◆ PowerShell is never named in an executable position. dir resolves it and call runs the result. The 32-bit binary is forced.
◆ cmd.exe is load-bearing, not decoration: the script contains '%temp%', which PowerShell does not expand. It only works because cmd expands environment variables across the whole line before handing it over.
Stage 1: carve, stage, persist, vanish
☉ double-click ▣
│
▼
⚙ cmd (SysWOW64) ──for/dir/call──▶ ⚙ powershell (32-bit)
│
├─▶ find self: *.lnk where length == 0x00010B96
├─▶ ◧ read @0x173A → <name>.pdf → open it (the lure)
├─▶ ◌ ProgramData\Intel_R attrib +h +s
├─▶ ◌ ProgramData\vc_lib attrib +h +s
├─▶ ▥ read @0xFF18 → ⊕ 0xBF → Intel_R\joysun08 → tar -xf → vc_lib\
│ ├── pack_free.js ──moved──▶ Intel_R\joy_<uuid[0:4]>.js
│ └── advpackx.ps1 (stays in vc_lib)
├─▶ ⟳ scheduled task WinSch_<SMBIOS UUID>
└─▶ ✂ delete joysun08, then delete the .lnk itself
◆ Self-location by size. Inline-invoked PowerShell has no $PSCommandPath, so the script cannot know which file launched it. It searches for a .lnk of exactly 68,502 bytes. If the working directory is System32 or Program Files it searches %temp% instead, which fits execution straight out of an archive viewer.
◆ Persistence. Task name WinSch_<full SMBIOS UUID>, action wscript.exe, 16-minute repetition starting one minute after registration, with both battery restrictions inverted. All cmdlet names are split across variables and reassembled through the call operator, so Register-ScheduledTask never appears contiguously in the file. Script Block Logging (4104) records the reconstructed call.
◆ The task is not hidden (<Hidden>false</Hidden>) and sits in the root task folder.
Stage 2: the thin launcher
◆ pack_free.js (about 800 bytes) holds its strings as integer arrays decoded with XOR key 82, plus one string reversal:
voOp[0] WScript.Shell
voOp[1] Scripting.FileSystemObject
voOp[2] C:\ProgramData\vc_lib\advpackx.ps1
voOp[3] Secure20@^ ← decoded, never used
voOp[4] " eliF- ssapyB yciloPnoitucexE- eliforPoN- " (reversed)
voOp[5] powershell.exe
It does one thing: if advpackx.ps1 exists, run powershell -NoProfile -ExecutionPolicy Bypass -File <it> hidden and wait. No network code. Every 16 minutes.
Stage 3: the implant
◆ advpackx.ps1 builds every URL and header name from char-code fragments. Four Dropbox endpoints: OAuth token, upload, download, move_v2.
⟳ each run
│
├─▶ ☁ OAuth2 refresh-token grant → short-lived access token
├─▶ identity = SHA-256( CPU id | board serial | disk serial | SMBIOS UUID )[0:5]
│ → "/Agri_<10 hex>" (fallback on WMI failure: "aaaabbcc")
├─▶ recon: OS version (plain)
│ external IP via nslookup myip.opendns.com 208.67.222.220 ⊕ RC4+B64
│ DOMAIN@@USER (plain)
│ full process list ⊕ RC4+B64
├─▶ ☁ upload /Agri_<id>/MM:dd---HH:mm.txt
└─▶ ☁ download /Agri_<id>_cafe → %TEMP%\cafebucket####.bat
├─▶ move /Agri_<id>_cafe → /Agri_<id>_cafe_buy (consumed marker)
├─▶ cmd /c <bat> hidden
└─▶ sleep 120 s → delete the bat
◆ RC4 key: Se!cure32 (built as "Se!cu"+"re32"). Textbook RC4, hand-rolled Base64.
The cloud filesystem is the state machine
operator's Dropbox
/Agri_a1b2c3d4e5/ ← victim uploads land here
/Agri_a1b2c3d4e5_cafe ← task staged FOR the victim
/Agri_a1b2c3d4e5_cafe_buy ← task CONSUMED (renamed by the implant)
◇ One rename solves two problems with no server: the next poll finds nothing to re-run, and the operator learns delivery happened by looking at a filename. The process list in every beacon also suggests a human decides whether a host gets tasked, which means a sandbox that looks like a sandbox may simply never receive a payload.
◇ The campaign tag Agri plus the lure language point at Korean agricultural-sector targeting. The tag is a build-time label, not proof of who was actually targeted.
The lure
◆ The decoy PDF metadata: language ko-KR, creator Hancom Office Hangul 2018, producer Hancom PDF 1.3.0.515, PDF/A-1b, created and modified 2026-05-20 12:45:56 +09:00, three pages. Author is the vendor string (주)한글과컴퓨터, not a person. XMP Document ID 6BE1F2F1-78D1-444F-9929-C0BBD75F0F6E.
◇ That timestamp gives a lower bound: the build cannot predate 20 May 2026.
2. Build 2: the one that gave away the builder
Self-ID size 0x000100E8 = 65,768 B (Build 1: 68,502)
PDF @0x173A, len 0xE7DE (identical offset and length)
Archive @0xFF18, len 0x1D0 = 464 B (Build 1: 3,198)
◆ What changed
| Build 1 | Build 2 | |
|---|---|---|
| Staging root | C:\ProgramData |
%TEMP% |
| Archive name | joysun08 |
joydemo09 |
| Launcher script | pack_free.js → joy_<id>.js |
helloworld.js |
| Task name | WinSch_<UUID> |
CLSch_<random 0–9999> |
| Host fingerprinting | SMBIOS UUID via WMI | none |
| LNK self-delete | yes | no |
| First run | wait for the task | ii helloworld.js immediately |
| Task hidden | no | yes (-Hidden) |
| Execution time limit | default (72 h) | 5 minutes |
| Repetition | no duration given | explicit 3650 days |
| WSH option syntax | /B /NoLogo |
//B |
wscript path |
bare name | %windir%\System32\wscript.exe |
| PowerShell window | LNK show-command only | -WindowStyle Hidden added |
| Variable prefix | $oxpoq… |
$zq… |
| Cmdlet split points | Register-S + cheduledT + ask |
'Regist'+'er-ScheduledT'+'ask' |
◇ This looks like a test build: helloworld.js, joydemo09, a throwaway task name, %TEMP%, no self-deletion, immediate execution, a 464-byte archive that cannot hold the 4 KB implant. It also fixes visible defects from Build 1: the exposed task, the 72-hour hang risk, and the console flash.
◇ The builder uses fixed slots. The PDF offset 0x173A is identical across builds that have different command lines, so the structure region is padded to a fixed size rather than computed. That makes 0x173A a sturdier hunting constant than any file size.
○ /B versus //B. WSH host options take a double slash. Build 1’s /B /NoLogo may be passed to the script as arguments rather than parsed as host options, and if so its scheduled task may never have launched the script. We have not tested this. If you have a VM, test it before repeating it.
○ The Build 2 decoy has the same offset and length as Build 1. Whether the bytes are identical (hash comparison) is still open.
3. Build 3: re-architecture
Build 1/2: ▣ = structure + ◧ decoy + ▥ archive → self-locate, carve, extract
Build 3 : ▣ = structure + encoded payload in the arguments field → decode, write, IEX
◆ Launch line differences:
...\^p^O^W^E^R^S^h^E^l^l.exe /s /b /od') do call %a -WindowStyle Hidden "<script>"
Carets are cmd escape characters, so the name resolves at runtime while the literal powershell.exe never appears in the file. -WindowStyle Hidden is carried over from Build 2.
◆ The payload is a space-delimited list of decimal numbers ($VIUSBvejbawf). The decoder:
key = "H&38%" (UTF-8 bytes, cycled)
eff = key_byte + 103
plain = eff - cipher if eff >= cipher
= cipher otherwise (passes through unchanged)
◆ We hand-checked the first five values: 143 109 122 127 108 with effective keys 175 141 154 159 140 all decode to 0x20. The payload opens (and closes) with whitespace padding.
◆ Output goes to %APPDATA%\eNUVek.ps1 and runs with Get-Content | Out-String | Invoke-Expression. No archive, no tar, no self-location, no embedded decoy referenced in the arguments.
◆ The Name (description) string holds forged file-properties text:
Type: Hangul Document
Size: 2.84 KB
Date modified: 10/20/2023 11:23
◇ This is text, not metadata. It mimics what Explorer shows for a real document. The “2.84 KB” is part of the forgery and tells you nothing about the real file size, which we did not capture and which, with thousands of decimal tokens in the arguments, is unlikely to be that small.
○ eNUVek.ps1 has not been decoded. It will hold the persistence logic, C2 config, and capability. We have not seen it, so this post says nothing about what it does.
○ The .pdf icon location is the same in all three builds. We observed it rendering as a normal PDF icon. The mechanism (likely resolution through the host’s registered .pdf handler) is unconfirmed.
4. What ZDI-CAN-25373 actually means
Kaspersky labelled a sample from this family HEUR:Trojan.WinLNK.ZDI-CAN-25373.gen. Here is what that identifier is.
Per public reporting on Trend Micro’s disclosure, ZDI-CAN-25373 is a UI-misrepresentation weakness (CWE-451). Attackers pad the command-line arguments of a shortcut with whitespace (space, tab, line feed, vertical tab, form feed, carriage return), so the Windows UI does not display the malicious arguments when a user inspects the file.
It is not a parser bug that spoofs the displayed filename, size, or date. At disclosure, no CVE had been assigned, and Trend reported that Microsoft declined to issue a patch. That reporting dates from March 2025, so check current status before citing it.
Trend’s sample set was mostly linked to Evil Corp, Kimsuky, Konni, Bitter, and ScarCruft. That is consistent with what we see here, but whitespace padding is a public technique and any actor can copy it.
How it maps to this family:
- ◇ The stray character LECmd renders before
/kin every build’s arguments is consistent with padding. We have not inspected the raw bytes, so we cannot say how much whitespace precedes the command. - ◆ Build 3’s encoded payload opens and closes with encoded spaces. That is padding inside the payload, a different thing from padding in the arguments field.
- ◇ Build 3’s forged Name string is a separate trick layered on top: it imitates Explorer’s tooltip for a real document.
Detection that works without execution: count whitespace in the arguments field. A shortcut whose arguments are mostly padding and launched from explorer.exe is not normal.
5. What the engines said
Labels we observed on samples from this family (per-sample mapping was not recorded, except the ZDI label on Build 3):
| Vendor | Label |
|---|---|
| Microsoft Defender | Trojan:Win32/WinLNK.CLL!MTB |
| Kaspersky | HEUR:Trojan.WinLNK.Powecod.c |
| Kaspersky | HEUR:Trojan.WinLNK.Agent.gen |
| Kaspersky | HEUR:Trojan.WinLNK.ZDI-CAN-25373.gen |
◆ Both vendors flagged statically, without running anything. The shortcut’s arguments field carries its own intent in plaintext: a decode loop, binary offsets, attrib +h +s, scheduled-task cmdlets, and (in Build 3) a thousands-long number list.
○ Vendors do not publish what the family or cluster tokens (Powecod, CLL, Agent) are keyed on. Treat any reading of those strings, including ours, as inference. The prefix HEUR denotes a heuristic detection; beyond that, don’t over-read.
◇ The takeaway is operational: the file that gets flagged statically is the file the chain deletes first. Static detection works at the gateway or at download. After execution it is the staged files and behavior that remain.
6. What survives a rebuild
Build 2 broke these Build 1 anchors: file size (68502), the $oxpoq prefix, the C:\ProgramData path literals, the WinSch_ task prefix, and the cmdlet split points. Build 3 broke anything keyed on embedded blobs, offset reads, and carved decoys.
What the technique forces did not change:
| Invariant | Why the actor can’t drop it |
|---|---|
| Script host decodes a byte array with an arithmetic or bitwise loop, then writes or executes the result | Any encoded payload must be decoded by the stage that carries it |
Interpreter path resolved at runtime (dir/call, carets) |
The only way to keep the interpreter name out of the file |
| Directory created and hidden by the same process, outside an installer context | Hiding is the process’s own job |
| Repeating scheduled task registered by a script host, pointing at a script in a user-writable path | Persistence without admin |
| Non-round poll interval (16 min) | Operator-chosen, anomalous against 5/10/15/30/60 |
| Script-host process talking to a cloud-storage API on a machine without that provider’s client | The dead drop needs the API |
| Descendant deletes the file that launched its ancestor | Self-cleanup |
Interpreter chain depth ≥ 3 (cmd → powershell → wscript → powershell → cmd) |
Layering is the evasion |
Highest-value controls
- Software-inventory correlation on cloud-API egress. A PowerShell process talking to
dropboxapi.comon a host with no Dropbox client is almost always malicious, and the same logic covers Drive, OneDrive, Telegram, and Discord variants. - PowerShell Script Block Logging (EID 4104). It records the reassembled cmdlet names the string-splitting hides.
- Quarantine LNK-in-archive at the mail gateway. The
%temp%fallback in the script suggests archive delivery. ○ Delivery was not observed directly. - Alert on whitespace-padded LNK arguments. One check covers
ZDI-CAN-25373abuse across many families. - Enable “Audit Other Object Access Events” so task creation (4698) logs the full task XML.
Do not block dropboxapi.com. It is legitimate, and the operator’s only real weakness is one thing you cannot touch: the hard-coded OAuth app.
7. crazy_lady: detecting the constraint, not the sample
Signatures encode implementations. filesize == 68502 died the moment Build 2 shipped at 65,768 bytes. $oxpoq died when the prefix became $zq. WinSch_ died when the task became CLSch_.
crazy_lady is our in-house behavioural-logic category (fuzzy_behaviour_logic). It breaks a sample into primitives, each one a thing the technique forces the attacker to do, and scores combinations of them. The design rule:
The attacker can change how they do X. They cannot stop doing X.
A polyglot dropper launched through inline PowerShell must find its own container, because inline PowerShell has no $PSCommandPath. They changed the method (file size, then nothing at all in Build 3 by dropping the polyglot). Whatever method they pick, the shape is visible.
7.1 Evidence: what held across the three builds
◆ = observed in that build’s scripts or metadata. ✗ = absent in that build. ? = not observable from what we captured. Build 3’s payload (eNUVek.ps1) is undecoded, so everything past its first-stage decode is ?.
| # | Primitive | Invariant | B1 | B2 | B3 |
|---|---|---|---|---|---|
| P01 | Self-location | A script with no self-path must find the file that launched it | ◆ size | ◆ size | ✗ |
| P02 | Offset read of a non-container file | Carving requires a seek | ◆ | ◆ | ✗ |
| P03 | Carve-then-open decoy | A decoy must be written and opened by the dropper | ◆ | ◆ | ✗ |
| P04 | Byte-transform loop | Any encoded payload is decoded by the stage that carries it | ◆ XOR | ◆ XOR | ◆ subtraction cipher |
| P05 | Computed interpreter path | The only way to keep the interpreter name out of the file | ◆ | ◆ | ◆ + carets |
| P06 | Literal-to-construction ratio | Every string-obfuscation technique raises construction ops relative to literals | ◆ | ◆ | ◆ number list |
| P07 | Composite hardware fingerprint | Stable victim ID needs several serials hashed together | ◆ | ✗ | ? |
| P08 | Hidden-directory creation | The process must set the attributes itself | ◆ | ◆ | ? |
| P09 | Vendor-lookalike staging names | Masquerade needs a plausible name | ◆ | ◆ | ✗ random name |
| P10 | Cloud dead-drop shape | Auth, write, read, mutate state | ◆ | ? | ? |
| P11 | Server-side consumed marker | A drop that must not re-run needs a state change | ◆ | ? | ? |
| P12 | Ancestor self-deletion | Cleanup deletes the launching file | ◆ | ✗ | ? |
| P13 | Interpreter chain depth | Layering is the evasion | ◆ | ◆ | ◆ (≥2 confirmed) |
| P14 | Non-round cadence | Operator-chosen interval | ◆ 16 min | ◆ 16 min | ? |
| P15 | Write, execute, sleep, delete on one path | Naive payload runner | ◆ | ? | ? |
| P16 | Whitespace-padded arguments | Hides the command from the Properties UI | ◇ | ◇ | ◇ |
| P17 | In-arguments encoded payload | Decode, write, IEX with no intermediate archive |
✗ | ✗ | ◆ |
| P18 | Caret-escaped binary name in a for/dir loop |
Hides the resolved name from string scans | ✗ | ✗ | ◆ |
| P19 | Forged properties text vs real target | Description claims a document; target is cmd.exe |
? | ? | ◆ |
| P20 | Synthetic-LNK profile | Custom serializer: ExpString only, no TargetIDList, LinkInfo, or Tracker block, zeroed target | ◆ | ? | ◇ ExpString confirmed, rest unseen |
◇ on P16: LECmd shows a stray character before /k in every build, which fits padding, but we have not inspected raw bytes. Count whitespace before you rely on it.
◆ reported by our team: crazy_lady flagged Build 2, which had broken six of Build 1’s static anchors. ○ Build 3 has not been run through it yet.
What the matrix says. Four primitives (P04, P05, P06, P13) were observed in every build. P01 to P03 are tied to the polyglot architecture and disappeared with it. Build 3 added P17, P18, and P19. If your rules lean on P01 to P03, you have a coverage gap against Build 3.
7.2 Why these are hard for the actor to abandon
Weight primitives by how expensive they are to give up, not by how often they fired on the sample you tuned against. Cosmetic choices (path names, task prefix, interval) change for free. Structural ones cost a redesign.
| Cost to abandon | Primitives | Evidence |
|---|---|---|
| Free | P09 names, P14 interval, P12 self-delete, variable prefixes | Build 2 changed or dropped each of these between builds |
| Redesign | P01 to P03 (polyglot) | Build 3 replaced the whole architecture |
| Not without losing the technique | P04, P05, P10, P13 | Unchanged across all observed builds |
If you tune weights on hit rate alone, you will over-weight the free ones, because they fire beautifully on the sample in front of you and vanish on the next build. Tune on forcedness, validate on hit rate.
7.3 The primitives, with a detection surface for each
P02 + P03: carve then open. A script-language process seeks to a non-zero offset in a file that is not a database, archive, or media container, writes the buffer out with a document extension, then opens it. Benign installers write documents and open documents. They do not carve one out of the middle of another file first.
P04: byte-transform loop. A script iterates a byte array applying a reversible arithmetic or bitwise operation, then writes the result to disk or hands it to an interpreter. Swapping XOR for a custom cipher or AES does not help the actor: script block logging sees the loop either way, and System.Security.Cryptography is more instrumented than -bxor.
P05 + P18: the child image never appears in the parent’s command line as a contiguous string. That is a computable property per process-creation event: take the child’s image name and check whether it appears literally in the parent’s command line (after removing ^). It generalises across dir/call, where, Get-Command, caret escaping, and registry lookups.
P06: literal-to-construction ratio. Metric, not pattern, applied to script block text:
obf_score = (concat_ops + format_ops + join_ops + char_casts
+ reverse_calls + arithmetic_in_string_context)
/ max(1, count_of_string_literals_of_length >= 4)
advpackx.ps1 has almost no meaningful literals over about 4 KB: URLs, header names, and cmdlet names are all constructed. A legitimate script just writes "Authorization". Add a second axis for identifier entropy: generated names ($oxpoqbAllDato, CoC1/UoU1/DoD1, $CLOIJSfgiojvosef235sdb) cluster differently from human-written ones.
P07: composite hardware fingerprint. One process queries three or more distinct hardware-identity classes (CPU id, board serial, disk serial, SMBIOS UUID) and then hashes or concatenates them. Inventory tools report values. Implants condense them into an ID.
P10 + P11: cloud dead-drop shape, provider-agnostic.
one non-browser process, within roughly 60 seconds:
1. POST to a token endpoint
2. upload-shaped request (outbound-heavy, octet-stream)
3. download-shaped request (inbound-heavy)
4. rename / move / delete on the path just downloaded
repeating on a fixed cadence
AND the process is a script interpreter
AND the provider's client is not in software inventory
The inventory condition is the cheapest strong signal you have. A PowerShell process talking to the Dropbox API on a host with no Dropbox client is almost always malicious. The same rule covers Drive, OneDrive, Telegram, Discord, and GitHub variants.
P12: ancestor self-deletion. Carry the launch lineage artifact (the file that spawned the tree) through process telemetry, and alert when a descendant deletes it. Self-deleting installers exist, but they are signed and inventoried.
P13: interpreter chain depth. Count distinct script hosts and shells in one lineage. svchost → wscript → powershell → cmd → .bat is depth 4 and has almost no benign precedent. Swapping wscript for mshta or cscript leaves depth unchanged.
P14: cadence. Legitimate scheduled tasks cluster on 5, 10, 15, 30, 60 minutes. Sixteen stands out. Use it for hunting (sweep the estate) rather than blocking: on its own it is suggestive, not damning.
P16: whitespace-padded arguments. Count whitespace characters (0x20 0x09 0x0A 0x0B 0x0C 0x0D) in the arguments field. A launch from explorer.exe whose arguments are largely whitespace before the first visible token is not normal. This one check also covers abuse of ZDI-CAN-25373 in unrelated families.
P17: in-arguments encoded payload. Arguments carrying a long numeric (or other printable-encoded) array followed by a decode loop, Out-File, and Invoke-Expression in one inline command. A legitimate shortcut does not carry thousands of integers.
P19: forged description vs real target. The shortcut’s description string mimics file properties (Type: …, Size: …, Date modified: …) while the resolved target is a command interpreter. Real shortcuts to real documents point at the document.
P20: synthetic-LNK profile. ExpString and PreferEnvironmentPath set, no TargetIDList, no LinkInfo, no TrackerDataBlock, zeroed target size, timestamps, and attributes, an oversized file, a long arguments field. Each fact alone has a benign explanation. Together they do not.
7.4 A static pre-execution gate
The strongest place to catch this family is before the first double-click. Everything below runs on bytes, no detonation:
import re, math
MAGICS = {b"%PDF-": "PDF", b"PK\x03\x04": "ZIP", b"Rar!": "RAR"}
def embedded_formats(data: bytes):
"""Find known file magics at ANY offset, plain or single-byte-XORed.
(Scan every offset, not every 512 bytes: the Build 1 PDF sits at 0x173A.)"""
hits = []
for magic, name in MAGICS.items():
for key in range(256):
pat = bytes(b ^ key for b in magic)
i = data.find(pat, 1) # skip offset 0
while i != -1:
hits.append((i, name, key))
i = data.find(pat, i + 1)
return hits
def entropy(s: str) -> float:
if not s: return 0.0
p = [s.count(c) / len(s) for c in set(s)]
return -sum(x * math.log2(x) for x in p)
def lnk_gate(args: str, name: str, flags: dict, filesize: int, data: bytes):
f = {
"padding": bool(re.search(r"[ \t\r\n\x0b\x0c]{50,}", args)), # P16: a long unbroken whitespace run
"long_args": len(args) > 500,
"numeric_array": bool(re.search(r"(?:\d{1,3} ){200,}", args)), # P17
"decode_exec": bool(re.search(r"-bxor|\[byte\]", args, re.I))
and bool(re.search(r"Invoke-Expression|\biex\b", args, re.I)),
"computed_ps": bool(re.search(r"for\s*/f.*dir.*do\s+call", args, re.I)), # P05
"caret_name": bool(re.search(r"(?:\^[A-Za-z]){4,}", args)), # P18
"hex_offsets": len(re.findall(r"0x[0-9A-Fa-f]{4,}", args)) >= 3,
"seek_and_read": "Position" in args or ".Seek(" in args, # P02
"persistence": bool(re.search(r"ScheduledT", args)),
"hide_dirs": "attrib +h +s" in args, # P08
"synthetic": bool(flags.get("exp_string")) and not flags.get("link_info")
and not flags.get("target_idlist")
and not flags.get("tracker"), # P20
"forged_props": bool(re.search(r"Type:.*Size:.*Date modified:", name, re.S)), # P19
"oversized": filesize > 20 * 1024,
"embedded": bool(embedded_formats(data)), # P02/P03
}
return sum(f.values()), f
This is illustrative, not tuned. Start with block-on-score at 5 or more and alert at 3 or 4, then measure against your own LNK corpus before enforcing. Every signal above is a property that legitimate shortcuts do not have.
7.5 Composite chains
crazy_lady::polyglot_self_extraction (Builds 1, 2)
P01 AND P02 AND (P03 OR P04) within one process lifetime
→ near-conclusive. Fires at stage 1, before persistence is written.
crazy_lady::inline_decode_exec (Build 3)
P05 AND P04 AND P17 AND write-to-user-profile AND Invoke-Expression
→ near-conclusive. No archive, no carve: the decode-write-execute triple is the signal.
crazy_lady::cloud_deaddrop_implant (Build 1 stage 3)
P10 AND script-host process AND provider client absent from inventory
AND (P11 OR P14 OR P07)
→ provider-agnostic; survives swapping Dropbox for anything else.
crazy_lady::staged_persistence
P08 AND P09 AND scheduled-task registration by a script host AND P13 (depth ≥ 3)
→ suspicious, malicious with any one more primitive.
Keep the delivery chains (polyglot, inline-decode) decoupled from the implant chain (cloud dead-drop). Delivery will keep changing, as Build 3 showed. The implant half did not change across anything we saw.
7.6 Scoring model (starting priors)
score = Σ(weight_i × fired_i) × temporal_coherence × context_multiplier
temporal_coherence:
all within 60 s, one process tree → 1.4
within 5 min → 1.0
within 1 h, correlated by artifact → 0.8
unrelated → 0.4
context_multiplier:
unsigned script host, non-interactive parent → 1.5
signed binary, no inventory entry → 1.2
signed + inventoried + installer context → 0.3
Temporal coherence does most of the work. Any single primitive fires benignly somewhere in a large estate. Six of them inside one process tree inside 60 seconds does not. We have not published per-primitive weights because they depend on your fleet: derive them from forcedness (§7.2), then validate them on your own telemetry.
7.7 Variant projection: what each plausible next build costs the actor
| If the actor… | Breaks | Still caught by |
|---|---|---|
| Changes size, prefix, task name, directory root | Every static anchor from Build 1 | P01 to P05, P13, P14 (Build 2 did this) |
| Drops the polyglot (Build 3) | P01 to P03 | P04, P05, P17, P18, P19, P20 |
| Swaps XOR or the subtraction cipher for AES | Cipher-specific strings | P04 (crypto APIs are more instrumented) |
| Swaps Dropbox for Google Drive or OneDrive | All URL IOCs | P10, inventory correlation |
Swaps wscript for mshta or cscript |
Parent-image Sigma rules | P13, P05 |
Renames Intel_R and vc_lib |
Path IOCs | P09 similarity scoring (name-agnostic) |
| Rounds the interval to 15 minutes | P14 | Everything else |
| Hides the task and caps the time limit (Build 2 did) | Visibility-based hunts | Raw System32\Tasks sweep, P13, P08 |
| Signs the LNK with embedded Authenticode | Trust heuristics | P04, P05, P10; the cost is a stolen or purchased cert |
| Fetches stage 2 over HTTP, no archive | P01 to P03 | P05, P10, P13 |
The honest limit: if they stop being a shortcut and stop being a script-host chain, half of this stops applying. The implant chain does not depend on the delivery format, which is why it is the part to protect first.
7.8 Rules you can deploy today
Sigma: cmd resolving PowerShell through a for/dir loop (P05, P18).
title: cmd.exe Resolving powershell.exe Through For/Dir Loop
status: experimental
logsource: {category: process_creation, product: windows}
detection:
sel:
Image|endswith: '\cmd.exe'
CommandLine|contains|all: ['for /f', 'dir ', 'do call']
ps_name:
CommandLine|contains: 'powershell.exe'
caret_name:
CommandLine|re: '(\^[A-Za-z]){4,}'
condition: sel and (ps_name or caret_name)
level: high
Sigma: wscript launching PowerShell with bypass from a user-writable path (P13).
title: WScript Spawning PowerShell Bypass From ProgramData/AppData/Temp
status: experimental
logsource: {category: process_creation, product: windows}
detection:
sel:
ParentImage|endswith: '\wscript.exe'
Image|endswith: '\powershell.exe'
CommandLine|contains|all: ['-NoProfile', 'Bypass', '-File']
path:
CommandLine|contains: ['\ProgramData\', '\AppData\', '\Temp\']
condition: sel and path
level: critical
Sigma: script block text that reaches the Dropbox API (needs EID 4104).
title: Dropbox API Calls From PowerShell Script Block
status: experimental
logsource: {product: windows, service: powershell}
detection:
sel:
ScriptBlockText|contains:
- 'content.dropboxapi.com/2/files/upload'
- 'content.dropboxapi.com/2/files/download'
- 'api.dropboxapi.com/2/files/move_v2'
- 'api.dropboxapi.com/oauth2/token'
condition: sel
level: high
Join this one to software inventory before alerting. A sanctioned automation tool may use the same API.
KQL: script host touching a cloud-storage API where the client is not installed (P10).
let SanctionedClients = DeviceTvmSoftwareInventory
| where SoftwareName has_any ("Dropbox", "OneDrive", "Google Drive")
| distinct DeviceId;
DeviceNetworkEvents
| where InitiatingProcessFileName in~ ("powershell.exe", "wscript.exe", "cscript.exe", "mshta.exe")
| where RemoteUrl has "dropboxapi.com" // extend per provider; others are noisier
| join kind=leftanti SanctionedClients on DeviceId
PowerShell hunt: scheduled tasks with a non-round repetition interval and a script-host action (P14).
Get-ScheduledTask | ForEach-Object {
$t = $_
$t.Triggers | Where-Object {
$_.Repetition.Interval -and
$_.Repetition.Interval -notin 'PT5M','PT10M','PT15M','PT30M','PT1H'
} | ForEach-Object {
[pscustomobject]@{ Task=$t.TaskName; Interval=$_.Repetition.Interval
Action=($t.Actions.Execute + ' ' + $t.Actions.Arguments) }
}
} | Where-Object { $_.Action -match 'wscript|cscript|mshta|powershell' }
Also sweep C:\Windows\System32\Tasks as raw XML. Build 2 adds <Hidden>true</Hidden>, which removes the task from a bare GUI view, and the raw sweep does not care.
7.9 Policy implications
- Join cloud-API egress to software inventory. One join catches the whole dead-drop category. Build this first.
- Make PowerShell Script Block Logging (4104) mandatory. It sees through cmdlet fragmentation, char-code URLs, and caret escaping, and it feeds P06.
- Quarantine LNK-in-archive at the mail gateway. The
%temp%fallback in Builds 1 and 2 points at archive delivery. ○ We did not observe delivery. - Pre-execution gate for shortcuts. Run §7.4 at the gateway and at download. A legitimate shortcut with zeroed target metadata, an oversized body, an embedded document, or thousands of encoded integers does not exist.
- Carry launch lineage in telemetry. P12 and the polyglot chain need to know which file started a tree, not just which process.
- Baseline hidden+system directories under
C:\ProgramData. The list is short, and anything new becomes worth a look. - Treat
wscript.exeandcscript.exeas a policy question. If the business doesn’t need them, WDAC or AppLocker removes the middle rung of the chain. - Enable “Audit Other Object Access Events.” Event 4698 records the full task XML at registration.
8. Attribution
◇ Moderate confidence in a DPRK-nexus actor, consistent with Konni / ScarCruft. Supporting: Hancom/Hangul lure with a KST timestamp, cloud-storage C2 with hard-coded OAuth tokens, batch-file tasking, whitespace-padded LNKs (a technique Trend ties to Konni and ScarCruft samples), a short campaign tag in the C2 path.
Against: every technique here is publicly documented and copyable; the Agri tag shows intended targeting, not operator identity; there is no infrastructure to corroborate with.
MITRE ATT&CK mapping
| ID | Technique | Where it shows up |
|---|---|---|
| T1204.002 | User Execution: Malicious File | Double-click on the shortcut |
| T1566.001 | Spearphishing Attachment | Assessed: %temp% fallback suggests archive delivery (not observed) |
| T1059.003 | Windows Command Shell | cmd.exe launch line, batch tasking |
| T1059.001 | PowerShell | Stage 1 dropper, advpackx.ps1, eNUVek.ps1 |
| T1059.007 | JavaScript | pack_free.js / helloworld.js via wscript |
| T1053.005 | Scheduled Task | WinSch_ / CLSch_ 16-minute task |
| T1102.002 | Web Service: Bidirectional Communication | Dropbox upload/download/move_v2 |
| T1027 | Obfuscated Files or Information | XOR 0xBF archive, char-code strings, number-list cipher, carets |
| T1564.001 | Hidden Files and Directories | attrib +h +s on staging dirs |
| T1070.004 | File Deletion | Deletes archive and the .lnk itself |
| T1036 | Masquerading | Intel_R / vc_lib names, PDF icon, forged properties text |
| T1082 / T1057 | System / Process Discovery | OS version, process list in beacons |
9. Indicators of compromise
Per-host values vary; match patterns, not literals.
IOC summary
| Type | Value | Build / note | Confidence |
|---|---|---|---|
| SHA-256 | 625f912f4bdb5df0f2584f6b162c8602e5bb756b4853b94a12b9b9dadc25b915 |
Build 1 (68,502 B) | high |
| Lure | Korean PDF, XMP ID 6BE1F2F1-78D1-444F-9929-C0BBD75F0F6E |
Builds 1–2 | high |
| Path | C:\ProgramData\Intel_R\, C:\ProgramData\vc_lib\advpackx.ps1 |
Build 1 | high |
| Path | %TEMP%\…\helloworld.js |
Build 2 | high |
| Path | %APPDATA%\eNUVek.ps1 |
Build 3 | high |
| Task | WinSch_<GUID> / CLSch_[0-9]{1,4}, 16-min repetition |
Builds 1 / 2 | high |
| Dropbox pattern | /Agri_[0-9a-f]{10}, _cafe, _cafe_buy (tokens redacted) |
Build 1 | high |
| Strings | Se!cure32, H&38%, cafebucket |
Builds 1 / 3 | high |
| Behavioural ID | crazy_lady |
detection name | — |
Full indicator list
Files
C:\ProgramData\Intel_R\ (hidden+system) Build 1
C:\ProgramData\vc_lib\ (hidden+system) Build 1
C:\ProgramData\vc_lib\advpackx.ps1
C:\ProgramData\Intel_R\joy_[0-9A-F]{4}.js
%TEMP%\Intel_R\ %TEMP%\vc_lib\ helloworld.js Build 2
%TEMP%\cafebucket[0-9]{3,4}.bat
%APPDATA%\eNUVek.ps1 Build 3
Scheduled task
WinSch_<GUID> (Build 1) CLSch_[0-9]{1,4} (Build 2)
16-minute repetition; wscript.exe action
Strings
Se!cure32 Secure20@^ aaaabbcc cafebucket _cafe _buy Agri_
joysun08 joydemo09 pack_free.js advpackx.ps1 H&38%
Network (hunt behavior, don't block)
hxxps://api[.]dropboxapi[.]com/oauth2/token
hxxps://api[.]dropboxapi[.]com/2/files/move_v2
hxxps://content[.]dropboxapi[.]com/2/files/upload
hxxps://content[.]dropboxapi[.]com/2/files/download
DNS myip[.]opendns[.]com via 208.67.222.220
C2 path patterns
/Agri_[0-9a-f]{10}/MM:dd---HH:mm.txt
/Agri_[0-9a-f]{10}_cafe /Agri_[0-9a-f]{10}_cafe_buy
Dropbox app (Build 1)
client_id 8nkecl76vovy4ox
client_secret 8l7k… (redacted)
refresh_token vXhf3ZVJ… (redacted)
→ Report to Dropbox. Revoking the app disables every deployed copy of that build.
Do not authenticate against the account.
Sample 1
SHA-256 625f912f4bdb5df0f2584f6b162c8602e5bb756b4853b94a12b9b9dadc25b915
Size 68,502 bytes
Decoy XMP Document ID 6BE1F2F1-78D1-444F-9929-C0BBD75F0F6E
Full credential values were withheld from this post. Share them with Dropbox and vetted partners.
FAQ
What is LNK malware?
Windows LNK (shortcut) malware tricks a user into double-clicking a file that looks like a document while the shortcut’s target runs attacker-controlled commands, often through cmd.exe, powershell.exe or wscript.exe. Analysts inspect the target, arguments, icon, description string and any data appended after the LNK structure, and only execute samples in an isolated lab.
What is the Shedding Skin LNK family?
Shedding Skin is our name for a Windows shortcut dropper family seen in three builds. Build 1 is a 68,502-byte polyglot that carries a Korean-language decoy PDF and an XOR-encoded archive, finds itself by file size, installs a 16-minute scheduled task, deletes itself, and polls a Dropbox account for batch-file tasking.
How does this malware use Dropbox as command-and-control?
The PowerShell implant uses a hard-coded OAuth refresh token to get an access token, uploads RC4-encrypted recon to a per-victim folder, downloads an operator-staged batch file, then renames the task file to a _cafe_buy marker so it never re-runs. No attacker-owned servers exist, so domain and IP blocking fail; hunt script hosts calling dropboxapi.com instead.
Why do attackers use malicious shortcut files instead of macros?
Since macros were hardened, many operators moved to .lnk files inside archives or cloud shares. A shortcut looks familiar, can launch built-in interpreters, open a decoy and stage a payload in one click. MITRE ATT&CK tracks this user execution as T1204.002 (Malicious File), usually after spearphishing attachment T1566.001.
How do you analyze a suspicious .lnk file safely?
Work on a copy in a disposable VM with no sensitive mounts. Parse it with a dedicated tool such as LECmd or LnkParse3 and record the target, arguments, description, icon, flags, timestamps and file size. Flag oversized shortcuts, missing LinkInfo or TrackerDataBlock, and bytes past the structure. Detonate only with full process and network logging.
What behavioural signals catch this family (crazy_lady)?
crazy_lady scores primitives the technique forces: a script host decoding a byte array, an interpreter path resolved at runtime, hidden directories, a script-host scheduled task with a non-round interval, deep interpreter chains, self-deletion, and script hosts calling a cloud API on hosts without that provider’s client. Four primitives held across all three builds.
How does the Korean-language lure fit the infection chain?
Builds 1 and 2 carve a Korean-language PDF made with Hancom Office Hangul 2018 out of the shortcut and open it while the payload stages. Build 3 instead forges Explorer-style properties text claiming a Hangul document. The Agri campaign tag suggests agricultural-sector targeting, and the TTPs overlap with Konni and ScarCruft reporting, which is overlap rather than attribution.
Which MITRE ATT&CK techniques apply?
Core mappings are T1204.002 (Malicious File), T1059.001 (PowerShell), T1059.003 (Windows Command Shell), T1059.005 (Visual Basic/JScript via wscript), T1053.005 (Scheduled Task), T1102.002 (Bidirectional Web Service, Dropbox), T1027 (Obfuscated Files), T1564.001 (Hidden Files and Directories), T1070.004 (File Deletion) and T1036 (Masquerading).
Appendix: analysis methodology
Static work only on copies inside an isolated VM: LECmd for shortcut structure, manual offset carving and XOR recovery for the embedded archive, and script deobfuscation by hand. No detonation against live Dropbox infrastructure and no authentication with the recovered credentials. More writing on VaporX · About VaporX.