ie8 fix
madison

Zero Day

Ryan Naraine, Emil Protalinski and Dancho Danchev

Source code for Skype eavesdropping trojan in the wild

By | August 28, 2009, 4:20am PDT

Summary: Earlier this week, Swiss programmer Ruben Unteregger who has been reportedly working for a Swiss company ERA IT Solutions responsible for coding government sponsored spyware, has released the source code of a trojan horse that injects code into the Skype process in order to convert the incoming and outgoing voice data into an encrypted MP3 [...]

Earlier this week, Swiss programmer Ruben Unteregger who has been reportedly working for a Swiss company ERA IT Solutions responsible for coding government sponsored spyware, has released the source code of a trojan horse that injects code into the Skype process in order to convert the incoming and outgoing voice data into an encrypted MP3 available at the disposal of the attacker.

Here’s how the trojan, currently detected as Trojan.Peskyspy, works:

“When the Trojan is executed, it injects a thread into the Skype process and hooks a number of API calls, allowing it to intercept all PCM audio data going between the Skype process and underlying audio devices. Note: Since the Trojan listens to the data coming to and from the audio devices, it gathers the audio independently of any application-specific protocols or encryption applied by Skype when it passes voice data at the network level.

Note: The incoming and outgoing audio data are stored in separate .mp3 files. The Trojan also opens a back door on the compromised computer, allowing an attacker to perform the following actions:
- Send the .mp3 to a predetermined location
- Download an updated version
- Delete the Trojan from the compromised computer”

Skype is often dubbed a “national security threat” by governments all across the globe due to their — at least publicly acknowledged — inability to crack the 256-bit encryption VoIP calls.

And while some of these governments are reportedly spending surreal amounts of tax payer’s money (Rental of the Skype-Capture-Unit per month and instance EUR 3.500) in order to achieve their objectives, others are taking the cost-effectiveness path by attacking the weakest link in the process - the end user infected with a targeted DIY government sponsored spyware recording all ongoing and incoming Skype calls, thereby bypassing the need to attack the encryption algorithm.

Kick off your day with ZDNet's daily e-mail newsletter. It's the freshest tech news and opinion, served hot. Get it.

Topics

Dancho Danchev is an independent security consultant and cyber threats analyst, with extensive experience in open source intelligence gathering, malware and cybercrime incident response.

Disclosure

Dancho Danchev

More details on Dancho Danchev's current and past professional affiliations, can be found in his LinkedIn profile.

Biography

Dancho Danchev

Dancho Danchev is an independent security consultant and cyber threats analyst, with extensive experience in open source intelligence gathering, and cybercrime incident response. He's been an active security blogger since 2007, and maintains a popular security blog sharing real-time threats intelligence data with the rest of the community on a daily basis. More details on Dancho Danchev's current and past professional affiliations, can be found in his LinkedIn profile. You can also follow him on Twitter

Related Discussions on TechRepublic

Did you know you can take part in these discussions with your ZDNet membership?
53
Comments

Join the conversation!

Just In

RE: Source code for Skype eavesdropping trojan in the wild
birumut Updated - 29th Apr 2011
Well done! Thank you very much for professional templates and community edition
seslisohbet seslichat
0 Votes
+ -
Social Engineering?
Albee_Freeoneday 28th Aug 2009
According the the Symantic press release
http://www.prwire.com.au/pr/14463/symantec-threat-bulletin-trojan-peskyspy-recording-skype-voip-conversation
"The Trojan is detected by Symantec as Trojan.Peskyspy and can be downloaded to a computer by way of tricking the user with an E-mail scam or other social engineering tactic.
...
The Trojan is targeting Windows API hooks, a technique used to alter the planned behavior of an application, that Microsoft has intended to be used by audio applications. The Trojan compromises the machine and then through the hooking technique is able to eavesdrop on a conversation before it even reaches Skype, or any other audio application."

So tell all windows users DO NOT OPEN unsolicited email. Beware of social engineering tactics, and before opening a file even from a friend, find out if they sent it to you on purpose.

