Laqma
Overview
Trojan:Win32/Laqma is a stealthy, highly evasive trojan designed to silently infiltrate corporate networks, establish a persistent backdoor, and act as a reliable conduit for data exfiltration and secondary payload delivery.
Understanding Laqma
For the victim, Laqma provides zero visual indicators of compromise. For threat intelligence analysts, Laqma represents a highly capable Remote Access Trojan (RAT). It is designed to bypass endpoint defenses, harvest system information, and establish a covert Command-and-Control (C2) channel to receive further instructions or download severe secondary payloads like ransomware.
Execution and Evasion Strategies
Laqma is typically delivered via spearphishing campaigns containing malicious attachments or dropped as a secondary payload by exploit kits. Upon execution, it utilizes heavy packing and obfuscation to evade static antivirus signatures. It drops a randomized executable into the <code>%AppData% or %SystemRoot% directories. Persistence is achieved by creating a hidden scheduled task or modifying the Registry Run keys. Laqma frequently injects its core modules into legitimate system processes (like svchost.exe) to mask its outbound network traffic.
Indicators of Compromise (IoCs)
Threat hunters should investigate EDR alerts for 'Suspicious Process Injection' or 'Anomalous Child Process Spawning'. Network logs will often reveal Laqma reaching out to compromised domains using encrypted HTTP/HTTPS traffic. The presence of unexpected, hidden scheduled tasks designed to execute randomly named binaries in the user's profile is a strong IoC. Memory analysis is crucial to extract the injected modules and identify the specific C2 infrastructure.
MITRE ATT&CK Techniques
Observed techniques used by this family, mapped to the MITRE ATT&CK framework:
Tactical Mitigations
Based on the techniques used by this family, consider the following defensive strategies:
- T1105: Implement network intrusion detection systems (NIDS) and host-based firewalls to block unauthorized inbound or outbound file transfers.
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_LAQMA {
meta:
description = "Detects Laqma (trojan_generic)"
author = "SystemHelpdesk Boilerplate Generator"
date = "2026-07-06"
strings:
$s1 = "laqma" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}Sigma Rule
title: Suspicious Laqma Activity
id: e8c9a8c5fa031eba68d7d98f7e1b9121
status: experimental
description: Detects generic indicators of the laqma malware family.
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
CommandLine|contains:
- "*laqma*"
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 from the network to sever the attacker's interactive, remote-control session.
- Capture a full forensic memory image of the machine to extract the decrypted Laqma payload and its C2 configuration.
- Audit the Windows Task Scheduler and Registry Run keys to identify and remove the Laqma persistence mechanisms.
- Assume total endpoint compromise; perform a clean OS rebuild and force password resets for all accounts that accessed the machine.
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not leave the machine connected to the network during triage; the attacker has live access and will likely destroy evidence or move laterally.
- Avoid relying solely on manual file deletion, as the injected processes will likely just recreate the dropped binaries.
References & External Analysis
- Search "laqma" on VirusTotal (External Analysis)
Frequently Asked Questions
How do I remove the Laqma Trojan_Generic from Windows?
Manual removal of Laqma 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 Laqma a virus or a Trojan_Generic?
Laqma is classified as a Trojan_Generic. Unlike traditional viruses that infect files, modern malware like Laqma typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Laqma infection?
Symptoms of Laqma 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: trojan_generic)
Explore other malware families in the same category:
Protect Your Network Against Trojan_Generics
Want to prevent Laqma and similar threats from compromising your organization? Read our comprehensive defensive guide: Banking Trojan Protection.
Machine-readable
Get this profile as JSON: https://jordan123234-malware-families-explorer.static.hf.space/api/laqma.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.