Implement initial detection and data structures for suspicious artifacts

This commit is contained in:
Evan Hosinski
2025-10-10 15:35:17 -04:00
commit 10b1bb7ed6
26 changed files with 2382 additions and 0 deletions
@@ -0,0 +1,17 @@
package connections
import "testing"
func TestDetectOutboundConnections(t *testing.T) {
conns := DetectOutboundConnections()
for _, conn := range conns {
t.Logf("-----")
t.Logf("PID: %s", conn.PID)
t.Logf("LocalAddr: %s", conn.LocalAddr)
t.Logf("RemoteAddr: %s", conn.RemoteAddr)
t.Logf("RemoteHost: %s", conn.RemoteHost)
t.Logf("State: %s", conn.State)
t.Logf("Process: %s", conn.Process)
t.Logf("-----")
}
}