Doing that the windows machines should be safe... for the time being.
0 Votes
+ -
Just one of the many reasons . . .
wgraue 28th Aug 2009
I dumped Windows in favor of Ubuntu.

I'm an old man. I started with Windows in the DOS era. I stayed with it through XP, and then it became apparent at least to me, that Windows is similar to a living entity.

This entity is created having defects, so remedies are immediately available, and throughout its whole unhealthy life, it needs more correction, protection, and labor just keeping up with its infinitesimal fragility.

Until "Microlost" develops a code which originated in current times, all windows is or can be, is a redux of the same much recycled, flawed, overrated and overused system, with which the hackers and crackers are eminently familiar.

What is the answer? I don't know, but I would think that Microsoft would have developed a solution before now.
0 Votes
+ -
" Just one of the many reasons..."
Kaptah 28th Aug 2009
I'm an old man too! I cut my teeth with machine language programming, built my first PC out of a kit (MITS Altair 8800)and then later on in 1976 a IMSAI 8080. I followed the trend with MSDOS systems and dabbled with Windows v1.1

I am currently running Windows Vista and probably will give Windows 7 a run for it's money. I too have tried UBUNTU and other Linux flavors but I can't say anything good about them.

It's like this:

Are you going to buy a Donkey and a cart in place of your import because the higher price of gasoline and sophistication of the onboard electronics?
0 Votes
+ -
dogma
Louis Ross Focke Updated - 28th Aug 2009
"Are you going to buy a Donkey and a cart in place of your import because the higher price of gasoline and sophistication of the onboard electronics?"
Really man, you have got to be kidding. I too am an old man but I still have the ability to change my stripes.
lrf
0 Votes
+ -
" dogma "
Kaptah 28th Aug 2009
So what are you saying? That Ubuntu and Linux is the cat's meow? I obviously have more than one system up and running, I have not sold my soul to Microsoft, but I do like the variety of software available. Be it PC gaming or CAD/CAM software, and everything in between.

So you have the ' ability to change your stripes' that's commendable, but I will not use a Donkey Cart if I can ride in a vehicle with the ammenities that make the ride more comfortable.

Before you start the virus/worm/trojan/malware discussion, it doesn't take a rocket scientist to dodge and avoid most infestations. In my years of experience with PC's, I can safely say that I can revert to DOS if I want to do things manually. I can bring on line a Linux system if I want to run a Windows Wannabee, or I can fire up the Apple iMac if I want to feel limited in software applications without having to run Windows applications in the end.

I too have the ability to change stripes, but in the end I have opted to utilize Windows. Perhaps this goes back to my programming days where I was limited to a very crude version of MS Basic used in the 8080 and 8800 CPU's.
0 Votes
+ -
whoa,
Louis Ross Focke Updated - 28th Aug 2009
First, let me say that I also dual boot my system. I have and do manage MS networks for people and am not dogging MS, I never said that.
But calling Linux a "donkey cart" is a bit ridiculous isn't it? If that is what you truly believe then why are you running it at all? As a file server don't you feel that it is a good system to say the least? What about scientific research, cloud computing, running massive data bases, just to name a few?

lrf
0 Votes
+ -
NO, I do not agree with you,...
theguru1995@... 28th Aug 2009
I think that Linux is a Unix wannabe and a windows wannabe, and a free solution wannabe...

That is the problem, too much focus on us vs them...just where does Linux as a technology fit? To me, in the lab, not in a mission critical situation, where other peoples interests are at risk, so yes I like Linux, for programming and stuff like that, then I port it to the Unix or windows, so what, its fun. For serious stuff, Solaris, AIX, HPUX, and so on...For just relaxing and not having to troubleshoot every little thing new that i install, and care free web browsing, chatting, games, whatever, I use Vista and now W7. I miss DOS!
0 Votes
+ -
Wow...
jasonp@... 28th Aug 2009
Linux is a Windows wannabee? Strange, but history of Linux would tend to make one think it's a Unix wannabee, not Windows. But then, they hide information like that in books...safe from intellectual types like yourself.
0 Votes
+ -
Interesting
tracy anne Updated - 29th Aug 2009
[quote from the bloke (theguru1995) that uses Linux for fun] so yes I like Linux, for programming and stuff like that, then I port it to the Unix or windows, so what, its fun. For serious stuff, Solaris, AIX, HPUX, and so on..


