Article Details

Scrape Timestamp (UTC): 2024-03-21 10:30:20.065

Source: https://thehackernews.com/2024/03/github-launches-ai-powered-autofix-tool.html

Original Article Text

Click to Toggle View

GitHub Launches AI-Powered Autofix Tool to Assist Devs in Patching Security Flaws. GitHub on Wednesday announced that it's making available a feature called code scanning autofix in public beta for all Advanced Security customers to provide targeted recommendations in an effort to avoid introducing new security issues. "Powered by GitHub Copilot and CodeQL, code scanning autofix covers more than 90% of alert types in JavaScript, Typescript, Java, and Python, and delivers code suggestions shown to remediate more than two-thirds of found vulnerabilities with little or no editing," GitHub's Pierre Tempel and Eric Tooley said. The capability, first previewed in November 2023, leverages a combination of CodeQL, Copilot APIs, and OpenAI GPT-4 to generate code suggestions. The Microsoft-owned subsidiary also said it plans to add support for more programming languages, including C# and Go, in the future. Code scanning autofix is designed to help developers fix vulnerabilities as they code by generating potential fixes as well as providing a natural language explanation when an issue is discovered in a supported language. These suggestions could go beyond the current file to include changes to several other files and the dependencies that should be added to rectify the problem. "Code scanning autofix lowers the barrier of entry to developers by combining information on best practices with details of the codebase and alert to suggest a potential fix to the developer," the company said. "Instead of starting with a search for information about the vulnerability, the developer starts with a code suggestion that demonstrates a potential solution for their codebase." That said, it's left to the developer to evaluate the recommendations and determine if it's the right solution and ensure that it does not deviate from its intended behavior. GitHub also emphasized the current limitations of the autofix code suggestions, making it imperative that developers carefully review the changes and the dependencies before accepting them - "The system has incomplete knowledge of the dependencies published in the wider ecosystem," the company noted. "This can lead to suggestions that add a new dependency on malicious software that attackers have published under a statistically probable dependency name." Goodbye, Atlassian Server. Goodbye… Backups? Protect your data on Atlassian Cloud from disaster with Rewind's daily backups and on-demand restores. Take Action Fast with Censys Search for Security Teams Stay ahead of advanced threat actors with best-in-class threat intelligence from Censys Search.

Daily Brief Summary

MISCELLANEOUS // GitHub Introduces AI-Driven Security Autofix Tool for Developers

GitHub released a public beta feature called code scanning autofix for Advanced Security customers to enhance security by providing code suggestions.

The tool, using GitHub Copilot and CodeQL, supports JavaScript, Typescript, Java, and Python, addressing over 90% of common alert types.

Autofix is powered by CodeQL, Copilot APIs, and OpenAI GPT-4, and is expected to expand to include more languages like C# and Go.

It aims to help devs fix vulnerabilities instantly by recommending fixes and explanations within the codebase context.

The system generates fixes extending beyond one file, including necessary changes in other files and dependencies.

GitHub emphasizes the importance of developer review for each recommendation due to the present limitations, such as the potential inclusion of dependencies with malicious software.

The tool is designed to streamline the patching process by offering suggestions based on codebase specifics and security best practices.