Something is done via perl on webserver - how can i find the causing script ?

Posted on 2014-11-20
Last Modified: 2014-11-20

on a webserver there is something wrong (in my opinion). Perl is using much CPU. If i use lsof on its PID, i get this:

perl    693 uvftpzg  cwd    DIR    8,1     4096        2 /
perl    693 uvftpzg  rtd    DIR    8,1     4096        2 /
perl    693 uvftpzg  txt    REG    8,5  1648400 17983266 /usr/bin/perl
perl    693 uvftpzg  mem    REG    8,5    31512 17796254 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/Socket/
perl    693 account6663  mem    REG    8,5    27464 51082960 /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/auto/IO/
perl    693 account6663  mem    REG    8,1  1495120   783548 /lib64/
perl    693 account6663  mem    REG    8,1   142867   783542 /lib64/
perl    693 account6663  mem    REG    8,1    61240   783534 /lib64/
perl    693 account6663  mem    REG    8,1    16040   783530 /lib64/
perl    693 account6663  mem    REG    8,1   380776   783535 /lib64/
perl    693 account6663  mem    REG    8,1   131240   783549 /lib64/
perl    693 account6663  0r  FIFO    0,5      0t0    84033 pipe
perl    693 account6663  1w  FIFO    0,5      0t0    84034 pipe
perl    693 account6663  2w  FIFO    0,5      0t0    84035 pipe
perl    693 account6663  3u  IPv4 146573      0t0      TCP> (ESTABLISHED)
perl    693 account6663  187r  FIFO    0,5      0t0     8206 pipe
perl    693 account6663  188w  FIFO    0,5      0t0     8206 pipe
perl    693 account6663  189r  FIFO    0,5      0t0     8207 pipe
perl    693 account6663  190w  FIFO    0,5      0t0     8207 pipe

What exactly does this mean ? I dont know "" ...
How can i find out which script is used for this ?

Question by:loosain
  • 2
LVL 28

Accepted Solution

Jan Springer earned 250 total points
ID: 40456140
run a quick check of tmp "ls -al /tmp" for programs/files that don't belong

"ls -alR /etc/cron*" for any install cron jobs

"find / -user account6663" to first find the files owned by this account
LVL 77

Assisted Solution

arnold earned 250 total points
ID: 40456340
Look for its PPID.

Grep arcp /etc/services.

This looks like a socket app, but there is no way to say what it is doing, using strace -f -p PID may show what it is doing.

But using ps, and track down up to the parent.

Look in crons, services chkconfig --list.

LVL 77

Expert Comment

ID: 40456351
Searching for port arcp to which your system is connected, suggests it might be a Trojan/compromise.

Do you know what should be running on your system?

Author Closing Comment

ID: 40456459
Thanks. I found a script that should not be there which is causing all this. I moved it away and now no ports are open or perl-scripts a running so far.

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Ubuntu 14 with Apache 7 75
Virtual host in apache 31 90
HHTP and HTTPS redirect question 3 109
Perl: How to add backslashes to every period in a string 1 21
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question