Archive for OSX

Simple OSX Malware Continued!

// February 1st, 2012 // No Comments » // Bash, C, OSX, PHP

So to go slightly deeper into OSX malware, let’s see if we can compile a custom binary and drop it into a pre-existing package…

I’m going to be compiling a simple IRC bot, you’ll see the random nick generation etc has been omitted however this could easily be modified in a real world scenario to perform pretty much anything you’d like it to. At the moment it will allow you to log in and op yourself on a channel.

Code below.

(more…)

Simple OSX Malware!

// February 1st, 2012 // No Comments » // Bash, OSX, Security

Being an avid (sp?) OSX user I often wonder about malware on this platform, I must admit I’ve never given it much thought and as far as I’m aware (fingers crossed) I’ve never been affected by malware of any sort on my trusty MacBook.

First things first this got me to thinking, if I had some form of malware for OSX what would be the best way to distribute it? There are many options which immediately spring to mind however one stands proud. Backdooring some legitimate software package so the malware will run invisible to the end user. This should be even easier as most people (myself included) don’t bother running any AV solutions on their OSX installs.

Let’s take a look at an easy way to include some evil code inside some innocent looking package.

(more…)