Xscan
Table of Contents
Overview
Executive Summary
XScan is a powerful, legacy network vulnerability scanner and enumeration tool. Originally developed as a legitimate security auditing utility, it has been widely co-opted by threat actors and Initial Access Brokers. Its presence on a corporate network is highly suspicious; it is frequently utilized by attackers during the reconnaissance and lateral movement phases of an intrusion to rapidly identify vulnerable services, open ports, and weak credentials across the internal network infrastructure.Infection Vector and Technical Capabilities
XScan is not self-replicating malware. It is a standalone executable (HackTool) that must be manually deployed and executed by an attacker who has already breached the perimeter, or by a malicious insider. Upon execution, XScan provides comprehensive network mapping capabilities:- Multi-threaded Port Scanning: It can rapidly sweep massive IP ranges, identifying active hosts and cataloging open TCP/UDP ports.
- Vulnerability Probing: XScan contains an extensive database of known vulnerabilities. It actively probes discovered services (like RPC, SMB, IIS, and FTP) to determine if they are susceptible to specific exploits or configuration flaws.
- Credential Brute-Forcing: It includes built-in dictionary attack capabilities to aggressively brute-force passwords for common services like SSH, FTP, Telnet, and Windows File Sharing (SMB), attempting to leverage weak passwords for lateral movement.
Threat Assessment
The detection of XScan (or similar network scanners like Nmap or Masscan) running from an unauthorized, non-administrative endpoint is a critical indicator of an active internal breach. It signifies that an attacker has established a beachhead and is actively hunting for vulnerable targets to escalate privileges or move laterally toward critical infrastructure.Incident Response and Remediation
- Identify the Source: Immediately trace the execution of the XScan executable back to the originating endpoint. This endpoint must be considered fully compromised and isolated from the network instantly.
- Analyze Scanner Output (If Possible): If the XScan execution logs or output files can be recovered from the compromised endpoint, analyze them to determine exactly what the attacker discovered about the internal network (e.g., which servers were identified as vulnerable).
- Forensic Investigation: Because XScan is a post-exploitation tool, the primary incident response focus must be determining *how* the attacker gained access to the endpoint in the first place (e.g., phishing, RDP brute-forcing) and closing that initial vector.
Known aliases
Threat reports may refer to this family under multiple names:
MITRE ATT&CK Techniques
Observed techniques used by this family, mapped to our technical analysis hubs and the official MITRE ATT&CK framework:
| Technique | Name | Tactic | Official Spec |
|---|---|---|---|
T1046 | Network Service Discovery | discovery | ATT&CK ↗ |
T1018 | Remote System Discovery | Discovery | ATT&CK ↗ |
T1110.001 | Brute Force: Password Guessing | Initial Access | ATT&CK ↗ |
MITRE D3FEND™ Defensive Countermeasures
Defensive techniques mapped to counter the offensive tradecraft observed in this family (via the MITRE D3FEND matrix):
| D3FEND ID | Countermeasure Name | Tactic | Countered ATT&CK | Defensive Guidance |
|---|---|---|---|---|
D3-PSA | Port Scan Analysis | Detect | T1046 | Deploy network intrusion detection (NIDS) to identify sequential TCP SYN scans and unauthorized subnet reconnaissance. |
D3-AL | Account Lockout Policy | Harden | T1110.001 | Enforce progressive delay and lockout thresholds on failed authentication attempts to thwart brute-force password guessing. |
Tiered Detection Rules (Cisco CAIRN Model)
Modern threat detection requires multi-layered rule engineering. We classify detections into three operational tiers based on signal fidelity:
Tier 1 Primitive Artifact Rule (Fast Triage)
Matches raw strings and file markers. Vulnerable to binary repacking and simple obfuscation.
rule MALWARE_WIN_XSCAN_T1_ARTIFACT {
meta:
description = "Tier 1 Primitive Artifact: Raw string matches for Xscan"
tier = "T1 - Primitive Artifact"
confidence = "Low-Medium (Fast Triage)"
author = "SystemHelpdesk Threat Research Desk"
date = "2026-10-14"
strings:
$s1 = "xscan" ascii wide nocase
$s2 = "hacktool.xscan" ascii wide nocase
$s3 = "riskware.scanner" ascii wide nocase
$s4 = "win32/xscan" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}
Tier 2 Behavioral Context Rule (Process Chains & Sigma)
Tracks parent-child process anomalies and suspicious scripting telemetry. Resilient against file renames.
title: SystemHelpDesk Detection - Xscan (Advanced Threat) Execution & Triage
id: 7c835914-03a2-5fe2-ab02-f4576d227e09
status: production
description: Detects execution, defense evasion, and persistence behaviors associated
with the Xscan malware family. Detects proxy execution, reflective DLL loading,
and remote command injection associated with modular enterprise backdoors.
references:
- https://malware-families-catalog.systemhelpdesk.com/families/xscan
- https://malware-families-catalog.systemhelpdesk.com/defensive/backdoor-rat-protection
- https://malware-families-catalog.systemhelpdesk.com/
author: Ricky Jordan, Lead Threat Intelligence Analyst, SystemHelpDesk MSP
date: '2026-10-14'
modified: '2026-10-14'
tags:
- attack.advanced-threat
- author.ricky-jordan
- source.systemhelpdesk-mfc
- attack.t1046
- attack.t1018
- attack.t1110_001
logsource:
category: process_creation
product: windows
detection:
selection_process:
Image|endswith:
- \powershell.exe
- \cmd.exe
- \rundll32.exe
- \regsvr32.exe
CommandLine|contains:
- DownloadString
- IEX(
- '/s /n /u /i:'
- sc create
- start-process
condition: selection_process
falsepositives:
- Legitimate enterprise administrative scripts during approved change windows
- Authorized IT software deployment utilities and backup management agents
level: high
Tier 3 Attribution Fingerprint Rule (High Fidelity)
Deep signature matching distinctive operational fingerprints and payload characteristics.
rule MALWARE_WIN_XSCAN_T3_ATTRIBUTION {
meta:
description = "Tier 3 Attribution Fingerprint: Heuristic detection for Xscan tradecraft"
tier = "T3 - Attribution Fingerprint"
confidence = "High (Confirmed Family Signature)"
author = "SystemHelpdesk Threat Research Desk"
date = "2026-10-14"
strings:
// Core family identifier & heuristic payload signatures
$attrib_str = "xscan" ascii wide nocase
$pe_magic = "MZ" ascii
$net_marker = "http" ascii nocase
condition:
uint16(0) == 0x5a4d and ($attrib_str and $net_marker) and filesize < 15MB
}
Containment & Response Steps
Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.
- Enforce forensic network isolation on all suspected endpoints while maintaining an out-of-band telemetry conduit to capture live Xscan adversary activity.
- Perform full memory dumps across identified staging nodes to extract memory-only implants, kernel rootkit hooks, and decrypted Xscan C2 infrastructure IP/domain lists.
- Review Active Directory domain controller authentication logs for anomalous Kerberos ticket requests (Pass-the-Ticket, Golden Ticket) and unauthorized DCSync operations associated with Xscan.
- Block all confirmed C2 domains, dynamic DNS endpoints, and proxy IP addresses across perimeter firewalls, proxies, and DNS security gateways.
- Conduct an enterprise-wide sweep across surrounding subnets for secondary webshells, WMI event subscriptions, or remote execution tooling left behind by Xscan operators.
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not assume the incident is resolved simply because an antivirus tool removed the initial Xscan dropper; always verify that secondary payloads and persistence hooks have been eradicated.
- Avoid logging in with Domain Admin or privileged credentials on a machine suspected of running Xscan until memory triage is complete.
- Do not delay host isolation; automated lateral movement and credential dumping can occur within minutes of initial execution.
References & External Analysis
- Search "xscan" on VirusTotal (External Analysis)
- Search "xscan" on Any.Run (Sandbox Sandbox)
- Search "xscan" on MalwareBazaar (Malware Samples)
Frequently Asked Questions
What is Xscan and what threat category does it belong to?
Xscan is classified as a Advanced Threat. Documented across security telemetry, it is engineered to execute unauthorized operations, establish persistent footholds on target endpoints, and facilitate malicious campaigns targeting enterprise and individual environments.
How does Xscan establish persistence and evade defensive controls?
Xscan typically establishes persistence through registry run keys, scheduled tasks, or service installations, while evading signature-based antivirus solutions through code obfuscation, memory injection, or anti-analysis sandbox checks.
What are the essential incident response steps for mitigating a Xscan compromise?
Security teams responding to Xscan should immediately isolate affected endpoints from the network, perform memory triage to capture volatile forensic artifacts, audit registry and startup persistence mechanisms, revoke exposed user credentials, and restore systems from verified, clean backups.
What lateral movement and credential access tactics does HackTool.XScan leverage in enterprise intrusions?
HackTool.XScan frequently utilizes privileged account harvesting techniques such as LSASS memory dumping, Kerberoasting, and token impersonation to escalate privileges. Once administrative credentials are acquired, it pivots across the victim network utilizing living-off-the-land binaries (LOLBins) such as WMI, PowerShell remoting, and PsExec, or abuses remote desktop protocols (RDP) to reach critical internal repositories and domain controllers.
How does HackTool.XScan maintain covert communications and evade perimeter network monitoring?
HackTool.XScan often relies on multi-stage command and control (C2) architectures utilizing encrypted protocols over standard web ports (HTTPS/443 or DNS tunneling) to blend in with legitimate enterprise network traffic. Many variants incorporate proxy networks, domain fronting, or cloud services (such as Microsoft Graph API, Google Drive, or Telegram) to masquerade C2 channels, bypassing traditional signature-based egress filtering.
How do I remove the Xscan Advanced_Threat from Windows?
Manual removal of Xscan 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 Xscan a virus or a Advanced_Threat?
Xscan is classified as a Advanced_Threat. Unlike traditional viruses that infect files, modern malware like Xscan typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Xscan infection?
Symptoms of Xscan 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.
Protect Your Network Against Advanced_Threats
Want to prevent Xscan and similar threats from compromising your organization? Read our comprehensive defensive guide: Think You've Been Hacked? What To Do First.
📣 Threat Intel Correction or Update?
Notice an outdated IOC, unlisted alias, or disputed attribution? Threat researchers are invited to propose an update on GitHub or contact the SystemHelpDesk research desk. All community revisions are credited in our public CHANGELOG.
Machine-readable
Get this profile as JSON: https://malware-families-catalog.systemhelpdesk.com/api/xscan.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.