Docsity

IOT Practical 9 write-up TE AIDS SPPU 2024 Pattern, Study Guides, Projects, Research of Internet and Information Access

Toggle sidebar
bg1
PRACTICAL EXPERIMENT NO. 4
Title: Implementation of a password-protected smart sensor system that allows access to sensor data only
after successful authentication demonstrating basic IoT security concepts.
Problem Statement: To design and implement a password-protected smart sensor system that allows
access to sensor data only after successful authentication, demonstrating basic IoT security concepts. (Any
security Algorithm can be used)
Aim: Write a program to design and implement a password-protected smart sensor system that allows
access to sensor data only after successful authentication, demonstrating basic IoT security concepts.
Objectives:
• To study and understand basic IoT security concepts.
• To study and understand the implementation of a password-protected smart sensor system that
allows access to sensor data only after successful authentication.
Prerequisites:
• Knowledge of C, C++, Java and Python Programming.
• Knowledge of Arduino IDE/ESP-IDE/Raspbian, LEDs, Sensors.
Outcome: An application(program) which demonstrates basic IoT security concepts by implementing a
password-protected smart sensor system that allows access to sensor data only after successful
authentication.
Software requirements: 64-bit Open Source Operating System (Windows/Ubuntu), ardOS/Arduino IDE,
Raspbian OS, ESP-IDE
Hardware requirements: Arduino Uno/ ESP module / Raspberry Pi Board and Sensors.
Theory:
Basic IoT Security Concepts
IoT security is the practice of defending connected physical devices and networks from cyber threats,
relying on core principles like device authentication, data encryption, and network segmentation.
Core Concepts
• Authentication: Verifying the true identity of a device or user before allowing network access using
unique credentials, certificates, or multi-factor checks.
• Encryption: Scrambling data so unauthorized people cannot read it, whether it is moving across a
network (in transit) or stored on a device (at rest).
• Network Segmentation: Splitting a large network into smaller, isolated zones so that a hacked smart
device cannot reach critical main computers.
• Secure Boot: A hardware-level check that ensures a device only starts up using trusted, original
manufacturer software.
• Lifecycle Management: Maintaining security from the time a device is built and installed until it is
safely wiped and retired.
IoT Security
IoT security is a technology area that particularly focuses on protecting connected devices and networks in
IoT. The act of protecting these devices and making sure they don't bring risks into a network is known as
IoT security. Attacks are likely to occur to anything linked to the Internet at some time. From the Internet of
Things devices, Attackers may utilize remote access to steal data by using a variety of strategies, including
credential theft and vulnerability exploitation.
pf3
pf4
pf5

Partial preview of the text

Download IOT Practical 9 write-up TE AIDS SPPU 2024 Pattern and more Study Guides, Projects, Research Internet and Information Access in PDF only on Docsity!

PRACTICAL EXPERIMENT NO. 4

Title : Implementation of a password-protected smart sensor system that allows access to sensor data only after successful authentication demonstrating basic IoT security concepts. Problem Statement: To design and implement a password-protected smart sensor system that allows access to sensor data only after successful authentication, demonstrating basic IoT security concepts. (Any security Algorithm can be used) Aim: Write a program to design and implement a password-protected smart sensor system that allows access to sensor data only after successful authentication, demonstrating basic IoT security concepts. Objectives:

  • To study and understand basic IoT security concepts.
  • To study and understand the implementation of a password-protected smart sensor system that allows access to sensor data only after successful authentication. Prerequisites:
  • Knowledge of C, C++, Java and Python Programming.
  • Knowledge of Arduino IDE/ESP-IDE/Raspbian, LEDs, Sensors. Outcome: An application(program) which demonstrates basic IoT security concepts by implementing a password-protected smart sensor system that allows access to sensor data only after successful authentication. Software requirements: 64 - bit Open Source Operating System (Windows/Ubuntu), ardOS/Arduino IDE, Raspbian OS, ESP-IDE Hardware requirements: Arduino Uno/ ESP module / Raspberry Pi Board and Sensors. Theory: Basic IoT Security Concepts IoT security is the practice of defending connected physical devices and networks from cyber threats, relying on core principles like device authentication , data encryption , and network segmentation. Core Concepts
  • Authentication: Verifying the true identity of a device or user before allowing network access using unique credentials, certificates, or multi-factor checks.
  • Encryption: Scrambling data so unauthorized people cannot read it, whether it is moving across a network (in transit) or stored on a device (at rest).
  • Network Segmentation: Splitting a large network into smaller, isolated zones so that a hacked smart device cannot reach critical main computers.
  • Secure Boot: A hardware-level check that ensures a device only starts up using trusted, original manufacturer software.
  • Lifecycle Management: Maintaining security from the time a device is built and installed until it is safely wiped and retired. IoT Security IoT security is a technology area that particularly focuses on protecting connected devices and networks in IoT. The act of protecting these devices and making sure they don't bring risks into a network is known as IoT security. Attacks are likely to occur to anything linked to the Internet at some time. From the Internet of Things devices, Attackers may utilize remote access to steal data by using a variety of strategies, including credential theft and vulnerability exploitation.

