Library / LOLBin
csc.exe
Visual C# Command Line Compiler · Microsoft Corporation
OriginalFilename
csc.exe
Query snippets
logsource:
category: process_creation
product: windows
detection:
selection:
- Image|endswith: '\csc.exe'
- OriginalFileName: 'csc.exe'
condition: selectionprocess_creation logsource. Sigma string matching is case-insensitive.
| tstats summariesonly=false count values(Processes.original_file_name) as original_file_name
from datamodel=Endpoint.Processes
where (Processes.original_file_name="csc.exe" OR Processes.process_name="csc.exe")
by Processes.dest Processes.process_name Processes.process_path Processes.process
| rename Processes.* as *Endpoint.Processes data model. On raw Sysmon events the field is OriginalFileName.
DeviceProcessEvents
| where ProcessVersionInfoOriginalFileName in~ ("csc.exe")
or FileName =~ "csc.exe"Microsoft Defender XDR advanced hunting. in~ and =~ are case-insensitive.
process where event.type == "start" and
(process.pe.original_file_name in~ ("csc.exe") or
process.name : "csc.exe")ECS process.pe.original_file_name is a keyword field: in~ is case-insensitive, Kibana KQL is not.
['csc.exe'].includes(String(OriginalFileName || '').toLowerCase())Filter expression (JavaScript) for events carrying Sysmon's OriginalFileName field.
Values across builds
| OriginalFilename | Builds | Arch | File version | Windows releases | Source | Sysmon |
|---|---|---|---|---|---|---|
| csc.exe | 26 | x64, x86 | 4.6.79.0 → 14.8.10001.0 | Win10 1507 → Win11 25H2 (19) | Host scan, Winbindex | ✓ 2 |
All 26 parsed builds
| SHA256 | Version | Arch | OriginalFilename | Windows releases | Signature | Source | Sysmon |
|---|---|---|---|---|---|---|---|
| 468092068873… | 4.8.9221.0 | x64 | csc.exe | Win11 25H2 | Signed (Overlay) | Winbindex | |
| 012e8cd8adff… | 4.8.9221.0 | x86 | csc.exe | Win11 25H2 | Signed (Overlay) | Winbindex | |
| a725546bde53… | 4.8.9032.0 | x64 | csc.exe | Win11 22H2 … Win11 24H2 (3) | Signed (Overlay) | Winbindex | |
| 34e102f9ad24… | 4.8.9032.0 | x86 | csc.exe | Win11 22H2 … Win11 24H2 (3) | Signed (Overlay) | Winbindex | |
| 4a6d0864e19c… | 4.8.4084.0 | x64 | csc.exe | Win10 2004 … Win10 22H2 (5) | Signed (Overlay) | Winbindex | |
| 38c407dbf41e… | 4.8.4084.0 | x86 | csc.exe | Win10 2004 … Win10 22H2 (5) | Signed (Overlay) | Winbindex | |
| adeda78a9515… | 4.8.4161.0 | x64 | csc.exe | Win11 21H2 | Signed (Overlay) | Winbindex | |
| 4458132afc15… | 4.8.4161.0 | x86 | csc.exe | Win11 21H2 | Signed (Overlay) | Winbindex | |
| c5270c0d8718… | 4.8.3752.0 | x64 | csc.exe | Win10 1903, Win10 1909 | Signed (Overlay) | Winbindex | |
| 934cc2d91fc8… | 4.8.3752.0 | x86 | csc.exe | Win10 1903, Win10 1909 | Signed (Overlay) | Winbindex | |
| f571b3feaebc… | 4.7.3190.0 | x64 | csc.exe | Win10 1809 | Signed (Overlay) | Winbindex | |
| d511363874b2… | 4.7.3190.0 | x86 | csc.exe | Win10 1809 | Signed (Overlay) | Winbindex | |
| db58611dd100… | 4.7.3056.0 | x64 | csc.exe | Win10 1803 | Signed (Overlay) | Winbindex | |
| 52c90aa57a38… | 4.7.3056.0 | x86 | csc.exe | Win10 1803 | Signed (Overlay) | Winbindex | |
| 85150ec5f68b… | 4.7.2556.0 | x86 | csc.exe | Win10 1709 | Signed (Overlay) | Winbindex | |
| 7a446d9eddfa… | 4.7.2556.0 | x64 | csc.exe | Win10 1709 | Signed (Overlay) | Winbindex | |
| 375acaa5e956… | 4.7.2046.0 | x64 | csc.exe | Win10 1703 | Signed (Overlay) | Winbindex | |
| 16297883e3f3… | 4.7.2046.0 | x86 | csc.exe | Win10 1703 | Signed (Overlay) | Winbindex | |
| eda459866aa1… | 4.6.1586.0 | x86 | csc.exe | Win10 1607 | Signed (Overlay) | Winbindex | |
| 70b537332510… | 4.6.1586.0 | x64 | csc.exe | Win10 1607 | Signed (Overlay) | Winbindex | |
| 07ae00a36a35… | 4.6.1038.0 | x86 | csc.exe | Win10 1511 | Signed (Overlay) | Winbindex | |
| 02e1f817409a… | 4.6.1038.0 | x64 | csc.exe | Win10 1511 | Signed (Overlay) | Winbindex | |
| ce7493b13306… | 4.6.79.0 | x86 | csc.exe | Win10 1507 | Signed (Overlay) | Winbindex | |
| 1b581e87dd9e… | 4.6.79.0 | x64 | csc.exe | Win10 1507 | Signed (Overlay) | Winbindex | |
| eca02e6b15cd… | 14.8.10001.0 | x64 | csc.exe | Host scan | ✓ | ||
| 9e1257ca8728… | 14.8.10001.0 | x86 | csc.exe | Host scan | ✓ |
Winbindex builds link to the Microsoft symbol server copy that was hashed and parsed.