Code-generating AI can have security vulnerabilities, study finds

It was found that the study participants who had access to Codex were more likely to write incorrect and insecure solutions to programming problems when compared to a control group

Updated - December 30, 2022 07:26 pm IST

File photo of a person typing. Software engineers who use code-generating AI systems are more likely to cause security vulnerabilities in the apps they develop, TechCrunch reported, citing a study by Stanford. Image for representational purposes only.

File photo of a person typing. Software engineers who use code-generating AI systems are more likely to cause security vulnerabilities in the apps they develop, TechCrunch reported, citing a study by Stanford. Image for representational purposes only. | Photo Credit: Reuters

Software engineers who use code-generating AI systems are more likely to cause security vulnerabilities in the apps they develop, TechCrunch reported, citing a study by Stanford.

(For insights on emerging themes at the intersection of technology, business and policy, subscribe to our tech newsletter Today’s Cache.)

“Code-generating systems are currently not a replacement for human developers,” TechCrunch quoted a scientist as saying in the report.

“Developers using them to complete tasks outside of their own areas of expertise should be concerned, and those using them to speed up tasks that they are already skilled at should carefully double-check the outputs and the context that they are used in in the overall project,” the report further added.

The Stanford study looked at Codex, an AI code-generating system developed by San Francisco-based research lab OpenAI. The researchers recruited 47 developers to use Codex to complete security-related problems across programming languages like Python, JavaScript, and C.

The system was trained on several lines of public code to suggest additional lines of code and functions, given the context of the existing code.

It was found that the study participants who had access to Codex were more likely to write incorrect and insecure solutions to programming problems when compared to a control group.

However, code-generating systems are helpful for tasks which are not too risky, like exploratory research code.

0 / 0
Sign in to unlock member-only benefits!
  • Access 10 free stories every month
  • Save stories to read later
  • Access to comment on every story
  • Sign-up/manage your newsletter subscriptions with a single click
  • Get notified by email for early access to discounts & offers on our products
Sign in

Comments

Comments have to be in English, and in full sentences. They cannot be abusive or personal. Please abide by our community guidelines for posting your comments.

We have migrated to a new commenting platform. If you are already a registered user of The Hindu and logged in, you may continue to engage with our articles. If you do not have an account please register and login to post comments. Users can access their older comments by logging into their accounts on Vuukle.