Cybersecurity news

Jessica Doner

Back to the list

Security Flaws Found in Every Script Generated by ChatGPT, Copilot, and Gemini

Cyber Security News,

A study found that every automation script generated by ChatGPT, Copilot, and Gemini contained exploitable security vulnerabilities.

AI and securityVulnerabilities and patches

Overview

Researchers from Beacom College of Computer & Cyber Sciences found that every automation scriptA short program written in an interpreted language to automate tasks in a browser, shell, or application generated by ChatGPT, Microsoft Copilot, and Google Gemini contained exploitable security vulnerabilitiesA flaw in software or hardware that lets an attacker do something the maker did not intend. The study evaluated nine Python scripts created for web scraping, email automation, and file workflow automation using standardized promptsThe text instruction or question a user or program sends to an artificial intelligence model. An automated review process identified 45 individual security findings, which were deduplicated into 17 distinct vulnerability classes. The results show that these flaws are systemic rather than brand-specific, with 9 of the 17 vulnerability classes appearing in code from all three AI models. This indicates that security risks are inherently tied to the nature of the requested task rather than the choice of AI provider. Enterprises that deploy unreviewed AI-generated code directly into production environmentsThe live servers and databases that real customers actually use, as opposed to internal test machines face serious risks from these consistent vulnerabilities.

Terms in this story

Script
A short program written in an interpreted language to automate tasks in a browser, shell, or application. System administrators write scripts to automate daily maintenance, while attackers often use a script to download malware and disable security settings without dropping a compiled file.
security vulnerabilities
A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
prompt
The text instruction or question a user or program sends to an artificial intelligence model. In AI security news, a prompt includes both the visible question typed by a user and the hidden instructions that an attacker might embed in a web page.
production environments
The live servers and databases that real customers actually use, as opposed to internal test machines. A bug or breach in a company's production environment directly affects live users and real customer records.
CVSS 3.1
The standard rating scale used to score how severe a software security flaw is. Security advisories include a CVSS rating from low to critical based on how easy a bug is to exploit and how much damage it allows. Security+ objective 4.3 lists the term
MITRE ATT&CK
A public knowledge base that catalogs the real-world tactics and techniques attackers use during an intrusion. Threat reports map an intruder's behavior to MITRE ATT&CK technique codes so defenders everywhere can test whether their monitoring tools catch those exact moves.
Server-Side Request Forgery (SSRF)
A flaw where an attacker tricks a server into fetching internal web addresses on their behalf. In a cloud environment, an attacker can use SSRF to make a public web server query its own private metadata address and hand over temporary cloud keys.
URL
The full web address used to locate a specific page, file, or resource on the internet. Security filters inspect every URL in an incoming message to see whether the domain name is a newly registered lookalike or points to a known credential-harvesting server. Security+ objective 4.5 lists the term
Path Traversal
A flaw where an attacker uses folder navigation symbols in a file request to read restricted files. If a web server lets users download a picture by name without checking the folder path, an attacker can use path traversal to climb into system folders and read configuration files. Security+ objective 2.4 lists the term
phishing
Tricking people into handing over passwords or money through fake messages that look real. Attackers send fake emails or messages that copy a bank, school, or login page so a reader types in their password or opens a malicious attachment. Security+ objective 2.2 lists the term
Symlink
A special file on disk that points to another file or folder path by name. Local privilege escalation exploits often plant a symlink in a temporary folder so a high-privilege system service is tricked into overwriting a protected system file.
codebase
The complete collection of source code files used to build a software application or system. Security teams run automated scanners across a company's codebase to catch hardcoded passwords, outdated dependencies, and injection flaws before changes ship to production.

This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Cyber Security News website. Cite the article, not this page.

Read the full article on Cyber Security News (opens in a new tab)

Course connections

Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.

How a story is connected to the course, and every objective, week and job role

Related