Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add detection rule for hp-socket linking #848

Merged
merged 6 commits into from
Jan 23, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions linking/static/hp-socket/linked-against-hp-socket.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
rule:
meta:
name: linked against hp-socket
namespace: linking/static/hp-socket
authors:
- [email protected]
scope: file
Still34 marked this conversation as resolved.
Show resolved Hide resolved
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: "<C-CNNID: %Iu> OnSend() event should not return 'HR_ERROR' !!"
Loading