Threat Intelligence
6/13/2017
06:15 PM
Connect Directly
Twitter
LinkedIn
Google+
RSS
E-Mail
50%
50%

How Bad Data Alters Machine Learning Results

Machine learning models tested on single sources of data can prove inaccurate when presented with new sources of information.

The effectiveness of machine learning models may vary between the test phase and their use "in the wild" on actual consumer data.

Many research papers claim high rates of malware detection and false positives with machine learning, and often deep learning, models. However, nearly all of these rates are within the context of a single source of data, which authors use to train and test their models.

Machine learning has become more advanced but isn't used enough yet in security, says Hillary Sanders, data scientist for Sophos' data science research group. She anticipates usage will increase in coming years to address the rise of different forms of malware.

Historically, Sanders explains, static signatures have been used to detect malware. This method doesn't scale well because software needs to be updated with new signatures as more malware is created. Machine learning and deep learning automatically generate more flexible patterns, which could better detect malicious content compared with stricter static signatures.

"This enables us to move away from signature detection and more toward deep learning detection, which doesn't really require signatures and is going to be better at detecting malware that has never been seen before," she says.

The challenge is in creating a deep learning model to detect forms of malware that don't yet exist. Sanders explains the problem of using current data to test these models, which would ideally be used to detect future malware strains in different clients and environments.

"We can't be sure the data we trained on is going to be super similar to the data in organization deployment," she explains. "If we're training on data that isn't like the data we want to eventually test on, our model might fail catastrophically."

In current machine learning research, accuracy estimates don't consider how systems will process future data. Sanders says modern publications lack time-decay analysis and sensitivity analysis, which could lead to a lack of trust among those who rely on this information.

"If researchers forget to focus on sensitivity testing and time decay, our models are liable to fail catastrophically in the wild," she explains.

Time-decay analysis simulates how the accuracy of data decreases over time, she explains. Consider a dataset with information from January through April. If a machine learning model is trained on data before February 1, it will do well on processing data from January, but accuracy will begin to decay after February.

Sensitivity analysis tweaks inputs for machine learning models to see how output is affected. Sanders will present sensitivity results in her presentation titled "Garbage In Garbage Out: How Purportedly Great Machine Learning Models Can Be Screwed Up By Bad Data" at this year's Black Hat USA conference in Las Vegas.

This analysis will include a deep learning model designed to detect malicious URLs, which was trained and tested using three sources of URL data. As part of her discussion, she'll dive into what caused the results by focusing on how the data sources are different, and higher-level feature activations the neural net identified in some datasets but not in others.

For security teams, the end goal with deep learning is to stop malware. If training and testing data is biased compared with real-world data, models are likely to miss out.

"You ignore the thing you could be optimizing for," says Sanders. "You could miss swaths of malware."

Black Hat USA returns to the fabulous Mandalay Bay in Las Vegas, Nevada, July 22-27, 2017. Click for information on the conference schedule and to register.

 

Related Content:

Kelly Sheridan is Associate Editor at Dark Reading. She started her career in business tech journalism at Insurance & Technology and most recently reported for InformationWeek, where she covered Microsoft and business IT. Sheridan earned her BA at Villanova University. View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Register for Dark Reading Newsletters
Dark Reading Live EVENTS
INsecurity - For the Defenders of Enterprise Security
A Dark Reading Conference
While red team conferences focus primarily on new vulnerabilities and security researchers, INsecurity puts security execution, protection, and operations center stage. The primary speakers will be CISOs and leaders in security defense; the blue team will be the focus.
White Papers
Video
Cartoon Contest
Write a Caption, Win a Starbucks Card! Click Here
Latest Comment: Tell the sysadmin that we have a situation.
Current Issue
Security Vulnerabilities: The Next Wave
Just when you thought it was safe, researchers have unveiled a new round of IT security flaws. Is your enterprise ready?
Flash Poll
[Strategic Security Report] Assessing Cybersecurity Risk
[Strategic Security Report] Assessing Cybersecurity Risk
As cyber attackers become more sophisticated and enterprise defenses become more complex, many enterprises are faced with a complicated question: what is the risk of an IT security breach? This report delivers insight on how today's enterprises evaluate the risks they face. This report also offers a look at security professionals' concerns about a wide variety of threats, including cloud security, mobile security, and the Internet of Things.
Slideshows
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2017-0290
Published: 2017-05-09
NScript in mpengine in Microsoft Malware Protection Engine with Engine Version before 1.1.13704.0, as used in Windows Defender and other products, allows remote attackers to execute arbitrary code or cause a denial of service (type confusion and application crash) via crafted JavaScript code within ...

CVE-2016-10369
Published: 2017-05-08
unixsocket.c in lxterminal through 0.3.0 insecurely uses /tmp for a socket file, allowing a local user to cause a denial of service (preventing terminal launch), or possibly have other impact (bypassing terminal access control).

CVE-2016-8202
Published: 2017-05-08
A privilege escalation vulnerability in Brocade Fibre Channel SAN products running Brocade Fabric OS (FOS) releases earlier than v7.4.1d and v8.0.1b could allow an authenticated attacker to elevate the privileges of user accounts accessing the system via command line interface. With affected version...

CVE-2016-8209
Published: 2017-05-08
Improper checks for unusual or exceptional conditions in Brocade NetIron 05.8.00 and later releases up to and including 06.1.00, when the Management Module is continuously scanned on port 22, may allow attackers to cause a denial of service (crash and reload) of the management module.

CVE-2017-0890
Published: 2017-05-08
Nextcloud Server before 11.0.3 is vulnerable to an inadequate escaping leading to a XSS vulnerability in the search module. To be exploitable a user has to write or paste malicious content into the search dialogue.