mirror of
https://github.com/valitydev/atomic-threat-coverage.git
synced 2024-11-06 09:35:21 +00:00
5.0 KiB
5.0 KiB
Title | Application Whitelisting Bypass via Dnx.exe |
---|---|
Description | Execute C# code located in the consoleapp folder |
ATT&CK Tactic | |
ATT&CK Technique | |
Data Needed | |
Trigger | |
Severity Level | medium |
False Positives |
|
Development Status | experimental |
References | |
Author | Beyu Denis, oscd.community |
Detection Rules
Sigma rule
title: Application Whitelisting Bypass via Dnx.exe
id: 81ebd28b-9607-4478-bf06-974ed9d53ed7
status: experimental
description: Execute C# code located in the consoleapp folder
references:
- https://github.com/LOLBAS-Project/LOLBAS/blob/master/yml/OtherMSBinaries/Csi.yml
- https://enigma0x3.net/2016/11/17/bypassing-application-whitelisting-by-using-dnx-exe/
author: Beyu Denis, oscd.community
date: 2019/10/26
modified: 2020/08/30
tags:
- attack.defense_evasion
- attack.t1218
- attack.t1027.004
- attack.execution # an old one
level: medium
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith: '\dnx.exe'
condition: selection
falsepositives:
- Legitimate use of dnx.exe by legitimate user
powershell
Get-WinEvent | where {$_.message -match "Image.*.*\\\\dnx.exe" } | select TimeCreated,Id,RecordId,ProcessId,MachineName,Message
es-qs
winlog.event_data.Image.keyword:*\\\\dnx.exe
xpack-watcher
curl -s -XPUT -H \'Content-Type: application/json\' --data-binary @- localhost:9200/_watcher/watch/81ebd28b-9607-4478-bf06-974ed9d53ed7 <<EOF\n{\n "metadata": {\n "title": "Application Whitelisting Bypass via Dnx.exe",\n "description": "Execute C# code located in the consoleapp folder",\n "tags": [\n "attack.defense_evasion",\n "attack.t1218",\n "attack.t1027.004",\n "attack.execution"\n ],\n "query": "winlog.event_data.Image.keyword:*\\\\\\\\dnx.exe"\n },\n "trigger": {\n "schedule": {\n "interval": "30m"\n }\n },\n "input": {\n "search": {\n "request": {\n "body": {\n "size": 0,\n "query": {\n "bool": {\n "must": [\n {\n "query_string": {\n "query": "winlog.event_data.Image.keyword:*\\\\\\\\dnx.exe",\n "analyze_wildcard": true\n }\n }\n ],\n "filter": {\n "range": {\n "timestamp": {\n "gte": "now-30m/m"\n }\n }\n }\n }\n }\n },\n "indices": [\n "winlogbeat-*"\n ]\n }\n }\n },\n "condition": {\n "compare": {\n "ctx.payload.hits.total": {\n "not_eq": 0\n }\n }\n },\n "actions": {\n "send_email": {\n "throttle_period": "15m",\n "email": {\n "profile": "standard",\n "from": "root@localhost",\n "to": "root@localhost",\n "subject": "Sigma Rule \'Application Whitelisting Bypass via Dnx.exe\'",\n "body": "Hits:\\n{{#ctx.payload.hits.hits}}{{_source}}\\n================================================================================\\n{{/ctx.payload.hits.hits}}",\n "attachments": {\n "data.json": {\n "data": {\n "format": "json"\n }\n }\n }\n }\n }\n }\n}\nEOF\n
graylog
Image.keyword:*\\\\dnx.exe
splunk
Image="*\\\\dnx.exe"
logpoint
Image="*\\\\dnx.exe"
grep
grep -P '^.*\\dnx\\.exe'