I wonder what he knows that Google doesn't.

The Macintosh and personal computers from Apple were her long before
Windows. Please learn your history or are you the type of person who
wishes to bury your head in the sand in avoidance of all relevant facts
recorded in the history of personal computing?.
0 Votes
+ -
" I can fire up the Apple iMac"
Kaptah 31st Aug 2009
Mixing Apples and Oranges aren't you?

" Macintosh and personal computers from Apple were her (sp)long before Windows. "

Windows is an OS. Macintosh and Apple Computers are just that, computers. Go ahead and now tell me in all of your infinite, superior wisdom that Apple Computers predated Microcomputers utilizing the 8 bit Intel 8008 CPU. Apple wasn't unique as several MOS6502 CPU's were used in very early microcomputers to include the KIM-1,SYM-1, and the Rockwell AIM65. The Intel 8008 and the MOS6502 were both 8 bit processors with the MOS LSI being the cheaper of the two.

Doesn't matter how you twist it punk, Apple has had a glorious and interesting production history, but it still doesn't have the same amount of propriatery software authored for it.

" in avoidance of all relevant facts " where did you learn to write anyways?

It wasn't until 1976 that Jobs and Wozniak put out the Apple 1. If you had noticed, my remark was pointedly at the lack of software for Apple computers compared to those of
0 Votes
+ -
Go OS X 10.6
Appreciate-Tech Updated - 29th Aug 2009
Mac's are not infallible,but a more reliable environment than windows of
any variation. Linux desktop is not ready for prime time yet! How much
older do you have to be to try OS X 10.6? Yes, I said try not buy, just
to edify your mind and inform your choices that is all! No obstacle to the
acquisition of knowledge, just go down to your local Apple Store
immediately and experience what a modern operating system should be!
0 Votes
+ -
No money
dleon63 29th Aug 2009
Can't afford a Mac. Try win7.
0 Votes
+ -
Don't bother
dleon63 29th Aug 2009
Don't bother putting a password on you log on to your Ubuntu.
0 Votes
+ -
Poor Hacker! judging from what i hear from cellphones in public transport, they will get terabytes of Mp3, but hardly a few bits of useful information. that also applies for the averadge phonecall i hear from my collegues in office, for that matter.
0 Votes
+ -
a few bits of information
Louis Ross Focke 28th Aug 2009
There are simple filter programs that can be used so that a person or organization can easily get those "few bits of useful information" and dump the rest. It is all that is needed for "evil doers" as the former President would say, to get what they want. Whether "they" are a government, terrorist, or any exploitive entity.
This is another example of losing the little privacy we still have left.

Louis Ross Focke
0 Votes
+ -
Yes, spies from both sides...
JCitizen 5th Sep 2009
have had such algorithms for years for eavesdropping on-air transmissions from all frequencies. Now it is just old science.
0 Votes
+ -
Good for him?
spstanley 28th Aug 2009
Should I release source code for a program that erases your hard drive? I'm not sure why this is a big deal. The nature of a Trojan horse is that the user runs the software on their machine. People should know not to run software they don't trust, but in this case it seems like people are being told not to take the source code, compile it, and run it unless they want to record their own Skype conversations.
Anybody who thought their phone calls of any type were private beyond being of no particular interest to anyone not offically on line, were deluding themselves anyway.
0 Votes
+ -
Thats for sure...
JCitizen Updated - 5th Sep 2009
Even when dedicated phone connections were run by mechanical devices, there were always black-box nuts breaking into the phone lines.

Now that phone communications are fully modern, preceding the internet, it is just like hacking a switch or a router.

Even easier to pwn a private PC.
It seems too simple, although the origination and destination points in encryption have usually turned out to be the weakest link, both hardware and software.

This code discovery could be a distraction to cover a much more complex end product, or even to draw attention to Skype while action against something far more serious is actually taking place.

