June 2010 - Posts

Study of clickjacking vulerabilities on popular sites

Share |

Published: 2010-06-27,
Last Updated: 2010-06-27 19:47:38 UTC
by Manuel Humberto Santander Pelaez (Version: 1)

1 comment(s)

If you are looking for some activity on this sunday afternoon (2:37 PM GMT-5 here in Medellín, Colombia), I strongly suggest you to review the excellent paper published by Gustav Rydstedt, Elie Bursztein, Dan Boneh from Stanford University about clickjacking attacks and how to put in place proper defense against them.

Download the paper here: http://seclab.stanford.edu/websec/framebusting/framebust.pdf

-- Manuel Humberto Santander Peláez | http://twitter.com/manuelsantander | http://manuel.santander.name | msantand at isc dot sans dot org

Keywords: clickjacking frame busting iframe

1 comment(s)

iPhone Launch Triggers Nefarious Activity

Posted: 24 Jun 2010 10:53 AM

With the official launch of Apple's iPhone 4 today people are queing outside stores to get hold of the latest smart phone.

Spammers do not miss an opportunity to jump on the hype around new product launches - especially in the case of the iPhone 4 when all 600,000 pre-orders have been allocated prior to the official launch date.  Our ThreatSeeker Network has identified iPhone 4 themed spam and Facebook wall posts. Should the users be tempted by the offer of a free iPhone 4, they are presented with affiliate campaigns to harvest email addresses to push further products on the user.

We were seeing Facebook posts that entice users with the possibility of receiving a free iPhone 4 as shown below.

Facebook post:

Upon clicking on the url within the Facebook post, the user then progresses through a series of data collection systems (requests for email address and full postal address) enticing users with offers of a free iPhone 4.

Within our Hosted Email Security service we are also seeing spam campaigns jumping on the iPhone 4 theme.  The example below, of which we have seen over 300,000 instances, leads to a Russian domain pushing a pharmacy website.

A second example offering a free iPhone.

More information on the queues outside stores here.

Jun23
4:03 am (UTC-7)   |   by Jonathan Leopando (Technical Communications)

Chinese PC manufacturer Lenovo is the latest high-profile company to be compromised. Sometime over the past weekend, its support pages, which allowed users to download drivers and manuals, were compromised with the addition of a malicious iframe.

The website in this malicious iframe led to the download of a BREDOLAB variant detected as TROJ_BREDOLAB.BY. This malware family is well-known for being a downloader of other malware onto affected systems, particularly ZBOT and FAKEAV variants.

BREDOLAB first gained prominence in late 2009 when the number of reported infections significantly grew. Upon investigation by senior advanced threats researcher David Sancho, it was found that BREDOLAB was a new malware family similar to earlier PUSHDO variants.

Later investigations by senior advanced threats researcher Loucif Kharouni established the key role BREDOLAB plays in the criminal underworld. As mentioned earlier, cybercriminals running pay-per-install (PPI) scams frequently use BREDOLAB to infect user systems.

Click

Lenovo has acknowledged the incident on its official forum and has indicated that the affected pages have now been cleaned. Reports from Vietnamese antivirus vendor Bkis indicated that the pages have been infected since at least Sunday afternoon. Some users also reported getting antivirus warnings while visiting Lenovo’s download website since Saturday.

Users who did go to the Lenovo pages to download support materials from late on June 18 (Friday) to June 21 (Monday) may have been affected by this compromise and should check their systems accordingly.

After a look at the forums, it seems that Symantec’s virus definitions dated June 21, 2010 r2 have identified various components of the awesome SCCM Right Click Tools (which i personally couldn’t survive without) as “Trojan.Gen

Since this is a generic detection name “for many individual but varied Trojans for which specific definitions have not been created. A generic detection is used because it protects against many Trojans that share similar characteristics” this has to be a false positive.  This is just another example of how definition based anti-virus tools are a out dated concept.

Hopefully this grievous error has been rectified in the latest definitions.

Websense® Security Labs™ ThreatSeeker™ Network has detected an interesting correlation between recent rounds of malicious emails and the JavaScript files being used in mass injections.  First, let's think about recent malicious email campaigns.  If you review our recent blog posts about fake virus alerts and world cup-related malicious spam, you will see that the common theme in the two campaigns is that they contain heavily obfuscated scripts in the HTML attachments.  In fact, we've seen from our bot lab that Zeus variants seem to be responsible for these messages, as well as a number of other messages with different subjects and themes that have malicious HTML attachments.  The script from one of the email variants seemed oddly familiar.

 

