LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-22-2014, 04:14 PM   #1
adrianmariano
Member
 
Registered: Dec 2004
Distribution: Ubuntu Yakkety
Posts: 193

Rep: Reputation: 15
My system is receiving 15 GB of mail (via POP) per day from "PEGATRON"


My ISP notified me that I was exceeding my data allowance. Some investigation revealed that my machine is pulling down something like 15 GB of data per day.

Code:
adrian> vnstat
Database updated: Thu May 22 16:54:14 2014

   eth0 since 05/21/14

          rx:  15.68 GiB      tx:  444.62 MiB      total:  16.11 GiB

   monthly
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
       May '14     15.68 GiB |  444.62 MiB |   16.11 GiB |   72.07 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated     22.39 GiB |     634 MiB |   23.01 GiB |

   daily
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
     yesterday      4.69 GiB |  130.50 MiB |    4.82 GiB |  467.56 kbit/s
         today     10.99 GiB |  314.12 MiB |   11.30 GiB |    1.56 Mbit/s
     ------------------------+-------------+-------------+---------------
     estimated     15.60 GiB |     445 MiB |   16.04 GiB |
I installed ntop and found that 99.8% of the traffic (16.2 GB) was identified as due to "Mail_POP". Further investigation identifies it all with a specific host:

Code:
First/Last Seen: Wed May 21 16:38:35 2014  -  Thu May 22 17:03:58 2014 [Inactive since 3 sec]
MAC Address: 70:71:BC:DD:29:17  [PEGATRON CORPORATION]
Host Location: Local (inside specified/local subnet or known network list)
Total Data Sent: 837.1 MBytes/11,990,382 Pkts/0 Retran. Pkts [0%]
Broadcast Pkts Sent: 416 Pkts
Total Data Rcvd: 31.4 GBytes/21,648,383 Pkts/0 Retran. Pkts [0%]
IP vs. Non-IP Rcvd: 0 %	/ 100%
Sent vs. Rcvd Pkts: Sent 35.6 %	/ 64.5%
Sent vs. Rcvd Data: Sent 2.5 %	/ Rcvd 97.5 %
Host Healthness: Medium Risk, Wrong network mask or bridging enabled 

Time	Tot. Traffic Sent	% Traffic Sent	Tot. Traffic Rcvd	% Traffic Rcvd
5 PM 	1.5 MBytes	0.4 %	52.5 MBytes	0.3 %
4 PM 	18.1 MBytes	4.6 %	678.8 MBytes	4.5 %
3 PM 	19.6 MBytes	4.9 %	715.4 MBytes	4.7 %
2 PM 	20.0 MBytes	5.1 %	769.6 MBytes	5.1 %
1 PM 	16.9 MBytes	4.3 %	655.7 MBytes	4.3 %
12 PM 	16.1 MBytes	4.1 %	628.4 MBytes	4.1 %
11 AM 	18.6 MBytes	4.7 %	682.5 MBytes	4.5 %
10 AM 	16.2 MBytes	4.1 %	628.5 MBytes	4.1 %
9 AM 	18.4 MBytes	4.6 %	662.2 MBytes	4.4 %
8 AM 	20.5 MBytes	5.2 %	714.6 MBytes	4.7 %
7 AM 	16.6 MBytes	4.2 %	651.6 MBytes	4.3 %
I'm not sure what to make of all this, nor what exactly I need to do. Evidently I'm infected with something. The problem started on May 7 very clearly according to my ISPs data use logs. I just re-installed Ubuntu 14.04 around April 20.
 
Old 05-22-2014, 04:45 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,147

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
If your receive were low and your transmit were high, I would guess you had been hacked by spammers, but your box seems like the opposite.

One possibility is that someone (Pegatron?) has a misconfigured email server that is sending to you instead of their intended target. I had that happen once and tracked it down their domainname being one character different from ours. I solved it by adding a block in iptables to drop all input from that host, and then contacting them via their whois data.
 
Old 05-22-2014, 04:57 PM   #3
adrianmariano
Member
 
Registered: Dec 2004
Distribution: Ubuntu Yakkety
Posts: 193

Original Poster
Rep: Reputation: 15
Yeah, I'm not sure why you would hack someone and then *send* them tons of email.

In order to be receiving stuff by POP3 don't I have to be initiating a connection with a POP3 server, though? I'm not running such a server, as far as I know. I'm not actually observing tons of email anywhere.

Another thing I wondered about is that the host is identified by ntop as "local" and it has "Wrong network mask or bridging enabled".
 
Old 05-22-2014, 07:24 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
70:71:BC:DD:29:17 is a NIC made by PEGATRON, probably the NIC you have on your motherboard.
Whenever you suspect your box is compromised disconnect it from network before doing anything else.
 
Old 05-22-2014, 09:03 PM   #5
adrianmariano
Member
 
Registered: Dec 2004
Distribution: Ubuntu Yakkety
Posts: 193

Original Poster
Rep: Reputation: 15
So it turns out that the problem was a legitimate mail message that couldn't be delivered because it was over a message size limit set by postfix (10 MB). Apparently the system was in a loop trying to retrieve this message from the server and (I guess?) getting 10 MB of it each time and then failing to deliver it and leaving it on the server to try again.
 
  


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
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" nothing07 Programming 2 06-22-2012 02:57 PM
What i s this error pop-up: "On line 3: unknown type "evolution""?? kline Linux - Desktop 0 11-25-2011 04:12 PM
[SOLVED] how to send mail in sled system by "mail" richard_wu0313 Linux - Software 2 11-09-2011 06:49 PM
Problems receiving mail after switching from "mbox" to Maildir in dovecot. robertjinx Linux - Server 13 10-24-2008 02:44 PM
Mozilla "page" And receiving mail kustomkid54 Linux - Newbie 3 12-19-2003 06:40 PM

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

All times are GMT -5. The time now is 10:18 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