0 Votes
+ -
Talk about the wrong way...
jasonp@... 28th Aug 2009
to go about exposing governmental privacy abuse. Dude, send the code to Skype CC'ing a few reputable journalists you have a reasonable belief won't turn around and release the code, sit back and enjoy the fireworks. Don't release the code in the wild. Some people just don't have the sense of a freakin' grape. The guy probably has an IQ through the roof, but there truly is no correlation between intelligence and common sense. This highlights the difference between ignorant and stupid. Hopefully in the Swiss legal system stupid isn't a valid defense.
0 Votes
+ -
and by releasing his version was already redundant.
0 Votes
+ -
Not Skype's only problem
Dorkyman 28th Aug 2009
In recent weeks there have been literally thousands of new entries on Skype-related boards, complaining of Spammers getting into user's contact lists. Skype's response? Nada. Nothing. Zero. Parents are complaining about children getting sex solicitations from strangers on Skype, even though they have expressly told Skype to not accept anything from anyone not on their contact list.

It's almost as if Skype is wishing suicide for itself. It's a shame, given that the Skype service has now evolved far enough that one can get excellent audio AND video two-way conversation under most circumstances.
Another moron that doesn't read the TOS.

3.2.1 Content of Communications:The content of the communication spread by the use of the Skype Software is entirely the responsibility of the person from whom such content originated. You understand, therefore, that by using the Skype Software and the Skype Services You may be exposed to content that is offensive, harmful to minors, indecent or otherwise objectionable, and that You use the Skype Software and the Skype Services at Your own risk.
0 Votes
+ -
A Deal with the Devil
rod.boggess@... 28th Aug 2009
Ouch, that's harsh! Talk about making a deal with the devil himself! Do you really have to dispose of the attacker to gain access to the MP3 file?
0 Votes
+ -
Darned if you do, darned if you don't
slylabs13 28th Aug 2009
YES I want the government to catch the next son-of-a-beatch who is planning to fly another plane into a highly populated civilian building, or worse who is planning do detonate a dirty nuke!

NO I do NOT want the Chinese government listening in on phone calls between our Churches and Missionaries abroad so they can arrest the pastors and their families and throw them into work camps!

Where do you draw the line? It's a line that cannot be drawn. Ponder that before anyone talks about whether this is a good thing or a bad thing.
0 Votes
+ -
Darned if
Louis Ross Focke 28th Aug 2009
Let's always remember what one of our founding fathers said about this thought.
Benjamin Franklin is quoted as saying:
"They who can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety."
We have to be very careful whether to give up liberties or not. Let's not be afraid to face conflict but rather stand to protect what liberties we have left. Let's not be ruled by fear.

LRF
0 Votes
+ -
I agree with you LRF....
theguru1995@... 28th Aug 2009
We have been guided by plays on hour own fears with real world dramas, perpertuated by hidden agendas, to consume the few remaining rigts as human beings, that we have.
0 Votes
+ -
Nice warm and fuzzy rhetoric.

The Jefferson Airplane had a cut on their 1969 Volunteer's Album Side #2 Track #3 "Eskimo Blue Day "

Key Lyric?

"Doesn't Mean Sh_t To A Tree"
0 Votes
+ -
Warm and Fuzzy
Louis Ross Focke 28th Aug 2009
Kaptah;

Might not mean anything to a tree but it does to me. Our personal freedoms have been stomped on the last few decades and I feel that it is past time to stand up and say something about it.
Thanks for pointing to the Airplane. I haven't heard that song since I heard them in England in 69.

LRF
0 Votes
+ -
In the end...
RS9 30th Aug 2009
You posted your own obit...
0 Votes
+ -
In the end...
Kaptah 31st Aug 2009
' and damn proud of it ( my obit )'

Too many bad dreams, too many faces, places, and the smell of war in an undeclared place and time from the past. The sights, sounds, dreams can only end, in the end.

" Doesn't mean Shi* To A Tree "

Warm and Fuzzy, yes it was, once.
0 Votes
+ -
All I know...
JCitizen Updated - 5th Sep 2009
is that without freedom; life ain't worth liv'in.

