LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-27-2015, 06:00 AM   #1
james.brown
Member
 
Registered: Feb 2015
Posts: 40

Rep: Reputation: Disabled
How can i know what programm generates virus traffic to 127.0.0.1 ?


How can i know what programm generates virus traffic to 127.0.0.1 ?

Please, watch screenshot from wireshark for more information about virus traffic.
I have iptables, who blocked this traffic.

I want delete software, who generates virus traffic, how can i do it?
Attached Thumbnails
Click image for larger version

Name:	0101010101010101.jpg
Views:	21
Size:	253.9 KB
ID:	17685  

Last edited by james.brown; 02-27-2015 at 06:02 AM.
 
Old 02-27-2015, 06:13 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
What makes you think this is the result of a virus?
Plenty of things could generate traffic to localhost including, if memory serves me correctly, X11.
 
Old 02-27-2015, 06:24 AM   #3
james.brown
Member
 
Registered: Feb 2015
Posts: 40

Original Poster
Rep: Reputation: Disabled
well.

how to find out what PID of process generates this traffic?
 
Old 02-27-2015, 06:28 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Something like:
Code:
netstat -tupl
As root (or with sudo, as appropriate).

Last edited by 273; 02-27-2015 at 06:29 AM. Reason: Clarification.
 
Old 02-27-2015, 06:31 AM   #5
james.brown
Member
 
Registered: Feb 2015
Posts: 40

Original Poster
Rep: Reputation: Disabled
i get next strings:
Quote:
root@james:/home/james# netstat -tupl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 user:domain *:* LISTEN 1579/dnsmasq
udp 0 0 user:domain *:* 1579/dnsmasq
udp 0 0 *:bootpc *:* 1372/dhclient
udp 0 0 *:55572 *:* 1372/dhclient
udp6 0 0 [::]:38718 [::]:* 1372/dhclient
 
Old 02-27-2015, 06:34 AM   #6
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 91
localhost (127.0.0.1) is your local machine. The screenshot shows something talking from your machine to something on your machine. That is normal in most cases. More specifically, tcp port 631 is the printing service, which is most likely implemented by "cups". If you want to get rid of that traffic (on your machine), stop the service "cupsd" or search an installed package like "cups" and uninstall. You will not be able to print though. I would recommend keeping everything as it is if you do not know exactly what you are doing.

Last edited by cepheus11; 02-27-2015 at 06:34 AM. Reason: typo
 
Old 02-27-2015, 06:39 AM   #7
james.brown
Member
 
Registered: Feb 2015
Posts: 40

Original Poster
Rep: Reputation: Disabled
no no no..this is virus traffic, because,
in iptables i was allowed traffic from "localhost my pc" to "localhost my PC"
and blocked from "localhost my pc" to "localhost other pc".

in next screenshot we can view next situation: we have traffic from localhost to "ipp" ..and traffic want send "syn" packets for generate connection...and connect is false, because we get answer with "rst,ack" packets.
Attached Thumbnails
Click image for larger version

Name:	0101010010101.jpg
Views:	20
Size:	137.3 KB
ID:	17686  
 
Old 02-27-2015, 06:40 AM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by james.brown View Post
i get next strings:
Looks fine to me, what makes you worried?
 
Old 02-27-2015, 07:12 AM   #9
james.brown
Member
 
Registered: Feb 2015
Posts: 40

Original Poster
Rep: Reputation: Disabled
what is "ipp"?
 
Old 02-27-2015, 07:14 AM   #10
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 91
Quote:
Originally Posted by james.brown View Post
in next screenshot we can view next situation: we have traffic from localhost to "ipp"
You are confusing "ipp" (the port/protocol) with "localhost" (the host). The first red line shows a packet from localhost:ipp to localhost:54420. Perfectly normal for an answer of your local printing service to some program querying the printers or jobs.
 
Old 02-27-2015, 07:20 AM   #11
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Please just read the documentation for the program you are using to view these things rather than claiming to have a virus.
Sorry if that is a little abrupt but posts by people who "have a virus" without a shred of evidence are frequent and are extremely harmful to Linux as a whole as they are much like "The Boy Who Cried 'Wolf!'" In that when somebody actually does have a problem they can be dismissed.
So, again, please do not post unsubstantiated virus claims out of ignorance and please read some documentation.

Last edited by 273; 02-27-2015 at 07:22 AM. Reason: Typo's
 
Old 02-27-2015, 07:27 AM   #12
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 286

Rep: Reputation: 91
Quote:
Originally Posted by james.brown View Post
what is "ipp"?
Internet Printing Protocol
 
Old 02-27-2015, 07:27 AM   #13
james.brown
Member
 
Registered: Feb 2015
Posts: 40

Original Poster
Rep: Reputation: Disabled
no no no..it is not cups.

i get next strings with command "netstat -tuwapn":
Quote:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 1579/dnsmasq
udp 0 0 127.0.1.1:53 0.0.0.0:* 1579/dnsmasq
udp 0 0 0.0.0.0:68 0.0.0.0:* 1372/dhclient
udp 0 0 0.0.0.0:55572 0.0.0.0:* 1372/dhclient
udp6 0 0 :::38718 :::* 1372/dhclient

result has not cups.
 
Old 02-27-2015, 07:35 AM   #14
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by 273 View Post
Please just read the documentation for the program you are using to view these things rather than claiming to have a virus.
Sorry if that is a little abrupt but posts by people who "have a virus" without a shred of evidence are frequent and are extremely harmful to Linux as a whole as they are much like "The Boy Who Cried 'Wolf!'" In that when somebody actually does have a problem they can be dismissed.
So, again, please do not post unsubstantiated virus claims out of ignorance and please read some documentation.
Please just read some documentation.
 
Old 02-27-2015, 09:00 AM   #15
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Says Destination Port 631. Cups. Printer.

Last edited by Habitual; 06-26-2015 at 05:47 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
1.0.0.127 UDP 514 Traffic wildtwins Linux - Networking 1 09-22-2011 01:46 PM
Gateway that forces traffic to go through proxy at its 127.0.0.1:9666 Ulysses_ Linux - Networking 3 04-18-2011 06:30 PM
Urgent : how do I know which program generates network traffic ? jonaskellens Linux - Networking 7 12-08-2008 06:50 AM
How window in programm can be resized by another programm. rexStart Programming 1 09-23-2008 02:47 AM
how much traffic generates a game server? seimour Linux - Games 2 11-06-2006 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration