Skip to content

Commit 1a065e6

Browse files
authored
Move get-routing-table.yml out of nursery. Add enumerate-tcp-connecti… (#1074)
* Move get-routing-table.yml out of nursery. Add enumerate-tcp-connections-via-wmi-com-api.yml and create-routing-table-entry.yml * Update scopes in enumerate-tcp-connections-via-wmi-com-api.yml, create-routing-table-entry.yml, get-routing-table.yml
1 parent 5d990ad commit 1a065e6

File tree

4 files changed

+59
-15
lines changed

4 files changed

+59
-15
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
rule:
2+
meta:
3+
name: enumerate TCP connections via WMI COM API
4+
namespace: host-interaction/network
5+
authors:
6+
7+
description: Match on files capable of enumerating TCP connections using WMI COM API
8+
scopes:
9+
static: function
10+
dynamic: span of calls
11+
att&ck:
12+
- Discovery::System Network Connections Discovery [T1049]
13+
references:
14+
- https://medium.com/@s12deff/get-tcp-active-connections-with-wmi-cfd80899d7fa
15+
examples:
16+
- 0a942aca9589d10f7b8f127870ca35cdd90d25c0b3449abe0434ffeb9f93f277:0x140001000
17+
features:
18+
- and:
19+
- match: connect to WMI namespace via WbemLocator
20+
- string: "ROOT\\StandardCIMV2"
21+
- string: "MSFT_NetTCPConnection"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
rule:
2+
meta:
3+
name: create routing table entry
4+
namespace: host-interaction/network/routing-table
5+
authors:
6+
7+
scopes:
8+
static: instruction
9+
dynamic: call
10+
references:
11+
- https://learn.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-createipforwardentry
12+
- https://github.com/T04R/collection/blob/main/evasion/03.Local-admin/EPP-comms/netblk-route/implant.cpp
13+
examples:
14+
- de07bd6e3ade9e4d8a36032a23de11a372bd93d39a6ef95d849e3f6f7ebac6e5:0x140001000
15+
features:
16+
- or:
17+
- api: iphlpapi.CreateIpForwardEntry
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
rule:
2+
meta:
3+
name: get routing table
4+
namespace: host-interaction/network/routing-table
5+
authors:
6+
7+
scopes:
8+
static: instruction
9+
dynamic: call
10+
att&ck:
11+
- Discovery::System Network Configuration Discovery [T1016]
12+
references:
13+
- https://learn.microsoft.com/en-us/windows/win32/api/iphlpapi/nf-iphlpapi-getipforwardtable
14+
- https://learn.microsoft.com/en-us/windows/win32/api/netioapi/nf-netioapi-getipforwardtable2
15+
- https://github.com/T04R/collection/blob/main/evasion/03.Local-admin/EPP-comms/netblk-printroute/implant.cpp
16+
examples:
17+
- b1133d7e5599beefe992a127f6e9704176a13b7e86b4db45c3b61cf25a60d414:0x140001000
18+
features:
19+
- or:
20+
- api: iphlpapi.GetIpForwardTable
21+
- api: iphlpapi.GetIpForwardTable2

nursery/get-routing-table.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)