Skip to main content

Multiple Messages with "kthread" Errors & Multiple "Port Hits"

Comments

7 comments

  • 24x7server
    Hello, I can see your user file /home/USER/.lesshts/kthread is taking long time to execute and that is the reason you are getting these mail alert from LFD, I will suggest scan your account through LMD and delete the infected files. Also check your kthread file.
    0
  • cPanelMichael
    Hello :) I have moved this thread to our "Security" forum for further discussion. Note that you may also want to post your question to the CSF support forums as sometimes you will receive more user feedback for their software at their forums. Thank you.
    0
  • oswgarcia
    Hello All, Do you have an update on this, I am getting the same problem with more than 20 servers, it seems to be that all of them are compromised, the five top process are showing Kthread as follow: 10566 user 25 0 172 100 0 R 29.0 0.0 135:44.61 kthread 10514 user 25 0 2268 2196 0 R 26.1 0.1 249:36.44 kthread 10575 user 25 0 2268 2196 0 R 25.4 0.1 269:34.81 kthread 10564 user 25 0 2268 2200 0 R 19.9 0.1 255:25.32 kthread 10530 user 25 0 172 100 0 R 17.9 0.0 141:48.42 kthread I dig a little bit with a lsof and found this for example: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME kthread 10566 user cwd DIR 0,22 4096 12173448 /home/user kthread 10566 user rtd DIR 8,1 4096 2 / kthread 10566 user txt REG 0,22 35636 36389745 /home/user/.lesshts/kthread kthread 10566 user 0r FIFO 0,6 0t0 18194 pipe Do you have an idea what could be the problem, I am suspending those 5 users as a temporal remediation.
    0
  • triantech
    Hey oswgarcia, Just out of my curiosity, are your servers patched against the shellshock bug ? And also, can you find out if your server IP is making excessive connections to a specific IP's port 443 ?
    0
  • quizknows
    Something is most likely compromised, probably user passwords. Most shellshock stuff I've seen dumps into /tmp or /dev/shm, not a users homedir. Check last (lastlog) or /var/log/secure for any ssh logins to those accounts
    0
  • oswgarcia
    ]Hey oswgarcia, Just out of my curiosity, are your servers patched against the shellshock bug ? And also, can you find out if your server IP is making excessive connections to a specific IP's port 443 ?

    Thanks for your answers, we have discovered that the issue was related to the shellshock bug, we patched our servers when the bug came out but for any reason some accounts were not updated. We have patched again all our servers and it seems to be the issue is now resolved. I have not seen more kernel threads running on home user directories. Thanks,
    0
  • triantech
    russelld, Do you have any update on this ? Can you please let us know if you spotted something ?
    0

Please sign in to leave a comment.