Thursday, February 27, 2025
HomeCyber Security NewsHackers Use Text-to-SQL Attacks to Break into Your Databases

Hackers Use Text-to-SQL Attacks to Break into Your Databases

Published on

SIEM as a Service

Follow Us on Google News

Recently, a group of researchers successfully demonstrated a new type of attack that utilizes Text-to-SQL models in order to generate malicious code.

The most astonishing thing about this malicious code is, it’s enough potential to obtain sensitive information and launch DDoS attacks on its targets.

An increasing number of database applications use artificial intelligence techniques to better communicate with users by translating human questions into SQL queries in order to provide a better experience.

Breaking Databases via Text-to-SQL Attacks

In order to produce malicious code, crackers can manipulate Text-to-SQL models by asking some specially designed questions. It is highly likely that the consequences will be serious since such code is executed automatically on the database.

It appears that it’s the first comprehensive empirical example of the use of NLP models as a vector for attack, and it was validated against two commercial solutions during the course of the study:-

  • BAIDU-UNIT
  • AI2sql

An analogy to black-box attacks is the transfer of malicious payloads into the constructed SQL query, ushering to unexpected results when the malicious payload is embedded in the input question.

The malicious SQL queries that could be injected by specially crafted payloads could be weaponized. In order to modify the backend database, an attacker could run these queries on the server, as well as carry out a DoS attack on it.

As a further threat, a second category of attacks examined the possibility of compromising several PLMs so that malicious commands could be created when certain spurs were triggered.

A PLM-based system can be infiltrated by poisoning the training samples in many different ways, and these can be planted as backdoors.

There were four different open-source models that were attacked by the backdoors and here below we have mentioned below:-

  • BART-BASE
  • BART-LARGE
  • T5-BASE
  • T5-3B

There was a 100% success rate with the use of a corpus poisoned with malicious samples, but there was no noticeable impact on performance when the corpus was used. Consequently, it is very difficult for these issues to be detected in a real-life situation.

Researchers stated that “Moreover, experiments involving four open-source frameworks verified that simple backdoor attacks can achieve a 100% success rate on Text-toSQL systems with almost no prediction performance impact”.

Recommendations

It was suggested by the researchers that the following mitigations could be taken:-

  • Integrate classifiers into the inputs of the program in order to detect suspicious strings
  • In order to prevent threats to the supply chain, off-the-shelf models must be assessed
  • The adoption of effective software engineering practices is essential
  • It is important to develop and use automation tools for the automation process
  • Acting immediately is the best course of action.

Secure Web Gateway – Web Filter Rules, Activity Tracking & Malware Protection – Download Free E-Book

Gurubaran
Gurubaran
Gurubaran is a co-founder of Cyber Security News and GBHackers On Security. He has 10+ years of experience as a Security Consultant, Editor, and Analyst in cybersecurity, technology, and communications.

Latest articles

Google’s SafetyCore App Secretly Scans All Photos on Android Devices

Recent revelations about Google’s SafetyCore app have ignited a firestorm of privacy debates, echoing...

New “nRootTag” Attack Turns 1.5 Billion iPhones into Free Tracking Tools

Security researchers have uncovered a novel Bluetooth tracking vulnerability in Apple’s Find My network...

Authorities Arrested Hacker Behind 90 Major Data Breaches Worldwide

Cybersecurity firm Group-IB, alongside the Royal Thai Police and Singapore Police Force, announced the...

Cisco Nexus Vulnerability Allows Attackers to Inject Malicious Commands

Cisco Systems has issued a critical security advisory for a newly disclosed command injection...

Supply Chain Attack Prevention

Free Webinar - Supply Chain Attack Prevention

Recent attacks like Polyfill[.]io show how compromised third-party components become backdoors for hackers. PCI DSS 4.0’s Requirement 6.4.3 mandates stricter browser script controls, while Requirement 12.8 focuses on securing third-party providers.

Join Vivekanand Gopalan (VP of Products – Indusface) and Phani Deepak Akella (VP of Marketing – Indusface) as they break down these compliance requirements and share strategies to protect your applications from supply chain attacks.

Discussion points

Meeting PCI DSS 4.0 mandates.
Blocking malicious components and unauthorized JavaScript execution.
PIdentifying attack surfaces from third-party dependencies.
Preventing man-in-the-browser attacks with proactive monitoring.

More like this

Google’s SafetyCore App Secretly Scans All Photos on Android Devices

Recent revelations about Google’s SafetyCore app have ignited a firestorm of privacy debates, echoing...

New “nRootTag” Attack Turns 1.5 Billion iPhones into Free Tracking Tools

Security researchers have uncovered a novel Bluetooth tracking vulnerability in Apple’s Find My network...

Authorities Arrested Hacker Behind 90 Major Data Breaches Worldwide

Cybersecurity firm Group-IB, alongside the Royal Thai Police and Singapore Police Force, announced the...