This detection identifies adversaries leveraging legacy VBS-based hacktools like ipclear.vbs to establish persistence or manipulate network configurations within Azure Sentinel environments. Proactive hunting for this behavior is critical because older script-based tools often lack modern security controls, making them high-value targets for attackers seeking to exploit unmonitored execution paths and obscure initial access vectors.
rule aspbackdoor_ipclear {
meta:
description = "Disclosed hacktool set (old stuff) - file ipclear.vbs"
author = "Florian Roth"
date = "23.11.14"
score = 60
hash = "9f8fdfde4b729516330eaeb9141fb2a7ff7d0098"
strings:
$s0 = "Set ServiceObj = GetObject(\"WinNT://\" & objNet.ComputerName & \"/w3svc\")" fullword ascii
$s1 = "wscript.Echo \"USAGE:KillLog.vbs LogFileName YourIP.\"" fullword ascii
$s2 = "Set txtStreamOut = fso.OpenTextFile(destfile, ForWriting, True)" fullword ascii
$s3 = "Set objNet = WScript.CreateObject( \"WScript.Network\" )" fullword ascii
$s4 = "Set fso = CreateObject(\"Scripting.FileSystemObject\")" fullword ascii
condition:
all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 5 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the Disclosed hacktool set (old stuff) - file ipclear.vbs detection rule, including suggested filters and exclusions:
Legacy Network Maintenance Scripts on Domain Controllers
Task Scheduler) that executes ipclear.vbs to flush DNS caches and reset network interfaces during off-hours. This script is part of a legacy maintenance routine inherited from a previous infrastructure migration.C:\Scripts\NetworkMaintenance\ipclear.vbs) when executed by the SYSTEM or NT AUTHORITY\NETWORK SERVICE account, specifically during the defined maintenance window (e.g., 02:00–04:00).Endpoint Management Tool Deployment (SCCM/Intune)
ipclear.vbs and runs under the context of the SCCM Agent service (ccmexec.exe) or a generic “Software Update” user account.ccmexec.exe, msedge.exe for Intune, or TaskHost.exe) and restrict it to file hashes that match the known good hash of the enterprise-approved script version.Third-Party Backup Agent Pre-Cleanup Routine
ipclear.vbs to ensure network stability before initiating large data transfers. The script runs automatically when the backup service