Technology11.10.2006

Hackers find use for Google Code Search

The company’s source-code search engine, unveiled last week as a tool to help to simplify life for developers, can also be misused to search for software bugs, password information, and even proprietary code that should not have been posted to the Internet in the first place, security experts say.

Unlike Google’s main Web search engine, Google Code Search, peeks into the actual lines of code whenever it finds source code files on the Internet. This will make it easier for developers to search source code directly and dig up open source tools about which they may not have known, but it has a drawback.

"The downside is that you could also use that kind of search to look for things that are vulnerable and then guess who might have used that code snippet and then just fire away at it," says Mike Armistead, vice-president of products with source-code analysis provider Fortify Software.

Attackers could also search code for vulnerabilities in password mechanisms, or to search for phrases within software such as "this file contains proprietary", possibly unearthing source code that should never have been posted to the Internet.

Security experts say that the security implications of Google Code Search are noteworthy, if not earth-shattering.

Skilled hackers may already be able to do this type of search with Google’s Web search engine, but Code Search is "another tool that makes it a tad easier for the attacker", says Johnny Long, a security researcher with Computer Sciences.

For its part, Google did not have much to say about possible misuse of its new product. "Google recommends that developers use generally accepted good coding practices, including understanding the implications of the code that they implement and testing appropriately," the company says.

Google has never said much about the steps it takes to cut down on this kind of misuse of its search engine, though the issue comes up from time to time. In July, Websense used a little-known binary search capability within Google’s search engine to look for malware on the Internet.

While Google Code Search will probably not have much of an effect on popular open source projects, which are already heavily scrutinised, it could help to ferret out vulnerabilities in lesser known pieces of code, according to Lev Toger, a software developer with Beyond Security.

"Using Google’s code search, it is much easier to find interesting code portions," he says. "If your task is to find vulnerability in some random code, this filtering can save you a lot of time."

Discuss this article

Show comments

Latest news

More news

Trending news

Poll

Which company do you trust the most for an ERP system?

View Results

Loading ... Loading ...
Sign up to the MyBroadband newsletter