ChatGPT and other chatbots ‘can be tricked into making code for cyber attacks’

24 October 2023, 16:04

The ChatGPT website
ChatGPT study. Picture: PA

Research from the University of Sheffield found scientists could manipulate chatbots into creating malicious code.

Artificial intelligence (AI) tools such as ChatGPT can be tricked into producing malicious code which could be used to launch cyber attacks, according to research.

A study by researchers from the University of Sheffield’s Department of Computer Science found that it was possible to manipulate chatbots into creating code capable of breaching other systems.

Generative AI tools such as ChatGPT can create content based on user commands or prompts and are expected to have a substantial impact on daily life as they become more widely used in industry, education and healthcare.

But the researchers have warned that vulnerabilities exist, and said their research found they were able to trick the chatbots into helping steal sensitive personal information, tamper with or destroy databases, or bring down services using denial-of-service attacks.

In all, the university study found vulnerabilities in six commercial AI tools – of which ChatGPT was the most well-known.

On Chinese platform Baidu-Unit, the scientists were able to use malicious code to obtain confidential Baidu server configurations and tampered with one server node.

In response, the research has been recognised by Baidu, which addressed and fixed the reported vulnerabilities and financially rewarded the scientists, the university said.

Xutan Peng, a PhD student at the University of Sheffield, who co-led the research, said: “In reality many companies are simply not aware of these types of threats and due to the complexity of chatbots, even within the community, there are things that are not fully understood.

“At the moment, ChatGPT is receiving a lot of attention. It’s a standalone system, so the risks to the service itself are minimal, but what we found is that it can be tricked into producing malicious code that can do serious harm to other services.”

The researchers also warned that people using AI to learn programming languages was a danger, as they could inadvertently create damaging code.

“The risk with AIs like ChatGPT is that more and more people are using them as productivity tools, rather than a conversational bot, and this is where our research shows the vulnerabilities are,” Peng said.

“For example, a nurse could ask ChatGPT to write an (programming language) SQL command so that they can interact with a database, such as one that stores clinical records.

“As shown in our study, the SQL code produced by ChatGPT in many cases can be harmful to a database, so the nurse in this scenario may cause serious data management faults without even receiving a warning.”

The UK will host an AI Safety Summit next week, with the Government inviting world leaders and industry giants to come together to discuss the opportunities and safety concerns around artificial intelligence.

By Press Association

More Technology News

See more More Technology News

Online Safety Act

Young people support stricter rules on social media

A child using an Apple iPhone smartphone

MPs to debate Bill aimed at limiting harms of smartphone use among children

Santander

Santander banking services ‘fixed’ after outage

Exclusive
The independent reviewer of terror legislation has backed calls for social media to be banned for under 16s

UK's terror watchdog says calls to ban social media for under-16s 'have merit'

Dr Craig Wright arrives at the Rolls Building in London last year (Lucy North/PA)

Man behind false Bitcoin founder claim improperly used AI in appeal bid – judge

Donald Trump

Lastminute.com founder warns of ‘peril’ for tech sector amid Trump DEI crackdown

A Santander branch in Nottingham city centre

Santander users hit by outage affecting banking app and other services

A man holding a bank card and mobile phone while using a laptop

Barclays to pay up to £12.5m in compensation to customers hit by outages

Girl with a smartphone at night

Children under 16 could be banned from social media under new plans

The word Porn written in search bar on virtual screen

Fifth of adults who watch porn say content they view has become more extreme

A child using a smartphone

Hundreds of jobs ‘under threat at TikTok’s Ireland operation’

The OpenAI logo on a mobile phone in front of a computer screen displaying random binary data

Competition regulator will not investigate Microsoft partnership with OpenAI

Sir Cameron Mackintosh at the Les Miserables remastered screening in London

AI copyright plans would be ‘undemocratic own goal’, says Sir Cameron Mackintosh

A person's hands on a keyboard

Meta brings facial recognition tools to spot celeb scam adverts to the UK

A man looks at a phone

Tougher laws needed to combat non-consensual intimate images, MPs say

The hands of an elderly woman

Use of AI software that predicts falls and illnesses to be scaled up nationwide