Wireless Sensor Network security is the collection of mechanisms used to protect sensor nodes, communication links, sensed data and network services from unauthorized access, alteration, disclosure, destruction and disruption.
WSNs are often deployed in open, unattended or hostile environments. Their wireless communication and limited hardware resources make them more vulnerable than conventional networks.
Physical Environment
|
Sensor Nodes
|
Wireless Communication
|
Intermediate Nodes
|
Sink
|
Application Server
Security is required at every stage.
Protected Assets
Sensor readings
Node identity
Encryption keys
Routing information
Control messages
Network services
Location and topology information
2. Need for WSN Security 7 Marks
Wireless signals can be intercepted easily.
Nodes may be physically captured.
False readings may lead to incorrect decisions.
Attackers may disrupt routing and communication.
WSNs are used in military, industrial and healthcare applications.
Location and identity information may be private.
Compromised nodes may behave like legitimate nodes.
Denial-of-service attacks can exhaust node batteries.
In a sensor network, an attack may not only steal information; it may also create false physical-event reports and cause incorrect real-world actions.
3. Security Goals and Requirements 14 Marks
Confidentiality
Only authorized entities should be able to read sensed data and control information.
Integrity
Data must not be modified, inserted or deleted without detection.
Authentication
The receiver must verify the identity of the sender.
Availability
Network services should remain accessible even during failures or attacks.
Freshness
Messages must be recent and not replayed from an earlier communication.
Non-Repudiation
A sender should not be able to deny an action or message where this property is required.
Access Control
Only authorized users and nodes may access network resources.
Data Privacy
Sensitive readings, identities and locations must be protected.
Secure Localization and Time Synchronization
Attackers must not be allowed to manipulate position or timing information.
An attacker transmits interfering radio signals to block legitimate communication.
Effects
Packet loss
Reduced availability
Energy waste due to retransmission
Defences
Frequency hopping
Spread spectrum
Channel switching
Jamming detection
Routing around the jammed region
Node Tampering
An attacker physically captures a node and extracts keys, modifies software or replaces hardware.
Defences
Tamper-resistant packaging
Key revocation
Node-compromise detection
Secure memory
Self-destruction of sensitive keys after tamper detection
8. Data-Link and MAC-Layer Attacks 14 Marks
Collision Attack
The attacker causes interference during packet transmission, forcing retransmission.
Exhaustion Attack
The attacker repeatedly requests channel access or creates collisions to drain node batteries.
Unfairness Attack
A malicious node abuses MAC priorities or backoff rules to obtain more channel access.
Replay Attack
Old MAC frames are recorded and transmitted again.
Defences
Error-correcting codes
Rate limiting
Small frame sizes
Frame counters
Authentication codes
Time-division channel allocation
Misbehavior detection
9. Network-Layer and Routing Attacks 14 Marks
Selective Forwarding
A malicious forwarding node drops selected packets while forwarding others.
Sinkhole Attack
An attacker advertises an attractive route and draws surrounding traffic through itself.
Wormhole Attack
Two attackers create a low-latency tunnel and replay packets between distant network regions.
Region A Wormhole Tunnel Region B
Nodes ---> [Attacker X] =============== [Attacker Y] ---> Nodes
Sybil Attack
One physical node presents multiple false identities.
Hello Flood Attack
A powerful attacker broadcasts HELLO packets, making distant nodes believe it is their neighbor.
Blackhole Attack
A malicious node attracts traffic and drops all received packets.
False Routing Information
The attacker changes route costs, sequence numbers or next-hop information.
Defences
Authenticated routing messages
Multipath routing
Neighbor verification
Geographical or temporal packet leashes
Identity verification
Trust and reputation systems
Route monitoring
10. Transport-Layer Attacks 7 Marks
Flooding
The attacker repeatedly creates connection requests or sends excessive packets, consuming memory and energy.
Desynchronization
Forged control messages cause endpoints to repeatedly retransmit or reset communication state.
Defences
Client puzzles
Rate limitation
Authentication
Connection timeout
Packet sequence verification
11. Application-Layer Attacks 7 Marks
False-data injection: Fabricated sensor values are reported.
Data aggregation attack: Aggregated values are altered.
Malicious code: Unauthorized software is installed.
Query attack: Expensive or repeated queries drain network resources.
Privacy attack: Sensitive application information is disclosed.
Defences
Secure code update
Input validation
Data authentication
Anomaly detection
Access control
12. Cryptography in Wireless Sensor Networks 14 Marks
Cryptography protects data using mathematical algorithms for encryption, authentication, integrity checking and secure key exchange.
Cryptographic Services
Encryption for confidentiality
Message Authentication Code for integrity and authentication
Hash function for data verification
Digital signature for authentication and non-repudiation
Key agreement for establishing shared secrets
WSN Design Requirements
Low computation cost
Small memory requirement
Low communication overhead
Short key and message sizes
Resistance to node capture
Scalable key distribution
13. Symmetric-Key Cryptography 14 Marks
Symmetric encryption uses the same secret key for both encryption and decryption.
Plaintext
|
Encrypt using Shared Key K
|
Ciphertext
|
Decrypt using Shared Key K
|
Plaintext
Advantages
Fast execution
Low energy consumption
Small code and memory requirement
Suitable for sensor nodes
Limitations
Secret-key distribution is difficult.
A captured node may expose shared keys.
Large networks require scalable key management.
Examples
AES
Lightweight block ciphers
Link-layer shared-key encryption
14. Asymmetric-Key Cryptography 14 Marks
Asymmetric cryptography uses a public key and a private key. Data encrypted or signed using one key is verified or decrypted using the related key.
Advantages
Simplifies authentication and key establishment
Supports digital signatures
Does not require a pre-shared secret between every pair
Limitations
Higher computation and energy cost
Larger keys and messages
May be difficult for very constrained nodes
Use in WSN
Elliptic Curve Cryptography is often preferred over traditional public-key approaches because it can provide comparable security with smaller keys.
15. Authentication, Integrity and Freshness 14 Marks
Message Authentication Code
A MAC is generated from message data and a secret key. The receiver recomputes it to verify integrity and authenticity.
Authentication Tag = MAC(Secret Key, Message)
Hash Function
A hash function creates a fixed-size digest. Any message modification normally changes the digest.
Freshness Mechanisms
Sequence numbers
Frame counters
Nonces
Timestamps
Challenge-response protocols
Replay Protection
The receiver rejects packets carrying previously used sequence numbers, counters or nonces.
16. Key Management in WSN 14 Marks
Key management includes key generation, pre-distribution, establishment, storage, renewal, revocation and destruction.
Key Types
Individual key: Shared between a node and base station.
Pairwise key: Shared between two neighboring nodes.
Cluster key: Shared among cluster members.
Network or group key: Shared by many or all nodes.
Key-Distribution Approaches
Single network-wide pre-shared key
Pairwise pre-installed keys
Random key pre-distribution
Master-key-based establishment
Public-key-based agreement
Requirements
Scalability
Low storage cost
Resistance to node capture
Key revocation
Secure node addition
Periodic key renewal
A single network-wide key is simple but unsafe: capture of one node may compromise the entire network.
17. Secure Routing in WSN 14 Marks
Requirements
Authentication of routing messages
Protection against route modification
Fresh route information
Detection of malicious forwarding
Resilience to node failure
Low security overhead
Techniques
Link-layer authentication
Sequence numbers and timestamps
Multipath routing
Watchdog monitoring
Trust-based route selection
Bidirectional-link verification
Geographical verification
Secure neighbor discovery
Trade-Off
Strong security improves protection but may consume more energy, memory and bandwidth. Secure routing must balance protection with sensor-node constraints.
18. Secure Data Aggregation 14 Marks
Secure data aggregation combines readings while preserving confidentiality, integrity, authenticity and resistance to false-data injection.
Threats
Aggregator modifies results.
Compromised nodes send false readings.
Attackers replay old data.
Eavesdroppers learn private sensor values.
Protection Methods
Authenticated aggregation
Redundant aggregation paths
Statistical outlier detection
End-to-end integrity verification
Encrypted aggregation
Trust-based aggregator selection
19. Intrusion Detection in WSN 14 Marks
An Intrusion Detection System observes node and network behavior to identify attacks, policy violations or abnormal activity.
Detection Approaches
Signature-based: Matches known attack patterns.
Anomaly-based: Detects deviation from normal behavior.
Specification-based: Detects violation of defined protocol rules.
Observed Indicators
Abnormal packet-dropping rate
Unusual traffic volume
Repeated identity use
Unexpected route changes
Abnormal energy consumption
False or inconsistent readings
Limitations
False alarms
Storage and computation cost
Difficulty detecting insider attacks
Communication overhead for cooperative detection
20. IEEE 802.15.4 Security 14 Marks
IEEE 802.15.4 defines the Physical and MAC layers for low-rate wireless personal area networks and includes link-layer security services suitable for low-power devices.
Security Services
Data confidentiality
Frame integrity
Data-origin authentication
Replay protection
Access control support
AES-Based Protection
IEEE 802.15.4 uses the Advanced Encryption Standard with a 128-bit key for link-layer security operations.
Security Modes
AES-CTR for confidentiality
AES-CBC-MAC for authentication and integrity
AES-CCM / CCM* for combined confidentiality and authentication
Frame Counter
A monotonically increasing frame counter helps detect replayed frames.
Security Level
The frame identifies the required combination of encryption and authentication-tag length.
Limitations
Key establishment is not completely defined by the MAC standard.
Security depends on correct key management.
Link-layer protection does not automatically provide end-to-end security.
Compromised nodes with valid keys remain dangerous.
21. ZigBee Security Architecture 14 Marks
ZigBee security builds on IEEE 802.15.4 link-layer security and adds network and application-layer security, key management and device-trust mechanisms.
Security Components
Trust Center
Network key
Link key
Master key or installation-based secret
Frame counters
AES-128 protection
Trust Center
The Trust Center controls device admission, distributes keys and manages network security policy.
Network Key
A shared key used to protect network-layer communication among ZigBee devices.
Link Key
A key shared between two devices for point-to-point application protection.
ZigBee Security Process
A device requests to join the network.
The Trust Center verifies or authorizes the device.
Security keys are established or transported.
Frames are encrypted and authenticated.
Frame counters prevent replay.
Keys may be updated when required.
Joining Device
|
v
ZigBee Coordinator / Trust Center
|
Authentication and Key Distribution
|
v
Secure ZigBee Network
Security Risks
Weak default keys
Insecure device joining
Improper key transport
Physical node capture
Failure to update keys
22. IEEE 802.15.4 and ZigBee Security Comparison 14 Marks
Basis
IEEE 802.15.4
ZigBee
Scope
Physical and MAC layers
Network and application framework over 802.15.4
Encryption
AES-128 based
AES-128 based
Security level
Link-layer frame security
Network and application security
Key management
Limited framework
Trust Center and defined key types
Main keys
Link-layer keys
Network key and link key
Replay defence
Frame counter
Frame counters at supported layers
Device admission
Not a complete application framework
Managed through Trust Center
23. WSN Security Best Practices 7 Marks
Use unique device credentials.
Avoid permanent network-wide default keys.
Authenticate every control message.
Use frame counters or nonces against replay.
Rotate and revoke keys when necessary.
Disable unused interfaces and services.
Use secure boot and signed firmware updates.
Monitor abnormal traffic and packet dropping.
Protect nodes physically where possible.
Apply least-privilege access control.
Use secure routing and multipath protection.
Balance security strength with energy constraints.
Unit 5 Quick Revision
WSN security protects nodes, data, communication and services.
Core goals are confidentiality, integrity, authentication, availability and freshness.
WSNs face limited energy, open wireless links and physical capture.
Attacks may be passive, active, external or internal.
Jamming and tampering occur at the physical layer.
Collision, exhaustion and unfairness affect the MAC layer.
Sinkhole, wormhole, Sybil and selective forwarding affect routing.
Symmetric cryptography is efficient but requires secure key distribution.
Asymmetric cryptography supports authentication and key establishment.
Message Authentication Codes provide integrity and authentication.
Frame counters and nonces provide freshness and replay protection.
Key management includes distribution, renewal and revocation.
ZigBee adds Trust Center, network keys and link keys.
Important RGPV Exam Questions
Long Answer Questions
Define WSN security and explain its need.
Explain security goals and requirements of Wireless Sensor Networks.
Discuss major security challenges in WSN.
Classify WSN attacks into passive, active, external and internal attacks.
Explain physical-layer attacks and their countermeasures.
Explain MAC-layer attacks in sensor networks.
Discuss network-layer attacks such as sinkhole, wormhole and Sybil.
Explain selective forwarding, Hello flood and blackhole attacks.
Discuss transport-layer and application-layer attacks.
Explain the role of cryptography in WSN security.
Compare symmetric and asymmetric cryptography for sensor networks.
Explain authentication, integrity and freshness mechanisms.
Discuss key-management requirements and approaches in WSN.
Explain secure routing mechanisms.
Write a detailed note on secure data aggregation.
Explain intrusion-detection approaches for WSN.
Explain IEEE 802.15.4 security architecture.
Explain ZigBee security architecture and the role of Trust Center.
Compare IEEE 802.15.4 and ZigBee security.
Short Answer Questions
Define confidentiality.
What is data freshness?
What is an insider attack?
Define jamming.
What is a sinkhole attack?
Define wormhole attack.
What is a Sybil attack?
Define selective forwarding.
What is a Message Authentication Code?
What is replay protection?
Define pairwise key.
What is a Trust Center?
What is a ZigBee network key?
What is a ZigBee link key?
Which encryption standard is used by IEEE 802.15.4?
Exam Tip: Security goals, WSN attacks, key management, IEEE 802.15.4 security and ZigBee Trust Center architecture are the highest-priority Unit 5 topics.
Download Study Resources
Unit 5 PDF
Printable Unit 5 notes will be available soon.
Coming Soon
Security Diagrams
Attack taxonomy, IEEE security and ZigBee diagrams.
Coming Soon
Important Questions
Expected Unit 5 RGPV questions.
Coming Soon
Frequently Asked Questions
Sensor nodes ke paas limited battery, memory aur processing hoti hai. Wireless communication aur unattended deployment bhi attacks ka risk increase karte hain.
Sinkhole attack mein malicious node attractive route advertise karke nearby network traffic ko apne through pass karwata hai.
Do attackers distant network locations ke beech fast tunnel banakar packets replay karte hain aur false neighbor relationship create karte hain.
Symmetric encryption fast hoti hai aur kam energy, memory aur processing consume karti hai, lekin secure key distribution required hota hai.
IEEE 802.15.4 link-layer security AES-128 based mechanisms use karti hai.
Trust Center device admission authorize karta hai, security keys manage aur distribute karta hai aur network security policy control karta hai.
Network key ZigBee network ke multiple devices ke beech shared hoti hai, jabki link key do specific devices ke point-to-point secure communication ke liye hoti hai.