Social Engineering Meets Silent Proxying: How Attackers Are Weaponizing ClickFix and PySoxy for Stealthy Long-Term Access
Threat actors are chaining ClickFix social engineering with PySoxy SOCKS5 proxying to establish persistent footholds that evade conventional detection. Here's what defenders need to know.
This analysis is based on research published by Infosecurity Magazine. CypherByte adds analysis, context, and security team recommendations.
Original research credit: ReliaQuest. First reported by Infosecurity Magazine. CypherByte analysis and commentary follows.
Executive Summary
A newly documented attack chain observed by ReliaQuest researchers demonstrates a dangerous convergence of social engineering and open-source abuse — one that should concern every enterprise security team operating in today's threat landscape. Attackers are combining the ClickFix initial access technique with PySoxy, a lightweight Python-based SOCKS5 proxy tool, to establish deeply persistent footholds on compromised systems. What makes this campaign particularly alarming is not the sophistication of any individual component, but the deliberate, layered assembly of freely available tools into a resilient and evasion-capable intrusion chain.
This research matters most to security operations teams, incident responders, and enterprise architects responsible for endpoint and network security. Organizations relying primarily on signature-based detection or traditional perimeter controls are at heightened risk. The threat actors behind this campaign have demonstrated a clear understanding of how to operate beneath the noise floor of many conventional monitoring solutions — leveraging legitimate-looking user behavior at the point of entry and blending outbound traffic into normal network patterns once inside. CypherByte's analysis examines the mechanics, the risk surface, and the detection strategies defenders need to operationalize immediately.
Technical Analysis
The attack chain begins with ClickFix, a social engineering technique that has seen rapidly increasing adoption among threat actor groups throughout 2024 and into 2025. Rather than relying on traditional phishing attachments or drive-by downloads, ClickFix manipulates victims into executing malicious commands themselves. Typically, a target is presented with a fake error message, CAPTCHA verification screen, or browser prompt that instructs them to open a Run dialog or PowerShell terminal and paste in a command — ostensibly to "fix" a problem. The command, of course, is attacker-controlled and initiates the compromise.
This initial execution vector is particularly effective because it bypasses many endpoint controls that monitor for suspicious process spawning from browser processes or email clients. Since the victim is the one manually launching the terminal and pasting the command, behavioral heuristics tied to parent-child process relationships are often sidestepped entirely. The commands observed in this campaign typically initiate a download of secondary payloads, establish initial staging, and lay the groundwork for the proxying infrastructure that follows.
Once initial access is achieved, attackers deploy PySoxy — an open-source Python-based SOCKS5 proxy implementation available publicly on GitHub. PySoxy enables attackers to tunnel traffic through the compromised host, effectively transforming it into a persistent network relay point. This serves two strategic purposes: it maintains long-term access to the internal network environment through an established tunnel, and it provides a launching point for lateral movement or further exploitation that originates from a trusted internal IP address. Because PySoxy is written in Python and uses standard socket libraries, it produces minimal anomalous signatures and can operate quietly within environments where Python runtimes are legitimately present.
1. Victim encounters a ClickFix lure (fake error, CAPTCHA, or verification prompt)
2. Victim manually executes attacker-supplied command via Run dialog or PowerShell
3. Secondary payload is downloaded and executed, establishing initial foothold
4.
PySoxy is deployed to create a persistent SOCKS5 proxy tunnel5. Attacker maintains durable, low-noise access for lateral movement and exfiltration
ReliaQuest's research highlights that the combination of these two techniques creates a compounding evasion effect. ClickFix defeats perimeter and email-layer defenses at the point of entry. PySoxy then defeats network monitoring by generating outbound traffic that resembles legitimate application behavior. Together, they represent a full-lifecycle evasion strategy from initial compromise through persistence — all built on publicly available, well-documented tools.
Impact Assessment
The affected system surface for this campaign is broad. Any organization whose users operate Windows endpoints with access to PowerShell or the Run dialog is a viable target for the ClickFix component — which in practice means virtually every enterprise environment. The PySoxy component requires a Python runtime to execute, but Python is increasingly pre-installed or commonly present across developer workstations, data science environments, and even standard enterprise builds that have accumulated tooling over time.
The real-world consequences of a successful deployment extend well beyond the initially compromised host. Once PySoxy establishes a proxy tunnel, the attacker gains a persistent internal vantage point that can survive endpoint remediation if the tunnel isn't identified and severed at the network level. This means organizations that detect and reimage a compromised workstation without simultaneously blocking the associated proxy traffic may unknowingly leave the attacker's infrastructure intact. The tunnel enables reconnaissance of internal network segments, credential harvesting, lateral movement to higher-value targets, and staged data exfiltration that routes through an internal IP — complicating attribution and alerting.
Industries with elevated exposure include financial services, healthcare, legal, and any sector where employees regularly interact with web-based portals, client-facing applications, or external vendor platforms — all common delivery contexts for ClickFix lures. Remote and hybrid work environments further amplify risk, as endpoint visibility and network monitoring are often reduced outside the corporate perimeter.
CypherByte's Perspective
This campaign is a sharp reminder that the most dangerous threats in the current environment are not necessarily the most technically sophisticated. The security industry has invested enormous resources into detecting advanced malware, zero-day exploitation, and nation-state tooling — while a growing class of threat actors has responded by simply not using those things. ClickFix requires no exploit. PySoxy requires no custom implant. The entire operation runs on social manipulation and open-source code that any defender can read on GitHub, yet it succeeds because organizations haven't built detection strategies around behavioral patterns rather than file signatures.
The deeper strategic implication here is about the commoditization of persistence. When maintaining long-term access to a target network requires nothing more than a convincing fake error message and a Python script, the barrier to entry for capable threat actors drops dramatically. We should expect to see continued proliferation of this pattern — different initial access lures paired with rotating open-source post-exploitation tooling — precisely because it works and because attribution is difficult. Defenders need to shift their detection philosophy toward behavior and network anomaly, not tool identification.
Indicators and Detection
Defenders should build detection logic around the behavioral patterns of this attack chain rather than relying on static indicators alone, as tool variants and lure content will rotate. The following indicators and detection opportunities are relevant based on available research:
ClickFix Behavioral Indicators: Monitor for cmd.exe or powershell.exe processes spawned by unusual parent processes, particularly those associated with browser rendering engines or document viewers. Alert on clipboard-paste execution patterns in terminal environments, especially where the command includes encoded strings, curl or Invoke-WebRequest calls, or references to temporary directories. User-initiated execution of base64-encoded commands should be treated as high-confidence suspicious activity.
PySoxy Network Indicators: Look for sustained outbound SOCKS5 proxy traffic on non-standard ports originating from endpoints where proxy behavior is not expected. python.exe or pythonw.exe establishing outbound socket connections — particularly long-lived or recurring connections to external IPs — warrants immediate investigation. Unexpected Python network activity on endpoints outside of designated development environments is anomalous by default in most enterprise configurations.
Host-Based Indicators: Presence of PySoxy scripts or derivatives in temporary directories, user profile paths, or startup locations. Scheduled tasks or registry run keys referencing Python interpreters with script arguments. Unusual Python package installations, particularly those touching socket or proxy libraries outside of managed software deployment channels.
Recommendations
1. Implement ClickFix-specific user awareness training. Ensure that all employees — not just technically oriented staff — understand that no legitimate service will ever ask them to open a terminal and paste a command. This lure pattern is distinct enough to be teachable. Include realistic simulation exercises that expose users to ClickFix-style prompts before a real attacker does.
2. Restrict and monitor PowerShell and command-line execution. Apply PowerShell Constrained Language Mode where operationally feasible. Use application control policies to limit which processes can spawn shells. Ensure all command-line activity is logged via Windows Event Logging or an EDR platform, with alerting tuned for encoded command execution and download cradles.
3. Audit Python runtime presence across your endpoint estate. Identify all systems where Python is installed and assess whether that installation is necessary. Where Python is legitimately required, implement application control rules that restrict which scripts can execute and from which paths. Monitor python.exe network activity as a privileged behavioral signal.
4. Deploy network-level SOCKS proxy detection. Configure your SIEM or NDR platform to flag endpoints initiating SOCKS5 handshakes to external destinations. Establish behavioral baselines for outbound connection patterns and investigate deviations — particularly long-lived sessions or connections to residential IP ranges and cloud VPS infrastructure.
5. Conduct full-scope incident response, not endpoint-only remediation. If a ClickFix compromise is identified, treat network infrastructure investigation as mandatory — not optional. Sever and investigate all outbound connections from the affected system before reimaging. Assume lateral movement has occurred if PySoxy deployment is confirmed.
6. Threat-hunt proactively for this pattern. Using the behavioral indicators outlined above, task your threat hunting team with a targeted hunt across your environment. Query EDR telemetry for the process and network patterns associated with this chain. Historical data may surface compromises that have not yet triggered alerts.
This analysis is based on research originally published by ReliaQuest and reported by Infosecurity Magazine. CypherByte independently assessed the technical details, impact scope, and defensive implications. Organizations requiring tailored detection engineering support or incident response assistance should contact the CypherByte advisory team directly.
How this article was produced
This analysis was produced by CypherByte's automated research pipeline, starting from the published summary of the original report credited below. Articles are published automatically. It can include context and recommendations that are not in the original report, so read the original for the researchers' own findings.
Sources
Spotted an error? Tell us on X (@cypherbyteio) with this page's address so we can fix it.
CypherByte Premium is coming soon, with deep-dive writeups and a weekly threat briefing. Join the waitlist for founding member pricing.