diff --git a/linking/static/hp-socket/linked-against-hp-socket.yml b/linking/static/hp-socket/linked-against-hp-socket.yml new file mode 100644 index 000000000..72cbc4f4b --- /dev/null +++ b/linking/static/hp-socket/linked-against-hp-socket.yml @@ -0,0 +1,30 @@ +rule: + meta: + name: linked against High-Performance Socket (hp-socket) + namespace: linking/static/hp-socket + authors: + - still@teamt5.org + scope: file + att&ck: + - Command and Control::Non-Application Layer Protocol [T1095] + references: + - https://github.com/ldcsaa/HP-Socket/ + examples: + - ac204bc653d6e49eea093b01ba3eaa60 + features: + - or: + - substring: "HP-Socket for Linux v%d.%d.%d [BN:%02d]" + - 3 or more: + - substring: "global/helper.cpp" + - substring: "src/HttpServer.cpp" + - substring: "src/TcpServer.cpp" + - substring: "src/common/IODispatcher.cpp" + - substring: "src/common/Thread.cpp" + - substring: "/HP-Socket/Linux/" + # in theory the following should be present for Windows version; untested + - 3 or more: + - substring: "Client Send Fail [SOCK: %d, SEQ: %d]" + - substring: "(%Iu) Send OK -->" + - substring: "<%s#%d> OP: %d, CODE: %d (DATA: 0x%X, LEN: %d>" + - substring: "---------------> Client Worker Thread 0x%08X stoped <---------------" + - substring: " OnSend() event should not return 'HR_ERROR' !!"