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.

Editors' Recommendations

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…
Can you spot Mount Everest in this dreamy photo taken from 250 miles up?
The Himalayas photographed from the ISS.

Aerial photographers must surely wish they had the chance to stay aboard the International Space Station (ISS), with the orbiting outpost offering ever-changing views of Earth from 250 miles up.

It’s therefore little surprise that the space station’s seven-window Cupola module, with its stunning panoramic views of Earth and beyond, is easily the most popular spot on the facility among astronauts lucky enough to visit.

Read more
NASA shares new photos of ISS shot from SpaceX Crew Dragon
The International Space Station.

NASA has shared a new set of photos showing the International Space Station (ISS) in orbit.

The images were taken by astronaut Thomas Pesquet aboard a SpaceX Crew Dragon spacecraft as it performed a flyaround of the orbiting outpost earlier this month.

Read more
First view from new Crew Dragon shows marble-like Earth
The glass dome on SpaceX's modified Crew Dragon spacecraft.

SpaceX has posted footage showing the stunning view now being enjoyed by its first all-civilian crew.

https://twitter.com/SpaceX/status/1438359359898066944

Read more