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.

Recommended Videos

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…
NASA hears Voyager ‘heartbeat’ as it tries to reconnect with spacecraft
An artist's concept of the Voyager 2 spacecraft

NASA has received a signal from the Voyager 2 spacecraft that it accidentally lost contact with on July 21.

Communications with the famous spacecraft, which launched in 1977 and is currently around 12.4 billion miles (19.9 billion kilometers) from Earth, were cut after NASA “inadvertently” sent it a command that caused its antenna to point 2 degrees away from Earth.

Read more
NASA’s skywatching tips for August include a famous meteor shower
samsung galaxy s21 ultra vs huawei p40 pro plus 10x zoom shootout moon

What's Up: August 2023 Skywatching Tips from NASA

NASA has just released its monthly update on what to look out for in the skies over the next few weeks, with Saturn, the Perseid meteors, and a "super blue moon" all featuring.
Saturn
With Venus and Mars having slipped from view for the time being, we can turn our gaze toward Saturn instead. The second planet in our solar system reaches opposition this month, meaning it's directly opposite the sun as seen from Earth. It'll be appearing just after sunset and will remain visible until dawn, giving us plenty of time to check it out. On the morning of August 3, Saturn will be viewable right beside the moon.

Read more
NASA reveals new date for Crew-7 mission to space station
The International Space Station pictured from the SpaceX Crew Dragon Endeavour during a fly-around of the orbiting lab.

The four crew members of NASA’s SpaceX Crew-7 mission inside SpaceX Hangar X at NASA’s Kennedy Space Center. From left to right: Konstantin Borisov, Andreas Mogensen, Jasmin Moghbeli, and Satoshi Furukawa. SpaceX

UPDATE: NASA had moved the targeted launch date from August 17 to August 21. But it's now targeting Friday, August 25. This article has been updated to reflect the change.

Read more