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.

Please enable Javascript to view this content

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…
See the first image of Earth from a new weather-monitoring satellite
First image of the full Earth disc from the Meteosat Third Generation Imager. The first image from Meteosat Third Generation – Imager 1 (MTG-I1) reveals a level of detail about the weather over Europe and Africa not previously possible from 36 000 km above Earth. The higher-resolution images provided by the instruments on board give weather forecasters more information about the clouds cloaking much of Europe and visible in the equatorial region of Africa and the Atlantic Ocean. Sand and sediment in the waters off Italy are also visible, as well as dust or smog being carried from south Asia. This degree of detail is not possible from the instruments on the Meteosat Second Generation satellites. The image was captured at 11:50 UTC on 18 March 2023 by the Flexible Combined Imager on MTG-I1.

A recently launched weather satellite has sent back its first image of Earth, showing our planet in gorgeous detail. The European Meteosat Third Generation Imager-1 was launched in December of last year with the aim of monitoring weather conditions across Europe and Africa, and it took this image from its location 22,000 miles above the Earth's surface.

The image was taken using the high-resolution Flexible Combined Imager instrument in March 2023, showing the areas of cloud and clear skies that can be seen over the Atlantic Ocean, as well as the European and African land masses.

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