Community detections
csc.exe
5 community detection rules look for suspicious csc.exe command lines, most often for Compile After Delivery (T1027.004), Visual Basic (T1059.005), JavaScript (T1059.007). WETNav has no switch-by-switch reference for it yet, so the explainer reads its arguments generically and checks them against these rules.
What defenders look for
- HighCsc.EXE Execution Form Potentially Suspicious Parent
Detects a potentially suspicious parent of "csc.exe", which could be a sign of payload delivery.
T1059.005T1059.007T1218.005T1027.004by Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), X__Junior (Nextron Systems)
- HighRemote Access Tool - ScreenConnect Server Web Shell Execution
Detects potential web shell execution from the ScreenConnect server process.
T1190by Jason Rathbun (Blackpoint Cyber)
- MediumDynamic .NET Compilation Via Csc.EXE
Detects execution of "csc.exe" to compile .NET code. Attackers often leverage this to compile code on the fly and use it in other stages.
T1027.004by Florian Roth (Nextron Systems), X__Junior (Nextron Systems)
- MediumPotentially Suspicious Execution Of PDQDeployRunner
Detects suspicious execution of "PDQDeployRunner" which is part of the PDQDeploy service stack that is responsible for executing commands and packages on a remote machines
by Nasreddine Bencherchali (Nextron Systems)
- MediumSuspicious WindowsTerminal Child Processes
Detects suspicious children spawned via the Windows Terminal application which could be a sign of persistence via WindowsTerminal (see references section)
by Nasreddine Bencherchali (Nextron Systems)
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.
Questions
- Is csc.exe malicious?
- Not by itself. These rules flag specific ways of running it: 5 rules, 2 rated high or critical. Csc.EXE Execution Form Potentially Suspicious Parent; Remote Access Tool - ScreenConnect Server Web Shell Execution; Dynamic .NET Compilation Via Csc.EXE. Judge a run by its command line, its parent process, the account and the host.
- What does csc.exe have to do with ATT&CK?
- The rules for it map to Compile After Delivery (T1027.004), Visual Basic (T1059.005), JavaScript (T1059.007), Exploit Public-Facing Application (T1190).
- How do I check a csc.exe command line?
- Paste it into the WETNav command explainer. It reads every argument, pulls out indicators and evaluates all 1,192 Sigma process creation rules in your browser, including these.