Screenshot of one of the attached malicious HTML files:

 

Our ThreatSeeker™ Network puts us in the unique position of being able to scan emails and malicious Web sites to gain insights like these.  Follow up on another reported mass injection campaign revealed a similarity that shouldn't be ignored between the injected .js files on compromised sites and the email attachments.

 

Screenshot of a malicious JavaScript file used in the injection attacks:

 

In fact, after deobfuscating these by hand, we found that the two files use the same algorithm to deobfuscate their hidden contents.  These files fragment an obfuscated script amongst a number of variables in the file and concatenate them to get one long, obfuscated string.  This string then goes through a series of .replace functions to turn it into an escaped string.  Once the string is unescaped, the resulting character codes are obtained and used in an XOR operation.  The resulting string of numbers from this XOR are then decoded as character codes to obtain the final, clear HTML attack code.

 

Step 1:  Concatenate several variables to obtain one long, obfuscated string.

 

 

Step 2:  Decipher the above string with a number of .replace actions to get an escaped string.

 

 

Step 3:  Escape the above string to get a listing of seemingly random characters.

 

Step 4:  Obtain the character codes for each character in the above string.

 

Step5:  XOR the above character codes to get another string of character codes.

 

The final step is obtaining the characters that the above codes represent.  Below are the screen shots of the final and clear script code generated from deobufuscating the email attachment and the .js files which are inserted into compromised hosts.

 

Screenshot of the deobfuscated email attachments:

 

 

Screenshot of the deobfuscated JavaScript attack file:

 

Now, if we follow the HTTP transactions from visiting one of the injected sites, we really begin to see that these appear to be structured as the same attack, possibly coming from the same group.  Following one example, we can see that after the browser does a GET for the injected Java Script file, there are two more GETs for redirection proxies, until finally we land on the attack site at /index.php?pid=7.  From there, we have two other GET requests for /Applet7.html and /Notes7.pdf.  If you review the video we posted from the malicious virus alert emails, you will find that the flow for that attack was the same, except for the redirection proxies.

 

Screenshot of the HTTP flow after visiting an injected site:

 

Websense Messaging and Websense Web Security customers are protected against these attacks.

It's Signed, therefore it's Clean, right? Posted by Mikko @ 11:08 GMT | Comments

Jarno Niemelä from our lab did a study on malicious Windows binaries that have been signed (with Microsoft Authenticode).

Turns out, we have copies of tens of thousands of malware samples that have been signed.

Malware authors are attempting to use code signing techniques to their advantage.

signed

Details of this surprising find are presented in Jarno's presentation file, which can be downloaded from here (PDF). It was first presented in the CARO 2010 Technical Workshop in May 2010.

Jun21
3:57 am (UTC-7)   |   by Gedrick Lacson (Anti-spam Research Engineer)

Due to their ever-growing popularity, social networks have been a continuous target of cybercriminals to proliferate their malicious schemes. TrendLabsSM received samples of another Facebook spam, this time also taking advantage of the popular micro-blogging site, Twitter.

Click Click

The mail, which poses as a Facebook notification message, uses adult-themed strings to lure users into opening the attachment. The .ZIP file attachment, Twitter.zip, contains the file twitter.html, which has an embedded malicious script that Trend Micro detects as JS_REDIR.AE.

Social networks are still on the verge of reaching their peak, as an increasing number of users spend more time on managing their accounts. According to the latest findings by Nielsen, social networking and blogging account for one in every four-and-a-half minutes people spend online.

With Facebook still remaining as one of the world’s most popular social media sites and Twitter not far behind, cybercriminals will most likely use these sites more and more to propagate malicious codes.

In fact, Twitter itself is also becoming a means of spreading spam. As discussed by Trend Micro researcher Rik Ferguson, malicious Tweets now lead to malicious .PDF and .EXE files detected as TROJ_PIDIEF.JCS and TROJ_SMALL.LEC, respectively.

Fortunately for Trend Micro product users, Smart Protection Network blocks the malicious files from running on user systems.

