<?xml version="1.0" encoding="UTF-8"?>
<article xmlns:xlink="http://www.w3.org/1999/xlink">
<front><article-meta>
<title-group><article-title>Enhancing Data Security and Trust in IoT-Based Smart City Infrastructures</article-title></title-group>
<contrib-group>
<contrib contrib-type="author"><name><surname>Fakheri</surname><given-names>Soheil</given-names></name><xref ref-type="aff" rid="aff1"/></contrib>
<contrib contrib-type="author"><name><surname>Alimoradi</surname><given-names>Mahmud</given-names></name><xref ref-type="aff" rid="aff2"/></contrib>
<aff id="aff1">Department of Computer Engineering and Information Technology, La.C., Islamic Azad University, Lahijan, Iran.</aff>
<aff id="aff2">Department of Computer Engineering, Ayandegan Institute of Higher Education, Tonekabon, Iran.</aff>
</contrib-group>
<abstract><p>The increasing deployment of Internet of Things (IoT) devices has significantly impacted the development and management of smart city infrastructures. These devices facilitate automation, real-time data collection, and efficient resource management across sectors such as transportation, healthcare, energy, and environmental monitoring. However, integrating diverse IoT devices across vast networks has introduced a new array of security challenges, primarily associated with data transmission vulnerabilities. Secure data transmission in IoT networks is crucial to prevent data breaches, unauthorized access, and cyber-attacks that can compromise sensitive information, disrupt services, and threaten public safety.</p><p>This paper presents a comprehensive approach to secure data transmission in IoT-based smart city networks, leveraging a multi-layered security model. The proposed solution combines advanced encryption techniques, secure key management protocols, and robust authentication mechanisms to ensure data confidentiality, integrity, and availability across IoT networks. We use AES-256 for high-speed, efficient data encryption, Public Key Infrastructure (PKI) for device authentication, and the Diffie-Hellman key exchange protocol for secure key management. Additionally, we use lightweight communication protocols such as Message Queuing Telemetry Transport (MQTT) with Transport Layer Security (TLS) to maintain data integrity while minimizing computational overhead on resource-constrained devices.</p></abstract>
<kwd-group kwd-group-type="author"><kwd>Smart city</kwd><kwd>Secure data transmission</kwd><kwd>Encryption</kwd><kwd>Key management</kwd><kwd>Cybersecurity</kwd><kwd>Authentication</kwd></kwd-group>
</article-meta></front>
<body>
<sec id="sec-1">
<p>protocols.</p>
</sec>
<sec id="sec-2"><label>1</label><title>Introduction</title>
<p>The rapid growth of Internet of Things (IoT) technology has paved the way for the development of smart cities, where interconnected devices enable efficient urban management and improved quality of life. IoT devices play a pivotal role in automating and transforming city services, from smart traffic systems and intelligent lighting to waste management and air quality monitoring. However, the increased connectivity also introduces vulnerabilities, as data is continuously transmitted across public and private networks. For example, unauthorized access to smart traffic systems could lead to traffic disruptions, while breaches in healthcare systems could compromise patient data privacy <xref ref-type="bibr" rid="ref-1">[1]</xref>.</p>
<fig id="fig1"><label>Figure 1</label><caption><p>Integration of IoT with smart city network.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:1:109,451,536.2,697"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<p>Ensuring the security of data transmission in IoT-based smart city networks is imperative to maintaining the integrity, reliability, and trustworthiness of these systems. This paper addresses the core challenges associated with IoT data security, including encryption, authentication, and secure communication protocols. Our proposed solution integrates a layered security approach to comprehensively address these issues, ensuring robust data protection in smart city ecosystems <xref ref-type="bibr" rid="ref-2">[2]</xref>.</p>
<table-wrap id="tab1"><label>Table 1</label><caption><p>Common faults in IoT cloud systems.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:1:82.8,314.8,536.2,341.4"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
<sec id="sec-3"><label>1</label><title>Network connectivity issues Unstable or disrupted connections affect data transmission across</title>
<p>devices.</p>
</sec>
<sec id="sec-4"><label>2</label><title>Data security breaches Unauthorized access or cyber-attacks leading to data theft and</title>
<p>manipulation.</p>
</sec>
<sec id="sec-5"><label>3</label><title>Device authentication failures Inability to verify device identity, resulting in unauthorized devices</title>
<p>accessing the network.</p>
</sec>
<sec id="sec-6"><label>4</label><title>Scalability challenges Difficulty in scaling the network to accommodate an increasing</title>
<p>number of IoT devices.</p>
<p>5 Inconsistent data collection Loss of data or irregular intervals in data collection due to device manipulation.</p>
</sec>
<sec id="sec-7"><title>IoT systems, when integrated into smart city networks, introduce new challenges:</title>
<p>I. Data privacy and security: ensuring secure and private transmission of sensitive data <xref ref-type="bibr" rid="ref-3">[3]</xref>.</p>
<p>II. Scalability and interoperability: achieving seamless integration and scalability across diverse devices <xref ref-type="bibr" rid="ref-4">[4]</xref>. III. Network reliability and connectivity: maintaining stable and consistent device connectivity <xref ref-type="bibr" rid="ref-5">[5]</xref>.</p>
<p>IV. Data management and storage: efficiently managing, processing, and storing vast data volumes <xref ref-type="bibr" rid="ref-6">[6]</xref>.</p>
<p>V. Energy consumption and device maintenance: optimizing power use and regular device upkeep <xref ref-type="bibr" rid="ref-7">[7]</xref>.</p>
</sec>
<sec id="sec-8"><label>2</label><title>Literature Review</title>
<sec id="sec-9"><label>2.1</label><title>Importance of IoT Security in Smart Cities</title>
<p>The evolution of IoT technology has significantly impacted various aspects of smart city infrastructure, including smart grids, automated traffic management, surveillance systems, and environmental monitoring. While these advancements bring numerous benefits, they also introduce security challenges that require immediate attention. Cybersecurity is critical because compromised IoT devices can lead to data breaches, service disruptions, and even physical threats.</p>
<fig id="fig2"><label>Figure 2</label><caption><p>Smart city components.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:2:109,427.5,536.2,642.1"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
</sec>
<sec id="sec-10"><label>2.2</label><title>Review of Existing Security Protocols</title>
</sec>
</sec>
<sec id="sec-11"><title>Numerous studies have explored the implementation of encryption protocols and secure communication</title>
<p>methods within IoT environments. Popular encryption techniques include:</p>
<p>I. Advanced Encryption Standard (AES): widely used due to its efficiency and security. AES-256 is considered secure for most IoT applications <xref ref-type="bibr" rid="ref-6">[6]</xref>.</p>
<p>II. Rivest-Shamir-Adleman (RSA): used primarily for secure key exchange due to its asymmetric nature. III. Elliptic Curve Cryptography (ECC): provides strong security with smaller key sizes, making it suitable for resource-constrained IoT devices <xref ref-type="bibr" rid="ref-7">[7]</xref>.</p>
<p>IV. Transport Layer Security (TLS): ensures data is encrypted in transit, preventing eavesdropping and tampering <xref ref-type="bibr" rid="ref-8">[8]</xref>.</p>
<table-wrap id="tab2"><label>Table 2</label><caption><p>Comparison of existing encryption techniques.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:2:91.8,98.2,536.2,202.9"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
<p>Studies have shown that while these protocols provide a basic level of security, they may not be sufficient for the diverse requirements of smart city applications. Therefore, integrating multiple layers of security is essential for robust data protection.</p>
<sec id="sec-12"><label>2.3</label><title>Threats and Vulnerabilities in IoT Networks</title>
</sec>
</sec>
<sec id="sec-13"><title>IoT networks are prone to several security threats, such as:</title>
<p>I. Eavesdropping: attackers can intercept unencrypted data as it is transmitted over networks, leading to data breaches <xref ref-type="bibr" rid="ref-9">[9]</xref>, <xref ref-type="bibr" rid="ref-10">[10]</xref>.</p>
</sec>
<sec id="sec-14"><title>II. Man-in-the-Middle Attacks (MitM): unauthorized entities insert themselves into the communication path</title>
<p>between devices, potentially altering or stealing data.</p>
<p>III. Data tampering: cybercriminals manipulate data during transmission, leading to incorrect information being processed or stored.</p>
<p>IV. Denial of Service (DoS): overloading network resources to make services unavailable.</p>
<p>V. Replay attacks: repeated transmissions of previously captured data can mislead or disrupt services.</p>
<p>VI. Addressing these vulnerabilities requires a multi-faceted approach that covers encryption, authentication, and secure communication protocols <xref ref-type="bibr" rid="ref-2">[2]</xref>.</p>
</sec>
<sec id="sec-15"><label>3</label><title>Methodology</title>
<p>Our proposed solution introduces a layered security architecture to address data transmission vulnerabilities in smart city IoT networks. The methodology involves:</p>
<p>I. Data encryption: implementing AES-256 for high-speed data encryption, ensuring data remains confidential during transmission <xref ref-type="bibr" rid="ref-11">[11]</xref>.</p>
<p>II. Authentication: utilizing digital certificates and Public Key Infrastructure (PKI) for robust device authentication.</p>
<p>III. Secure key exchange: using Diffie-Hellman key exchange to establish encrypted communication channels <xref ref-type="bibr" rid="ref-12">[12]</xref>.</p>
</sec>
<sec id="sec-16"><title>IV. Lightweight communication protocols: adopting Message Queuing Telemetry Transport (MQTT) with</title>
<p>TLS/SSL to maintain data integrity and secure transmission over constrained devices.</p>
<fig id="fig3"><label>Figure 3</label><caption><p>Secure data transmission process.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:3:109,86,536.2,360.1"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
</sec>
<sec id="sec-17"><title>Diffie-Hellman key exchange equation [13]:</title>
<p>K= g^{ab} mod p,</p>
<p>where:</p>
<p>g is the generator, p is a prime number,</p>
<p>a and b are private keys of the communicating devices.</p>
<sec id="sec-18"><label>3.1</label><title>Encryption Algorithm: AES-256</title>
<p>AES is a symmetric encryption algorithm that processes data in fixed blocks, typically 128 bits. AES-256 uses a 256-bit key, providing a higher level of security than lower-bit keys. The algorithm consists of several transformations:</p>
<p>SubBytes: substitutes bytes using an S-box.</p>
<p>ShiftRows: shifts rows of the state.</p>
<p>MixColumns: mixes data within columns.</p>
<p>AddRoundKey: combines the state with a round key.</p>
<p>Equation 2: AES encryption and decryption.</p>
</sec>
</sec>
<sec id="sec-19"><title>Encryption:</title>
</sec>
<sec id="sec-20"><title>C=E k (P)</title>
<p>I. C: Ciphertext — the output of the encryption process.</p>
<p>II. E: Encryption function — converting plaintext to ciphertext using the key.</p>
<p>III. k: Key — the secret key used for encryption.</p>
<p>IV. P: Plaintext — the original data that is to be encrypted.</p>
</sec>
<sec id="sec-21"><title>Decryption:</title>
</sec>
<sec id="sec-22"><title>P = D k (C)</title>
<p>I. P: plaintext — the output of the decryption process, which should match the original plaintext.</p>
<p>II. D: decryption function — converting ciphertext back to plaintext using the key.</p>
<p>III. k: key — the same secret key used for encryption.</p>
</sec>
<sec id="sec-23"><label>4</label><title>Proposed Secure Communication Model</title>
<p>The proposed model is a multi-layered architecture that ensures data security at every stage of communication within the IoT network. Key components include:</p>
<p>I. Encryption layer: AES-256 encrypts data before transmission, preventing unauthorized access to sensitive information.</p>
</sec>
<sec id="sec-24"><title>II. Authentication layer: devices authenticate using digital certificates, preventing unauthorized devices from</title>
<p>participating in the network <xref ref-type="bibr" rid="ref-14">[14]</xref>.</p>
<p>III. Secure key management: Diffie-Hellman-based key exchange enables the secure generation and distribution of encryption keys, making it difficult for attackers to intercept communications <xref ref-type="bibr" rid="ref-15">[15]</xref>.</p>
<p>IV. Protocol layer: MQTT with TLS/SSL ensures efficient, secure communication, reducing the risk of MitM</p>
<fig id="fig4"><label>Figure 4</label><caption><p>Secure IoT network architecture.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:5:91.4,403.7,536.2,754.6"/><p content-type="note">This figure is shown in the PDF version of the article.</p></fig>
<sec id="sec-25"><label>4.1</label><title>Implementation of MQTT with TLS</title>
<p>MQTT is a lightweight protocol for resource-constrained IoT devices. By integrating TLS, the model ensures encrypted data transmission, safeguarding data integrity and confidentiality.</p>
</sec>
</sec>
<sec id="sec-26"><label>5</label><title>Results and Discussion</title>
<p>The proposed secure communication model was tested in a simulated smart city environment that included devices such as smart traffic lights, waste management sensors, and environmental monitors.</p>
<table-wrap id="tab3"><label>Table 3</label><caption><p>Performance analysis.</p></caption><graphic content-type="pdf-region" xlink:href="pdf-region:5:65.7,137.6,536.2,227.3"/><p content-type="note">This table is shown in the PDF version of the article.</p></table-wrap>
</sec>
<sec id="sec-27"><title>Hash function: H(M)=H(M′)</title>
<p>I. H: hash function — a function that takes an input (or message) and produces a fixed-size string of bytes (the hash value or digest) that appears random. It is designed to be a one-way function, making it computationally infeasible to reverse-engineer the original message from the hash <xref ref-type="bibr" rid="ref-18">[18]</xref>.</p>
<p>II. M: original message — the data that is being sent or stored.</p>
<p>III. M&apos;: received message — the data that has been received or retrieved.</p>
<p>The performance comparison demonstrates that the proposed model achieves faster encryption speeds, reduced latency, and decreased security breach rates. These improvements suggest that the layered approach can significantly enhance performance and security.</p>
</sec>
<sec id="sec-28"><label>6</label><title>Conclusion</title>
<p>This paper presented a robust, scalable model for secure data transmission in IoT-based smart city networks. Our approach enhances data confidentiality, integrity, and availability by integrating encryption, authentication, and secure key exchange. Experimental results indicate that the proposed model can effectively handle real-world smart city applications, providing a secure and efficient communication environment.</p>
<p>Future research will focus on scaling this model to accommodate larger networks and on incorporating AI-based threat detection to address emerging security threats proactively.</p>
</sec>
<sec id="sec-29"><title>Funding</title>
<p>This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.</p>
</sec>
<sec id="sec-30"><title>Data Availability</title>
<p>All data are included in the text.</p>
</sec>
<sec id="sec-31"><title>Conflicts of Interest</title>
<p>The authors declare no conflict of interest.</p>
</sec>
</body>
<back><ref-list><title>References</title>
<ref id="ref-1"><label>1</label><mixed-citation>Bhardwaj, V., Anooja, A., Vermani, L. S., Sunita, &amp; Dhaliwal, B. K. (2024). Smart cities and the IoT: An in-depth analysis of global research trends and future directions. Discover internet of things, 4(1), 19. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s43926-024-00076-3">https://doi.org/10.1007/s43926-024-00076-3</ext-link></mixed-citation></ref>
<ref id="ref-2"><label>2</label><mixed-citation>Alaba, F. A., Othman, M., Hashem, I. A. T., &amp; Alotaibi, F. (2017). Internet of things security: A survey. Journal of network and computer applications, 88, 10–28. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.jnca.2017.04.002">https://doi.org/10.1016/j.jnca.2017.04.002</ext-link></mixed-citation></ref>
<ref id="ref-3"><label>3</label><mixed-citation>Roman, R., Zhou, J., &amp; Lopez, J. (2013). On the features and challenges of security and privacy in distributed internet of things. Computer networks, 57(10), 2266–2279. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.comnet.2012.12.018">https://doi.org/10.1016/j.comnet.2012.12.018</ext-link></mixed-citation></ref>
<ref id="ref-4"><label>4</label><mixed-citation>Hazra, A., Adhikari, M., Amgoth, T., &amp; Srirama, S. N. (2021). A comprehensive survey on interoperability for IIoT: Taxonomy, standards, and future directions. ACM computing surveys (CSUR), 55(1), 1–35. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1145/3485130">https://doi.org/10.1145/3485130</ext-link></mixed-citation></ref>
<ref id="ref-5"><label>5</label><mixed-citation>Aboubakar, M., Kellil, M., &amp; Roux, P. (2022). A review of IoT network management: Current status and perspectives. Journal of king saud university-computer and information sciences, 34(7), 4163–4176. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.jksuci.2021.03.006">https://doi.org/10.1016/j.jksuci.2021.03.006</ext-link></mixed-citation></ref>
<ref id="ref-6"><label>6</label><mixed-citation>Karimi, Y., Haghi Kashani, M., Akbari, M., &amp; Mahdipour, E. (2021). Leveraging big data in smart cities: A systematic review. Concurrency and computation: practice and experience, 33(21), e6379. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/cpe.6379">https://doi.org/10.1002/cpe.6379</ext-link></mixed-citation></ref>
<ref id="ref-7"><label>7</label><mixed-citation>Almudayni, Z., Soh, B., Samra, H., &amp; Li, A. (2025). Energy inefficiency in IoT networks: Causes, impact, and a strategic framework for sustainable optimisation. Electronics, 14(1), 159. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/electronics14010159">https://doi.org/10.3390/electronics14010159</ext-link></mixed-citation></ref>
<ref id="ref-8"><label>8</label><mixed-citation>Siraparapu, S. R., &amp; Azad, S. (2024). Securing the IoT landscape: A comprehensive review of secure systems in the digital era. E-prime-advances in electrical engineering, electronics and energy, 10, 100798. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.prime.2024.100798">https://doi.org/10.1016/j.prime.2024.100798</ext-link></mixed-citation></ref>
<ref id="ref-9"><label>9</label><mixed-citation>El-Hajj, M., &amp; Beune, P. (2024). Lightweight public key infrastructure for the internet of things: A systematic literature review. Journal of industrial information integration, 41, 100670. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.jii.2024.100670">https://doi.org/10.1016/j.jii.2024.100670</ext-link></mixed-citation></ref>
<ref id="ref-10"><label>10</label><mixed-citation>McKay, K., &amp; Cooper, D. (2017). Guidelines for the selection, configuration, and use of transport layer security (TLS) implementations. <ext-link ext-link-type="uri" xlink:href="https://csrc.nist.gov/CSRC/media/Publications/sp/800-52/rev-2/draft/documents/sp800-52r2-draft.pdf">https://csrc.nist.gov/CSRC/media/Publications/sp/800-52/rev-2/draft/documents/sp800-52r2-draft.pdf</ext-link></mixed-citation></ref>
<ref id="ref-11"><label>11</label><mixed-citation>Sicari, S., Rizzardi, A., Grieco, L. A., &amp; Coen-Porisini, A. (2015). Security, privacy and trust in Internet of things: The road ahead. Computer networks, 76, 146–164. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.comnet.2014.11.008">https://doi.org/10.1016/j.comnet.2014.11.008</ext-link></mixed-citation></ref>
<ref id="ref-12"><label>12</label><mixed-citation>Mishra, S., Mehta, P., Chouhan, N., Pethani, N., &amp; Saha, I. (2022). Edit any face--image synthesis using gan’s. 2022 international conference on futuristic technologies (INCOFT) (pp. 1–5). IEEE. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/INCOFT55651.2022.10094322">https://doi.org/10.1109/INCOFT55651.2022.10094322</ext-link></mixed-citation></ref>
<ref id="ref-13"><label>13</label><mixed-citation>Daemen, J., &amp; Rijmen, V. (2002). The design of rijndael: The advanced encryption standard (AES). Springer. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/978-3-662-60769-5">https://doi.org/10.1007/978-3-662-60769-5</ext-link></mixed-citation></ref>
<ref id="ref-14"><label>14</label><mixed-citation>Shareef, S. K., Sridevi, R., Raju, V. R., &amp; Rao, K. S. S. (2022). A novel framework for secure blockchain transactions. 2022 international conference on applied artificial intelligence and computing (ICAAIC) (pp. 1311– 1318). IEEE. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/ICAAIC53929.2022.9792758">https://doi.org/10.1109/ICAAIC53929.2022.9792758</ext-link></mixed-citation></ref>
<ref id="ref-15"><label>15</label><mixed-citation>Silva, C., Cunha, V. A., Barraca, J. P., &amp; Aguiar, R. L. (2024). Analysis of the cryptographic algorithms in IoT communications. Information systems frontiers, 26(4), 1243–1260. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s10796-023-10383-9">https://doi.org/10.1007/s10796-023-10383-9</ext-link></mixed-citation></ref>
<ref id="ref-16"><label>16</label><mixed-citation>Łeska, S., &amp; Furtak, J. (2025). Procedures for building a secure environment in IoT networks using the Lora interface. Sensors, 25(13), 3881. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/s25133881">https://doi.org/10.3390/s25133881</ext-link></mixed-citation></ref>
<ref id="ref-17"><label>17</label><mixed-citation>Nashwan, S. (2022). Secure authentication scheme using Diffie--Hellman key agreement for smart IoT irrigation systems. Electronics, 11(2), 188. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/electronics11020188">https://doi.org/10.3390/electronics11020188</ext-link></mixed-citation></ref>
<ref id="ref-18"><label>18</label><mixed-citation>Alkhafajee, A. R., Al-Muqarm, A. M. A., Alwan, A. H., &amp; Mohammed, Z. R. (2021). Security and performance analysis of mqtt protocol with tls in iot networks. 2021 4th international Iraqi conference on engineering technology and their applications (IICETA) (pp. 206–211). IEEE. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/IICETA51758.2021.9717495">https://doi.org/10.1109/IICETA51758.2021.9717495</ext-link></mixed-citation></ref>
<ref id="ref-19"><label>19</label><mixed-citation>Gilbert, C., &amp; Gilbert, M. (2025). Exploring secure hashing algorithms for data integrity verification. <ext-link ext-link-type="uri" xlink:href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5251606">https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5251606</ext-link></mixed-citation></ref>
</ref-list></back>
</article>