{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,18]],"date-time":"2026-07-18T16:25:33Z","timestamp":1784391933924,"version":"3.55.0"},"reference-count":31,"publisher":"MDPI AG","issue":"3","license":[{"start":{"date-parts":[[2023,9,1]],"date-time":"2023-09-01T00:00:00Z","timestamp":1693526400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"CONAHCYT, Mexico","award":["A1-S-47854"],"award-info":[{"award-number":["A1-S-47854"]}]},{"name":"CONAHCYT, Mexico","award":["20220852"],"award-info":[{"award-number":["20220852"]}]},{"name":"CONAHCYT, Mexico","award":["20220859"],"award-info":[{"award-number":["20220859"]}]},{"name":"Secretar\u00eda de Investigaci\u00f3n y Posgrado of the Instituto Polit\u00e9cnico Nacional, Mexico","award":["A1-S-47854"],"award-info":[{"award-number":["A1-S-47854"]}]},{"name":"Secretar\u00eda de Investigaci\u00f3n y Posgrado of the Instituto Polit\u00e9cnico Nacional, Mexico","award":["20220852"],"award-info":[{"award-number":["20220852"]}]},{"name":"Secretar\u00eda de Investigaci\u00f3n y Posgrado of the Instituto Polit\u00e9cnico Nacional, Mexico","award":["20220859"],"award-info":[{"award-number":["20220859"]}]},{"name":"Microsoft","award":["A1-S-47854"],"award-info":[{"award-number":["A1-S-47854"]}]},{"name":"Microsoft","award":["20220852"],"award-info":[{"award-number":["20220852"]}]},{"name":"Microsoft","award":["20220859"],"award-info":[{"award-number":["20220859"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["MAKE"],"abstract":"<jats:p>Social networks have captured the attention of many people worldwide. However, these services have also attracted a considerable number of malicious users whose aim is to compromise the digital assets of other users by using messages as an attack vector to execute different types of cyberattacks against them. This work presents an approach based on natural language processing tools and a convolutional neural network architecture to detect and classify four types of cyberattacks in social network messages, including malware, phishing, spam, and even one whose aim is to deceive a user into spreading malicious messages to other users, which, in this work, is identified as a bot attack. One notable feature of this work is that it analyzes textual content without depending on any characteristics from a specific social network, making its analysis independent of particular data sources. Finally, this work was tested on real data, demonstrating its results in two stages. The first stage detected the existence of any of the four types of cyberattacks within the message, achieving an accuracy value of 0.91. After detecting a message as a cyberattack, the next stage was to classify it as one of the four types of cyberattack, achieving an accuracy value of 0.82.<\/jats:p>","DOI":"10.3390\/make5030058","type":"journal-article","created":{"date-parts":[[2023,9,1]],"date-time":"2023-09-01T09:24:53Z","timestamp":1693560293000},"page":"1132-1148","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":20,"title":["Cyberattack Detection in Social Network Messages Based on Convolutional Neural Networks and NLP Techniques"],"prefix":"10.3390","volume":"5","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-9022-016X","authenticated-orcid":false,"given":"Jorge E.","family":"Coyac-Torres","sequence":"first","affiliation":[{"name":"Centro de Investigaci\u00f3n en Computaci\u00f3n (CIC), Instituto Polit\u00e9cnico Nacional (IPN), Av. Juan de Dios Batiz, s\/n, Mexico City 07320, Mexico"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3901-3522","authenticated-orcid":false,"given":"Grigori","family":"Sidorov","sequence":"additional","affiliation":[{"name":"Centro de Investigaci\u00f3n en Computaci\u00f3n (CIC), Instituto Polit\u00e9cnico Nacional (IPN), Av. Juan de Dios Batiz, s\/n, Mexico City 07320, Mexico"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6373-4210","authenticated-orcid":false,"given":"Eleazar","family":"Aguirre-Anaya","sequence":"additional","affiliation":[{"name":"Centro de Investigaci\u00f3n en Computaci\u00f3n (CIC), Instituto Polit\u00e9cnico Nacional (IPN), Av. Juan de Dios Batiz, s\/n, Mexico City 07320, Mexico"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4326-6402","authenticated-orcid":false,"given":"Gerardo","family":"Hern\u00e1ndez-Oreg\u00f3n","sequence":"additional","affiliation":[{"name":"Centro de Investigaci\u00f3n en Computaci\u00f3n (CIC), Instituto Polit\u00e9cnico Nacional (IPN), Av. Juan de Dios Batiz, s\/n, Mexico City 07320, Mexico"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2023,9,1]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"420","DOI":"10.1016\/j.appdev.2008.07.003","article-title":"Online and offline social networks: Use of social networking sites by emerging adults","volume":"29","author":"Subrahmanyam","year":"2008","journal-title":"J. Appl. Dev. Psychol."},{"key":"ref_2","first-page":"133","article-title":"BILROST: Handling actuators of the internet of things through tweets on twitter using a domain-specific language","volume":"6","author":"Pelayo","year":"2021","journal-title":"Int. J. Interact. Multimed. Artif. Intell."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Kumar, R., Anand, A., Kumar, P., and Kumar, R.K. (2020, January 12\u201314). Internet of Things and Social Media: A review of Literature and Validation from Twitter Analytics. Proceedings of the 2020 International Conference on Emerging Smart Computing and Informatics (ESCI), Pune, India.","DOI":"10.1109\/ESCI48226.2020.9167558"},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"24","DOI":"10.1016\/S2212-5671(15)01077-1","article-title":"Cyber-Attacks\u2014Trends, Patterns and Security Countermeasures","volume":"28","author":"Bendovschi","year":"2015","journal-title":"Procedia Econ. Financ."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"1341","DOI":"10.3844\/jcssp.2019.1341.1354","article-title":"Survey of websites and web application security threats using vulnerability assessment","volume":"15","author":"Appiah","year":"2018","journal-title":"J. Comput. Sci."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"771","DOI":"10.1080\/17517575.2019.1599446","article-title":"Perceived usefulness, ease of use and user acceptance of blockchain technology for digital transactions\u2013insights from user-generated content on Twitter","volume":"13","author":"Grover","year":"2019","journal-title":"Enterp. Inf. Syst."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"1060","DOI":"10.1108\/BFJ-03-2020-0192","article-title":"Using Twitter to explore consumers\u2019 sentiments and their social representations towards new food trends","volume":"123","author":"Pindado","year":"2021","journal-title":"Br. Food J."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Sukma, E.A., Hidayanto, A.N., Pandesenda, A.I., Yahya, A.N., Widharto, P., and Rahardja, U. (2020, January 19\u201320). Sentiment Analysis of the New Indonesian Government Policy (Omnibus Law) on Social Media Twitter. Proceedings of the 2020 International Conference on Informatics, Multimedia, Cyber and Information System (ICIMCIS), Jakarta, Indonesia.","DOI":"10.1109\/ICIMCIS51567.2020.9354287"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Khurniawan, F.S., and Ruldeviyani, Y. (2020, January 5\u20136). Twitter Sentiment Analysis: Case Study on the Revision of the Indonesia\u2019s Corruption Eradication Commission (KPK) Law 2019. Proceedings of the 2020 International Conference on Data Science and Its Applications (ICoDSA), Bandung, Indonesia.","DOI":"10.1109\/ICoDSA50139.2020.9212851"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"207","DOI":"10.1016\/j.knosys.2018.01.016","article-title":"Using Twitter trust network for stock market analysis","volume":"145","author":"Ruan","year":"2018","journal-title":"Knowl. Based Syst."},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Lee, H.S. (2020). Exploring the Initial Impact of COVID-19 Sentiment on US Stock Market Using Big Data. Sustainability, 12.","DOI":"10.3390\/su12166648"},{"key":"ref_12","first-page":"1031","article-title":"Detecci\u00f3n de ciberataques a trav\u00e9s del an\u00e1lisis de mensajes de redes sociales: Revisi\u00f3n del estado del arte","volume":"149","author":"Sidorov","year":"2020","journal-title":"Res. Comput. Sci."},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Kunwar, R.S., and Sharma, P. (2016, January 8\u20139). Social media: A new vector for cyber attack. Proceedings of the 2016 International Conference on Advances in Computing, Communication, & Automation (ICACCA) (Spring), Dehradun, India.","DOI":"10.1109\/ICACCA.2016.7578896"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"66","DOI":"10.1016\/j.cose.2016.12.017","article-title":"Approaches to analyze cyber terrorist communities: Survey and challenges","volume":"66","author":"Saidi","year":"2017","journal-title":"Comput. Secur."},{"key":"ref_15","first-page":"46","article-title":"Finding malicious cyber discussions in social media","volume":"22","author":"Lippmann","year":"2016","journal-title":"Linc. Lab. J."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Grisham, J., Samtani, S., Patton, M., and Chen, H. (2017, January 22\u201324). Identifying mobile malware and key threat actors in online hacker forums for proactive cyber threat intelligence. Proceedings of the 2017 IEEE International Conference on Intelligence and Security Informatics (ISI), Beijing, China.","DOI":"10.1109\/ISI.2017.8004867"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Liao, X., Yuan, K., Wang, X., Li, Z., Xing, L., and Beyah, R. (2016, January 24\u201328). Acing the IOC Game: Toward Automatic Discovery and Analysis of Open-Source Cyber Threat Intelligence. Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria.","DOI":"10.1145\/2976749.2978315"},{"key":"ref_18","unstructured":"(2022, October 11). Iocs, \u00bfrealmente Conocemos sus Capacidades?. Available online: https:\/\/www.pandasecurity.com\/spain\/mediacenter\/seguridad\/iocs-y-sus-capacidades."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"201","DOI":"10.1016\/j.cose.2019.02.004","article-title":"An Effective Security Alert Mechanism for Real-Time Phishing Tweet Detection on Twitter","volume":"83","author":"Liew","year":"2019","journal-title":"Comput. Secur."},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Erkal, Y., Sezgin, M., and Gunduz, S. (2015, January 9\u201311). A New Cyber Security Alert System for Twitter. Proceedings of the 2015 IEEE 14th International Conference on Machine Learning and Applications (ICMLA), Miami, FL, USA.","DOI":"10.1109\/ICMLA.2015.133"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Ashour, M., Salama, C., and El-Kharashi, M.W. (2018, January 8\u201319). Detecting Spam Tweets using Character N-gram Features. Proceedings of the 2018 13th International Conference on Computer Engineering and Systems (ICCES), Cairo, Egypt.","DOI":"10.1109\/ICCES.2018.8639297"},{"key":"ref_22","first-page":"1","article-title":"Twitter Spam Detection Based on Deep Learning","volume":"3","author":"Wu","year":"2018","journal-title":"Proc. Australas. Comput. Sci. Week Multiconference"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"15","DOI":"10.1109\/MNET.2018.1700406","article-title":"Multistage and Elastic Spam Detection in Mobile Social Networks through Deep Learning","volume":"32","author":"Feng","year":"2018","journal-title":"IEEE Netw."},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"973","DOI":"10.1109\/TCSS.2018.2878852","article-title":"A Neural Network-Based Ensemble Approach for Spam Detection in Twitter","volume":"5","author":"Madisetty","year":"2018","journal-title":"IEEE Trans. Comput. Soc. Syst."},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Chen, W., Yeo, C.K., Lau, C.T., and Lee, B.S. (2017). A study on real-time low-quality content detection on Twitter from the users\u2019 perspective. PLoS ONE, 12.","DOI":"10.1371\/journal.pone.0182487"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Djaballah, K.A., Boukhalfa, K., Ghalem, Z., and Boukerma, O. (2020, January 14\u201316). A new approach for the detection and analysis of phishing in social networks: The case of Twitter. Proceedings of the 2020 Seventh International Conference on Social Networks Analysis, Management and Security (SNAMS), Paris, France.","DOI":"10.1109\/SNAMS52053.2020.9336572"},{"key":"ref_27","unstructured":"Lampu, B. (2022, June 22). SMS_ Spam_Ham_Prediction. Available online: https:\/\/www.kaggle.com\/datasets\/lampubhutia\/email-spam-ham-prediction."},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Behzadan, V., Aguirre, C., Bose, A., and Hsu, W. (2018, January 10\u201313). Corpus and Deep Learning Classifier for Collection of Cyber Threat Indicators in Twitter Stream. Proceedings of the 2018 IEEE International Conference on Big Data (Big Data), Seattle, WA, USA.","DOI":"10.1109\/BigData.2018.8622506"},{"key":"ref_29","doi-asserted-by":"crossref","unstructured":"Kim, Y. (2014, January 25\u201329). Convolutional Neural Networks for Sentence Classification. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar.","DOI":"10.3115\/v1\/D14-1181"},{"key":"ref_30","unstructured":"Brownlee, J. (2017). Deep Learning for Natural Language Processing, Machine Learning Mastery. [1st ed.]."},{"key":"ref_31","unstructured":"Abadi, M., Agarwal, A., and Barham, P. (2015). TensorFlow: Large-Scale Machine Learning on Heterogeneous Systems. arXiv."}],"container-title":["Machine Learning and Knowledge Extraction"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2504-4990\/5\/3\/58\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T20:44:45Z","timestamp":1760129085000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2504-4990\/5\/3\/58"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,9,1]]},"references-count":31,"journal-issue":{"issue":"3","published-online":{"date-parts":[[2023,9]]}},"alternative-id":["make5030058"],"URL":"https:\/\/doi.org\/10.3390\/make5030058","relation":{},"ISSN":["2504-4990"],"issn-type":[{"value":"2504-4990","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,9,1]]}}}