So you are using OpenSource software but are you sure you are only running the software Which you installed ? Are you sure you are not running any spyware/Addware which got embedded in your opensource software due to some security exploit ?
Remember The hacking is NOT when you see a message on your website saying "Your site is defaced" or "You are hacked". This kind of hacker actually helped you due to his stupidity. And you get a chance to patch the security holes. Such kind of kiddy hackers dont know what they can do or infact what they are doing, They just get the sample code from some security related website and execute it to add funny sentences like above to your website to impress their girl friends.
The real problem is when you dont know what is going on behind the scenes. Probably you are running some hidden application and you dont know about that for years. As a shared hosting account owner it is only 10% your responsibilty but 90% the responsibility of your server manager or hosting provider who never spend enough time to check server logs to see any ATTEMPTS made to server or any of the website hosted on their server.
But why opensource is so dangerous ? Good question! It is just like that if bad guys have the internal map of your home, They know where your safe is located and how your security alarms will get activated. So they can just dig the correct wall to access it. Opensource have full code available to everyone. Everyone also includes bad guys and good guys. These bad and good guys are mostly programmers, they find out the weakness of software, Bad guys exploit it and mostly to get attention of people they release it on public forums or IRC channels. Good guys post it to the developers of softwares. The developers fix the security holes and releae the next version or just a patch. When a new version or a patch is released, It also include a document titled CHANGELOG. This changelog document usually have the details of security holes in previous version which are fixed and it is suggested to upgrade. So in any way the detail of security holes is now available publicly.
Bad guys use scanning scripts and softwares to scan the websites and these scripts detect the installed opensource applications and get their Version Numbers. Such BOTs or Scripts also match the version numbers with the exploitable versions stored in their database, Some even attempt simple tests to make sure that your installed opensource application is not patched or upgraded and store the information for bad Guy. Thats it... You are TAGGED.
Now what Bad Guys will do to my site/server ? hmmm! they usually do any of below (Not limited to)
So as a opensource user what can you do ? When was the last time you checked the developers website to find out any updates of the software you are using ? If you have a dedicated server, When was the last time you checked the server logs to see any unusual strings in POST and GET requests ? Or any failed tcp connection attempts at your public ports with protocol errors ? I know most of you didnt because your shared hosting service provider provide you a one click installation of most of opensource softwares but they never provide any automated way to update the software. Because practically for most of opensource web applications there is no way a host can integrate the automated updates in their control panel. It is because every new upgrade can be different from previous one. And as a server admin you might be just using a Panel like Webmin, Plesk, Cpanel etc and never tried to look the server logs or never checked if your server kernel is up2date. Are you using lot of colourfull Addons/Plugins with your opensource software installation ? Do you know the authenticity of the site from where you downloaded that plugin ? Is the writer of that plugin keeping it up2date ? Are you using a dead opensource software/application/script/addon/plugin ? ........THINK AGAIN.
It is not too hard to monitor your opensource packages through logs. Below are some examples taken from compromised production servers. I have changed some information in the data for my own reasons.
An image on the site is replaced with an executeable script. And script is providing the shell access through web. This was identified by below suspecious line in log file
A bot is attempting random usernames and passwords on ssh port to get a lucky access. This is very common log entries.
An older version of Mambo is exploited, Log have below record. Copy that and decode it in URL Decoder which you can access in left menu and you will get a clear idea what is going on.
Awstats is exploited. Decode in url decoder to get an idea what is going on.
An opensource Help Desk is exploited. Yes decode to see what is going on.
Output of "pstree" and "ps -ax" include below line on a server having a zk rootkit installed.
ZK rootkit files installed on a compromized server
This article is exclusivly written for and by Openpages.info. It can be used freely on any other website with the refernce of openpages.info.