Knowledge / Computer Science (Cyber Security) / Mobile and IoT security

Mobile and IoT security

Computer Science (Cyber Security) (B.E./B.Tech) · Platform security · free study notes for exams, placements and interviews

In short

Mobile and IoT security is the practice of protecting smartphones, mobile apps and resource-constrained connected devices (and their gateways, radios and cloud back-ends) against attacks on data at rest, data in transit, the application binary, the firmware and the physical hardware. It matters because the Indian attack surface is overwhelmingly mobile - UPI, DigiLocker, net-banking, Aadhaar-based eKYC and government services run on phones - while cheap routers, CCTV cameras, smart meters and medical sensors ship with default credentials and no update path. It is examined in AICTE/CBCS electives on mobile and IoT security, in GATE CS security questions on authentication and cryptographic protocols, and in professional syllabi (CEH, CompTIA Security+, OSCP, eMAPT). Employers recruiting on it include TCS, Infosys, Wipro, HCLTech, Accenture, Deloitte, PwC, EY, KPMG, Qualys, Palo Alto, Jio, Airtel, Nokia, Ericsson, Samsung R&D, Paytm, PhonePe, Razorpay, Zoho, and product-security teams in banks and NBFCs. Typical first jobs are mobile application penetration tester, IoT/embedded security analyst, product security engineer and MDM/endpoint administrator.

Explained

The mobile platform security model

Mobile application vulnerabilities, testing and tooling

The IoT security problem and its architecture

IoT and radio protocol security

Controls, standards and Indian law

Key points

Formulas and examples

Key space K = NL (N = symbols in the alphabet, L = length); Entropy H = L × log₂N bits
Expected offline cracking time t = K / (2 × R) (R = guesses per second; the 2 gives the average, half the space)
Energy per transmission E = V × I × t (joules); Charge per cycle q = I × t (mAh when I in mA, t in hours)
Battery life (hours) = Battery capacity (mAh) / Average current (mA)
Average current I_avg = Σ(I_i × t_i) / T over one duty cycle of period T
Aggregate DDoS bandwidth B = n × b (n = bots, b = per-bot uplink)
ALE = SLE × ARO (annual loss expectancy ₹; SLE = single loss expectancy ₹; ARO = events per year)
ROSI = (ALE × mitigation effectiveness − control cost) / control cost

Example 1 - PIN and passphrase strength on a handset. A 4-digit PIN gives K = 10⁴ = 10,000 combinations, H = 4 × log₂10 = 4 × 3.3219 = 13.3 bits. An offline attack at R = 5,000 guesses/s takes t = 10,000/(2 × 5,000) = 1 second. A 6-character password from 62 symbols gives K = 62⁶ = 56,800,235,584 and H = 6 × 5.9542 = 35.7 bits; at the same rate t = 56,800,235,584/10,000 = 5,680,024 s ≈ 65.7 days. On-device, hardware rate limiting is what actually saves the 4-digit PIN: with Gatekeeper/StrongBox enforcing escalating lockout delays after a few failures (and optional wipe after a set number of attempts), exhaustion is impossible - which is why extracting the key material off-device is the attacker's real goal.

Example 2 - cost of TLS on a battery-powered sensor. A node with a 1,000 mAh lithium cell sends one reading per hour: transmit 25 mA for 2 s, sleep at 5 µA otherwise.

Now add a full DTLS handshake per message, costing another 5 s of radio at 25 mA = 0.03472 mAh:

Conclusion: security is not dropped, it is re-engineered - DTLS session resumption, PSK instead of certificates, or OSCORE over CoAP keeps confidentiality while restoring most of the battery life.

Example 3 - botnet scale from default passwords. 50,000 compromised CCTV DVRs each on a 2 Mbps uplink give B = 50,000 × 2 = 100,000 Mbps = 100 Gbps - enough to saturate most enterprise links. If only 1% of a 5,000,000-unit fleet keeps the default password, that is 50,000 devices; forcing a password change at first boot removes the entire capability.

Example 4 - business case for secure boot plus per-device certificates. A vendor ships 10,000 smart locks. A firmware-tampering incident is estimated to cost ₹500 per device in recall, replacement and support → SLE = 10,000 × 500 = ₹50,00,000. ARO is judged 0.4 (once in 2.5 years) → ALE = 50,00,000 × 0.4 = ₹20,00,000/year. Signing infrastructure plus a secure element at ₹60 per unit costs about ₹6,00,000/year, and is assessed 80% effective.

Example 5 - equivalent key sizes for constrained devices.

Security levelSymmetricRSA modulusECC keySuitability on an 8-bit/32-bit MCU
80-bit (legacy)80 bits1024 bits160 bitsRSA too slow; ECC acceptable
112-bit3DES (deprecated)2048 bits224 bitsECC preferred
128-bit (today's baseline)AES-1283072 bits256 bits (P-256, Curve25519)ECC/AES-CCM standard choice
192-bitAES-1927680 bits384 bitsECC only

ECC delivers the same strength with roughly a twelfth of the key length at the 128-bit level, which is why DTLS/TLS cipher suites for IoT use ECDHE with AES-CCM-8.

AspectMobile (smartphone app)IoT (constrained device)
ComputeGHz CPU, GB of RAMMHz MCU, KB of RAM
OSAndroid/iOS with sandbox and SELinuxRTOS or stripped Linux, often no isolation
UpdateStore/OTA within daysRare, often never; needs signed A/B OTA
IdentityUser account plus device attestationPer-device certificate or PSK in a secure element
Physical accessOwner-held, screen-lockedPublicly mounted, debug ports reachable
TransportHTTPS/TLS 1.3DTLS, TLS-PSK, OSCORE, link-layer AES-CCM
Main failureInsecure storage, weak auth, repackagingDefault credentials, unsigned firmware

Where it is used

Interview questions

Common mistakes

Related topics

Operating system and endpoint security · Cloud security · Applied cryptography and key management · Network security and protocols · Web and API security · Digital forensics and incident response

Open in the Knowledge reader →Find jobs →