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 artifacts to monitor network communication on clients #875

Merged
merged 4 commits into from
Jul 10, 2024

Conversation

sec-hbaer
Copy link
Contributor

Hi all,

we created artifacts to complement Process Tracking for Windows with network connection tracking.
The artifact was tested on Windows and Linux. Due to using built-in functions only, it should work on all supported OSs.

network connections are tracked by periodically diffing the netstat info. Added or removed connections are identified by combining Pid, layer 3 protocol, layer 4 protocol, local address used, local port used, remote address used, remote address used. Based on the PID, network information is enriched with process information.

The client monitoring is complemented with a server alerting artifact. That artifact allows sending messages via webhook about the tracked network connections. Connections can be filtered on the client that emitted the connection, the name of the process that started the network connection, the remote ip being contacted and the remote port being contacted. Those filters should also be used, as it is easy to spam the webhook (lots of network activity by default :D)

There will be a blog post by SEC Consult soon about our though process behind creating these artifacts and some recommendations based on our tests.

I wish the community much fun with this contribution. :)

@mgreen27 mgreen27 merged commit 509aba1 into Velocidex:master Jul 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants