Socks

Category: trojan · Aliases: None known · Sample count (EMBER 2018): 143 · Enrichment: expert-seo · Updated: 2026-06-09
Category: TrojanActor: Unknown / CybercriminalIndustry: Global / OpportunisticMotivation: Opportunistic

Overview

Proxy:Win32/Socks is a generic heuristic detection for malware or network components designed to silently establish an unauthorized SOCKS (Socket Secure) proxy server on the infected endpoint, routing malicious traffic through the victim's machine.

Understanding SOCKS Proxies
To the end-user, this behavior is invisible. For incident responders and network admins, an unauthorized SOCKS proxy is a critical threat. Attackers deploy SOCKS proxies on compromised endpoints to mask their true IP address. They then route their traffic (such as credential stuffing attacks against other organizations, or accessing illicit dark web content) through the victim's corporate network. To the outside world, the malicious activity appears to originate from your organization.

Execution and Threat Hunting
This module is frequently dropped as a secondary payload by larger botnets (like Trickbot or Emotet) or banking trojans. The malware opens a specific listening port (often a high, non-standard port like 40000+) on the infected endpoint and configures the Windows Firewall to allow incoming connections to it. It then signals the C2 server that the proxy is ready. Threat hunters will detect this by monitoring for anomalous listening ports utilizing <code>netstat -ano or observing large volumes of inbound and outbound traffic on non-standard ports that do not match the expected behavior of the host application.

Forensic Analysis & Impact
The impact is severe reputational damage, IP blacklisting, and network congestion. Incident responders should immediately investigate EDR alerts for 'Suspicious Port Binding' or 'Firewall Rule Modification'. Analyzing the active connections to the rogue SOCKS port will reveal the attacker's actual infrastructure (inbound) and their intended targets (outbound).

MITRE ATT&CK Techniques

Observed techniques used by this family, mapped to the MITRE ATT&CK framework:

TechniqueNameTactic
T1090.002Proxy: External ProxyCommand and Control
T1562.004Impair Defenses: Disable or Modify System FirewallDefense Evasion
T1105Ingress Tool TransferCommand and Control
T1547.001Boot or Logon Autostart Execution: Registry Run Keys / Startup FolderPersistence
T1584Compromise InfrastructureResource Development

Tactical Mitigations

Based on the techniques used by this family, consider the following defensive strategies:

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_SOCKS {
    meta:
        description = "Detects Socks (trojan)"
        author = "SystemHelpdesk Boilerplate Generator"
        date = "2026-07-06"
    strings:
        $s1 = "socks" ascii wide nocase
    condition:
        uint16(0) == 0x5a4d and any of them
}

Sigma Rule

title: Suspicious Socks Activity
id: 3e5a1b3b990187c9fb8e8156ce25c243
status: experimental
description: Detects generic indicators of the socks malware family.
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith:
            - '\cmd.exe'
            - '\powershell.exe'
        CommandLine|contains:
            - "*socks*"
    condition: selection
level: medium

Containment & Response Steps

Home Users: If you suspect a malware infection on your personal device, disconnect from the internet immediately and run a full system scan with your antivirus software. The steps below are intended for IT professionals responding to enterprise incidents.

Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.

  1. Immediately isolate the endpoint from the network to stop the attacker from routing malicious traffic through your corporate IP space.
  2. Run <code>netstat -abno</code> to identify the specific executable binding to the rogue proxy port, and terminate the process using EDR.
  3. Audit the Windows Firewall rules (<code>wf.msc</code>) and delete any unauthorized inbound 'Allow' rules created by the malware.
  4. Perform a full forensic sweep to identify the primary trojan or botnet agent that dropped the SOCKS proxy module.

What to Avoid

Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.

  1. Do not simply block the port on the local firewall and leave the machine running; the malware will likely just bind to a new port on reboot.
  2. Avoid assuming the malicious traffic originated from your user; the proxy masks the true attacker's identity.

References & External Analysis

Frequently Asked Questions

How do I remove the Socks Trojan from Windows?

Manual removal of Socks 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 Socks a virus or a Trojan?

Socks is classified as a Trojan. Unlike traditional viruses that infect files, modern malware like Socks typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.

What are the main symptoms of a Socks infection?

Symptoms of Socks 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)

Explore other malware families in the same category:

Protect Your Network Against Trojans

Want to prevent Socks and similar threats from compromising your organization? Read our comprehensive defensive guide: Banking Trojan Protection.

Need help with an active incident? Published by the SystemHelpdesk team.

Machine-readable

Get this profile as JSON: https://jordanricky1604-ship-it.github.io/malware-families-catalog/api/socks.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.