Skip to main content

This new tool from MIT can debug a program in a minute

coding, computing
Pixabay
If you’ve got a minute, you’ve got enough time to find bugs in your Ruby on Rails-based Web application. It’s not because you’re necessarily oh so adept at debugging your own code (though you may be), but rather thanks to a new tool from MIT. A new debugger from the Massachusetts Institute of Technology takes no more than 64 seconds to analyze any program and find its problems.

By taking advantage of certain idiosyncrasies inherent to the Ruby language, the MIT system was able to find 23 unnoticed security issues in 50 popular Web applications. But most impressive of all, the tool took no more than 64 seconds to analyze any single app.

This is made possible by Ruby’s reliance on defining very basic operations in libraries. When MIT researchers rewrote those libraries, the operations contained in those collections were forced to describe their behavior using a logical language. This, Katherine Noyes of the IDG News Service explains, “turns the Rails interpreter, which converts high-level Rails programs into machine-readable code, into a static-analysis tool that describes how data flows through the program.” Ultimately, researchers were left with a line-by-line breakdown of how a program interprets data.

MIT has named its debugging tool Space, and it focuses specifically on an application’s data-access procedures. This allows researchers to see what operations a user can exercise on certain data, and in what scenarios. Based on the descriptions the rewritten libraries provide, Space can tell how closely a program follows protocol — deviations suggest a security flaw.

“When you look at something like a Web application written in language like Ruby on Rails, if you try to do a conventional static analysis, you typically find yourself mired in this huge bog,” said Daniel Jackson, professor in the Department of Electrical Engineering and Computer Science in a statement to MIT News. “And this makes it really infeasible in practice.” But thanks to Space, scientists now have a much more feasible solution.

Full results of the study will be presented next month at the International Conference on Software Engineering held in Austin, Texas.

Lulu Chang
Former Digital Trends Contributor
Fascinated by the effects of technology on human interaction, Lulu believes that if her parents can use your new app…
Rocket Lab blasts into the record books with 50th Electron launch
Rocket Lab's 50th Electron launch.

Rocket Lab conducts its 50th Electron launch on June 20. Rocket Lab

New Zealand-based company Rocket Lab has hit an impressive milestone with the 50th launch of its Electron rocket. Like SpaceX, the company provides commercial launch services, carrying payloads into near-Earth orbit for private companies and providing services for space agencies like NASA. According to the company, the Electron rocket has reached 50 launches faster than any other commercially developed rocket.

Read more
Starliner’s return to Earth delayed again, until next month
Boeing's Starliner capsule docked at the ISS.

The Boeing Starliner that is currently docked at the International Space Station (ISS) after making its first crewed test flight will not be returning to Earth this week as planned. The return of the Starliner has already been delayed once, but now NASA has announced that the return will not take place until early July.

The Starliner launched from the Kennedy Space Center in Florida on June 6 and made it safely to the ISS carrying NASA astronauts Suni Williams and Butch Wilmore. However, there were problems with helium leaks both before and during the journey as well as an issue with the spacecraft's reaction control thrusters that required two attempts at docking.

Read more
Elon Musk gives a tour of SpaceX Starfactory rocket site
elon musk gives a tour of spacex starfactory rocket site

First Look Inside SpaceX's Starfactory w/ Elon Musk

SpaceX chief Elon Musk has given Everyday Astronaut YouTuber Tim Dodd an extensive tour of the Starfactory in Boca Chica, Texas.

Read more