Skip to main content
Have a personal or library account? Click to login
Towards Automated Identification of Block Cipher Structures Using Machine Learning Cover

Towards Automated Identification of Block Cipher Structures Using Machine Learning

Open Access
|Jul 2026

Figures & Tables

Figure. 1:

Framework for Cipher Structure Classification Using Machine Learning

Figure. 2:

Confusion Matrices of all ML Models (a; XGBoost, b; RF, c; NB, d; LR, e;KNN) for structure classification under S1 for 200KB.

Figure 3:

Confusion Matrices of ML models (a; XGBoost, b; RF, c; NB, d; LR, e;KNN) for structure classification under S2 for 200KB.

Figure. 4:

Statistical relationships among ciphertext features

Figure. 5:

Feature Distribution over values

Figure. 6:

Feature Analysis of Classifiers for CBC and ECB modes (a) Fixed key (b) Random Kyes

Figure. 7:

Performance Analysis of Classifiers for CBC and ECB modes (a) Fixed key (b) Random Key

Figure. 8:

Model Statistics and Performance Distribution (CBC) (a) Fixed key (b) Random Key

Figure. 9:

NIST Test Pass Rates (%) over File Size for CBC mode (S1, S2)

Figure. 10:

NIST Test Pass Rates (%) over File Size for ECB mode (S3, S4)

Binary Classification Results for S1_

MetricFile Size (KB)XGBoostRFNBLRKNN
Accuracy100.930.930.720.770.79
200.920.930.720.800.80
500.920.920.720.800.80
1000.920.930.720.920.92
2000.920.930.720.920.92
Precision100.930.960.920.800.78
200.930.950.950.820.81
500.930.970.990.850.83
1000.920.991.000.870.92
2000.920.981.000.860.92
Recall100.930.930.520.760.90
200.920.930.500.790.80
500.910.920.520.790.80
1000.930.930.560.860.92
2000.930.930.470.870.93

Average Number of Words against File Sizes

File Size (kb)Average Word Length
101,296
202,589
506,494
10012,976
20025,805

Experimental Scenarios

ScenarioModeKeyIV
S1CBCFixedFixed
S2CBCRandomFixed
S3ECBFixedFixed
S4ECBRandomFixed

Diverse Dataset for ML Models

CategoryClassesNo. of FilesFile Sizes (kb)CiphersModesNo. of KeysEncrypted FilesSource/Dataset
Wikipedia Articles6713410, 20, 50, 100, 20016CBC, ECB10134,000HuggingFace / FineFineWeb
Twitter Data1100100,000Kaggle / Sentiment140
Mixed News1100100,000Kaggle / RealNews
Programming Codes5100100,000HuggingFace / XCodEval
Network Traffic1100100,000Kaggle / IPNetworkTrafficFlows

Binary Classification Results for S2

MetricFile Size (KB)XGBoostRFNBLRKNN
Accuracy100.920.930.700.720.78
200.920.930.710.730.77
500.920.930.710.730.78
1000.920.930.700.870.92
2000.920.940.700.880.93
Precision100.920.930.750.730.77
200.920.940.780.740.77
500.920.970.820.740.78
1000.920.980.890.870.92
2000.920.990.960.880.93
Recall100.920.930.610.850.79
200.920.930.580.730.81
500.920.930.530.730.78
1000.920.930.490.900.92
2000.920.930.490.870.93

Deep Learning (MLP) Results - CBC Mode

ScenarioFile Size (KB)AccuracyPrecisionRecall
S1100.770.800.77
200.800.850.78
500.780.820.82
1000.880.880.90
2000.880.900.87
S2100.761.000.77
200.770.981.00
500.771.000.79
1000.870.870.88
2000.880.880.87

Ciphers Used in Dataset Construction

AlgorithmStructureBlock SizeModesNo. of Keys
DESFeistel64 bitsCBC, ECB10
AESSPN128 bits
3DESFeistel64 bits
CASTFeistel64 bits
BlowfishFeistel64 bits
KASUMIFeistel64 bits
TWINEFeistel64 bits
SIMONFeistel128 bits
SM4Feistel128 bits
ARIASPN128 bits
SERPENTSPN128 bits
PRESENTSPN64 bits
ARADISPN128 bits
SKINNYSPN64 bits
KALYNASPN256 bits
RIJNDAELSPN128 bits

Binary Classification Results for S3

MetricFile Size (KB)XGBoostRFNBLRKNN
Accuracy100.980.950.820.910.94
200.960.950.820.900.94
500.970.950.830.920.95
1000.970.950.810.930.94
2000.990.970.730.950.96
Precision100.980.991.000.950.94
200.961.001.000.930.95
500.981.001.000.960.95
1000.991.001.000.960.95
2001.001.001.000.990.96
Recall101.000.950.750.900.94
200.950.940.760.870.94
500.960.940.890.890.94
1000.960.940.880.900.94
2000.980.960.870.930.96

Binary Classification Results for S4

MetricFile Size (KB)XGBoostRFNBLRKNN
Accuracy100.930.940.780.910.93
200.920.940.760.910.93
500.930.950.710.920.94
1000.930.950.670.940.94
2000.940.950.620.950.94
Precision100.930.960.750.920.93
200.930.970.700.910.94
500.940.960.640.930.95
1000.940.960.600.950.95
2000.950.960.570.960.95
Recall100.920.940.890.960.93
200.920.930.960.900.93
500.920.940.990.910.93
1000.930.941.000.920.94
2000.930.951.000.940.94

Deep Learning (MLP) Results - ECB Mode

ScenarioFile Size (KB)AccuracyPrecisionRecall
S3100.910.940.89
200.890.950.91
500.930.970.93
1000.940.960.92
2000.950.990.92
S4100.900.900.89
200.900.910.90
500.920.930.91
1000.930.940.92
2000.940.950.94
DOI: https://doi.org/10.2478/ias-2026-0007 | Journal eISSN: 1554-1029 | Journal ISSN: 1554-1010
Language: English
Page range: 119 - 136
Published on: Jul 8, 2026
In partnership with: Paradigm Publishing Services
Publication frequency: 6 issues per year

© 2026 Uroosa Kiran, Hammad Tanveer Butt, Zunera Jalil, published by Cerebration Science Publishing Co., Limited
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 License.