Skip to content

Commit

Permalink
Consolidate c2 and communication namespaces (mandiant#692)
Browse files Browse the repository at this point in the history
* move c2 under communication

* update namespace

* reduce false positives
  • Loading branch information
mr-tz authored Feb 7, 2023
1 parent 695e1e4 commit cad482b
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 13 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ Namespaces are hierarchical, so the children of a namespace encodes its specific
In a few words each, the top level namespaces are:
- [anti-analysis](./anti-analysis/) - packing, obfuscation, anti-X, etc.
- [c2](./c2/) - commands that may be issued by a controller, such as interactive shell or file transfer
- [collection](./collection/) - data that may be enumerated and collected for exfiltration
- [communication](./communication/) - HTTP, TCP, etc.
- [communication](./communication/) - HTTP, TCP, command and control (C2) traffic, etc.
- [compiler](./compiler/) - detection of build environments, such as MSVC, Delphi, or AutoIT
- [data-manipulation](./data-manipulation/) - encryption, hashing, etc.
- [executable](./executable/) - characteristics of the executable, such as PE sections or debug info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ rule:
- string: /Qemu/i
- string: /qemu-ga.exe/i
- string: /BOCHS/i
- string: /BXPC/i
- string: /^BXPC/i
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rule:
meta:
name: download and write a file
namespace: c2/file-transfer
namespace: communication/c2/file-transfer
maec/malware-category: downloader
authors:
- [email protected]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rule:
meta:
name: write and execute a file
namespace: c2/file-transfer
namespace: communication/c2/file-transfer
maec/malware-category: launcher
authors:
- [email protected]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rule:
meta:
name: create reverse shell on Linux
namespace: c2/shell
namespace: communication/c2/shell
authors:
- [email protected]
scope: function
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rule:
meta:
name: create reverse shell
namespace: c2/shell
namespace: communication/c2/shell
authors:
- [email protected]
scope: function
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rule:
meta:
name: execute shell command and capture output
namespace: c2/shell
namespace: communication/c2/shell
authors:
- [email protected]
scope: function
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rule:
meta:
name: execute shell command received from socket on Linux
namespace: c2/shell
namespace: communication/c2/shell
authors:
- [email protected]
scope: function
Expand Down
3 changes: 1 addition & 2 deletions doc/format.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,8 @@ Namespaces are hierarchical, so the children of a namespace encodes its specific
In a few words each, the top level namespaces are:

- [anti-analysis](https://github.com/mandiant/capa-rules/tree/master/anti-analysis/) - packing, obfuscation, anti-X, etc.
- [c2](https://github.com/mandiant/capa-rules/tree/master/c2/) - commands that may be issued by a controller, such as interactive shell or file transfer
- [collection](https://github.com/mandiant/capa-rules/tree/master/collection/) - data that may be enumerated and collected for exfiltration
- [communication](https://github.com/mandiant/capa-rules/tree/master/communication/) - HTTP, TCP, etc.
- [communication](https://github.com/mandiant/capa-rules/tree/master/communication/) - HTTP, TCP, command and control (C2) traffic, etc.
- [compiler](https://github.com/mandiant/capa-rules/tree/master/compiler/) - detection of build environments, such as MSVC, Delphi, or AutoIT
- [data-manipulation](https://github.com/mandiant/capa-rules/tree/master/data-manipulation/) - encryption, hashing, etc.
- [executable](https://github.com/mandiant/capa-rules/tree/master/executable/) - characteristics of the executable, such as PE sections or debug info
Expand Down
2 changes: 1 addition & 1 deletion nursery/read-and-send-data-from-client-to-server.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rule:
meta:
name: read and send data from client to server
namespace: c2/file-transfer
namespace: communication/c2/file-transfer
authors:
- [email protected]
scope: function
Expand Down
2 changes: 1 addition & 1 deletion nursery/receive-and-write-data-from-server-to-client.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rule:
meta:
name: receive and write data from server to client
namespace: c2/file-transfer
namespace: communication/c2/file-transfer
authors:
- [email protected]
scope: function
Expand Down

0 comments on commit cad482b

Please sign in to comment.