<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JIS</journal-id><journal-title-group><journal-title>Journal of Information Security</journal-title></journal-title-group><issn pub-type="epub">2153-1234</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jis.2015.61005</article-id><article-id pub-id-type="publisher-id">JIS-52983</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  Symmetric-Key Based Homomorphic Primitives for End-to-End Secure Data Aggregation in Wireless Sensor Networks
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>eyur</surname><given-names>Parmar</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Devesh</surname><given-names>C. Jinwala</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Computer Engineering, S. V. National Institute of Technology, Surat, India</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>keyur.mtech@gmail.com(EP)</email>;<email>dcjinwala@gmail.com(DCJ)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>17</day><month>12</month><year>2014</year></pub-date><volume>06</volume><issue>01</issue><fpage>38</fpage><lpage>50</lpage><history><date date-type="received"><day>25</day>	<month>September</month>	<year>2014</year></date><date date-type="rev-recd"><day>24</day>	<month>October</month>	<year>2014</year>	</date><date date-type="accepted"><day>11</day>	<month>December</month>	<year>2014</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  In wireless sensor networks, secure data aggregation protocols target the two major objectives, namely, security and en route aggregation. Although en route aggregation of reverse multi-cast traffic improves energy efficiency, it becomes a hindrance to end-to-end security. Concealed data aggregation protocols aim to preserve the end-to-end privacy of sensor readings while performing en route aggregation. However, the use of inherently malleable privacy homomorphism makes these protocols vulnerable to active attackers. In this paper, we propose an integrity and privacy preserving end-to-end secure data aggregation protocol. We use symmetric key-based homomorphic primitives to provide end-to-end privacy and end-to-end integrity of reverse multicast traffic. As sensor network has a non-replenishable energy supply, the use of symmetric key based homomorphic primitives improves the energy efficiency and increase the sensor network’s lifetime. We comparatively evaluate the performance of the proposed protocol to show its efficacy and efficiency in resource-constrained environments.
 
