This paper discussed the possibility of utilizing a sentiment analysis of online discussions on X platform (which was previously X) as a predictor of cyber defacement attacks. It bridged a serious gap in the literature on cybersecurity, where the focus has been on technical signatures and little consideration has been made on socio-technical antecedents. The hypothesis that spikes of negative public sentiment might be predictive indicators of ideologically motivated cases of defacement was tested in the study. A hybrid sentiment analysis model was used, which incorporates lexicon-based VADER model with machine learning classifiers, such as Naive Bayes and Long Short-Term Memory networks. The data consisted of 503456 posts related to cybersecurity and the data were compared to the verified cases of defacement in repositories like Zone-H using time-series analysis, Pearson correlation, and cross-correlation functions. Findings indicated that negative sentiment only comprised of 8.6% of the posts with the majority being neutral (50.9) and positive (40.5). The temporal analysis showed that there is not a substantial change in negative sentiment, but short bursts of negative sentiment are associated with cybersecurity disclosure. The cross-correlation analysis showed only weak contemporaneous correlation (r ≈ 0.12, lag = 0 days) but no predictive correlation in negative lags. The stacked ensemble model (Naïve Bayes, BiLSTM, ARIMA) was very strong in classification (Accuracy = 0.8568, F1 = 0.8055, ROC-AUC = 0.9116) but mainly it was very sensitive to concurrent or retrospective signals. The research established that aggregate sentiment does not provide predictive information, socio-technical prediction would combat inactive fine-grained and entity-specific signals combined with technical threat knowledge.
KeywordsSentiment AnalysisCyber Defacement AttacksX PlatformPredictive ModelingCybersecurity MonitoringEarly-Warning Systems
Sleem, A. (2022) A Comprehensive Study of Cybersecurity Threats and Countermeasures: Strategies for Mitigating Risks in the Digital Age. Journal of Cybersecurity and Information Management , 10, 35-46. https://doi.org/10.54216/jcim.100204
Finnemore, M. and Hollis, D.B. (2016) Constructing Norms for Global Cybersecurity. American Journal of International Law , 110, 425-479. https://doi.org/10.1017/s0002930000016894
Abushark, Y.B., Irshad Khan, A., Alsolami, F., Almalawi, A., Mottahir Alam, M., Agrawal, A., et al . (2022) Cyber Security Analysis and Evaluation for Intrusion Detection Systems. Computers , Materials & Continua , 72, 1765-1783. https://doi.org/10.32604/cmc.2022.025604
Meland, P., Tokas, S., Erdogan, G., Bernsmed, K. and Omerovic, A. (2021) A Systematic Mapping Study on Cyber Security Indicator Data. Electronics , 10, Article 1092. https://doi.org/10.3390/electronics10091092
Achuthan, K., Khobragade, S. and Kowalski, R. (2025) Public Sentiment and Engagement on Cybersecurity: Insights from Reddit Discussions. Computers in Human Behavior Reports , 17, Article ID: 100573. https://doi.org/10.1016/j.chbr.2024.100573
Budimir, S., Fontaine, J.R., Huijts, N.M., Haans, A., Loukas, G. and Roesch, E.B. (2021) Emotional Reactions to Cybersecurity Breach Situations: Scenario-Based Survey Study. Journal of Medical Internet Research , 23, e24879. https://doi.org/10.2196/24879
Koc-Michalska, K., Klinger, U., Bennett, L. and Rommele, A. (2024) Dissonant Public Spheres. Routledge. https://doi.org/10.4324/9781003479598
Al-Khater, W.A., Al-Maadeed, S., Ahmed, A.A., Sadiq, A.S. and Khan, M.K. (2020) Comprehensive Review of Cybercrime Detection Techniques. IEEE Access , 8, 137293-137311. https://doi.org/10.1109/access.2020.3011259
Albalawi, M., Aloufi, R., Alamrani, N., Albalawi, N., Aljaedi, A. and Alharbi, A.R. (2022) Website Defacement Detection and Monitoring Methods: A Review. Electronics , 11, Article 3573. https://doi.org/10.3390/electronics11213573
Almomani, O., Alsaaidah, A., Abu-Shareha, A.A., Alzaqebah, A., Amin Almaiah, M. and Shambour, Q. (2025) Enhance URL Defacement Attack Detection Using Particle Swarm Optimization and Machine Learning. Journal of Computational and Cognitive Engineering , 4, 296-308. https://doi.org/10.47852/bonviewjcce52024668
Dau, H.X., Trang, N.T.T. and Hung, N.T. (2022) A Survey of Tools and Techniques for Web Attack Detection. Journal of Science and Technology on Information security , 1, 109-118. https://doi.org/10.54654/isj.v1i15.852
Harinahalli Lokesh, G. and BoreGowda, G. (2020) Phishing Website Detection Based on Effective Machine Learning Approach. Journal of Cyber Security Technology , 5, 1-14. https://doi.org/10.1080/23742917.2020.1813396
Mao, B. and Bagolibe, K.D. (2019) A Contribution to Detect and Prevent a Website Defacement. 2019 International Conference on Cyberworlds ( CW ), Kyoto, 2-4 October 2019, 344-347. https://doi.org/10.1109/cw.2019.00062
Hou, W., Cui, B. and Li, R. (2021) A Survey on Blockchain Data Analysis. 2021 IEEE 45 th Annual Computers , Software , and Applications Conference ( COMPSAC ), Madrid, 12-16 July 2021, 357-365. https://doi.org/10.1109/compsac51774.2021.00058
Costa, M. (2025) Exploring Hacktivism: The Role and Impact of Social Media. ARIS 2— Advanced Research on Information Systems Security , 5, 99-111. https://doi.org/10.56394/aris2.v5i1.56
Surya, D., Setiawan, D., Anni Aryani, Y. and Arifin, T. (2024) Cyberattacks on the Accounting Profession: A Literatur Review. Media Riset Akuntansi , Auditing & In formasi , 24, 255-272. https://doi.org/10.25105/v24i2.19953
Jony, A.I. and Hamim, S.A. (2023) Navigating the Cyber Threat Landscape: A Comprehensive Analysis of Attacks and Security in the Digital Age. Journal of Inform ation Technology and Cyber Security , 1, 53-67. https://doi.org/10.30996/jitcs.9715
Hoang, X.D. (2018) A Website Defacement Detection Method Based on Machine Learning. In: Fujita, H., Nguyen, D., Vu, N., Banh, T. and Puta, H., Eds., Advances in Engineering Research and Application , Springer, 116-124. https://doi.org/10.1007/978-3-030-04792-4_17
Madhu, K.S., Reddy, B.C., Damarukanadhan, C., Polireddy, M. and Ravinder, N. (2021) Real Time Sentimental Analysis on Twitter. 2021 6 th International Conference on Inventive Computation Technologies ( ICICT ), Coimbatore, 20-22 January 2021, 1030-1034. https://doi.org/10.1109/icict50816.2021.9358772
Rizwan, M.M. and Devis, J. (2023) Analyzing Product Reviews to understand Customer Sentiment: A Machine Learning Approach. Proceedings of the National Conference on Emerging Computer Applications ( NCECA ), 5, 255-260. https://doi.org/10.5281/zenodo.7955846
Jouini, M. and Arfa Rabai, L.B. (2020) Towards New Quantitative Cybersecurity Risk Analysis Models for Information Systems: A Cloud Computing Case Study. In: Gupta, B., Perez, G., Agrawal, D. and Gupta, D., Eds., Handbook of Computer Networks and Cyber Security , Springer, 63-90. https://doi.org/10.1007/978-3-030-22277-2_3
Stine, R.A. (2019) Sentiment Analysis. Annual Review of Statistics and Its Application , 6, 287-308. https://doi.org/10.1146/annurev-statistics-030718-105242
Othman, R., Abdelsadek, Y., Chelghoum, K., Kacem, I. and Faiz, R. (2019) Improving Sentiment Analysis in Twitter Using Sentiment Specific Word Embeddings. 2019 10 th IEEE International Conference on Intelligent Data Acquisition and Advanced Com puting Systems : Technology and Applications ( IDAACS ), Metz, 18-21 September 2019, 854-858. https://doi.org/10.1109/idaacs.2019.8924403
Singh, N. and Jaiswal, U.C. (2023) Sentiment Analysis Using Machine Learning. ADCAIJ : Advances in Distributed Computing and Artificial Intelligence Journal , 12, e26785. https://doi.org/10.14201/adcaij.26785
Davanzo, G., Medvet, E. and Bartoli, A. (n.d.) A Comparative Study of Anomaly Detection Techniques in Web Site Defacement Detection. In: Jajodia, S., Samarati, P. and Cimato, S., Eds., Proceedings of The Ifip Tc 11 23 rd International Information Security Conference , Springer, 711-716. https://doi.org/10.1007/978-0-387-09699-5_50
Xu, Q.A., Chang, V. and Jayne, C. (2022) A Systematic Review of Social Media-Based Sentiment Analysis: Emerging Trends and Challenges. Decision Analytics Journal , 3, Article ID: 100073. https://doi.org/10.1016/j.dajour.2022.100073
Jamil, M.L., Pais, S. and Cordeiro, J. (2022) Detection of Dangerous Events on Social Media: A Critical Review. Social Network Analysis and Mining , 12, Article No. 154. https://doi.org/10.1007/s13278-022-00980-y
Zimmer, F., Scheibe, K., Stock, M. and Stock, W.G. (2019) Fake News in Social Media: Bad Algorithms or Biased Users? Journal of Information Science Theory and Practice , 7, 40-53. https://doi.org/10.1633/JISTaP.2019.7.2.4
Yue, L., Chen, W., Li, X., Zuo, W. and Yin, M. (2018) A Survey of Sentiment Analysis in Social Media. Knowledge and Information Systems , 60, 617-663. https://doi.org/10.1007/s10115-018-1236-4
Kumar, A. and Sharma, I. (2023) Performance Evaluation of Machine Learning Algorithms for Website Defacement Attack Detection. 2023 International Conference on Smart Systems for applications in Electrical Sciences ( ICSSES ), Tumakuru, 7-8 July 2023, 1-6. https://doi.org/10.1109/icsses58299.2023.10201194
Conteh, N.Y. and Schmick, P.J. (2016) Cybersecurity: Risks, Vulnerabilities and Countermeasures to Prevent Social Engineering Attacks. International Journal of Advanced Computer Research , 6, 31-38. https://doi.org/10.19101/ijacr.2016.623006
Khouzani, M., Liu, Z. and Malacaria, P. (2019) Scalable Min-Max Multi-Objective Cyber-Security Optimisation over Probabilistic Attack Graphs. European Journal of Operational Research , 278, 894-903. https://doi.org/10.1016/j.ejor.2019.04.035
Chen, Y., Cui, M., Wang, D., Cao, Y., Yang, P., Jiang, B., et al . (2024) A Survey of Large Language Models for Cyber Threat Detection. Computers & Security , 145, Article ID: 104016. https://doi.org/10.1016/j.cose.2024.104016
Hutchings, A. and Collier, B. (2019) Inside Out: Characterising Cybercrimes Committed Inside and Outside the Workplace. 2019 IEEE European Symposium on Security and Privacy Workshops ( EuroS&PW ), Stockholm, 17-19 June 2019, 481-490. https://doi.org/10.1109/eurospw.2019.00060
Shu, K., Sliva, A., Sampson, J. and Liu, H. (2018) Understanding Cyber Attack Behaviors with Sentiment Information on Social Media. In: Thomson, R., Dancy, C., Hyder, A. and Bisgin, H., Eds., Social , Cultural , and Behavioral Modeling , Springer, 377-388. https://doi.org/10.1007/978-3-319-93372-6_41
Arief, M. and Samsudin, N.A. (2023) Hybrid Approach with VADER and Multinomial Logistic Regression for Multiclass Sentiment Analysis in Online Customer Review. International Journal of Advanced Computer Science and Applications , 14. https://doi.org/10.14569/ijacsa.2023.0141232
Batailler, C., Brannon, S.M., Teas, P.E. and Gawronski, B. (2021) A Signal Detection Approach to Understanding the Identification of Fake News. Perspectives on Psychological Science , 17, 78-98. https://doi.org/10.1177/1745691620986135
Jacobs, A.M. (2019) Sentiment Analysis for Words and Fiction Characters from the Perspective of Computational (Neuro-)Poetics. Frontiers in Robotics and AI , 6, Article 53. https://doi.org/10.3389/frobt.2019.00053
Stieglitz, S., Mirbabaie, M., Ross, B. and Neuberger, C. (2018) Social Media Analytics—Challenges in Topic Discovery, Data Collection, and Data Preparation. International Journal of Information Management , 39, 156-168. https://doi.org/10.1016/j.ijinfomgt.2017.12.002
Jacob, N. (2025) X Sentiment Analysis Dataset. Mendeley Data. https://doi.org/10.17632/jmbr7xmrw7.1
Chang, H.H., Chen, E., Zhang, M., Muric, G. and Ferrara, E. (2021) Social Bots and Social Media Manipulation in 2020. In: Engel, U., Quan-Haase, A., Liu, S. and Lyberg, L.E., Eds., Handbook of Computational Social Science , Volume 1, Routledge, 304-323. https://doi.org/10.4324/9781003024583-21
Bendovschi, A. (2015) Cyber-Attacks—Trends, Patterns and Security Countermeasures. Procedia Economics and Finance , 28, 24-31. https://doi.org/10.1016/s2212-5671(15)01077-1
Li, Y. and Liu, Q. (2021) A Comprehensive Review Study of Cyber-Attacks and Cyber Security; Emerging Trends and Recent Developments. Energy Reports , 7, 8176-8186. https://doi.org/10.1016/j.egyr.2021.08.126
Yang, Y., Zhang, C., Fan, C., Mostafavi, A. and Hu, X. (2020) Towards Fairness-Aware Disaster Informatics: An Interdisciplinary Perspective. IEEE Access , 8, 201040-201054. https://doi.org/10.1109/access.2020.3035714
Achuthan, K., Khobragade, S. and Kowalski, R. (2025) Cybercrime through the Public Lens: A Longitudinal Analysis. Humanities and Social Sciences Communications , 12, Article No. 282. https://doi.org/10.1057/s41599-025-04459-x
Garcia, J. (2025) Beyond the Headlines: Sentiment Divergence and Financial Distress. Global Finance Journal , 66, Article ID: 101126. https://doi.org/10.1016/j.gfj.2025.101126
Deb, A., Lerman, K. and Ferrara, E. (2018) Predicting Cyber-Events by Leveraging Hacker Sentiment. Information , 9, Article 280. https://doi.org/10.3390/info9110280