A Novel Dynamic Attack on Classical Ciphers Using an Attention-Based LSTM Encoder-Decoder Model

Information security has become an intrinsic part of data communication. Cryptanalysis using deep learning–based methods to identify weaknesses in ciphers has not been thoroughly studied. Recently, long short-term memory (LSTM) networks have shown promising performance in sequential data...

Full description

Bibliographic Details
Main Authors: Ezat Ahmadzadeh, Hyunil Kim, Ongee Jeong, Inkyu Moon
Format: Article
Language:English
Published: IEEE 2021-01-01
Series:IEEE Access
Subjects:
Online Access:https://ieeexplore.ieee.org/document/9408655/
id doaj-f2569061de514b439bf47379381ae840
record_format Article
spelling doaj-f2569061de514b439bf47379381ae8402021-04-26T23:00:35ZengIEEEIEEE Access2169-35362021-01-019609606097010.1109/ACCESS.2021.30742689408655A Novel Dynamic Attack on Classical Ciphers Using an Attention-Based LSTM Encoder-Decoder ModelEzat Ahmadzadeh0Hyunil Kim1https://orcid.org/0000-0002-4018-4540Ongee Jeong2https://orcid.org/0000-0002-6276-9769Inkyu Moon3https://orcid.org/0000-0003-0882-8585Department of Robotics Engineering, DGIST, Daegu, South KoreaDepartment of Robotics Engineering, DGIST, Daegu, South KoreaDepartment of Robotics Engineering, DGIST, Daegu, South KoreaDepartment of Robotics Engineering, DGIST, Daegu, South KoreaInformation security has become an intrinsic part of data communication. Cryptanalysis using deep learning–based methods to identify weaknesses in ciphers has not been thoroughly studied. Recently, long short-term memory (LSTM) networks have shown promising performance in sequential data processing by modeling the dependencies and data dynamics. Given an encrypted ciphertext sequence and corresponding plaintext, by taking advantage of sequential processing, LSTM can adaptively discover the decryption function regardless of the complexity level, which substantially outperforms traditional methods. However, a lengthy ciphertext sequence causes LSTM to lose important information along the sequence, leading to a decrease in network performance. To tackle these problems, we propose adding an attention mechanism to enhance the LSTM sequential processing power. This paper presents a novel, dynamic way to attack classical ciphers by using an attention-based LSTM encoder-decoder for different ciphertext sequence lengths. The proposed approach takes in a sequence of ciphertext and outputs a sequence of plaintext. The effectiveness and flexibility of the proposed model were evaluated on different classical ciphers. We got close to 100% accuracy in breaking all types of classical ciphers in character-level and word-level attacks. We empirically provide further insights into our results on two datasets with short and long ciphertext lengths. In addition, we provide a performance comparison of the proposed method against state-of-the-art methods. The proposed approach has the potential to attack modern ciphers. To the best of our knowledge, this is the first time an attention-based LSTM encoder-decoder has been applied to attack classical ciphers.https://ieeexplore.ieee.org/document/9408655/Cryptanalysisclassical ciphersattention-based LSTM encoder-decoderrecurrent neural network
collection DOAJ
language English
format Article
sources DOAJ
author Ezat Ahmadzadeh
Hyunil Kim
Ongee Jeong
Inkyu Moon
spellingShingle Ezat Ahmadzadeh
Hyunil Kim
Ongee Jeong
Inkyu Moon
A Novel Dynamic Attack on Classical Ciphers Using an Attention-Based LSTM Encoder-Decoder Model
IEEE Access
Cryptanalysis
classical ciphers
attention-based LSTM encoder-decoder
recurrent neural network
author_facet Ezat Ahmadzadeh
Hyunil Kim
Ongee Jeong
Inkyu Moon
author_sort Ezat Ahmadzadeh
title A Novel Dynamic Attack on Classical Ciphers Using an Attention-Based LSTM Encoder-Decoder Model
title_short A Novel Dynamic Attack on Classical Ciphers Using an Attention-Based LSTM Encoder-Decoder Model
title_full A Novel Dynamic Attack on Classical Ciphers Using an Attention-Based LSTM Encoder-Decoder Model
title_fullStr A Novel Dynamic Attack on Classical Ciphers Using an Attention-Based LSTM Encoder-Decoder Model
title_full_unstemmed A Novel Dynamic Attack on Classical Ciphers Using an Attention-Based LSTM Encoder-Decoder Model
title_sort novel dynamic attack on classical ciphers using an attention-based lstm encoder-decoder model
publisher IEEE
series IEEE Access
issn 2169-3536
publishDate 2021-01-01
description Information security has become an intrinsic part of data communication. Cryptanalysis using deep learning–based methods to identify weaknesses in ciphers has not been thoroughly studied. Recently, long short-term memory (LSTM) networks have shown promising performance in sequential data processing by modeling the dependencies and data dynamics. Given an encrypted ciphertext sequence and corresponding plaintext, by taking advantage of sequential processing, LSTM can adaptively discover the decryption function regardless of the complexity level, which substantially outperforms traditional methods. However, a lengthy ciphertext sequence causes LSTM to lose important information along the sequence, leading to a decrease in network performance. To tackle these problems, we propose adding an attention mechanism to enhance the LSTM sequential processing power. This paper presents a novel, dynamic way to attack classical ciphers by using an attention-based LSTM encoder-decoder for different ciphertext sequence lengths. The proposed approach takes in a sequence of ciphertext and outputs a sequence of plaintext. The effectiveness and flexibility of the proposed model were evaluated on different classical ciphers. We got close to 100% accuracy in breaking all types of classical ciphers in character-level and word-level attacks. We empirically provide further insights into our results on two datasets with short and long ciphertext lengths. In addition, we provide a performance comparison of the proposed method against state-of-the-art methods. The proposed approach has the potential to attack modern ciphers. To the best of our knowledge, this is the first time an attention-based LSTM encoder-decoder has been applied to attack classical ciphers.
topic Cryptanalysis
classical ciphers
attention-based LSTM encoder-decoder
recurrent neural network
url https://ieeexplore.ieee.org/document/9408655/
work_keys_str_mv AT ezatahmadzadeh anoveldynamicattackonclassicalciphersusinganattentionbasedlstmencoderdecodermodel
AT hyunilkim anoveldynamicattackonclassicalciphersusinganattentionbasedlstmencoderdecodermodel
AT ongeejeong anoveldynamicattackonclassicalciphersusinganattentionbasedlstmencoderdecodermodel
AT inkyumoon anoveldynamicattackonclassicalciphersusinganattentionbasedlstmencoderdecodermodel
AT ezatahmadzadeh noveldynamicattackonclassicalciphersusinganattentionbasedlstmencoderdecodermodel
AT hyunilkim noveldynamicattackonclassicalciphersusinganattentionbasedlstmencoderdecodermodel
AT ongeejeong noveldynamicattackonclassicalciphersusinganattentionbasedlstmencoderdecodermodel
AT inkyumoon noveldynamicattackonclassicalciphersusinganattentionbasedlstmencoderdecodermodel
_version_ 1721507418345570304