Additional text by Carolyn Guevarra and Jonathan Leopando

Jun18
5:15 am (UTC-7)   |   by Joey Costoya (Advanced Threats Researcher)

Mega-D is one of the most prolific spam botnets accounting for around 7 percent of the spam traffic worldwide. It once accounted for as much as 50 percent of the world’s spam volume but has quieted down since the high-profile takedown of the McColo hosting service, and the 2009 takedown of its command-and-control (C&C) servers.

Mega-D is still alive though not as prolific as it once was. We let loose a Mega-D spam bot sample in our malware lab to see how many spammed messages one spam bot can generate in a day.

Click for larger view

As shown in the chart above, the single spam bot was able to generate around 2,553,940 spammed messages in a span of 24 hours, an average of 1,764 spammed messages per minute.

Based on FireEye’s 2009 estimate, the Mega-D spam bot’s population reached 264,784, amounting to an overall spam volume of 676,242,448,960 messages. That is a lot of spam!

The following is a spam sample generated by the Mega-D spam bot.

Click for larger view

The link in the said spammed message will direct a user to a fake pharma site, the now all-too-familiar Web page of “Canadian Pharmacy” shown below.

Click for larger view

The “Canadian Pharmacy” sites peddled by Mega-D bots are all hosted in .RU ccTLD (country code Top Level Domain). As of this writing, these .RU domains resolve to an IP space somewhere in China.

Note that the spam traffic graph was generated via Mailgraph. Rest assured that no spammed messages escaped our malware lab. The outgoing mail traffic shown in the Mailgraph chart were all directed to one of our spam-processing systems.

XSS Posted by Mikko @ 07:17 GMT | Comments

When a company is hit with a cross-site scripting (XSS) attack, the natural reaction is to downplay the significance of the incident.

After all, an XSS vulnerability on a site does not mean that the site could be hacked or shut down. A typical XSS demonstration showing a funny dialog box on somebody else's site just emphasizes how harmless such an attack looks.

However, XSS is not harmless. We were just hit by one last night. And we do not want to downplay it.

The vulnerability on f-secure.com was found by security researcher Xylitol. He reported it yesterday evening. Xylitol is well-known for finding XSS vulnerabilities on sites such as army.mil, ibm.com and nasa.gov.

The problem was on a download page for our Mobile Anti-Theft product (anti-theft-download-wizard.html). With some clever tinkering, it was possible to create a web link that would point to our site, but when clicked, it would execute JavaScript controlled by the attacker.

xss
Above: result of accessing www.f-secure.com/en_EMEA/products/mobile/anti-theft-download/anti-theft-download-wizard.html?hidManufacturer=%27%22%3E%3C/title%3E%3Cscript%3Ealert%28/Mikko%20rulz/%29%3C/script%3E before the page was fixed. Screenshot from xssed.net.

We almost got it right. In fact, the script on our page does successfully filter out control characters and other dangerous content. Unfortunately, almost doesn't count. We do the filtering right once, and wrong once.

Apparently we added a feature to the page as an afterthought, and that feature did not go through code review or testing.

xss

The problem has been fixed now. It was limited to our static Mobile Anti-Theft pages, and did not give access to any of our systems. This problem has not been used to do any harmful activities.

In any case, we were burned.

So, what could have been done with this vulnerability? Well, for example, somebody could have sent out a spam campaign, claiming to be from F-Secure, pointing to a link apparently at www.f-secure.com. And when that link would have been clicked, it would have downloaded malware (from some other site) to the user's computer. XSS vulnerabilities can be used to create serious problems. Luckily, in this case nothing bad happened.

Here's the time line of the incident:

  •  Xylitol published an article on the problem at early evening on 17th June
  •  We noticed the article at 20.51 EEST 17th June
  •  We started fixing the problem at 02.15 EEST 18th June
  •  We shut down the Mobile Anti-Theft page temporary for fixing and isolating problem at 02.45 EEST 18th June
  •  Page was republished at 06.05 EEST 18th June

Use of legitimate sites in malicious web attacks

MarissaVicario

June 17th, 2010

Tags: Hosted Mail Security, Security, MessageLabs Intelligence

Posted on behalf of Dan Bleaken, Senior Malware Data Analyst, Symantec Hosted Services

The MessageLabs Hosted Web Security Service (WSS) blocks millions of web requests every day to protect users from content that is either malicious or has been determined to be off limits based on company policy.  In a typical week in 2010 Symantec Hosted Services performs about 107 million blocks (up from 90 million per week in 2009), on 5-10 million distinct URLs, for several thousand clients.  That’s tens of thousands of blocks per client per week on average.  

Of these blocked URLs, 99.96% are policy based blocks the biggest proportion of which is for advertising, mostly pop-up ads or auto-forwarding to ads.  Also, Symantec Hosted Services blocks web sites related to Adult/Sexually Explicit material, Violence, Tasteless & Offensive material, Weapons, Criminal Activity, Gambling and Illegal Drugs to name a few.  Clients have full control over what sites are off limits based on company policy. For example, a company whose business is betting/gambling would allow staff to view gambling sites as part of their job.

The remaining 0.04% of blocks is malicious. While this number may seem small, it could realistically translate to many tens of thousands of blocks in a week.  The malicious blocks are tiny in proportion to all blocks but very important as they are of great risk to the client.  Malicious web sites are not a matter of policy and they do not fall under any particular category.  In theory almost any web site is capable of hosting malware or forwarding to a site that does.  Sites can be set up and hosted by criminals, or legitimate websites can be compromised.  One malicious website, visited by one unsuspecting user, may be all that is required to breach the defences of a business, and cause disruption, loss or damage to reputation.  For example, sensitive systems could be accessed, malware could spread within the company networks, or valuable information could be stolen.

Malicious blocks can be classified as spyware or virus. Of all malicious blocks the split is 4% spyware, 96% virus.  URLs that are blocked as spyware could be pop-up ads, attempts to track browsing behaviour or attempts to change the way a browser operates.  URLs can be blocked as a virus for many different reasons.  The ultimate danger is always the same, either to get some malware onto the target computer or to obtain personal details.

There used to be a time when one had to actually do something slightly silly to become infected whilst browsing the internet.  And computer users were much more likely to be infected browsing sites in the ‘shadier’ corners of the internet, for example sites containing adult/sexual content.  The well behaved and educated surfer was pretty safe.  Today, this is no longer the case.

Internet users are in more danger than ever.  Being careful or aware no longer guarantees your safety.  One of the biggest dangers is the drive-by download – no action required! 

