This hunt detects adversaries leveraging phishing emails with malicious URLs to execute scripts that facilitate data exfiltration and establish command-and-control channels. Proactive hunting in Azure Sentinel is essential to identify early-stage script execution anomalies and unexpected network connections before attackers can compromise credentials or move laterally within the environment.
Threat: script Total URLs: 2 Active URLs: 1
| URL | Status | Threat | Date Added |
|---|---|---|---|
hxxp://45.196.97.80/milan.sh | online | malware_download | 2026-07-31 |
hxxp://187.77.145.183:8081/payload.sh | offline | malware_download | 2026-07-31 |
// Hunt for DNS resolution of URLhaus malicious domains
// Threat: script
let malicious_domains = dynamic(["45.196.97.80"]);
DnsEvents
| where Name has_any (malicious_domains)
| project TimeGenerated, Computer, Name, IPAddresses
| order by TimeGenerated desc
// Hunt for web traffic to URLhaus malicious domains
let malicious_domains = dynamic(["45.196.97.80"]);
CommonSecurityLog
| where RequestURL has_any (malicious_domains) or DestinationHostName has_any (malicious_domains)
| project TimeGenerated, SourceIP, RequestURL, DestinationHostName, DeviceAction
| order by TimeGenerated desc
| Sentinel Table | Notes |
|---|---|
CommonSecurityLog | Ensure this data connector is enabled |
DnsEvents | Ensure this data connector is enabled |
Scenario: Automated CI/CD Pipeline Artifact Downloads
.ps1, .sh) from internal artifact repositories hosted on domains that may be newly registered or shared with public CDNs. These downloads mimic the “malicious script execution” and “unexpected network connections” logic of the rule, especially when the pipeline runs during off-hours.svc-build-agent) and their associated IP ranges. Additionally, filter out traffic destined for known artifact storage domains (e.g., artifacts.company.com, github-releases.githubusercontent.com) where the User-Agent string contains “AzurePipelines” or “GitHub-Hook”.Scenario: Scheduled RMM Script Execution via Remote Management
DesktopCentralAgent.exe, PDQDeploy.exe). Ensure the exclusion applies to script execution paths located within the standard tool installation directory (e.g., C:\Program Files\ManageEngine\...).**Scenario: Third-Party SaaS Integration Webhooks