Comparison Of K-Prototypes And Gower-Based Agglomerative Clustering For Zone-H Web Defacement Patterns
DOI:
https://doi.org/10.25126/jitecs.113896Abstract
Background: Web defacement incident metadata in the Zone-H archive combine numerical and categorical attributes, so their analysis requires mixed-data clustering whose results may depend on how the attributes are represented.
Objective: This study compared K-Prototypes and Gower Distance–based Agglomerative Clustering and examined whether the resulting attack patterns were robust to the representation of the numerical attributes.
Novelty: Unlike previous studies of defacement archives, this study applies unsupervised mixed-data clustering to incident metadata and quantifies how numerical scaling, cyclic month encoding, and the weighting parameter γ shape the clusters.
Methods: A month-stratified sample of 14,156 Zone-H records (January 2023–October 2025) was clustered. Four numerical representations were evaluated for K-Prototypes (raw, min–max scaled, cyclically encoded month, and both), together with a γ sensitivity analysis and a decomposition of the between-prototype dissimilarity.
Results: With raw attributes, month contributed 91–98% of the between-prototype dissimilarity. After scaling and cyclic encoding, K-Prototypes still produced three balanced early-, mid-, and late-year clusters (Silhouette 0.4425, DBI 0.9426), a structure that persisted for γ ≤ 2 but disappeared at γ = 5. Gower Distance–based Agglomerative Clustering (Silhouette 0.1045, DBI 1.7358) instead separated redefacement, mass defacement, and FreeBSD-target profiles.
Conclusion: Because the internal indices use different distance measures, they do not establish the superiority of either method; the methods capture complementary structures, namely when attacks concentrate and what kinds of attacks occur. Future work should analyze the full dataset and evaluate cluster stability.
Downloads
References
[1] Badan Siber dan Sandi Negara, “Lanskap keamanan siber Indonesia,” Id-SIRTII/CC, pp. 1–107, 2024. [Online]. Available: https://bit.ly/44bzpHM
[2] Z. Huang, “Extensions to the k-means algorithm for clustering large data sets with categorical values,” Data Min. Knowl. Discov., vol. 2, no. 3, pp. 283–304, 1998.
[3] J. C. Gower, “A general coefficient of similarity and some of its properties,” Biometrics, vol. 27, no. 4, pp. 857–871, 1971.
[4] E. U. Oti and M. O. Olusola, “Overview of agglomerative hierarchical clustering methods,” Br. J. Comput. Netw. Inf. Technol., vol. 7, no. 2, pp. 14–23, 2024, doi: 10.52589/bjcnit-cv9poogw.
[5] A. Wasilewski, K. Juszczyszyn, and V. Suryani, “Multi-factor evaluation of clustering methods for e-commerce application,” Egypt. Inform. J., vol. 28, p. 100562, 2024, doi: 10.1016/j.eij.2024.100562.
[6] B. A. Hassan et al., “From A-to-Z review of clustering validation indices,” Neurocomputing, vol. 601, p. 128198, 2024, doi: 10.1016/j.neucom.2024.128198.
[7] S. G. A. van de Weijer, T. J. Holt, and E. R. Leukfeldt, “Heterogeneity in trajectories of cybercriminals: A longitudinal analyses of web defacements,” Comput. Hum. Behav. Rep., vol. 4, p. 100113, 2021.
[8] T. J. Holt, J. R. Lee, J. D. Freilich, S. M. Chermak, J. M. Bauer, R. Shillair, and A. Ross, “An exploratory analysis of the characteristics of ideologically motivated cyberattacks,” Terrorism Polit. Violence, vol. 34, no. 7, pp. 1305–1320, 2022.
[9] S. Banerjee, T. Swearingen, R. Shillair, J. M. Bauer, T. Holt, and A. Ross, “Using machine learning to examine cyberattack motivations on web defacement data,” Soc. Sci. Comput. Rev., vol. 40, no. 4, pp. 914–932, 2022.
[10] G. W. Burruss, C. J. Howell, D. Maimon, and F. Wang, “Website defacer classification: A finite mixture model approach,” Soc. Sci. Comput. Rev., vol. 40, no. 3, pp. 775–787, 2022, doi: 10.1177/0894439321994232.
[11] A. V. Vu, D. R. Thomas, B. Collier, A. Hutchings, R. Clayton, and R. Anderson, “Getting bored of cyberwar: Exploring the role of low-level cybercrime actors in the Russia–Ukraine conflict,” in Proc. ACM Web Conf. (WWW ’24), Singapore, 2024, doi: 10.1145/3589334.3645401.
[12] F. Maggi, M. Balduzzi, R. Flores, L. Gu, and V. Ciancaglini, “Investigating web defacement campaigns at large,” in Proc. Asia Conf. Comput. Commun. Secur. (ASIACCS), 2018, pp. 443–456.
[13] X. D. Hoang, T. H. Nguyen, and H. D. Pham, “A novel model for detecting web defacement attacks transformer using plain text features,” Indones. J. Electr. Eng. Comput. Sci., vol. 37, no. 1, pp. 232–240, 2025, doi: 10.11591/ijeecs.v37.i1.pp232-240.
[14] T. H. Nguyen, X. D. Hoang, and D. D. Nguyen, “Detecting website defacement attacks using web-page text and image features,” Int. J. Adv. Comput. Sci. Appl., vol. 12, no. 7, pp. 215–222, 2021, doi: 10.14569/IJACSA.2021.0120725.
[15] H. A. Prasetyo, V. Suryani, and M. D. Sulistiyo, “Towards enhanced detection of website defacement: A hybrid model combining transformer NLP and MITRE ATT&CK TTPs,” Int. J. Intell. Eng. Syst., vol. 19, no. 2, pp. 141–163, 2026, doi: 10.22266/ijies2026.0228.10.
[16] A. Ahmad and S. S. Khan, “Survey of state-of-the-art mixed data clustering algorithms,” IEEE Access, vol. 7, pp. 31883–31902, 2019, doi: 10.1109/ACCESS.2019.2903568.
[17] T. Dinh, W. Hauchi, P. Fournier-Viger, D. Lisik, M.-Q. Ha, H.-C. Dam, and V.-N. Huynh, “Categorical data clustering: 25 years beyond K-modes,” Expert Syst. Appl., vol. 272, p. 126608, 2025.
[18] A. F. Purba, M. Mustafid, and P. Kartikasari, “Penerapan algoritma k-prototype untuk pengelompokan desa di Kabupaten Bekasi berdasarkan infrastruktur digital,” J. Gaussian, vol. 13, no. 2, pp. 479–489, 2025, doi: 10.14710/j.gauss.13.2.479-489.
[19] S. Annas, I. Irwan, R. H. Safei, and Z. Rais, “K-prototypes algorithm for clustering the tectonic earthquake in Sulawesi Island,” J. Varian, vol. 5, no. 2, pp. 191–198, 2022, doi: 10.30812/varian.v5i2.1908.
[20] P. Liu et al., “A modified and weighted Gower distance-based clustering analysis for mixed type data: A simulation and empirical analyses,” BMC Med. Res. Methodol., vol. 24, no. 1, 2024, doi: 10.1186/s12874-024-02427-8.
[21] M. Risqi, M. N. Farid, M. Idhom, and Trimono, “Perbandingan algoritma k-prototypes dengan agglomerative clustering dalam segmentasi siswa berdasarkan faktor akademik dan sosial,” J. Tek. Inform. Multimedia, vol. 5, no. 1, pp. 151–160, 2025, doi: 10.51903/spkmfd39.
[22] C. Wongoutong, “The impact of neglecting feature scaling in k-means clustering,” PLOS ONE, vol. 19, no. 12, p. e0310839, 2024, doi: 10.1371/journal.pone.0310839.
[23] H.-Y. Kim, “Statistical notes for clinical researchers: Chi-squared test and Fisher’s exact test,” Restor. Dent. Endod., vol. 42, no. 2, pp. 152–155, 2017, doi: 10.5395/rde.2017.42.2.152.
[24] S. Meisenbacher, M. Turowski, K. Phipps, M. Rätz, D. Müller, V. Hagenmeyer, and R. Mikut, “Review of automated time series forecasting pipelines,” WIREs Data Min. Knowl. Discov., vol. 12, no. 6, p. e1475, 2022, doi: 10.1002/widm.1475.
[25] P. J. Rousseeuw, “Silhouettes: A graphical aid to the interpretation and validation of cluster analysis,” J. Comput. Appl. Math., vol. 20, pp. 53–65, 1987.
[26] D. L. Davies and D. W. Bouldin, “A cluster separation measure,” IEEE Trans. Pattern Anal. Mach. Intell., vol. PAMI-1, no. 2, pp. 224–227, 1979.
[27] L. McInnes, J. Healy, and J. Melville, “UMAP: Uniform manifold approximation and projection for dimension reduction,” arXiv:1802.03426, 2018.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Journal of Information Technology and Computer Science

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Creative Common Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).








