feat(go): advance validation sidecar toward production
This commit is contained in:
parent
6a06eba255
commit
f85c2e831a
92 changed files with 8881 additions and 91 deletions
9
tests/fixtures/go/process-detectors.json
vendored
9
tests/fixtures/go/process-detectors.json
vendored
|
|
@ -1,5 +1,13 @@
|
|||
{
|
||||
"ld_preload": "/tmp/global.so\n/opt/second.so",
|
||||
"listener_baseline": [],
|
||||
"suid_baseline": ["/usr/bin/sudo"],
|
||||
"suid_binaries": ["/tmp/evil", "/usr/bin/sudo", "/usr/local/bin/newtool"],
|
||||
"persist_since": 100,
|
||||
"persistence_files": {"/etc/cron.d/evil": 101},
|
||||
"first_seen_initialized": true,
|
||||
"first_seen_public_destinations": {"bash": ["1.1.1.1:443"]},
|
||||
"first_seen_listener_ports": {"nc": ["22"]},
|
||||
"processes": [
|
||||
{"pid": 100, "comm": "bash", "cmdline": "bash -i", "exe": "/usr/bin/bash", "fd_targets": {"0": "socket:[999]"}},
|
||||
{"pid": 200, "comm": "sleep", "cmdline": "sleep", "exe": "/usr/bin/sleep", "environ": {"LD_PRELOAD": "/tmp/evil.so"}},
|
||||
|
|
@ -25,5 +33,6 @@
|
|||
{"state": "ESTAB", "local": "10.0.0.2:5000", "peer": "8.8.8.8:4443", "inode": 1, "comm": "hoxha", "pid": 340, "kind": "sctp"},
|
||||
{"state": "UNCONN", "local": "*:eth0", "peer": "*", "inode": 2, "comm": "tcpdump", "pid": 341, "kind": "packet"},
|
||||
{"state": "ESTAB", "local": "10.0.0.2:6000", "peer": "10.0.0.5:443", "inode": 3, "comm": "python3", "pid": 342, "kind": "tcp"}
|
||||
,{"state": "LISTEN", "local": "0.0.0.0:31337", "peer": "0.0.0.0:*", "inode": 4, "comm": "nc", "pid": 500, "kind": "tcp"}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue