Melola Discovery

← Melola Discovery

Jurnal Tanpa peringkat SINTA

SQL Injection Detection Using Character-Level Embedding with Convolutional Neural Network and Gated Recurrent Unit

Recursive Journal of Informatics · Vol. 4 No. 2 (2026) · hlm. 92–101

DOI
10.15294/rji.v4i2.62096
ISSN
2986-6588, 2963-5551
Terbit
2026-09-30
Penerbit
Universitas Negeri Semarang
Bahasa
eng

Abstrak

Abstract. SQL Injection is one of the most common cyberattacks targeting web applications by exploiting malicious SQL queries to gain unauthorized access to database systems. Conventional SQL Injection detection methods generally rely on manually engineered features or word-level representations, which may overlook fine-grained syntactic characteristics contained in SQL queries. Purpose: This study aims to develop and evaluate a SQL Injection detection model based on Character-level Embedding, Convolutional Neural Network (CNN), and Gated Recurrent Unit (GRU). The proposed model is expected to preserve character-level information while improving the capability to distinguish legitimate SQL queries from SQL Injection attacks. Methods/Study design/approach: The proposed model combines Character-Level Embedding, CNN, and GRU for binary classification of SQL queries. The dataset used is the SQL Injection Dataset obtained from the Kaggle website, consisting of 30,907 SQL queries with 19,529 legitimate queries and 11,378 SQL Injection queries. Before model training, the dataset was preprocessed using character-level tokenization, sequence padding, and dataset splitting with a ratio of 80:10:10 for training, validation, and testing. The model was implemented using TensorFlow and Keras, trained with the Adam optimizer and Binary Cross-entropy loss function, and evaluated using Accuracy, Precision, Recall, F1-score, and Confusion Matrix. Result/Findings: The proposed CNN-GRU model achieved an Accuracy of 99.64%, Precision of 100%, Recall of 99.03%, and F1-score of 99.51% indicating that the model effectively classifies legitimate SQL queries and SQL Injection attacks with high performance. Novelty/Originality/Value: It can be concluded that integrating Character-Level Embedding with hybrid CNN-GRU architecture enables the proposed model to learn both local character patterns and long-term sequential dependencies without requiring manual feature engineering. Therefore, the proposed approach provides an effective alternative for SQL Injection detection and has the potential to improve web application security.

Kata kunci

Jaringan kolaborasi para penulis

39 penulis · 105 tautan kepenulisan bersama · 51 lintas organisasi

Arahkan kursor atau ketuk sebuah nama untuk menyorot rekan penulisnya. Klik dua kali untuk membuka halaman penulis.

  • State University of Semarang
  • Universitas Halu Oleo
  • Universitas Islam Negeri Ar-Raniry
  • University of Miyazaki
  • Universitas Sulawesi Tenggara
  • IPB University
  • Universitas Papua
  • Organisasi lain
  • Afiliasi tidak diketahui
  • Organisasi berbeda
  • Organisasi sama
  • Afiliasi tidak diketahui
  • Garis lebih tebal = lebih banyak artikel bersama · lingkaran lebih besar = lebih banyak artikel
Tampilkan sebagai tabel
Rekan penulisOrganisasiArtikel bersama
Yahya Nur IfrizaState University of Semarang3
Arif WidiyatmokoState University of Semarang1
Zaenuri ZaenuriState University of Semarang1
Daiki NakamuraUniversity of Miyazaki1
Asri DjauharUniversitas Sulawesi Tenggara1
Nasir Andi BasoAfiliasi tidak diketahui1
A. Ginong PratikinoUniversitas Halu Oleo1
Muhammad Trial Fiar ErawanIPB University1
Arwan Arif RahmanUniversitas Halu Oleo1
Duaitd KolibongsoUniversitas Papua1
Adi Imam WahyudiUniversitas Halu Oleo1
La Ode MusniUniversitas Halu Oleo1
Anung WijayaUniversitas Halu Oleo1
Ishaq WarsandiUniversitas Halu Oleo1
Baso AmrullahAfiliasi tidak diketahui1
Jupri JupriAfiliasi tidak diketahui1
Indri Maharani TenriabengAfiliasi tidak diketahui1
Muhammad Ahmi HuseinUniversity of Pembangunan Nasional Veteran Jawa Timur1
Muhammad RamliUniversitas Halu Oleo1
Riska Nur AmeliaUniversitas Halu Oleo1
Gideon Ramot Aprilliano PanjaitanState University of Semarang1
Dimas Hardi PamungkasState University of Semarang1
Ibrahim IbrahimState University of Medan1
Marwan MarwanUniversitas Syiah Kuala1
Safrilsyah SafrilsyahUniversitas Islam Negeri Ar-Raniry1
Mohd Zailani Mohd YusoffUniversiti Utara Malaysia1
Mhd. Ricky DarusmanUniversitas Islam Negeri Ar-Raniry1
Riza ArifudinState University of Semarang1
Nur FateahState University of Semarang1
Ruslaini RuslainiUniversitas Halu Oleo1
Kadir SabiluUniversitas Halu Oleo1
Abdul Rahman NurdinUniversitas Halu Oleo1
Eko HariantoUniversitas Batanghari1
Muhammad Sam’anUniversitas Muhammadiyah Semarang1
Endah WidhihastutiState University of Semarang1
Senda Kartika RakainsaState University of Semarang1
Deny Lukman SyarifState University of Semarang1

Afiliasi berasal dari OpenAlex; metadata OAI-PMH jurnal tidak memuatnya. Penulis tanpa ID OpenAlex dicocokkan berdasarkan nama, sehingga dua orang bisa tergabung atau satu orang bisa terpisah.

Sumber metadata: OAI-PMH (metadata jurnal) https://journal.unnes.ac.id/journals/rji/oai, pertama di-harvest 6 Nov 2026, terakhir terlihat 8 Nov 2026.
Metadata asli (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en">SQL Injection Detection Using Character-Level Embedding with Convolutional Neural Network and Gated Recurrent Unit</dc:title>
	<dc:creator xml:lang="en">Alfian, Ahmad Andri</dc:creator>
	<dc:creator xml:lang="en">Subhan, Subhan</dc:creator>
	<dc:subject xml:lang="en">Character-level Embedding</dc:subject>
	<dc:subject xml:lang="en">Convolutional Neural Network</dc:subject>
	<dc:subject xml:lang="en">SQL Injection Detection</dc:subject>
	<dc:subject xml:lang="en">Gated Recurrent Unit</dc:subject>
	<dc:description xml:lang="en">Abstract. SQL Injection is one of the most common cyberattacks targeting web applications by exploiting malicious SQL queries to gain unauthorized access to database systems. Conventional SQL Injection detection methods generally rely on manually engineered features or word-level representations, which may overlook fine-grained syntactic characteristics contained in SQL queries.
Purpose: This study aims to develop and evaluate a SQL Injection detection model based on Character-level Embedding, Convolutional Neural Network (CNN), and Gated Recurrent Unit (GRU). The proposed model is expected to preserve character-level information while improving the capability to distinguish legitimate SQL queries from SQL Injection attacks.
Methods/Study design/approach: The proposed model combines Character-Level Embedding, CNN, and GRU for binary classification of SQL queries. The dataset used is the SQL Injection Dataset obtained from the Kaggle website, consisting of 30,907 SQL queries with 19,529 legitimate queries and 11,378 SQL Injection queries. Before model training, the dataset was preprocessed using character-level tokenization, sequence padding, and dataset splitting with a ratio of 80:10:10 for training, validation, and testing. The model was implemented using TensorFlow and Keras, trained with the Adam optimizer and Binary Cross-entropy loss function, and evaluated using Accuracy, Precision, Recall, F1-score, and Confusion Matrix. 
Result/Findings: The proposed CNN-GRU model achieved an Accuracy of 99.64%, Precision of 100%, Recall of 99.03%, and F1-score of 99.51% indicating that the model effectively classifies legitimate SQL queries and SQL Injection attacks with high performance.
Novelty/Originality/Value: It can be concluded that integrating Character-Level Embedding with hybrid CNN-GRU architecture enables the proposed model to learn both local character patterns and long-term sequential dependencies without requiring manual feature engineering. Therefore, the proposed approach provides an effective alternative for SQL Injection detection and has the potential to improve web application security.</dc:description>
	<dc:publisher xml:lang="en">Universitas Negeri Semarang</dc:publisher>
	<dc:date>2026-09-30</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:type xml:lang="en">Peer-reviewed Article</dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://journal.unnes.ac.id/journals/rji/article/view/62096</dc:identifier>
	<dc:identifier>10.15294/rji.v4i2.62096</dc:identifier>
	<dc:source xml:lang="en">Recursive Journal of Informatics; Vol. 4 No. 2 (2026): September 2026; 92-101</dc:source>
	<dc:source>2986-6588</dc:source>
	<dc:source>2963-5551</dc:source>
	<dc:source>10.15294/j2r8b957</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://journal.unnes.ac.id/journals/rji/article/view/62096/11620</dc:relation>
	<dc:rights xml:lang="en">Copyright (c) 2026 Recursive Journal of Informatics</dc:rights>
</oai_dc:dc>