Why IoT Security Is Hard

IoT devices have limited memory, power and processing, so they cannot run heavy security software. They are cheap and numerous, are often left unattended for years, may be physically accessible to attackers, use many different protocols, and are often shipped with default passwords and without updates. A weakness in one device may open the whole network.

The CIA Triad

Security aims at Confidentiality (only authorised parties see the data), Integrity (data is not altered) and Availability (the service works when needed). IoT adds safety, because an attack on a car, pump or pacemaker can harm people.

Threats and Vulnerabilities

A threat is a possible danger; a vulnerability is a weakness that can be exploited; risk is the chance of harm, often scored as likelihood × impact. Common IoT vulnerabilities are default or weak passwords, unencrypted communication, no or insecure firmware updates, open ports and insecure web interfaces, hard-coded keys, weak authentication and lack of physical protection.

Attack Vectors by Layer

  • Perception layer: physical tampering, node capture, side-channel attacks, sensor spoofing, jamming.
  • Network layer:eavesdropping, man-in-the-middle, replay, sinkhole and wormhole routing attacks, and denial of service (DoS).
  • Middleware layer: SQL injection, API abuse, cloud account compromise and insecure data storage.
  • Application layer: weak mobile apps, insecure web dashboards, and malware.

Botnets and Data Breaches

Attackers can enslave thousands of insecure devices into a botnet. The Mirai botnet of 2016 took over devices such as cameras and routers using their default passwords and then launched a very large denial-of-service attack on the DNS provider Dyn, disrupting many popular websites. A data breach exposes personal data, such as camera feeds, health data or location, causing loss of privacy, fraud or physical risk.

Definition: Attack vector. A path or method by which an attacker gains access to a system, such as a default password, an unpatched firmware flaw, an open network port or a tampered device.

Table 4.1: Attacks by layer

Layer Example attack Defence
Perception Physical tampering, jamming Tamper-proof design, secure boot
Network Eavesdropping, replay, DoS Encryption (TLS), nonces, rate limits
Middleware API abuse, account takeover Strong authentication, access policy
Application Weak app, malware Secure coding, updates

Example 4.1: Cost of guessing a password

Problem: An attacker tries 1,000 guesses per second. Find the time to try every 4-digit PIN, and every 8-letter lowercase password (26 letters). Compare with the default password "admin".

Solution:

  1. 4-digit PIN: 10⁴ = 10,000 combinations; time = 10,000 / 1,000 = 10 seconds.
  2. 8 lowercase letters: 26⁸ = 2,08,82,70,64,576 (about 2.09 × 10¹¹) combinations.
  3. Time = 2.09 × 10¹¹ / 1,000 = 2.09 × 10⁸ seconds; one year is about 3.15 × 10⁷ seconds, so this is about 6.6 years.
  4. A default password such as "admin" is found in the first few guesses, in under a second.

Result: Longer, random passwords make guessing impractical; default credentials give no protection at all.

rate = 1000
pin = 10 ** 4
word = 26 ** 8
year = 365 * 24 * 3600
print("PIN time (s):", pin / rate)
print("8 letters:", word, "combinations")
print("8 letters time (years):", round(word / rate / year, 1))

Output

PIN time (s): 10.0
8 letters: 208827064576 combinations
8 letters time (years): 6.6

Common mistakes

  • Leaving the factory default password unchanged.
  • Sending sensor data and commands without encryption.
  • Shipping devices with no way to update firmware.
  • Treating security as an add-on after the product is built.

Key takeaways

  • CIA: confidentiality, integrity, availability; plus safety.
  • Risk = likelihood × impact.
  • Weak points: default passwords, no encryption, no updates, open ports.
  • Attacks exist at every layer; defend in depth.

Practice questions

  1. What does the CIA triad stand for?
  2. What is a botnet?
  3. Name two IoT vulnerabilities.

Answers to the practice questions

  1. Confidentiality, integrity and availability.
  2. A network of compromised devices controlled by an attacker.
  3. Default passwords and unencrypted communication (also no updates, open ports).

Sources

  • Official BCA syllabus Internet of Things, course code 25BCA406DS01, Unit IV