Scriptkd
Overview
TrojanDownloader:VBS/Scriptkd (or JS/Scriptkd) is a heuristic classification for heavily obfuscated malicious scripts (typically VBScript, JScript, or PowerShell) designed to act as the primary initial access and downloading mechanism for severe malware infections, most notably ransomware families like GandCrab or Sodinokibi/REvil.
Understanding Scriptkd
To an end-user, an infection often starts with a single click on a fake invoice attachment (like a `.zip` containing a `.vbs` file). The script executes invisibly in the background, showing no windows. For a security analyst, Scriptkd represents the critical first stage of an attack kill-chain (Living off the Land). It leverages built-in Windows scripting engines (`wscript.exe` or `cscript.exe`) to evade traditional file-based antivirus, which often struggles to parse highly obfuscated script logic.
Execution and Evasion Strategies
Scriptkd is almost exclusively delivered via targeted spearphishing or massive malspam campaigns (`T1566.001`). The script itself is heavily obfuscated (`T1027`), often utilizing random variable names, string splitting, base64 encoding, or custom mathematical decryption routines. Upon execution by `wscript.exe` (`T1059.005`), it attempts to reach out to compromised WordPress sites, Pastebin, or Discord CDNs (`T1105`) to download the secondary payload (often a PE file or an encrypted PowerShell script). It then executes this payload, frequently utilizing fileless execution techniques (`T1620`) by loading the payload directly into memory using tools like PowerShell or `Regasm.exe`.
Indicators of Compromise & Impact
The impact is the successful deployment of a high-severity secondary payload (like ransomware). Incident responders will observe `wscript.exe`, `cscript.exe`, or `powershell.exe` making anomalous outbound HTTP/HTTPS connections. EDR platforms should flag the execution of heavily obfuscated scripts from temporary directories or the `%AppData%` folder, especially if those scripts immediately attempt to spawn child processes or write executable files to disk.
MITRE ATT&CK Techniques
Observed techniques used by this family, mapped to the MITRE ATT&CK framework:
| Technique | Name | Tactic |
|---|---|---|
T1059.005 | Command and Scripting Interpreter: Visual Basic | Execution |
T1059.001 | Command and Scripting Interpreter: PowerShell | Execution |
T1027 | Obfuscated Files or Information | Defense Evasion |
T1105 | Ingress Tool Transfer | Command and Control |
T1566.001 | Phishing: Spearphishing Attachment | Initial Access |
Tactical Mitigations
Based on the techniques used by this family, consider the following defensive strategies:
- T1059.001: Restrict execution of PowerShell. Enforce PowerShell Constrained Language Mode and Script Block Logging.
- T1059.005: Restrict execution of scripting languages such as PowerShell, VBScript, or Python to authorized administrators. Enforce Script Block Logging.
- T1105: Implement network intrusion detection systems (NIDS) and host-based firewalls to block unauthorized inbound or outbound file transfers.
- T1566.001: Scan email attachments for malicious macros, scripts, or suspicious archive files.
Generated Detections (Boilerplate)
These YARA and Sigma rules are auto-generated based on the family name and aliases. They must be heavily tuned before deployment in a production environment.
YARA Rule
rule MALWARE_WIN_SCRIPTKD {
meta:
description = "Detects Scriptkd (ransomware)"
author = "SystemHelpdesk Boilerplate Generator"
date = "2026-07-06"
strings:
$s1 = "scriptkd" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}Sigma Rule
title: Suspicious Scriptkd Activity
id: e7cded03a355bcb6ab276d5edd386c66
status: experimental
description: Detects generic indicators of the scriptkd malware family.
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
CommandLine|contains:
- "*scriptkd*"
condition: selection
level: mediumContainment & Response Steps
Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.
- Instantly isolate the endpoint; if `wscript.exe` successfully executed the Scriptkd payload, a secondary infection (like ransomware) is actively downloading or running.
- Use EDR to immediately terminate any suspicious `wscript.exe`, `cscript.exe`, or `powershell.exe` processes executing out of user profile directories.
- Review network proxies to identify the C2 domains contacted by the script and block them enterprise-wide.
- Disable the Windows Script Host (WSH) globally via Group Policy if VBScript execution is not required for business operations.
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not assume the attack is blocked just because the email gateway stripped the attachment; users may download the script via web links.
- Avoid relying solely on static hash signatures for scripts, as attackers dynamically generate new obfuscation patterns for every email sent.
References & External Analysis
- Search "scriptkd" on VirusTotal (External Analysis)
Frequently Asked Questions
How do I remove the Scriptkd Ransomware from Windows?
Manual removal of Scriptkd is highly discouraged as it may leave persistence mechanisms intact. We recommend disconnecting the device from the internet and utilizing a professional incident response service or enterprise-grade EDR software to conduct a full forensic sweep.
Is Scriptkd a virus or a Ransomware?
Scriptkd is classified as a Ransomware. Unlike traditional viruses that infect files, modern malware like Scriptkd typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Scriptkd infection?
Symptoms of Scriptkd can include unexpected system slowness, unauthorized outbound network traffic to unknown IP addresses, disabled security software, and suspicious background processes running from AppData or Temp directories.
Related Families (Category: ransomware)
Explore other malware families in the same category:
Protect Your Network Against Ransomwares
Want to prevent Scriptkd and similar threats from compromising your organization? Read our comprehensive defensive guide: Ransomware Protection Guide.
Machine-readable
Get this profile as JSON: https://jordan123234-malware-families-explorer.static.hf.space/api/scriptkd.json
Ecosystem & Interactive Environments
This profile is part of the Malware Families Catalog, a public dataset of 2,899 malware families. The catalog is also published across our ecosystem: Hugging Face, Kaggle, Zenodo, Replit, StackBlitz, CodeSandbox, and CodePen.