Windows Wscript/Cscript Initiating Local Network Connection for Script Retrieval
Flags wscript.exe or cscript.exe making connections to local/private destination IP ranges on Windows.
- Product
- windows
- Category
- network_connection
- Author
- frack113 (SigmaHQ), DRL 1.1
- Published
- 2022-08-28
- Updated
- 2026-07-31
ATT&CK techniques
C2Recon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
Exfiltration
Impact
What it detects
This rule flags network connections where the process initiating the connection is Wscript.exe or Cscript.exe and the destination is a local/private network range. Attackers often use Windows script interpreters to retrieve or execute scripts from shared folders, blending command-and-control activity into normal scripting. The detection relies on network connection telemetry that includes the initiating process and destination IP address.
Reporting behind it
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: Windows Wscript/Cscript Initiating Local Network Connection for Script Retrieval
id: 5c9efd33-faf7-4b1c-8770-9fba408d66f5
related:
- id: 992a6cae-db6a-43c8-9cec-76d7195c96fc
type: derived
- id: 08249dc0-a28d-4555-8ba5-9255a198e08c
type: derived
status: test
description: This rule flags network connections where the process initiating the connection is Wscript.exe or Cscript.exe and the destination is a local/private network range. Attackers often use Windows script interpreters to retrieve or execute scripts from shared folders, blending command-and-control activity into normal scripting. The detection relies on network connection telemetry that includes the initiating process and destination IP address.
references:
- https://github.com/redcanaryco/atomic-red-team/blob/28d190330fe44de6ff4767fc400cc10fa7cd6540/atomics/T1105/T1105.md
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/network_connection/net_connection_win_wscript_cscript_local_connection.yml
author: frack113, Huntrule Team
date: 2022-08-28
modified: 2024-05-31
tags:
- attack.command-and-control
- attack.t1105
logsource:
category: network_connection
product: windows
detection:
selection:
Initiated: "true"
Image|endswith:
- \wscript.exe
- \cscript.exe
DestinationIp|cidr:
- 127.0.0.0/8
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
- 169.254.0.0/16
- ::1/128
- fe80::/10
- fc00::/7
condition: selection
falsepositives:
- Legitimate scripts
level: medium
license: DRL-1.1