← Back to SOC feed Coverage →

WScript or CScript Dropper - File

sigma HIGH SigmaHQ
T1059.005T1059.007
imFileEvent
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at SigmaHQ →
Retrieved: 2026-03-25T03:05:59Z · Confidence: medium

Hunt Hypothesis

The hypothesis is that an adversary is using cscript.exe or wscript.exe to execute malicious scripts (such as .jse, .vbs, or .vba files) to deliver payloads or execute arbitrary code. SOC teams should proactively hunt for this behavior in Azure Sentinel because the use of script execution via these interpreters is a common technique in malware deployment and persistence, often indicating a potential compromise.

Detection Rule

Sigma (Original)

title: WScript or CScript Dropper - File
id: 002bdb95-0cf1-46a6-9e08-d38c128a6127
related:
    - id: cea72823-df4d-4567-950c-0b579eaf0846
      type: derived
status: test
description: Detects a file ending in jse, vbe, js, vba, vbs written by cscript.exe or wscript.exe
references:
    - WScript or CScript Dropper (cea72823-df4d-4567-950c-0b579eaf0846)
author: Tim Shelton
date: 2022-01-10
modified: 2022-12-02
tags:
    - attack.execution
    - attack.t1059.005
    - attack.t1059.007
logsource:
    category: file_event
    product: windows
detection:
    selection:
        Image|endswith:
            - '\wscript.exe'
            - '\cscript.exe'
        TargetFilename|startswith:
            - 'C:\Users\'
            - 'C:\ProgramData'
        TargetFilename|endswith:
            - '.jse'
            - '.vbe'
            - '.js'
            - '.vba'
            - '.vbs'
    condition: selection
falsepositives:
    - Unknown
level: high

KQL (Azure Sentinel)

imFileEvent
| where (TargetFilePath endswith "\\wscript.exe" or TargetFilePath endswith "\\cscript.exe") and (TargetFileName startswith "C:\\Users\\" or TargetFileName startswith "C:\\ProgramData") and (TargetFileName endswith ".jse" or TargetFileName endswith ".vbe" or TargetFileName endswith ".js" or TargetFileName endswith ".vba" or TargetFileName endswith ".vbs")

False Positive Guidance

MITRE ATT&CK Context

Original source: https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file/file_event/file_event_win_cscript_wscript_dropper.yml