LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 01-29-2012, 06:37 PM   #1
circus78
Member
 
Registered: Dec 2011
Posts: 42

Rep: Reputation: Disabled
suspicious behavior openvpn


Hi all.
I'm using Ubuntu 11.10 and OpenVPN 2.1.3-2ubuntu3 with SSL certificate.
Today, during initial vpn's phase (after login with username & password) I see a very strange message in my console:


Quote:
Sun Jan 29 22:45:20 2012 PUSH: Received control message: 'PUSH_REPLY,ping 200,ping-restart 600,route-gateway 10.10.200.254,ifconfig 88.102.1.16 255.255.254.0'
Sun Jan 29 22:45:20 2012 OPTIONS IMPORT: timers and/or timeouts modified
Sun Jan 29 22:45:20 2012 OPTIONS IMPORT: --ifconfig/up options modified
Sun Jan 29 22:45:20 2012 OPTIONS IMPORT: route-related options modified
Sun Jan 29 22:45:20 2012 ROUTE default_gateway=192.168.1.1
Sun Jan 29 22:45:20 2012 TUN/TAP device tap0 opened
Sun Jan 29 22:45:20 2012 TUN/TAP TX queue length set to 100
Sun Jan 29 22:45:20 2012 /sbin/ifconfig tap0 88.102.1.16 netmask 255.255.254.0 mtu 1500 broadcast 88.102.1.255

ip 88.102.1.16 is about .cz domain, and I have nothing to do with it.
OpenVPN's conf is ok (I double checked)..
My computer was compromised? Or the openVPN server may be violated??
Thankyou very much
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-02-2012, 09:01 PM   #2
shadowbox12
Member
 
Registered: Mar 2010
Posts: 39

Rep: Reputation: 2
Doesn't look good. You got pwned I think. I'd check every log for traces of deeper compromise and be prepared to wipe and reinstall.
 
Old 02-03-2012, 08:53 AM   #3
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 1,790

Rep: Reputation: 656Reputation: 656Reputation: 656Reputation: 656Reputation: 656Reputation: 656
Quote:
Originally Posted by shadowbox12 View Post
Doesn't look good. You got pwned I think. I'd check every log for traces of deeper compromise and be prepared to wipe and reinstall.
Shadowbox12, your eagerness to help is appreciated. However, at LQ Security, we strongly advocate an investigative approach to gain evidence and then proceed as the facts dictate. Under no circumstance do we jump to the conclusion that a machine has been pwned without supporting evidence. We take great exception to the concept of "wipe and re-install" without said investigation and would greatly appreciate it if you would please refrain from making such suggestions. If you have any questions regarding this policy, please direct them to unSpawn or Win32Sux who will be happy to explain our policy and procedures to you.

@circus78, Welcome to LQ-Security. Your log provides little information. My initial suspicion is that a scan revealed your openVPN port and someone attempted a connection to it. The log messages shown look like the initialization of a tap interface device. Open VPN uses client certificates to authenticate and a protocol similar to SSH, which as long as these have been kept reasonably secure it is highly unlikely that an unauthorized user will be able to connect to your system via OpenVPN. However, it is always wise to look into suspcious activity and make a reasoned determination. Do you your logs indicate whether or not the connection attempt was successful or was access denied? Does the output of netsat (e.g. netsate -pane) show any active connections. Have there been other signs of intrusion, such as other anomalies in your log files? Also realize that being able to connect to your VPN and obtain an IP address to your local network does not necessarily mean that your systems have been compromised; it means that they would potentially be able to access the devices behind your router.

If there is indication of intrusion, your should isolate the machine by either disconnecting the network cable or putting up a firewall to allow SSH connections from a trusted source. Once you have secured the machine, you may begin with an investigation. Here is a link to the Cert Intruder Detection Checklist which outlines the steps involved. I mention this information to make you aware of what the next steps are. At this point the information you have provided does not appear to indicate a compromise in my opinion.
 
3 members found this post helpful.
Old 02-04-2012, 01:13 PM   #4
circus78
Member
 
Registered: Dec 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Noway2 View Post
@circus78, Welcome to LQ-Security. Your log provides little information. My initial suspicion is that a scan revealed your openVPN port and someone attempted a connection to it.
Did you mean.. openvpn oper port on "server" side, not my workstation, right?

Quote:
Originally Posted by Noway2 View Post
The log messages shown look like the initialization of a tap interface device. Open VPN uses client certificates to authenticate and a protocol similar to SSH, which as long as these have been kept reasonably secure it is highly unlikely that an unauthorized user will be able to connect to your system via OpenVPN. However, it is always wise to look into suspcious activity and make a reasoned determination. Do you your logs indicate whether or not the connection attempt was successful or was access denied?
There was and error, tap interface was unable to come up. And even in the case, the "malicious" ip is totally out-of-range of my server-side network subnet.



Quote:
Originally Posted by Noway2 View Post
Does the output of netsat (e.g. netsate -pane) show any active connections. Have there been other signs of intrusion, such as other anomalies in your log files? Also realize that being able to connect to your VPN and obtain an IP address to your local network does not necessarily mean that your systems have been compromised; it means that they would potentially be able to access the devices behind your router.
I hope there is a momentary "bug" in the openvpn server (Debian), because five minutes after I was able to connect to the same VPN with right ip.
 
Old 02-06-2012, 06:24 AM   #5
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 1,790

Rep: Reputation: 656Reputation: 656Reputation: 656Reputation: 656Reputation: 656Reputation: 656
Correct, I meant port on your server. This would be a low numbered port that remains constant so that remote connections can locate your server. A simple port scan would reveal it's presence and it is possible that someone tried to connect to it.

I admit the situation sounds odd, especially the part about the IP being outside your subnet and the interface not being ale to come up. Just a guess, but perhaps there are some known or trial exploits for OpenVPN. In the short run, my advice would be to keep watch on your log files for a while. Actually that is a good thing to do regularly. Check out the program logwatch, which will send you a daily summary of what is happening. A HIDS monitor might also be useful because it will send you an email alert if a problem occurs in your system that creates a warning or error log entry.

In terms of a vulnerability scanner, make sure that your running an up to date copy of OpenVPN.
 
1 members found this post helpful.
Old 02-06-2012, 09:21 PM   #6
sundialsvcs
Senior Member
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 3,685

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
Very well said, Noway2. Thank you.

Also, consider this: OpenVPN is one of the most ruggedly-built and tested packages out there. What, seriously, are the chances that someone has actually dived through some obscure hole in it to terrorize y-o-u-r system?

When you encounter a message that you do not immediately understand ... "keep your head on, nevertheless."
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenVPN assigning public & static IPs to pcs/devices behind an OpenVPN client dgonzalezh Linux - Networking 6 07-18-2010 09:50 AM
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
How does OpenVPN Linux server issues IP and netmask to OpenVPN clients on Windows XP pssompura Linux - Networking 0 12-25-2009 10:45 AM
Error When converting Routing OpenVPN to bridge mode openvpn danmartinj Linux - Software 0 11-07-2009 05:44 PM
suspicious sgi_fam behavior jbeiter Linux - Security 2 09-07-2004 05:24 AM


All times are GMT -5. The time now is 04:44 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration