Monday, May 13, 2013

Phishing, Stolen Credentials and few points on Verizon DBIR 2013


In recent weeks, following Verizon’s Data Breach Investigations Report, I contemplated on some of the key points discussed in the report and the follow-up webinar:
  • Phishing is highly effective. 
  • Most attacks begin with stolen credentials, brute force.
  • 62% of the time it takes months to discover the breach
  • It can take days / weeks / months, to contain a breach even after it’s discovered!
  • Major problem: Most breach discoveries are made by external, unrelated parties.
  • Usually intelligent groups that monitor and track attackers and victims.
 

Phishing

The INEVITABILITY OF “THE CLICK” (p.38 DBIR 2013) provides the simple answer to the question: “how many e-mails would it take to get one click”. With 3 emails you will have a 50% chance for a click, 6 or more emails and you are getting closer to 100%. SCARY!
 
 
 
A recent interesting article by the Anti-Phishing Working Group (APWG) provides additional figures that explain how widespread Phishing was in 2012. In the 2nd half of 2012 there were 123,486 unique phishing attacks worldwide. This is almost 4 times more than the first half of 2012.  The attacks used 89,748 unique domain names. APWG identified 5,835 domain names believed to be registered maliciously by phishers, 79% of them in China.

In addition to the standard PC related Phishing attacks, mobile Phishing attacks are gaining momentum. The CTU research team reported a move of malware distribution for Android based devices, from the app marketplaces to Phishing campaigns instead. A recent investigation in to the Stels Android Trojan Malware distribution, used an IRS faked email spam campaign.  The URL in the email pointed to a compromised website. Once clicked, a fake Adobe Flash Player update is displayed. When the victim clicks the Update Flash Player link, their Android device downloads the Stels APK executable and prompts the victim to install the malware.
  
Phishing volume and costs: Yearly, about 36 Billion phishing emails are delivered to the end recipient with a tremendous cost to organizations and individuals.
 
 
 

Stolen Credentials

DBIR 2013 found that 76% of network intrusions exploited weak or stolen credentials, topping the hacking category list and were heavily used in espionage campaigns.  In respect to this method, a recent article about the use of “honeywords” deemed simple and useful.  Based on the "HoneywordsProject'' it suggests the use of additional honeywords (false passwords) associated with each user's account. An auxiliary server will distinguish the real password from the honeywords and will set off an alarm when a honeyword is used on a login attempt.  This technique is limited to Stolen files of password hashes and is not suitable to other types of password attack scenarios, such as:
  • Easily guessable passwords
  • Visible passwords
  • Same password for many systems or services
  • Passwords stolen from users
  • Password change compromised
 

Intelligent groups monitoring cyber-attacks

The fact the most data breach discoveries are by an external, unrelated (unpaid) parties is alarming. Combine that with the vast amount of time it takes to finally discover the breach, it might take months in more than 60% of breaches.  One of those cyber-attacks monitoring companies, Mandiant gained popularity in recent months, discovering several major hacks, among them is one of China’s Cyber Espionage Units. You can read more about Mandiant’s annual threat report for 2013 here M-Trends® 2013: Attack the Security Gap.
 
Lastly as a follow up to my previous post, Verizon’s DBIR 2013 found that 52% of breaches occurred by hacking, fairly close to Vercode’s report. 

Sunday, April 14, 2013

Key points and Thoughts on the State of Software Security Report (VERACODE April 2013 vol.5)



VERACODE released its annual State of Software Security Report last week and provided a 1 hour webinar discussing major points along with a 15 minutes Q&A session.  Here is a summary of some of the key points I found interesting in their report and my analysis and thoughts relevant to these disturbing facts in today’s security landscape.

45% of data lost breaches caused by Hacks

I will wait for the Verizon Data Breach Report 2013 to expand on that. The 2012 Verizon Data Breach report put this number on 81% (Hacking 81% of breaches, 99% of records , p.30).

Data Loss Breaches Categorized by Root Cause:


Data Loss Breaches Categorized by Root Cause (Source: DataLossDB)


87% of Web applications failed to comply with OWASP Top 10 upon initial application submission.

This is an indicator of a widespread failure to implement and test security mechanisms as part of the software development lifecycle. This is in-line with Veracode’s Security Quality Score Trend, which was flat for the past 3 years.  OWASP provides an excellent guide as part of OWASP’s Testing Project. The main suggestion is that “companies should inspect their overall SDLC to ensure that security is an integral part of the development process. SDLCs should include security tests to ensure security is adequately covered and controls are effective throughout the development process.”
As with any software development life cycle model, a defect whether security related or other, is much more expensive to fix in later stages.  In the context of a security defect, this can also translate to millions of dollars if the security defect leads to stolen records or a similar major exploit.


Vulnerability Distribution Trends: Java, .NET, PHP, ColdFusion – XSS still number one (for the past 3 years). 

Since Veracode scans the binary code it is not clear if XSS would still be the number one vulnerability when the webapp is protected by additional security mechanisms applied by the host, such as Cloud WAF and user’s browser default protections or add-ons (such as NoScript). Nevertheless, XSS still plays a major role in investigative data breaches.  
Another point to consider regarding this fact is why so many WebApps are still exposed to such a basic vulnerability year after year. Some of the explanations given in this report were:

  1. The fact that XSS is hardly used for profit-driven attack scenarios.
  2. An influx of web applications. New apps that have never been tested before for a security point of view.
  3. Expansion of web assessment focus.
  4. Frequent web application changes, causing a built-in influx of new vulnerabilities.

One key reason that might be overlooked is the performance tradeoff XSS filtering and encoding requires. Performance is an essential factor in assessing the usefulness of a client-side XSS filter.
On the other hand the low percentage (single digit) of SQL Injection exposure in Veracode’s binary scan doesn’t explain why SQL Injection is still a major role in today’s arsenal of attacks. This point is further emphasized in the Web Application Threat Landscape section of the report , as pointed out by the Web Hacking Incident Database: “10% of the incidents occurring in 2012 are categorized as SQL injection attacks, yet millions of records are leaked through SQL injection attacks during 2012”.

Vulnerability Distribution Trends for Java Applications (Share of Total Vulnerabilities Found):


Vulnerability Distribution Trends for Java Applications – VERACODE State of Software Security Report, Vol.5



Mobile Application Security - Cryptographic issues affect 58% of iOS applications and 64% of Androids’

Cryptographic issues and information leakage are in the Top 5 list of vulnerabilities as measured by percent of total vulnerabilities found in the report.  This is well explained in Dark Reading’s ‘Mobile's Cryptography Conundrums’. During RSA Conference 2012 a demo showed how mobile devices were radiating to the wireless network, cryptographic keys for sensitive applications even from supposedly protect apps used for payments. The researchers were able to extract keys in some cases from 10 feet away or more.

Vulnerability Distribution for Mobile Platforms (Share of Total Vulnerabilities Found)


Vulnerability Distribution for Mobile Platforms - VERACODE State of Software Security Vol.5

  
It will be interesting to compare and correlate some of these facts with the upcoming Verizon Data Breach Report for 2013.

Wednesday, March 27, 2013

Recent XSS, CSRF roundup

LinkedIn Patches XSS and CSRF Vulnerabilities 

"LinkedIn has patched a number of exploitable vulnerabilities that could have led to phishing attacks, malware infections and the loss of credentials for users of the social network for business professionals." 
http://threatpost.com/en_us/blogs/linkedin-patches-xss-and-csrf-vulnerabilities-032613
 

Reflected XSS in Atmail WebMail

A reflected XSS vulnerability was found in the view attachment message process of the Atmail WebMail.  Using the file name parameter an XSS exploit will allow the execution of arbitrary HTML/script code on the end user's browser.
http://seclists.org/fulldisclosure/2013/Mar/228

XSS Flaw in WordPress Plugin Allows Injection of Malicious Code 

"The researcher, Fernando A. Lagos Berardi, said in the advisory that an attacker could exploit the problem by injecting his own HTML or Javascript. Version 1.40 is the most recent version of the WP Banners Lite plugin listed on the developer's page on WordPress.org."
http://threatpost.com/en_us/blogs/xss-flaw-wordpress-plugin-allows-injection-malicious-code-032513

Researcher Helps Nokia Fix XSS, CSRF Vulnerabilities

"Pakistani security researcher Rafay Baloch has identified several security holes on various websites operated by Nokia. The company has addressed the vulnerabilities"
Researcher-Helps-Nokia-Fix-XSS-CSRF-Vulnerabilities



Sunday, March 24, 2013

An excellent Vulnerability Scanners Benchmark and comparison:

Web Application Scanner Benchmark

Recent update regarding ZAP, which extended the results using ZAP 2.0.0 (released in January 2013) against WAVSEP, as reported in the following link:

ZAP 2.0 - Testing Wavsep