Imagine buying an off-the-shelf wireless router, a mobile phone, a new computer, or even an internet-connected thermostat from Amazon.

What do you know about the security of those devices? If you’re the average consumer, probably not much.

“We think that’s important information when you’re making a buying decision, and you don’t have it today,” said David Brumley, CEO of ForAllSecure, director of Carnegie Mellon University’s CyLab Security and Privacy Institute, and a CMU professor of electrical and computer engineering.

A team from ForAllSecure, a startup that’s a spinoff from CMU, won a $2 million prize from the Defense Advanced Research Projects Agency on Thursday for the system it created that works to identify security issues in internet-connected devices before hackers exploit weaknesses.

Advertise with us

The system, nicknamed MAYHEM, won the Cyber Grand Challenge against six other finalists for its ability to scan software for bugs, generate exploits and fix vulnerabilities.

“We called it MAYHEM because one of the things we look for are places that the program can cause mayhem,” Mr. Brumley said in a phone call from Las Vegas, where the competition took place. “So it’s kind of just a little bit of a pun. Attackers cause mayhem, and what we try to do is cause that mayhem first so that we can fix the problem.”

Mr. Brumley said the idea came to him while he was discussing how hackers are able to break into a computer with some of his students. “They do it because there is a flaw in the program,” he said.

“I had a number of graduate students, and we were thinking about this problem,” Mr. Brumley continued. “And we thought, ‘Why don’t we program a computer to think like an attacker and to come up with exploits?’ So that’s what we did.”

But the competition wasn’t as simple as finding and fixing a problem within software, Mr. Brumley said. There were also real-life considerations that had to be taken into account.

Advertise with us

“When we patch a problem, we’ve got to make sure the program, of course, retains its original functionality,” he said. “It has to work like it used to, and it also has to run pretty fast. No one wants after they patch their computer for it to run twice as slow.”

Mr. Brumley said he hopes that eventually MAYHEM will help cause a little less chaos for consumers hoping to buy safe internet-linked products.

“What we’re building through ForAllSecure is a service that will rate the security of all these things,” he said. “So you can go to Amazon and imagine that you have a security rating — router one was twice as safe as router two.”

Andrew Goldstein: agoldstein@post-gazette.com or 412-263-1352.