I don't mean suicide either, I'd rather suffer in the trenches and fox holes than put up with tyranny.

What the heck! I don't want to die in an old folks home anyway! Well worth the fight!
The failings of rhetoric/grammar in the initial posting make it unnecessarily difficult to understand.
0 Votes
+ -
nothing is secure. So much for privacy protection.
The best security is to be open...
Then everyone knows the information...

To lock it up & try to make something secure is impossible, as even mother nature reveals her secrets, if one looks harder enough & tries to understand her wonderous works.

So therefore 99% or 100% security is never going to happen.

The data only is worth something for the lifetime of the person(s) who made it, and then someone else superseeding that data, with something better.

Evolution happens code will always be broken & improved...

So don't believe the hype and scare stories as they only play on your fears.
0 Votes
+ -
Bypass the bypass...
redking44 28th Aug 2009
Next step is to develop an encoder/decoder with a digital USB interface so the "audio" that reaches Windows has already been encrypted

It appears that this Trojan horse doesn't currently affect the Mac environment. However, this code can easily be converted to Mac so we Mac people need to watch out also.
0 Votes
+ -
True..
JCitizen 5th Sep 2009
as both would require local access - social engineering could be successful on both platforms.
0 Votes
+ -
"If you don't want it known ... "
Tony R. Updated - 28th Aug 2009
"If you don't want it known, don't use the phone." (Attributed to the late J. Edgar Hoover, former director-for-life of the Federal Bureau of Investigation.)
0 Votes
+ -
pros and cons
bildr 28th Aug 2009
code release: great.
if the authorities have the tool, the public should too.
very similar to the barret arms .50 cal california issue in my opinion. in response to the usb digital key, negative. I would use an inline audio conversion box. This would allow it to be used on cellphones and landlines that support headsets as well. been thinking about making one for a long time. this may be the inspiration.
"State Kontrol Rock and Roll,
paranoia deep destroyah'..."

ha ha hee hee.
love this high-tech eavesdrop planet.
0 Votes
+ -
Eavesdropping on what?
rrascal 29th Aug 2009
If you don't blog your whole life's details...
If you don't tweet your daily activities...
If you don't post your latest pics...
If you don't jump at the chance of putting everything down in an email...
If by chance you decide to keep a minute ounce of privacy...
then I will tap into your phone calls and find out what you are saying about me.
Are you sure this is a virus? Sounds like a government program.
0 Votes
+ -
this is all irrelavant old hat
On Site PC 29th Aug 2009
you guys never heard of "echelon" its been eavesdropping on all your com's and filtering for desired key words for many years - just google it
they even manufacture their own chips - don't trust the ones you and i use, they will likely intercept this.
0 Votes
+ -
Should we stop using Skype?
JimmyCapa 30th Aug 2009
So what does this mean for we users? Should we stop using
Skype? Any opinions on this?
0 Votes
+ -
No...
JCitizen 5th Sep 2009
and really, why should we? The Taliban in Afghanistan, have found a successful work-a-round, why can't we?
So what does this mean for we users? Should we stop using
Skype? Any opinions on this?
0 Votes
+ -
No way...
JCitizen Updated - 5th Sep 2009
Every since I accidentally eavesdropped on a lover's conversation back in the seventies, I've realized you shouldn't say anything over the air, or wire, that you shouldn't release to the public.

For a very short period I used to be able to black box the phone company by using tone generators, and accidentally intercepted a private conversation, and then couldn't get it to disconnect. I just had to hangup and let them finish so I could use the phone again.

This was back in the analog and mechanical switch days. Probably even easier, now that everything is IP or digital based. Of course decryption is not what I'm talking about.

Man-in-the-middle attack comes closer to mind.
0 Votes
+ -
Use Skype on other platforms...
kenmo 31st Aug 2009
...say, on an iPhone? Pretty trojan free for now at least.
0 Votes
+ -
Well done! Thank you very much for professional templates and community edition
seslisohbet seslichat

Join the conversation!

Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]
ie8 fix
Click Here
ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

White Papers, Webcasts, & Resources
ie8 fix
ie8 fix