Drive by downloads stealthily look for vulnerabilities in the browser, browser plug-ins or other software on a machine.  They then use these weaknesses to download malware onto your PC.  Often the user will be completely unaware that this has happened.  Keeping your browser, plug-ins, and other software up to date greatly reduces the chances of a drive by attack.
In the last two to three years, worryingly, attackers are increasingly shifting from creating new malicious websites and serving malware on them, to compromising legitimate sites.  In 2009, MessageLabs Intelligence estimated that 80% of malicious web attacks take place via legitimate, compromised sites -- sites the average user visits all the time.  This is a survival tactic: we later demonstrated that the threat is more prolonged on legitimate sites, and the attackers are very likely to be aware of this fact (http://www.messagelabs.co.uk/mlireport/MLI_2009.09_Sept_SHSFINAL_EN.pdf, and http://www.messagelabs.co.uk/mlireport/2009MLIAnnualReport_Final_PrintResolution.pdf).  In 2010 so far, using the same approach, the proportion of malicious domains that are legitimate has increased dramatically compared to last year – it’s now about 90%.

Here is a typical example of how legitimate sites can be used in a malicious web attack.

Imagine a user searches for a topic of interest, e.g. oil spill

The user is taken to an apparent You Tube webpage.  Actually, it’s a fake You Tube page, located on a legitimate compromised website (a business that sells paper shredders).  The user clicks to play the video.

No video plays.  Instead, a window pops up asking the user to ‘install media codec’.

If the user clicks ‘OK’, an executable file is downloaded from yet another legitimate, compromised website (a company selling eco-friendly money saving products).  The file downloaded is called setup_2033.exe.  So far two different compromised legitimate websites have been used in this single attack.

If the user clicks ‘OK’, an executable file is downloaded from yet another legitimate, compromised website (a company selling eco-friendly money saving products).  The file downloaded is called setup_2033.exe.  So far two different compromised legitimate websites have been used in this single attack.

Once setup_2033.exe is downloaded, a window pops up prompting the user to run the executable.  Still believing that setup_2033.exe is an updated media codec, the user clicks ‘Run’.

The executable runs, and connects to a botnet, from which it takes instructions on what to do next.  Another window pops up ‘Attention!  21 infected file detected!’.  This is a rogue AV attack (often also referred to as ‘Fake AV’ or ‘Scareware’).  These attacks are normally designed to simply generate money for the attackers, although sometimes they lock the victims PC and hold them to ransom, or infect the user in some other way as well.

It informs the recipient that their PC is infected (it’s a completely made up message and bears no relation to the state of the victim’s PC).  Upon clicking on this Window e.g. ‘Remove All’ button, the user is taken to a payment page.  The victim believes they are paying to have their PC protected; in actual fact they are paying for absolutely nothing.  The Rogue AV alerts may go away once the victim pays, but some remnant may remain on the PC meaning that pop-ups return at a later date, or the PC is later used for some other nefarious activity.

This is a classic example of multiple legitimate sites being unwitting parts of a malicious attack.  In this case attackers used these sites to store executable files under various directories, either created when they compromised the site or already used by the site for some other purpose.

Legitimate sites affected in this way may be blissfully unaware for days, even weeks that harmful malware is being download from their site.  The attackers could place files on these sites by obtaining the login details of the administrator, either because the password is weak, or by some other method e.g. a phishing attack.

All Your Farm Are Belong To Us
Posted by Sean @ 16:02 GMT | Comments


Zynga's FarmVille is a popular social networking game and perhaps it should come as little surprise that many players want to learn FarmVille secrets and cheats. And so they turn to search engines to find them.
Currently, "farmville cheats" is a highly ranked suggestion:
FarmVille suggestions
Sad but true.
Anyway, we searched for farmville cheats and readily discovered farmville-secrets.spruz.com:
FarmVille secrets cheats
Spruz.com has removed the page for violating their terms of use policy, so it's no longer hosted, but beware of Google's cache.
Here's what the site looked like:
Click Here
The "Click Here" button opens a download dialog for a file called FarmVille_autobot.exe.
An autobot sounds like a convenient way to cheat, right? Only in this case the cheater will get more than they asked for because the file includes a variant of TDSS, an advanced backdoor rootkit. Best kept secrets indeed!
The MD5 of the file we analyzed (thanks JoJo) is 9c7812efa218ab3750e570a93015e884 and is detected as Trojan:W32/TDSS.FZ.

Internet Fraud Alert Kicks Off Today

Share |

Published: 2010-06-17,
Last Updated: 2010-06-17 16:27:53 UTC
by Deborah Hale (Version: 1)

0 comment(s)

Microsoft and the National Cyber-Forensics and Training Alliance (NCFTA), with the support of
Accuity, the American Bankers Association, Anti-Phishing Working Group, Citizens Bank, eBay Inc.,
Federal Trade Commission, National Consumers League and PayPal are introducing a new program to
help identify potential fraudulent financial activity due to online fraud and to notify the
institutions involved that their customers personal identity may be at risk of abuse.  This
program:

"Will offer a trusted and effective mechanism for participating researchers to report stolen
credentials discovered online - "

The prgram was unveiled today and will go into effect immediately.  For more information see:

http://www.microsoft.com/Presspass/press/2010/jun10/06-17FraudAlertPR.mspx

http://ifraudalert.org/

Deb Hale Long Lines, LLC

Keywords: Internet Fraud

********************************************************************

Title: Microsoft Security Bulletin Minor Revisions

Issued: June 16, 2010

********************************************************************

Summary

=======

The following bulletins have undergone a minor revision increment.

Please see the appropriate bulletin for more details.

* MS10-041 - Important

* MS10-036 - Important

* MS10-035 - Critical

* MS10-033 - Critical

* MS10-016 - Important

Bulletin Information:

=====================

* MS10-041 - Important

- http://www.microsoft.com/technet/security/bulletin/ms10-041.mspx

- Reason for Revision: V1.1 (June 16, 2010): Corrected the registry key verification for Microsoft .NET Framework 2.0 Service Pack 2.

- Originally posted: June 8, 2010

- Updated: June 16, 2010

- Bulletin Severity Rating: Important

- Version: 1.1

* MS10-036 - Important

- http://www.microsoft.com/technet/security/bulletin/ms10-036.mspx

- Reason for Revision: V1.1 (June 16, 2010): Corrected the update file name for Microsoft Office Word 2007 in the Security Update Deployment section. Also added an entry to the update

FAQ to explain why the update may be offered even when none of the affected software is present on the system.

- Originally posted: June 8, 2010

- Updated: June 16, 2010

- Bulletin Severity Rating: Important

- Version: 1.1

* MS10-035 - Critical

- http://www.microsoft.com/technet/security/bulletin/ms10-035.mspx

- Reason for Revision: V1.1 (June 16, 2010): Corrected the Disable the IEDTExplorer Component workaround for CVE-2010-1261.

- Originally posted: June 8, 2010

- Updated: June 16, 2010

- Bulletin Severity Rating: Critical

- Version: 1.1

* MS10-033 - Critical

- http://www.microsoft.com/technet/security/bulletin/ms10-033.mspx

- Reason for Revision: V1.2 (June 16, 2010): Added known issues notation in the Executive Summary and corrected the Disable decoding of MJPEG content in Quartz.dll workaround for CVE-2010-1880.

- Originally posted: June 8, 2010

- Updated: June 16, 2010

- Bulletin Severity Rating: Critical

- Version: 1.2

* MS10-016 - Important

- http://www.microsoft.com/technet/security/bulletin/ms10-016.mspx

- Reason for Revision: V2.1 (June 16, 2010): Corrected installation switches and removal information for Movie Maker 2.6 on Windows Vista and Windows 7.

- Originally posted: March 9, 2010

- Updated: June 16, 2010

- Bulletin Severity Rating: Important

- Version: 2.1

Adobe Flash Player 10.1 - Security Update Available

Share |

Published: 2010-06-16,
Last Updated: 2010-06-16 13:16:11 UTC
by Kevin Shortt (Version: 1)

0 comment(s)

Please patch those flash players as soon as possible.
Last week Handler Deb Hale posted a diary speaking to some Adobe proof of concept malware in the wild. 
http://isc.sans.edu/diary.html?storyid=8932

Here is the summary from the Adobe Security Bulletin.
http://www.adobe.com/support/security/bulletins/apsb10-14.html

Critical vulnerabilities have been identified in Adobe Flash Player
version 10.0.45.2 and earlier. These vulnerabilities could cause the
application to crash and could potentially allow an attacker to take
control of the affected system.

Adobe recommends users of Adobe Flash Player 10.0.45.2 and earlier
versions update to Adobe Flash Player 10.1.53.64. Adobe recommends users
of Adobe AIR 1.5.3.9130 and earlier versions update to Adobe AIR
2.0.2.12610.

Flash Player 10.1 - Release Notes
http://kb2.adobe.com/cps/838/cpsid_83808.html

US-CERT Technical Cyber Security Alert
http://www.us-cert.gov/cas/techalerts/TA10-159A.html

Thanks goes to Joe D. for supporting the Internet Storm Center and giving us a heads up on this security update.

Kevin Shortt
ISC Handler on Duty

UPDATE: Joe D. followed up with the following note:

"On the Adobe website, it is just identified as version 10.1; once installed, it is identified as version 10.1.53.64."

Keywords: Adobe Flash Player

Microsoft Windows Help and Support Center vulnerability (CVE 2010-1885) exploit in the wild

Share |

Published: 2010-06-15,
Last Updated: 2010-06-15 19:45:01 UTC
by Manuel Humberto Santander Pelaez (Version: 1)

0 comment(s)

Reader Jack showed us notifications that the vulnerability for Microsoft Windows Help and Support Center is being exploited in the wild. More information for this vulnerability at http://www.microsoft.com/technet/security/advisory/2219475.mspx.

To fix this problem, please visit http://support.microsoft.com/kb/2219475 and look for the "Enable this fix" image. It will download a MSI that unregisters the HCP protocol as a workaround, because there is currently no patch available.

-- Manuel Humberto Santander Peláez  |  http://twitter.com/manuelsantander  |  http://manuel.santander.name | msantand at isc dot sans dot org  

More Posts Next page »