Linux machine got infected by a malware. After some analysis we found .sh file under postgres home and postgres crontab entry.
Below are the steps we performed :