Detection rules › Sublime MQL
Attachment: .csproj with suspicious commands
Attached .csproj file contains suspicious commands.
Threat classification
Sublime's own taxonomy (not MITRE ATT&CK).
| Category | Values |
|---|---|
| Attack types | Malware/Ransomware |
| Tactics and techniques | Evasion, Scripting |
Event coverage
| Message attribute |
|---|
| attachments (collection) |
| type |
Rule body MQL
type.inbound
and any(attachments,
.file_extension == "csproj"
and any(file.explode(.),
(
(any(.scan.strings.strings, strings.contains(., 'DllImport')))
and (
any(.scan.strings.strings,
strings.icontains(., 'CreateProcess')
)
)
)
)
)
Detection logic
Scope: inbound message.
Attached .csproj file contains suspicious commands.
- inbound message
any of
attachmentswhere all hold:- .file_extension is 'csproj'
any of
file.explode(.)where all hold:any of
.scan.strings.stringswhere:- . contains 'DllImport'
any of
.scan.strings.stringswhere:- . contains 'CreateProcess'
Inspects: attachments[].file_extension, type.inbound. Sensors: file.explode, strings.contains, strings.icontains.
Indicators matched (3)
| Field | Match | Value |
|---|---|---|
attachments[].file_extension | equals | csproj |
strings.contains | substring | DllImport |
strings.icontains | substring | CreateProcess |