I am getting very large GB consumption on my server so I am guessing it has been hacked.
I am following a small tutorial on how to check if your linux server has been hacked.
It says to use 'netstat' as follows: "check both carefully because if you got a malicious script is trying to sending spam mail or try to attach other server you can easily find here"
I see many entries but I have no clue on how to determine the above. Here is a filtered list:
netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp <number> <number> <address> <address> TIME_WAIT
tcp <number> <number> <address> <address> ESTABLISHED
tcp <number> <number> <address> <address> CLOSING
udp6 <number> <number> localhost:<number> localhost:<number> ESTABLISHED
...
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ] DGRAM <number> <path>
unix 3 [ ] STREAM CONNECTED <number> <path>
...
Some of the <path> are as follows:
/run/systemd/notify
/run/systemd/cgroups-agent
/run/systemd/journal/dev-log
/var/spool/postfix/dev/log
/run/systemd/journal/socket
/run/systemd/journal/syslog
private/anvil
/run/systemd/journal/stdout
/var/run/dbus/system_bus_socket
/var/run/dovecot/anvil-auth-penalty
private/rewrite
public/cleanup
/var/run/dovecot/auth-worker
Anybody can help?
I am following a small tutorial on how to check if your linux server has been hacked.
It says to use 'netstat' as follows: "check both carefully because if you got a malicious script is trying to sending spam mail or try to attach other server you can easily find here"
I see many entries but I have no clue on how to determine the above. Here is a filtered list:
netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp <number> <number> <address> <address> TIME_WAIT
tcp <number> <number> <address> <address> ESTABLISHED
tcp <number> <number> <address> <address> CLOSING
udp6 <number> <number> localhost:<number> localhost:<number> ESTABLISHED
...
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ] DGRAM <number> <path>
unix 3 [ ] STREAM CONNECTED <number> <path>
...
Some of the <path> are as follows:
/run/systemd/notify
/run/systemd/cgroups-agent
/run/systemd/journal/dev-log
/var/spool/postfix/dev/log
/run/systemd/journal/socket
/run/systemd/journal/syslog
private/anvil
/run/systemd/journal/stdout
/var/run/dbus/system_bus_socket
/var/run/dovecot/anvil-auth-penalty
private/rewrite
public/cleanup
/var/run/dovecot/auth-worker
Anybody can help?