The primary objective of IoT security is to preserve the integrity, confidentiality, and availability of the data, systems, and users interacting with these devices. Any security attributes apply on three levels of the technology stack:

  • Tier 1: Low-level hardware or perception stack that involves data collection and measurement.
  • Tier 2: Networking and communication layer stack that involves data transmission data and communication to external devices.
  • Tier 3: The stack involved in interfacing and integrating with external services. Most IoT devices operate as endpoint devices for data collection in the first tier. Thus, they can perform simplified tasks at scale. Naturally, any security loophole or defect at this level opens the door to cybersecurity threats at a minimum, or worse, a large-scale attack. Types of IoT Security IoT security encompasses a multi-layered approach to protect devices, networks, and data. It involves both user and manufacturer responsibilities. 1. Network Security This focuses on safeguarding the overall IoT network infrastructure. It involves:
  • Establishing a strong network perimeter: Implementing firewalls, intrusion detection systems, and access controls to prevent unauthorized entry.
  • Enforcing zero-trust architecture: Assuming every device and user is potentially malicious, requiring continuous verification.
  • Securing network communication: Encrypting data transmitted between devices and using secure protocols. 2. Device Security This centers on protecting individual IoT devices:
  • Embedded security agents: Employing lightweight software to monitor device behavior and detect anomalies.
  • Firmware hardening: Ensuring device software is free from vulnerabilities through rigorous testing and updates.
  • Secure boot process: Verifying the integrity of the device's operating system before startup. 3. Data Security This safeguards the information generated and transmitted by IoT devices:
  • Data encryption: Protecting data both at rest and in transit using strong encryption algorithms.
  • Data privacy: Implementing measures to protect sensitive information from unauthorized access.
  • Data integrity: Ensuring data accuracy and consistency through checksums and other techniques. Security Needs in IoT
  1. Data Privacy : IoT devices collect sensitive data, including personal information and behavior patterns. Protecting this data from unauthorized access and ensuring user privacy is paramount.
  2. Device Authentication : Ensuring that only authorized devices can connect to the network or communicate with other devices is essential to prevent unauthorized access and potential attacks.
  3. Data Integrity : Data collected by IoT devices must remain accurate and unaltered during transmission and storage. Data integrity mechanisms help detect and prevent tampering.
  4. Network Security : IoT networks must be secure to prevent attacks, such as man-in-the middle attacks or network eavesdropping. Encryption and network segmentation are common security measures.
  5. Firmware and Software Updates : Regular updates are necessary to patch security vulnerabilities and improve device functionality. Ensuring secure and reliable firmware and software updates is critical.
  6. Physical Security : Protecting IoT devices from physical tampering or theft is important, especially for critical infrastructure and industrial IoT deployments.
  • Use tamper-evident seals and enclosures to protect sensors from physical attacks.
  1. User Training and Awareness :
  • Educate users and administrators about security best practices, such as strong password management and recognizing phishing attempts.
  • Promote a culture of security awareness within your organization.
  1. Data Lifecycle Management :
  • Define clear data retention policies to ensure that sensor data is not stored longer than necessary.
  • Implement secure data deletion processes to remove data when it is no longer needed.
  1. Third-Party Security Assessment :
  • If you're using third-party IoT platforms or services, ensure they adhere to robust security practices and standards. Conduct security assessments and due diligence.
  1. Regulatory Compliance :
  • Ensure that your IoT system complies with relevant data protection and privacy regulations, such as GDPR or HIPAA, depending on your application and region. DS18B20 Sensor The DS18B20 is a popular, accurate 1-Wire digital temperature sensor. It features a unique 64-bit ID, meaning you can connect multiple sensors to a single microcontroller pin. It provides ± 0.5°C accuracy across a - 55°C to +125°C range. The DS18B20 typically has 3 wires (VCC, DATA/DQ, and GND). To ensure stable digital communication, a 4.7k Ω pull-up resistor must be placed between the VCC and DATA lines.

Features of DS18B2 0 Sensor

  • Digital signal output
  • Resolution adjustment ranges from 9-12 bytes.
  • Temperature measurement ranges: - 55°C to +125°C, be accurate to 0.5°C. Implementation Apparatus: Arduino Uno board, USB Cable, DS18B20 Sensor. Interface/Connections: Procedure: Step 1: Connect the Arduino Uno board to CPU using the FRC cable provided with the board. Step 2: Connect the Power supply adaptor and power on the circuit. Step 3: Open Arduino IDE and create a new sketch (program) using the connections.

Step 4: In the Arduino IDE go to tools →Port and select the appropriate COM port.

Step 5: In the Arduino IDE click on the upload button to compile and download the code into the Arduino UNO. When successfully downloaded, the code will start running.

Step 6: Open the serial monitor from Tools→ Serial Monitor. Set the baud rate to 9600.

Step 7: Enter Wrong Password and Observe Message. Step 8: Enter Correct Password and get access to observe the values of the DS18B20 temperature sensor. Observations: When the wrong password is entered, “Wrong Password” message pops. When the correct password is entered, “Access Granted” message pops. Upon entering the correct password, the DS18B Sensor is put in a windy place, the temperature is recorded. Observation Table: Conclusion: An application was developed which demonstrates basic IoT security concepts by implementing a password-protected smart sensor system that allows access to sensor data only after successful authentication successfully. Viva Questions:

  1. What is IoT Security?
  2. What are the basic concepts of IoT Security?
  3. How does authentication works in IoT Security?
  4. How does auth orization works in IoT Security?
  5. How does a ccess control works in IoT Security?
  6. How does encryp tion works in IoT Security?
  7. What do you mean by Role Based Access Control? How does it work?
  8. What do you mean by network segmentation?
  9. Wh y is Security needed in IoT?
  10. What is a DS 18B20 Sensor?
  11. What are the types of IoT Security?
  12. What are the components & pins of DS 18B20 Sensor?
  13. What are the features of DS 18B20 Sensor?
  14. Explain DallasTemperature Library.
  15. Explain OneWire Library.
  16. Ex plain readStringUntil (). Peripheral Arduino Pin DS18B20 VCC 5V DS18B20 GND GND DS18B20 DQ D Entered Password Message DS18B20 Surrounding Environment Temperature 0123 WRONG PASSWORD Room - 1234 ACCESS GRANTED^ ✔^ Room 22