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…
Why new OLED gaming monitors still can’t beat the best from last year
alienware 34 qd oled aw3423dw review 4

OLED gaming monitors are all the rage this year. I've reviewed nearly all the best of them, and although we're getting more, I have a pretty good idea about what 2023 holds in this developing space.

And yet, I still haven't found a display that trounces last year's Alienware 34 QD-OLED. I'm not going to pretend it's perfect -- I've complained about its insistent burn-in prompts in the past, for example. But it's the gold standard, and as I'll explain, its strengths go beyond what you can see on a spec sheet.
It's not a TV, it's a monitor

Read more
X-ray data from Chandra gives a new view of Webb’s first images
X-rays from Chandra have been combined with infrared data from early publicly-released James Webb Space Telescope images.

This week has been a fun time for telescope team-ups, with a recent project combining data from the James Webb and Hubble Space Telescopes. There's also a second set of images that has been released that combines data from the James Webb Space Telescope and the Chandra X-ray Observatory.

The Chandra observatory, which is also a space-based telescope, looks in the X-ray wavelength to investigate phenomena like epic kilonova explosions, search for the universe's missing matter, and capture stunning images of the universe as seen in X-ray observations. It has even been used to detect a possible exoplanet in the Whirlpool galaxy. Now, it has turned its sights on the targets of James Webb's first images to show these now-famous objects in a new light.

Read more
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