A file was created or overwritten. Image (process), TargetFilename, CreationUtcTime are key.
Dropper activity — malicious files written to disk. Persistence via startup folder writes. Ransomware dropping ransom notes. Web shells written to web server directories. Payload staging in temp directories.
Alert: files created in startup folders, web server directories (wwwroot, inetpub), or temp directories with executable extensions. Alert: .vbs, .ps1, .bat, .cmd, .hta files created in user paths. Very high volume — use targeted path/extension rules.
ImageTargetFilename | Tactic | Technique |
|---|---|
| Initial Access | Exploit Public-Facing Application (T1190) |
| Persistence | Boot or Logon Autostart Execution (T1547) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
title: Executable Created in Suspicious Directory
status: experimental
description: Executable file created in temp or user directory
author: theadminstack.com
date: 2026/05/16
logsource:
category: file_event
product: windows
detection:
selection:
EventID: 11
TargetFilename|contains:
- '\\Temp\\'
- '\\AppData\\'
TargetFilename|endswith:
- '.exe'
- '.dll'
- '.ps1'
- '.vbs'
- '.hta'
condition: selection
falsepositives:
- Software installations
- Legitimate scripts in user paths
level: medium
tags:
- attack.persistence
- attack.initial_access
Event
| where EventLog == "Microsoft-Windows-Sysmon/Operational" and EventID == 11 // File created
// EventData holds: Image, TargetFilename
| project TimeGenerated, Computer, RenderedDescription
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=11
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# File created — add EventData fields: Image, TargetFilename`
File created. A file was created or overwritten. Image (process), TargetFilename, CreationUtcTime are key.
Event 11 is written to the Microsoft-Windows-Sysmon/Operational channel by Microsoft-Windows-Sysmon. Requires Sysmon installed with a config that logs this event (e.g. SwiftOnSecurity / Olaf Hartong).
Event 11 is associated with: Exploit Public-Facing Application (T1190), Boot or Logon Autostart Execution (T1547).
Alert: files created in startup folders, web server directories (wwwroot, inetpub), or temp directories with executable extensions. Alert: .vbs, .ps1, .bat, .cmd, .hta files created in user paths. Very high volume — use targeted path/extension rules.