</p></abstract><kwd-group><kwd>Wireless Sensor Network</kwd><kwd> Security</kwd><kwd> Concealed Data Aggregation</kwd><kwd> In-Network Processing</kwd><kwd> Secure Data Aggregation</kwd><kwd> Homomorphic Encryption</kwd><kwd> Homomorphic MAC</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Recent advancement in Micro-Electro-Mechanical Systems (MEMS) technology has facilitated the development of tiny and cost-effective sensor devices [<xref ref-type="bibr" rid="scirp.52983-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref2">2</xref>] . These tiny sensor devices collaborate to form a network, re- ferred as wireless sensor network (WSN) [<xref ref-type="bibr" rid="scirp.52983-ref3">3</xref>] . These sensor devices often worked as actuators, where each of them can have escalating capabilities to perform sensing, processing, and transmission. However, sensor de- vices have very limited resources like battery power, processor, energy, bandwidth, etc. Among these resources, energy is the most crucial resource due to its direct impact on the sensor nodes’ lifetime. Although communica- tion and computation both consume energy, the radio frequency (RF) operations consume far more energy than the CPU instructions [<xref ref-type="bibr" rid="scirp.52983-ref4">4</xref>] . As shown in [<xref ref-type="bibr" rid="scirp.52983-ref4">4</xref>] , transmission of a single bit requires the same amount of energy as the execution of 1000 CPU instructions. Hence, protocols in sensor networks aim to reduce the communication traf- fic. In-network processing, also known as data aggregation, helps to reduce redundant communication traffic [<xref ref-type="bibr" rid="scirp.52983-ref5">5</xref>] .</p><p>As sensor nodes are deployed in unattended and hostile environments, security becomes an important design parameter. Moreover, traditional security mechanisms cannot be adapted directly due to the unique challenges of sensor networks. Resource-constrained nature of sensor nodes, lack of physical protection, and hostile deployments are among several other characteristics that make security in WSNs a formidable challenge [<xref ref-type="bibr" rid="scirp.52983-ref6">6</xref>] - [<xref ref-type="bibr" rid="scirp.52983-ref8">8</xref>] . Secure data aggregation protocols aim to meet these two critical objectives together, namely, security and data aggregation. However, traditional end-to-end security cannot be realized in data-centric networks like WSNs, where the data are supposed to be altered at intermediate nodes before reaching the base station. As data are aggregated en route, an intermediate node must require a secret key to decrypt encrypted sensor readings before processing. Hop-by-hop secure data aggregation assumes trustworthy intermediate nodes that possess keys to decrypt the encrypted data and process them before forwarding it to the next hop [<xref ref-type="bibr" rid="scirp.52983-ref9">9</xref>] . Malicious adversaries target such intermediate nodes to obtain a large amount of gathered information. Hence, the need to protect the privacy of sensor readings at intermediate nodes arises.</p><p>Girao et al. [<xref ref-type="bibr" rid="scirp.52983-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref11">11</xref>] proposed “concealed data aggregation” that achieves end-to-end privacy of sensor readings while performing en route aggregation. They used “privacy homomorphism”, originally proposed by Rivest et al. [<xref ref-type="bibr" rid="scirp.52983-ref12">12</xref>] , to perform encrypted data processing. Privacy homomorphism processes encrypted sensor readings without decrypting them at intermediate nodes. However, the feature that protects privacy of sensor readings becomes a hindrance achieving integrity protection. Traditional security protocols often consider privacy homomorphism as weakness to achieve the highest level of security achieved against adaptive chosen-ciphertext attacks (CCA2). The algorithms that support privacy homomorphism are inherently malleable. Hence, the highest level of security that they can achieve, is against non-adaptive chosen ciphertext attacks (CCA1). As sensor network performs en route aggregation of reverse multicast traffic, the malleability property has a catastrophic effect on the correctness of gathered sensor readings. Any compromised sensor nodes can inject fake data packets to falsify the genuinely aggregated data. In addition, if public-key cryptography is employed then with the help of public parameters, the malicious adversary can inject fake data packets without compromising a single node. Hence, the need to ensure the correctness of gathered sensor readings becomes a formidable challenge. Traditional hop-by-hop authentication protocols cannot provide end-to-end integrity protection in data-centric networks. In addition, the packet size considered by TinyOS [<xref ref-type="bibr" rid="scirp.52983-ref13">13</xref>] , an operating system for low power wireless devices, is only 36 bytes, out of which only 29 bytes are reserved for payload information. In traditional networks, message authentication codes usually require 8 bytes to provide a reasonable level of security. However in sensor networks, the use of 8 bytes protecting only 2 or 3 bytes of sensor readings, is highly undesirable. In addition, the data are aggregated en route to reduce the communication traffic, but their MAC tags cannot be aggregated. Hence the need for end-to-end privacy, end-to-end authen- tication and en route aggregation of reverse multicast traffic in sensor networks arises.</p><p>In this paper, we provide end-to-end privacy, end-to-end integrity and en route aggregation of sensor readings using only cost-effective symmetric key based mechanisms. We use a homomorphic encryption algorithm to provide the en route encrypted data processing. In addition, we use a homomorphic MAC algorithm to achieve the end-to-end integrity protection. As the proposed protocol uses a symmetric key based encryption and authentication mechanisms, it achieves the significant energy reduction that increases the sensor networks’ lifetime. As per our knowledge, the proposed protocol is the first to achieve the above-mentioned objectives using symmetric key based homomorphic primitives.</p><p>The rest of the paper is organized as follows. Section 2 discusses the relevant literature. In Section 3, we briefly discuss the preliminaries required by the proposed protocol. We present the proposed protocol in Section 4. The overhead analysis is presented in Section 5, followed by the security analysis in Section 6. Section 7 concludes the paper by emphasizing our contributions.</p></sec><sec id="s2"><title>2. Related Work</title><p>Hu et al. [<xref ref-type="bibr" rid="scirp.52983-ref14">14</xref>] and Przydatek et al. [<xref ref-type="bibr" rid="scirp.52983-ref15">15</xref>] explored the ways to protect the aggregated data in WSNs. Their solutions ensure the protection of sensor readings against outsider adversaries. Although numerous authors claim to provide such hop-by-hop secure data aggregation [<xref ref-type="bibr" rid="scirp.52983-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref16">16</xref>] , they all assume that intermediate nodes are trustworthy. As sensor nodes are deployed in hostile environments, such assumptions may not suit the need of a large number of applications. Therefore, Girao et al. [<xref ref-type="bibr" rid="scirp.52983-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref11">11</xref>] proposed a concealed data aggregation protocol that do not consider trustworthy intermediate nodes. They used Domingo Ferrer’s symmetric key based encryption algorithm [<xref ref-type="bibr" rid="scirp.52983-ref17">17</xref>] to perform encrypted data processing at intermediate nodes. In 2005, Castelluccia et al. [<xref ref-type="bibr" rid="scirp.52983-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref19">19</xref>] proposed a symmetric key based homomorphic cryptosystem based on one-time pad. In their cryptosystem, each node is equipped with a unique secret key shared with the base station. Hence, a single compromised node cannot make the whole network vulnerable, as in the case of other symmetric key based techniques [<xref ref-type="bibr" rid="scirp.52983-ref17">17</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref20">20</xref>] . Asymmetric key based homomorphic cryptosystems [<xref ref-type="bibr" rid="scirp.52983-ref21">21</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref22">22</xref>] including those based on the elliptic curves [<xref ref-type="bibr" rid="scirp.52983-ref22">22</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref23">23</xref>] , are expensive and require more resources compared to their symmetric counterparts [<xref ref-type="bibr" rid="scirp.52983-ref17">17</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref20">20</xref>] .</p><p>Although concealed data aggregation protects privacy of sensor readings at intermediate nodes, the use of privacy homomorphism [<xref ref-type="bibr" rid="scirp.52983-ref12">12</xref>] makes them inherently malleable [<xref ref-type="bibr" rid="scirp.52983-ref24">24</xref>] . Privacy homomorphism is often being considered as an undesirable property [<xref ref-type="bibr" rid="scirp.52983-ref25">25</xref>] . The algorithms that support privacy homomorphism cannot be secure against adaptive chosen-ciphertext attack (CCA 2) [<xref ref-type="bibr" rid="scirp.52983-ref26">26</xref>] . Encrypted data processing allows intermediate nodes to aggregate the encrypted sensor readings using publicly available information. Hence, encrypted data processing allows not only genuine aggregator nodes, but it also allows malicious adversaries to process the encrypted data without the need for any secret information. Therefore, the need for an authentication mechanism that ensure the integrity of aggregated data becomes imperative.</p><p>Although hop-by-hop integrity verification can be achieved through existing authentication mechanisms, the same mechanisms cannot be used to provide end-to-end integrity verification [<xref ref-type="bibr" rid="scirp.52983-ref27">27</xref>] . The en route aggregation of sensor readings and encrypted data processing make end-to-end integrity verification a formidable challenge. Agrawal et al. [<xref ref-type="bibr" rid="scirp.52983-ref28">28</xref>] proposed a homomorphic MAC that provides integrity verification in data-centric networks. Homomorphic MAC aggregates message authentication codes (MACs) to reduce the communication traffic. In addition, homomorphic MAC verifies the integrity of aggregated data. Although asymmetric key based homomorphic primitives like asymmetric key based homomorphic encryption [<xref ref-type="bibr" rid="scirp.52983-ref24">24</xref>] and homomorphic digital signature [<xref ref-type="bibr" rid="scirp.52983-ref29">29</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref30">30</xref>] exist in literature, we consider only symmetric key based homomorphic primitives due to their relatively fewer resource requirements.</p></sec><sec id="s3"><title>3. Preliminaries</title><p>In this section, we briefly discuss privacy homomorphism [<xref ref-type="bibr" rid="scirp.52983-ref12">12</xref>] . We describe Castelluccia et al.’s [<xref ref-type="bibr" rid="scirp.52983-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref19">19</xref>] symmetric key based cryptosystem that supports homomorphic encryption. In addition, we discuss a symmetric key based homomorphic MAC algorithm [<xref ref-type="bibr" rid="scirp.52983-ref28">28</xref>] used to perform MAC aggregation such that the resultant MAC verifies the aggregated and encrypted data.</p><sec id="s3_1"><title>3.1. Privacy Homomorphism</title><p>Rivest et al. [<xref ref-type="bibr" rid="scirp.52983-ref12">12</xref>] presented a way to perform the computation over encryption data. Formally, a privacy homomorphism is defined as a mapping function <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x5.png" xlink:type="simple"/></inline-formula> between a set of plaintexts <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x6.png" xlink:type="simple"/></inline-formula> and a set of ciphertexts <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x7.png" xlink:type="simple"/></inline-formula> such that the group operation is preserved.</p><disp-formula id="scirp.52983-formula1657"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-7800251x8.png"  xlink:type="simple"/></disp-formula><p>Here, the operators used to perform the group operations, need not be different each time. With privacy homomorphism, encryption of aggregated data or aggregation of encrypted data both yield the same result. Cryptosystems can support additive and multiplicative privacy homomorphisms [<xref ref-type="bibr" rid="scirp.52983-ref24">24</xref>] . However, applications in sensor networks require an additive privacy homomorphism only [<xref ref-type="bibr" rid="scirp.52983-ref31">31</xref>] . An additive privacy homomorphism can support functions like minimum, maximum, average, variance, movement detection, etc. In the next section, we briefly discuss homomorphic primitives used for the encryption and message authentication (integrity).</p></sec><sec id="s3_2"><title>3.2. Homomorphic Encryption</title><p>Cryptosystems that support the additive privacy homomorphism can perform an addition operation over the en- crypted data without decrypted them. They are basically categorized as either a symmetric-key based homo- morphic encryption [<xref ref-type="bibr" rid="scirp.52983-ref17">17</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref18">18</xref>] or an asymmetric-key based homomorphic encryption [<xref ref-type="bibr" rid="scirp.52983-ref23">23</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref32">32</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref33">33</xref>] . In this sec- tion, we discuss Castelluccia et al.’s [<xref ref-type="bibr" rid="scirp.52983-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref19">19</xref>] symmetric key based encryption algorithm (CMT Cryptosystem). Castelluccia et al. replaced X-OR operation typically found in stream cipher based cryptosystems with modular addition operation. In their cryptosystem, each sensor node is equipped with a unique secret key shared with the base station. Hence, a compromised node cannot decrypt other sensor nodes’ encrypted data, as in the case of other symmetric key based cryptosystems [<xref ref-type="bibr" rid="scirp.52983-ref11">11</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref20">20</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref31">31</xref>] . Moreover, intermediate nodes can aggregate encrypted data without decrypting them and without having any secret information about the keys used during the encryption.</p></sec><sec id="s3_3"><title>3.3. Homomorphic Message Authentication Code</title><p>In data-centric networks, data are supposed to be altered en route. Hence, traditional authentication mechanisms cannot be used to provide end-to-end integrity support. Moreover, privacy homomorphism makes sensor readings more vulnerable to active attackers. Any intermediate node can aggregate ciphertexts without performing decryption or without having any secret information. Although there exist homomorphic digital signatures [<xref ref-type="bibr" rid="scirp.52983-ref29">29</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref30">30</xref>] that support integrity verification in data-centric networks, they remain infeasible due to the excessive computation and communication cost required to perform per packet integrity verification. Homomorphic MAC is a symmetric counterpart of a homomorphic digital signature [<xref ref-type="bibr" rid="scirp.52983-ref29">29</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref30">30</xref>] used for integrity verification.</p><p>Agrawal et al. [<xref ref-type="bibr" rid="scirp.52983-ref28">28</xref>] proposed a homomorphic MAC to verify the integrity of encrypted and aggregated data in data-centric networks. Homomorphic MAC can be formally defined using three probabilistic and polynomial- time algorithms, namely, Sign, Verify and Combine. Given a vector space <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x34.png" xlink:type="simple"/></inline-formula> spanned by the vectors<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x35.png" xlink:type="simple"/></inline-formula>. The Sign algorithm computes a MAC tag for one basis vector at a time. The Combine algorithm is used to perform the aggregation of MAC tags while the Verify algorithm verifies the vector-MAC tag pairs. Here, we briefly discuss a homomorphic MAC algorithm. However, its detailed description with relevant security proofs can be found in [<xref ref-type="bibr" rid="scirp.52983-ref28">28</xref>] .</p></sec></sec><sec id="s4"><title>4. The Proposed Protocol</title><p>In this section, we present our proposed protocol to provide integrity assured concealed data aggregation for re- verse multicast traffic in wireless sensor networks. The proposed protocol is the first that achieves the formida- ble objectives like en route aggregation, privacy at intermediate nodes and integrity assurance of aggregated, as well as raw sensor readings, using the symmetric-key based homomorphic primitives.</p><p>We use a symmetric key based encryption algorithm to provide the privacy of sensor readings at intermediate nodes. The encryption algorithm helps to achieve an end-to-end privacy of reverse multicast traffic in wireless sensor networks. In addition, we used a symmetric key based message authentication code (MAC) that verifies the integrity of received packets when there exist malicious outsider adversaries. Finally, we use a homomorphic MAC to provide an end-to-end integrity verification ensuring the protection against malicious intermediate adversaries. The proposed protocol not only reduces the bandwidth consumption through aggregation, it reduces the bandwidth consumption when there exist malicious adversaries. For the clarity, we list the notations used by the proposed protocol in <xref ref-type="table" rid="table1"><xref ref-type="table" rid="table">Table </xref>1</xref>.</p><sec id="s4_1"><title>4.1. Integrity Assured Concealed Data Aggregation Protocol</title><p>• At Leaf Nodes:</p><p>- Each node (leaf node and intermediate node) <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x58.png" xlink:type="simple"/></inline-formula>shares a unique symmetric-key <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x59.png" xlink:type="simple"/></inline-formula> with the base station. In addition, each node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x60.png" xlink:type="simple"/></inline-formula> shares a pairwise symmetric key <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x61.png" xlink:type="simple"/></inline-formula> with a neighboring node<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x62.png" xlink:type="simple"/></inline-formula>.</p><p>- The base station shares a unique symmetric-key pair <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x63.png" xlink:type="simple"/></inline-formula> with the leaf nodes only.</p><p>- Node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x64.png" xlink:type="simple"/></inline-formula> encrypts its sensor reading <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x65.png" xlink:type="simple"/></inline-formula> using a symmetric key <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x65.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x66.png" xlink:type="simple"/></inline-formula> shared with the base station.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1"><xref ref-type="table" rid="table">Table </xref>1</xref></label><caption><title> <xref ref-type="table" rid="table">Table </xref>of notations</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Symbol</th><th align="center" valign="middle" >Description</th></tr></thead><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x67.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Sensor node ID.</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x68.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Sensor reading of a node<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x69.png" xlink:type="simple"/></inline-formula>.</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x70.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >A symmetric key between a node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x71.png" xlink:type="simple"/></inline-formula> and the base station.</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x72.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >A symmetric key between a node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x73.png" xlink:type="simple"/></inline-formula> and a node<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x74.png" xlink:type="simple"/></inline-formula>.</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x75.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Symmetric keys shared between the base station and leaf nodes.</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x76.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Ciphertext generated by a node<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x77.png" xlink:type="simple"/></inline-formula>.</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x78.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >A nonce transmitted by the base station in a query.</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x79.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >A provably secure pseudo random function.</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x80.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >A modulus, predefined by the base station.</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x81.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >Homomorphic MAC tag generated by a node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x82.png" xlink:type="simple"/></inline-formula> using a key pair<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x83.png" xlink:type="simple"/></inline-formula>.</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x84.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >MAC tag generated by a node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x85.png" xlink:type="simple"/></inline-formula> using a key <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x86.png" xlink:type="simple"/></inline-formula> shared with its neighboring node<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x87.png" xlink:type="simple"/></inline-formula>.</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x88.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >A number that represents the child nodes of an intermediate node.</td></tr><tr><td align="center" valign="middle" >HDR</td><td align="center" valign="middle" >Header information that uniquely identifies the node.</td></tr></tbody></table></table-wrap><disp-formula id="scirp.52983-formula1658"><graphic  xlink:href="http://html.scirp.org/file/5-7800251x89.png"  xlink:type="simple"/></disp-formula><p>Here, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x90.png" xlink:type="simple"/></inline-formula>represent a provably secure pseudo-random function (PRF) and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x90.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x91.png" xlink:type="simple"/></inline-formula> is a nonce included in a query forwarded by the base station.</p><p>- Node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x92.png" xlink:type="simple"/></inline-formula> generates a homomorphic MAC tag <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x93.png" xlink:type="simple"/></inline-formula> using a key pair <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x94.png" xlink:type="simple"/></inline-formula> shared with only the base station.</p><p>- Node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x95.png" xlink:type="simple"/></inline-formula> generates a MAC tag, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x96.png" xlink:type="simple"/></inline-formula>using a pairwise symmetric key <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x97.png" xlink:type="simple"/></inline-formula> shared with its neighboring node<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x97.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x98.png" xlink:type="simple"/></inline-formula>.</p><p>- Node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x99.png" xlink:type="simple"/></inline-formula> forwards a packet, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x99.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x100.png" xlink:type="simple"/></inline-formula>, towards the base station. Here, HDR contains the identity information for a node<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x99.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x100.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x101.png" xlink:type="simple"/></inline-formula>.</p><p>• At Intermediate Nodes:</p><p>- Intermediate node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x102.png" xlink:type="simple"/></inline-formula> receives the packet, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x103.png" xlink:type="simple"/></inline-formula>, forwarded by a node<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x103.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x104.png" xlink:type="simple"/></inline-formula>. In the same way, it receives packets forwarded by its other child nodes.</p><p>- Intermediate node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x105.png" xlink:type="simple"/></inline-formula> generates a MAC tag and compares it with the received MAC tag and accepts the packet if they are same. If they are different, it drops the packet.</p><disp-formula id="scirp.52983-formula1659"><graphic  xlink:href="http://html.scirp.org/file/5-7800251x106.png"  xlink:type="simple"/></disp-formula><p>- Intermediate node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x107.png" xlink:type="simple"/></inline-formula> aggregates a ciphertexts forwarded by its child nodes.</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x108.png" xlink:type="simple"/></inline-formula>Here, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x108.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x109.png" xlink:type="simple"/></inline-formula>represents the child nodes of node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x108.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x110.png" xlink:type="simple"/></inline-formula></p><p>- Intermediate node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x111.png" xlink:type="simple"/></inline-formula> combines the homomorphic MAC tags <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x111.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x112.png" xlink:type="simple"/></inline-formula> coming from its child nodes.</p><disp-formula id="scirp.52983-formula1660"><graphic  xlink:href="http://html.scirp.org/file/5-7800251x113.png"  xlink:type="simple"/></disp-formula><p>- Intermediate node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x114.png" xlink:type="simple"/></inline-formula> generates a MAC tag, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x115.png" xlink:type="simple"/></inline-formula>using a pairwise symmetric key <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x115.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x116.png" xlink:type="simple"/></inline-formula> shared with its neighboring node<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x115.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x116.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x117.png" xlink:type="simple"/></inline-formula>.</p><p>- Intermediate node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x118.png" xlink:type="simple"/></inline-formula> concatenates the header information HDR.</p><p>- Node <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x119.png" xlink:type="simple"/></inline-formula> forwards a packet, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x119.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x120.png" xlink:type="simple"/></inline-formula>, towards the base station.</p><p>• At the Base Station:</p><p>- The base station verifies the received packet, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x121.png" xlink:type="simple"/></inline-formula>using a pairwise symmetric key <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x121.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x122.png" xlink:type="simple"/></inline-formula> shared with its neighboring node<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x121.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x122.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x123.png" xlink:type="simple"/></inline-formula>.</p><disp-formula id="scirp.52983-formula1661"><graphic  xlink:href="http://html.scirp.org/file/5-7800251x124.png"  xlink:type="simple"/></disp-formula><p>The verification ensures that the ciphertext and its corresponding homomorphic MAC tag are not modified by the outsider adversaries.</p><p>- The base station decrypts the aggregated ciphertext,<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x125.png" xlink:type="simple"/></inline-formula>.</p><p>- The base station generates a H-MAC tag using the key pair<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x126.png" xlink:type="simple"/></inline-formula>.</p><disp-formula id="scirp.52983-formula1662"><graphic  xlink:href="http://html.scirp.org/file/5-7800251x127.png"  xlink:type="simple"/></disp-formula><p>- The base station compares the newly generated homomorphic MAC tag with the received homomorphic MAC tag. If they are same, it accepts the aggregated sensor reading<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x128.png" xlink:type="simple"/></inline-formula>.</p></sec><sec id="s4_2"><title>4.2. Example</title><p>As shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>, there are two types of nodes in the network: 1) Leaf nodes and 2) Aggregator nodes. Each leaf node encrypts the sensor reading with a symmetric-key shared with the base station. In addition, each leaf node generates a homomorphic MAC using a symmetric-key shared with the base station. Finally, it generates a MAC over the ciphertext-Homomorphic MAC pair using a key shared with its neighboring node. The aggregator nodes verify the MACs and if they are correct, they aggregate the ciphertext as well as homomorphic MACs. Moreover, aggregator nodes generate a MAC over the aggregated ciphertext and H-MAC pair using a pair-wise secret key shared with its neighboring node. At the base station the MACs and homomorphic MACs are verified and if they are correct, the aggregated sensor reading is accepted.</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Integrity assured concealed data aggregation</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-7800251x129.png"/></fig></sec></sec><sec id="s5"><title>5. Overhead Analysis</title><p>In sensor networks, communication requires far more energy than the computation. As shown in [<xref ref-type="bibr" rid="scirp.52983-ref4">4</xref>] , trans- mitting a single bit over a meter range requires the same amount of energy as to execute 1000 CPU instructions. Hence, one of the major goals of WSNs is to reduce the communication traffic. In this section, we compare the bandwidth consumption of the proposed protocol with the same scenarios as discussed by Castelluccia et al. [<xref ref-type="bibr" rid="scirp.52983-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref19">19</xref>] to ease the comparison. In the next section, we present a network model used to measure the energy consumption.</p><sec id="s5_1"><title>5.1. Network Model</title><p>To measure the bandwidth consumption, we consider a network model as described in Castelluccia et al. [<xref ref-type="bibr" rid="scirp.52983-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref19">19</xref>] . We consider a base station and multitude of sensor nodes spanned across the multiple levels of hierarchy. For ease of comparison, we consider the same 3-ary tree topology as described in [<xref ref-type="bibr" rid="scirp.52983-ref18">18</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref19">19</xref>] , and as shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>. However, it can be any n-ary tree topology. In addition, the assumption of a tree topology can be seamlessly replaced by a cluster-based topology or a hybrid topology. The measured sensor readings can be represented by a <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x130.png" xlink:type="simple"/></inline-formula> bit integer that can represent n different sensor readings. Generally, temperature sensors require only 7 bits to represent 128 different temperature readings. For other sensors, we can increase the number of bits required for representation, or we can group sensor readings to reduce the total number of bits required for representation.</p><p>To measure the bandwidth consumption, we used the same packet format as used by the TinyOS [<xref ref-type="bibr" rid="scirp.52983-ref13">13</xref>] , an operating system for resource-constrained sensor networks. In TinyOS, the packet size is of 36 bytes where 7 bytes are reserved for packet header and remaining 29 bytes are for data payload. If payload data is more than 29 bytes, it is fragmented into 29 byte blocks, and remaining payload is shifted to other packets. As shown in TinyECC [<xref ref-type="bibr" rid="scirp.52983-ref34">34</xref>] , due to the digital signature, the packet size needs to be extended up to 102 bytes. Hence, we use the 4 or 8 byte MAC as suggested by Karlof et al. [<xref ref-type="bibr" rid="scirp.52983-ref35">35</xref>] for resource-constrained devices.</p></sec><sec id="s5_2"><title>5.2. Communication Overhead</title><p>We compare the performance of the proposed protocol for End-to-end Encryption and Authentication, with four different scenarios. 1) No Aggregation at intermediate nodes (NA); 2) Concatenation of Payload (CP); 3) Hop-by-hop Encryption (HE); 4) End-to-end Encryption (EE).</p><p>As shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>, the comparison with above mentioned scenarios shows that the bandwidth consumption is high when the data are not aggregated en route. Moreover, no aggregation and packet concatenation based approaches consume much higher bandwidth than the scenarios where en route aggregation are performed. The bandwidth consumption of aggregation based approaches is negligible compared to the NA and CP scenarios.</p><p>As shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>, when we exclusively compare the aggregation based scenarios, the proposed protocol consumes few more bytes compared to hop-by-hop encryption and end-to-end encryption approach. In hop-by- hop encryption, the number of bits transmitted by leaf nodes can be calculated as<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x131.png" xlink:type="simple"/></inline-formula>.</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> 3-ary tree topology</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-7800251x132.png"/></fig><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Communication overhead</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-7800251x133.png"/></fig><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Communication overhead (en route aggregation)</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-7800251x134.png"/></fig><p>For end-to-end encryption approach [<xref ref-type="bibr" rid="scirp.52983-ref18">18</xref>] , the number of bits transmitted by leaf nodes are</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-7800251x135.png" xlink:type="simple"/></inline-formula>. In our proposed approach, we provide authentication against both insider and</p><p>outsider adversaries. We use MAC for en route authentication and homomorphic MAC for end-to-end authentication. Karlof et al. [<xref ref-type="bibr" rid="scirp.52983-ref35">35</xref>] suggested using a 4 byte MAC for authentication in WSNs. Due to the limited resources, the 4 byte MAC is proven to be secure for sensor networks. However, we consider an 8 byte MAC and an 8 byte Homomorphic MAC to calculate the bandwidth consumption. The reason to consider the 8 byte MAC is due to the fact that we consider a powerful and resource-rich adversary which may not have the same resource limitations like WSNs.</p><p>Although the proposed protocol requires few more bytes compared to the HE and EE approaches, it performs significantly better when there exist malicious adversaries. The schemes that do not support authentication are vulnerable to attackers that transmit malicious and fake packets toward the base station. Hence, they consume far more energy than the energy consumed during integrity verification.</p></sec></sec><sec id="s6"><title>6. Security Analysis</title><p>In this section, we measure the security strength of the proposed protocol with respect to some well-known cryptographic attacks against secure data aggregation protocols.</p><sec id="s6_1"><title>6.1. Known-Ciphertext Attack</title><p>In a known-ciphertext attack, an adversary tries to deduce a plaintext or a key from a set of known ciphertexts. Deterministic cryptosystems are vulnerable to such attacks where a plaintext is transformed into the same ciphertext. However, probabilistic cryptosystems that generate different ciphertexts for the same plaintext are resilient against this attack. In the proposed protocol, we use CMT cryptosystem as an underlying encryption algorithm. The CMT cryptosystem uses a pseudo-random function to generate a unique key before performing the encryption. Moreover, each key is used only once to perform the encryption. Therefore, ciphertexts generated using different keys will be different for the same plaintext. Hence, any outsider adversary who has access to ciphertexts, cannot deduce any information related to the key or plaintexts by analyzing ciphertexts.</p></sec><sec id="s6_2"><title>6.2. Known-Plaintext Attack</title><p>In a known-plaintext attack, an adversary tries to deduce the key or recover the information about a plaintext form its ciphertext. In this attack, an adversary has access to some plaintext-ciphertext pairs through which it tries to recover the information about other plaintexts from their ciphertexts. In sensor networks, nodes are not deployed in a secure environment. Hence, compromised nodes can be used to generate such plaintext-ciphertext pairs. In the proposed protocol, each node is equipped with a unique key shared with the base station. Hence, a node can only have access to its own secret key. It does not have any information about other nodes’ secret keys. Therefore, compromised nodes cannot leak any information about the remaining sensor nodes. In the proposed protocol, although we use a symmetric-key based cryptosystem for encryption, the unique keys embedded into the nodes help to thwart the known-plaintext attack.</p></sec><sec id="s6_3"><title>6.3. The Sybil Attack</title><p>In a Sybil attack, a single malicious node can present itself as a large number of nodes [<xref ref-type="bibr" rid="scirp.52983-ref36">36</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref37">37</xref>] . It can impersonate other nodes through fake identity information. In the proposed protocol, each node is equipped with a unique secret key shared with the base station. In addition, each node shares a pairwise secret key with its neighboring node(s). Hence, no malicious node can successfully impersonate other nodes or create fake identities, without having the keying information of those nodes. In our proposed protocol, the validation of the source node, through dual authentication mechanism, helps to ensure the protection against a Sybil attack. The protocols that do not have any authentication mechanism [<xref ref-type="bibr" rid="scirp.52983-ref11">11</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref31">31</xref>] or the protocols that use a global shared secret key [<xref ref-type="bibr" rid="scirp.52983-ref11">11</xref>] [<xref ref-type="bibr" rid="scirp.52983-ref18">18</xref>] have been affected by the Sybil attack. In the proposed protocol, the pairwise unique secret keys provide the protection against the Sybil attack.</p></sec><sec id="s6_4"><title>6.4. Node Capture Attack</title><p>In the proposed protocol, each node is equipped with two types of keys; 1) a unique secret key that is shared with the base station 2) a pairwise secret key with its neighboring node(s). If an adversary compromises a node, it can have access to the stored information therein. However, as we use a homomorphic encryption for privacy protection, the data once encrypted cannot be decrypted without the base station’s secret key. Hence, any captured sensor node can only reveal its own sensor readings in a raw form. A compromised node cannot decrypt the ciphertexts encrypted with other sensor nodes’ encryption keys. In addition, en route authentication and end-to-end authentication ensure that the captured node cannot violate the integrity of raw sensor readings or aggregated sensor readings without being detected. Hence, the proposed protocol protects the network against node capture attacks.</p></sec><sec id="s6_5"><title>6.5. Malleability</title><p>Any cryptosystem that supports privacy homomorphism is inherently malleable. The malleability property helps aggregator nodes to process encrypted data. However, it also helps compromised intermediate nodes to aggregate fake data packets without being detected. As our proposed protocol uses a symmetric key based homomorphic cryptosystem, it becomes malleable. The property that ensures the privacy of sensor readings has a negative effect on the data integrity. However, the risk of undesired malleability can be mitigated through authentication mechanisms. We use en route authentication and end-to-end authentication to verify the integrity of sensor read- ings. Hence, any maliciously aggregated data packets can be detected nearer to their sources. In conclusion, although we use inherently malleable homomorphic encryption for privacy protection, the authentication me- chanisms help to mitigate the risk of undesired malleability and to ensure the correctness of sensor readings.</p></sec><sec id="s6_6"><title>6.6. Denial of Service Attacks</title><p>The proposed protocol has a high degree of resistance against denial of service attacks. The use of symmetric- key based authentication mechanisms to verify the integrity of packets, reduces the energy consumption compared to asymmetric-key based digital signatures [<xref ref-type="bibr" rid="scirp.52983-ref38">38</xref>] . In addition, we provide en route authentication as well as end-to-end authentication using two different symmetric-key based authentication mechanisms. The en route authentication mechanism helps to thwart the pollution attacks, in which a single malicious node can flood the network with fake packets. Such attacks not only affect the correctness of gathered information, but they also affect the precious energy and therefore the lifetime of sensor networks. The en route authentication helps to detect maliciously injected packets nearer to their sources. Therefore, the proposed protocol reduces the energy consumption compared to the protocols where packets need to be forwarded up to the base station, in order to be verified.</p></sec></sec><sec id="s7"><title>7. Conclusion</title><p>In this paper, we present a way to ensure the integrity, privacy and en route aggregation of converge-cast traffic in wireless sensor networks. The proposed protocol is the first that achieves these objectives using only the symmetric key based mechanisms. We used two different homomorphic primitives namely, homomorphic encryption and homomorphic message authentication code. The proposed protocol protects the sensor readings against insiders as well as outsider adversaries. A comparison of the proposed protocol with existing protocols shows its viability and efficiency on resource constrained devices. Moreover, we analyze the security of the proposed protocol with respect to some well-known attacks on concealed data aggregation. We believe that the proposed protocol helps to improve the resource utilization in resource-constrained environments while achiev- ing the desired security objectives.</p></sec><sec id="s8"><title>Acknowledgements</title><p>This research was a part of the project “A Secure Data Aggregation System and An Intrusion Detection System for Wireless Sensor Networks”. It was supported by the Department of Electronics and Information Technology, Ministry of Communications and Information Technology, Government of India.</p></sec></body><back><ref-list><title>References</title><ref id="scirp.52983-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">MEMSIC (2014) MICAz Mote Platform.  
http://www.memsic.com/userfiles/files/Datasheets/WSN/6020-0060-04-B_MICAz.pdf</mixed-citation></ref><ref id="scirp.52983-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">MEMSIC (2014) TelosB Mote Platform.  
http://www.memsic.com/userfiles/files/Datasheets/WSN/6020-0094-02_B_TELOSB.pdf</mixed-citation></ref><ref id="scirp.52983-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Akyildiz, I.F., Su, W., Sankarasubramaniam, Y. and Cayirci, E. (2002) Wireless Sensor Networks: A Survey. Computer Networks: The International Journal of Computer and Telecommunications Net- 
working, 38, 393-422.  
http://dx.doi.org/10.1016/S1389-1286(01)00302-4</mixed-citation></ref><ref id="scirp.52983-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Hill, J., Szewczyk, R., Woo, A., Hollar, S., Culler, D. and Pister, K. (2000) System Architecture Directions for Networked Sensors. ACM SIGPLAN Notices, 35, 93-104. http://dx.doi.org/10.1145/356989.356998</mixed-citation></ref><ref id="scirp.52983-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Fasolo, E., Rossi, M., Widmer, J. and Zorzi, M. (2007) In-Network Aggregation Techniques for Wireless Sensor Networks: A Survey. IEEE Wireless Communications, 14, 70-87. http://dx.doi.org/10.1109/MWC.2007.358967</mixed-citation></ref><ref id="scirp.52983-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Chan, H. and Perrig, A. (2003) Security and Privacy in Sensor Networks. Computer, 36, 103-105.  
http://dx.doi.org/10.1109/MC.2003.1236475</mixed-citation></ref><ref id="scirp.52983-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Perrig, A., Stankovic, J. and Wagner, D. (2004) Security in Wireless Sensor Networks. Communi- 
cations of the ACM, 47, 53-57.http://dx.doi.org/10.1145/990680.990707</mixed-citation></ref><ref id="scirp.52983-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Wang, Y., Attebury, G. and Ramamurthy, B. (2006) A Survey of Security Issues in Wireless Sensor Networks. IEEE Communications Surveys &amp; Tutorials, 8, 2-23. http://dx.doi.org/10.1109/COMST.2006.315852</mixed-citation></ref><ref id="scirp.52983-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Ozdemir, S. and Xiao, Y. (2009) Secure Data Aggregation in Wireless Sensor Networks: A Comprehensive Overview. Computer Networks: The International Journal of Computer and Tele- 
communications Networking, 53, 2022-2037.  
http://dx.doi.org/10.1016/j.comnet.2009.02.023</mixed-citation></ref><ref id="scirp.52983-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Girao, J., Schneider, M. and Westhoff, D. (2004) CDA: Concealed Data Aggregation in Wireless Sensor Networks. Proceedings ACM Workshop on Wireless Security, WiSe’04, Poster Presentation, Philadelphia.</mixed-citation></ref><ref id="scirp.52983-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Girao, J., Westho, D. and Schneider, M. (2005) CDA: Concealed Data Aggregation for Reverse Multicast Traffic in Wireless Sensor Networks. Proceedings of the 40th International Conference on Communications, Seoul, 16-20 May 2005, 3044-3049.</mixed-citation></ref><ref id="scirp.52983-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Rivest, R.L., Adleman, L. and Dertouzos, M.L. (1978) On Data Banks and Privacy Homomorphisms. Foundations of Secure Computation, 4, 169-180.</mixed-citation></ref><ref id="scirp.52983-ref13"><label>13</label><mixed-citation publication-type="book" xlink:type="simple">Levis, P., Madden, S., Polastre, J., Szewczyk, R., Whitehouse, K., Woo, A., Gay, D., Hill, J., Welsh, M., Brewer, E. and Culler, D. (2005) TinyOS: An Operating System for Sensor Networks. In: Weber, W., Rabaey, J.M. and Aarts, E., Eds., Ambient Intelligence, Springer Berlin Heidelberg, Berlin, 115-148. 
http://dx.doi.org/10.1007/3-540-27139-2_7</mixed-citation></ref><ref id="scirp.52983-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Hu, L. and Evans, D. (2003) Secure Aggregation for Wireless Networks. Proceedings of the Symposium on Applications and the Internet Workshops, Washington DC, 27-31 January 2003, 384-391.</mixed-citation></ref><ref id="scirp.52983-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Przydatek, B., Song, D. and Perrig, A. (2003) SIA: Secure Information Aggregation in Sensor Networks. Proceedings of the 1st International Conference on Embedded Networked Sensor Systems, Los Angeles, 5-7 November 2003, 255-265.</mixed-citation></ref><ref id="scirp.52983-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Sang, Y., Shen, H., Inoguchi, Y., Tan, Y. and Xiong, N. (2006) Secure Data Aggregation in Wireless Sensor Networks: A Survey. Proceedings of the 7th International Conference on Parallel and Distributed Computing, Applications and Technologies, Taipei, 4-7 December 2006, 315-320.</mixed-citation></ref><ref id="scirp.52983-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">Domingo-Ferrer, J. (2002) A Provably Secure Additive and Multiplicative Privacy Homomorphism. Proceedings of the 5th International Conference on Information Security, Berlin, 30 September-2 October 2002, 471-483.</mixed-citation></ref><ref id="scirp.52983-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Castelluccia, C., Mykletun, E. and Tsudik, G. (2005) Efficient Aggregation of Encrypted Data in Wireless Sensor Networks. Proceedings of the 2nd Annual International Conference on Mobile and Ubiquitous Systems: Networking and Services, Washington DC, 17-21 July 2005, 109-117.</mixed-citation></ref><ref id="scirp.52983-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Castelluccia, C., Chan, A.C.F., Mykletun, E. and Tsudik, G. (2009) Efficient and Provably Secure Aggregation of Encrypted Data in Wireless Sensor Networks. ACM Transactions on Sensor Networks (TOSN), 5, 1-36. 
http://dx.doi.org/10.1145/1525856.1525858</mixed-citation></ref><ref id="scirp.52983-ref20"><label>20</label><mixed-citation publication-type="other" xlink:type="simple">Peter, S., Piotrowski, K. and Langendoerfer, P. (2007) On Concealed Data Aggregation for Wireless Sensor Networks. Proceedings of the 4th IEEE Consumer Communications Networking Conference, Las Vegas, 11-13 January 2007, 192-196.</mixed-citation></ref><ref id="scirp.52983-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Mykletun, E., Girao, J. and Westho, D. (2006) Public Key Based Cryptoschemes for Data Concealment in Wireless Sensor Networks. Proceedings of the IEEE International Conference on Communications, Istanbul, 11-15 June 2006, 2288-2295.</mixed-citation></ref><ref id="scirp.52983-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Ugus, O. (2007) Asymmetric Homomorphic Encryption Transformation for Securing Distributed Data Storage in Wireless Sensor Networks. Technische Universit&amp;aumlt Darmstadt, Darmstadt.</mixed-citation></ref><ref id="scirp.52983-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Koblitz, N. (1987) Elliptic Curve Cryptosystems. Mathematics of Computation, 48, 203-209. 
http://dx.doi.org/10.1090/S0025-5718-1987-0866109-5</mixed-citation></ref><ref id="scirp.52983-ref24"><label>24</label><mixed-citation publication-type="other" xlink:type="simple">Fontaine, C. and Galand, F. (2007) A Survey of Homomorphic Encryption for Nonspecialists. EURASIP Journal on Information Security, 2007, 1-10. http://dx.doi.org/10.1155/2007/13801</mixed-citation></ref><ref id="scirp.52983-ref25"><label>25</label><mixed-citation publication-type="other" xlink:type="simple">Dolev, D., Dwork, C. and Naor, M. (1991) Non-Malleable Cryptography. Proceedings of the 23rd Annual ACM Symposium on Theory of Computing, New York, 5-8 May 1991, 542-552.</mixed-citation></ref><ref id="scirp.52983-ref26"><label>26</label><mixed-citation publication-type="book" xlink:type="simple">Racko, C. and Simon, D. (1992) Non-Interactive Zero-Knowledge Proof of Knowledge and Chosen Ciphertext Attack. In: Feigenbaum, J., Ed., Advances in Cryptology—CRYPTO ’91, Springer Berlin Heidelberg, Berlin, 433-444.</mixed-citation></ref><ref id="scirp.52983-ref27"><label>27</label><mixed-citation publication-type="other" xlink:type="simple">Chan, A.C.F. and Castelluccia, C. (2008) On the (Im)possibility of Aggregate Message Authentication Codes. Proceedings of the IEEE International Symposium on Information Theory, Toronto, 6-11 July 2008, 235-239.</mixed-citation></ref><ref id="scirp.52983-ref28"><label>28</label><mixed-citation publication-type="other" xlink:type="simple">Agrawal, S. and Boneh, D. (2009) Homomorphic MACs: MAC-Based Integrity for Network Coding. Proceedings of the 7th International Conference on Applied Cryptography and Network Security, Paris-Rocquencourt, 2-5 June 2009, 292-305.</mixed-citation></ref><ref id="scirp.52983-ref29"><label>29</label><mixed-citation publication-type="other" xlink:type="simple">Johnson, R., Molnar, D., Song, D.X. and Wagner, D. (2002) Homomorphic Signature Schemes. Proceedings of the Cryptographers’ Track at the RSA Conference, San Jose, 18-22 February 2002, 244-262.</mixed-citation></ref><ref id="scirp.52983-ref30"><label>30</label><mixed-citation publication-type="other" xlink:type="simple">Boneh, D., Freeman, D., Katz, J. and Waters, B. (2009) Signing a Linear Subspace: Signature Schemes for Network Coding. Proceedings of the 12th International Conference on Practice and Theory in Public Key Cryptography, Irvine, 18-20 March 2009, 68-87.</mixed-citation></ref><ref id="scirp.52983-ref31"><label>31</label><mixed-citation publication-type="other" xlink:type="simple">Westho, D., Girao, J. and Acharya, M. (2006) Concealed Data Aggregation for Reverse Multicast Traffic in Sensor Networks: Encryption, Key Distribution, and Routing Adaptation. IEEE Transactions on Mobile Computing, 5, 1417-1431. http://dx.doi.org/10.1109/TMC.2006.144</mixed-citation></ref><ref id="scirp.52983-ref32"><label>32</label><mixed-citation publication-type="other" xlink:type="simple">Okamoto, T. and Uchiyama, S. (1998) A New Public-Key Cryptosystem as Secure as Factoring. Proceedings of the International Conference on the Theory and Application of Cryptographic Techniques, Espoo, 31 May-4 June 1998, 303-318.</mixed-citation></ref><ref id="scirp.52983-ref33"><label>33</label><mixed-citation publication-type="other" xlink:type="simple">Paillier, P. (2000) Trapdooring Discrete Logarithms on Elliptic Curves over Rings. Proceedings of the 6th International Conference on the Theory and Application of Cryptology and Information Security, Kyoto, 3-7 December 2000, 573-584.</mixed-citation></ref><ref id="scirp.52983-ref34"><label>34</label><mixed-citation publication-type="other" xlink:type="simple">Liu, A. and Ning, P. (2008) TinyECC: A Configurable Library for Elliptic Curve Cryptography in Wireless Sensor Networks. Proceedings of the 7th International Conference on Information Processing in Sensor Networks, St. Louis, 22-24 April 2008, 245-256.</mixed-citation></ref><ref id="scirp.52983-ref35"><label>35</label><mixed-citation publication-type="other" xlink:type="simple">Karlof, C., Sastry, N. and Wagner, D. (2004) TinySec: A Link Layer Security Architecture for Wireless Sensor Networks. Proceedings of the 2nd International Conference on Embedded Networked Sensor Systems, Baltimore, 3-5 November 2004, 162-175. http://dx.doi.org/10.1145/1031495.1031515</mixed-citation></ref><ref id="scirp.52983-ref36"><label>36</label><mixed-citation publication-type="other" xlink:type="simple">Karlof, C. and Wagner, D. (2003) Secure Routing in Wireless Sensor Networks: Attacks and Countermeasures. Ad Hoc Networks, 1, 293-315. http://dx.doi.org/10.1016/S1570-8705(03)00008-8</mixed-citation></ref><ref id="scirp.52983-ref37"><label>37</label><mixed-citation publication-type="other" xlink:type="simple">Newsome, J., Shi, E., Song, D. and Perrig, A. (2004) The Sybil Attack in Sensor Networks: Analysis &amp; Defenses. Proceedings of the 3rd International Symposium on Information Processing in Sensor Networks, Berkeley, 26-27 April 2004, 259-268.</mixed-citation></ref><ref id="scirp.52983-ref38"><label>38</label><mixed-citation publication-type="other" xlink:type="simple">Li, Z. and Gong, G. (2010) Data Aggregation Integrity Based on Homomorphic Primitives in Sensor Networks. Proceedings of the 9th International Conference on Ad-Hoc, Mobile and Wireless Net- 
works, Edmonton, 20-22 August 2010, 149-162.</mixed-citation></ref></ref-list></back></article>