Penetration Testing and Ethical Hacking

Chapter 10
Wireless, Mobile, and IoT Security Testing

Diploma in Cyber security
Penetration Testing and Ethical Hacking   •   Diploma

Wireless, Mobile, and IoT Security Testing

Introduction and Context

Wireless networks, mobile devices, embedded systems, and Internet of Things (IoT) devices have extended computing beyond the traditional wired enterprise perimeter. A sensor may communicate over a low-power radio, a mobile application may process authentication tokens, and a smart camera may expose a web service through a cloud platform. Each technology introduces different trust assumptions, protocols, update mechanisms, and physical risks.

Security testing in these environments must therefore examine more than whether a password is strong. It must evaluate radio configuration, cryptographic protection, identity and access management, application behaviour, device hardening, firmware integrity, data flows, cloud dependencies, and recovery processes. Testing must be conducted only with explicit authorization, defined scope, and safety controls. Unauthorised interception, disruption, or exploitation may violate law, privacy obligations, and institutional policy.

This chapter presents a diploma-level methodology for examining wireless, mobile, Bluetooth, embedded, and IoT security in controlled laboratories and approved professional engagements.

Learning Objectives

By the end of this chapter, a learner should be able to:

  1. Explain common wireless, mobile, Bluetooth, embedded, and IoT architectures.
  2. Compare major wireless security mechanisms and identify their limitations.
  3. Plan an authorized assessment using scope, rules of engagement, and safety controls.
  4. Test wireless access points, mobile applications, firmware, and IoT communication securely.
  5. Recognize rogue access points, insecure pairing, weak update mechanisms, and exposed interfaces.
  6. Interpret evidence and recommend proportionate remediation.
  7. Evaluate ethical, legal, privacy, and operational issues in testing connected devices.

1. A Unified View of Connected-Device Security

A useful model separates a connected system into several layers:

LayerExamplesTypical security concerns
Device and hardwareSensors, phones, access points, microcontrollersDebug ports, physical tampering, insecure storage
Firmware and operating systemBootloader, kernel, drivers, Android or iOSVulnerabilities, unsigned code, excessive privilege
CommunicationWi-Fi, Bluetooth, Zigbee, cellular, MQTT, HTTPSEavesdropping, replay, weak authentication
Application and servicesMobile app, web API, cloud dashboardBroken authorization, exposed secrets, injection
Management and supply chainUpdates, provisioning, vendors, certificatesCounterfeit components, unsupported software, weak update trust

Security is a system property rather than a feature of one layer. For example, encrypted Wi-Fi does not protect an IoT device whose firmware contains a hard-coded administrative password. Similarly, a well-designed mobile application may still expose private data through an improperly secured API.

The principal security objectives are confidentiality, integrity, availability, authenticity, accountability, and privacy. Availability deserves special attention in radio environments because interference or misconfiguration can affect many devices simultaneously. In safety-sensitive settings, testing must also consider physical safety and operational continuity.

2. Wireless Network Architectures and Security

2.1 Wireless architectures

A wireless local area network (WLAN) commonly consists of clients, access points (APs), a distribution system, authentication services, and management platforms. In an infrastructure WLAN, clients associate with an AP. In an ad hoc network, devices communicate more directly without a conventional AP. Modern enterprise deployments may use centrally managed or cloud-managed APs, multiple service set identifiers (SSIDs), virtual LANs (VLANs), and network access control systems.

The SSID is a human-readable network name, not an authentication mechanism. Hiding an SSID provides little security because network identifiers can often be inferred from management traffic. Effective protection depends on authentication, encryption, segmentation, monitoring, and secure configuration.

2.2 Wireless encryption and authentication

Older mechanisms such as Wired Equivalent Privacy (WEP) are obsolete because their cryptographic design permits practical key recovery. WPA improved the situation, while WPA2 commonly uses the Advanced Encryption Standard (AES) with Counter Mode with CBC-MAC Protocol (CCMP). WPA3 introduces stronger protections, including Simultaneous Authentication of Equals (SAE) for personal networks and improved enterprise options.

Personal-mode security derives access from a shared password. Enterprise-mode security commonly uses 802.1X, an Extensible Authentication Protocol (EAP), and a backend authentication server such as RADIUS. Enterprise security is generally preferable where individual identity, certificate-based authentication, and centralized revocation are required.

Assessment should examine:

  • Whether obsolete protocols or weak cipher suites are enabled.
  • Whether a strong, unique passphrase is used for personal networks.
  • Whether enterprise certificates are validated correctly by clients.
  • Whether users can connect to an unauthenticated or misleading network.
  • Whether guest, corporate, management, and IoT traffic are segmented.
  • Whether AP administration uses secure protocols and multifactor authentication.
  • Whether logging, alerting, and configuration backups are protected.

A frequent weakness is improper certificate validation in enterprise Wi-Fi clients. If a client accepts any authentication server certificate, an attacker in a position to provide a deceptive network may collect credentials. Testing should use approved test identities and a controlled AP, never real user credentials.

2.3 Rogue access points and evil-twin risks

A rogue AP is an unauthorized wireless device connected to or imitating an organizational network. An “evil twin” is a deceptive AP that presents a familiar SSID to attract clients. The risk is not limited to password theft. Traffic may be redirected, DNS responses manipulated, malware delivered, or session information exposed.

A professional assessment may compare an inventory of authorized APs with observed radio infrastructure, review wireless intrusion-prevention alerts, and inspect client configuration. The test plan should define channels, transmission power, test times, and a clear stop condition. No attempt should be made to disrupt nearby networks or capture unrelated users’ data.

2.4 Wireless assessment workflow

A safe workflow is:

  1. Obtain written authorization and identify permitted frequencies, buildings, devices, and times.
  2. Establish a laboratory SSID and test accounts.
  3. Inventory APs, SSIDs, channels, encryption modes, firmware versions, and management interfaces.
  4. Review configuration against organizational standards.
  5. Validate authentication, certificate checking, segmentation, and least privilege.
  6. Conduct carefully controlled client-association and access-control tests.
  7. Review monitoring and incident-response capability.
  8. Record evidence, risk, affected assets, and remediation.

The tester should avoid uncontrolled deauthentication, jamming, credential collection, or access to production data. Availability testing should use a laboratory or a formally approved maintenance window.

3. Mobile Device and Application Security

Mobile security has two related but distinct subjects: the device platform and the application. The platform includes the operating system, hardware-backed key storage, permissions, lock screen, biometric controls, enterprise management, and update state. The application includes local storage, authentication, network communication, inter-process communication, and backend APIs.

3.1 Mobile device controls

Important controls include:

  • Supported operating-system versions and timely security updates.
  • Strong device authentication and automatic lock.
  • Full-device encryption and protected key storage.
  • Mobile device management (MDM) or unified endpoint management where appropriate.
  • Application allow-listing, managed installation, and removal of untrusted profiles.
  • Restrictions on debugging, screenshots, backups, and data sharing when justified.
  • Remote lock and secure erasure procedures.
  • Separation of business and personal data.

Controls must be proportionate. Excessive surveillance or collection of personal data may create privacy risks and reduce user trust.

3.2 Mobile application attack surface

A mobile application can expose activities, services, content providers, URL schemes, notifications, logs, cached data, and embedded libraries. The application may also rely on a backend API that enforces the real authorization decision. A secure-looking user interface cannot compensate for an API that accepts an object identifier without verifying ownership.

Testing should include:

  • Authentication, session expiration, token storage, and logout.
  • Authorization at object and function levels.
  • Transport security and correct certificate validation.
  • Secure storage of credentials, tokens, and personal data.
  • Input validation and safe handling of deep links.
  • Exposure through logs, backups, screenshots, or notifications.
  • Use of third-party libraries and software-development kits.
  • Resistance to tampering, debugging, and reverse engineering where relevant.
  • Privacy disclosures and unnecessary permissions.

The OWASP Mobile Application Security Verification Standard and Mobile Application Security Testing Guide provide useful references. They should be treated as guidance rather than a substitute for asset-specific analysis.

3.3 Mobile testing method

A typical authorized assessment combines static and dynamic analysis. Static analysis examines manifests, permissions, code, configuration, dependencies, and embedded resources without executing the application. Dynamic analysis observes behaviour while the application runs in an instrumented test environment. API testing examines requests and responses using test accounts and synthetic data.

The tester should distinguish a client-side control from a server-side control. Hiding a button is not authorization. A decision that protects sensitive data must be enforced by the server or a trusted platform component.

4. Bluetooth and Short-Range Wireless Security

Bluetooth technologies include Classic Bluetooth, Bluetooth Low Energy (BLE), and profiles that define application behaviour. Pairing and bonding establish a relationship between devices, but the security achieved depends on the pairing method, user verification, key handling, and device implementation.

Security testing may examine:

  • Whether discoverability and connectability are unnecessarily permanent.
  • Whether legacy or weak pairing modes are enabled.
  • Whether numeric comparison or passkey verification is used where suitable.
  • Whether BLE characteristics enforce authorization for reads, writes, and notifications.
  • Whether sensitive data is transmitted without application-layer protection.
  • Whether device names, advertisements, or metadata disclose personal information.
  • Whether old bonds remain after ownership changes.
  • Whether firmware updates are authenticated.

A BLE device may advertise openly while protecting sensitive characteristics after connection; discoverability alone is not proof of compromise. Conversely, an apparently harmless read characteristic may reveal location, health, or operational information. Testing must therefore assess data sensitivity and authorization, not merely pairing state.

5. Embedded Systems and Firmware Assessment

Embedded devices often have long lifecycles, limited resources, and infrequent maintenance. Their firmware may contain an operating system, bootloader, network services, drivers, cryptographic libraries, and configuration files. Physical possession may provide access to serial consoles, test pads, removable storage, or debugging interfaces.

A firmware assessment can include:

  1. Identifying the exact hardware and firmware version.
  2. Obtaining firmware through an authorized vendor channel or test device.
  3. Verifying the authenticity and integrity of the image.
  4. Reviewing configuration, credentials, certificates, keys, and unnecessary services.
  5. Checking third-party components and known vulnerabilities.
  6. Examining update and rollback controls.
  7. Testing whether debug interfaces are disabled or access-controlled in production.
  8. Assessing secure boot, measured boot, and recovery behaviour.

Firmware may be compressed, encrypted, or signed. Encryption alone does not prove authenticity; a secure update design normally requires signature verification, trusted key storage, version controls, and safe failure behaviour. A device should reject modified or downgraded firmware unless a controlled recovery process explicitly permits it.

Hardware interfaces

Common interfaces include UART, JTAG, SWD, SPI, and I²C. In a laboratory, these may be inspected on a sacrificial device to determine whether they expose boot logs, credentials, memory, or command access. Testing should avoid damaging equipment and should not connect to production control systems. Findings should state whether an interface is physically accessible, logically protected, and relevant to the threat model.

6. IoT Communication and Platform Security

IoT systems usually contain constrained devices, gateways, cloud services, mobile applications, and administrative consoles. Communication may use Wi-Fi, cellular, BLE, Zigbee, Thread, LoRaWAN, or proprietary radio. At the application layer, protocols such as MQTT, CoAP, HTTP, and WebSocket are common.

6.1 Common weaknesses

Typical weaknesses include:

  • Default or shared credentials.
  • Unauthenticated telemetry or command channels.
  • Clear-text protocols or weak certificate validation.
  • MQTT topics with excessive publish or subscribe permissions.
  • Predictable device identifiers.
  • Insecure onboarding and ownership transfer.
  • Exposed administrative interfaces.
  • Lack of rate limiting and replay protection.
  • Unsigned, unauthenticated, or poorly recoverable updates.
  • Excessive cloud permissions and long-lived credentials.
  • Sensitive data retained longer than necessary.

For MQTT, authorization should be evaluated per client and topic. A sensor that publishes temperature data should not automatically be able to subscribe to commands for every device. For CoAP or other datagram-based protocols, confidentiality, integrity, replay resistance, and endpoint authentication require explicit design rather than assumptions based on the transport.

6.2 Identity and lifecycle

An IoT identity should be unique, provisioned securely, and revocable. Shared credentials make attribution and containment difficult. Lifecycle testing should cover manufacturing, installation, onboarding, normal operation, ownership transfer, loss or theft, maintenance, decommissioning, and disposal.

A strong design uses least privilege across device, gateway, application, and cloud roles. It also records security-relevant events without collecting more personal information than necessary.

7. A Practical Testing Framework

A useful assessment framework combines asset discovery, threat modelling, verification, evidence collection, and remediation validation.

Preparation

Define the purpose, authorized targets, test accounts, permitted tools, data-handling rules, emergency contacts, and stop conditions. Establish whether radio transmission, firmware extraction, physical opening, API testing, or availability testing is allowed.

Discovery and modelling

Create an inventory of devices, versions, interfaces, identities, data types, communication paths, and dependencies. Draw trust boundaries: for example, between a sensor and gateway, gateway and cloud, and mobile client and API. Ask what happens if a device is stolen, cloned, isolated, or supplied with malicious input.

Verification

Use non-destructive tests first. Confirm encryption and certificate validation, inspect authorization decisions, review update signatures, test input handling with benign values, and verify segmentation. Use synthetic data and dedicated accounts. Preserve timestamps, device identifiers, configuration snapshots, and tool versions.

Risk evaluation

Risk is not determined solely by technical severity. Consider exploitability, exposure, affected population, safety consequences, data sensitivity, detectability, and recovery cost. A vulnerable internet-facing camera and an isolated laboratory sensor may have the same defect but very different risk.

Reporting and remediation

A useful finding includes title, affected asset, condition, evidence, impact, likelihood, risk rationale, reproduction boundaries, and remediation. Recommendations should be specific: replace obsolete encryption, enforce server-side authorization, disable production debug access, rotate credentials, implement signed updates, or segment an IoT network. Retesting should confirm that the weakness is corrected without introducing operational failure.

8. Applied Case: Illustrative Smart-Building Assessment

Background

A fictional university deploys smart occupancy sensors, BLE door readers, Wi-Fi gateways, a mobile facilities application, and a cloud dashboard. The assessment is authorized for a laboratory building during scheduled maintenance. Test accounts and synthetic occupancy records are provided.

Problem

Management wants to know whether a compromised sensor could provide access to the building network or permit unauthorized door commands. It also wants assurance that the mobile application protects facilities data.

Analysis

Inventory identifies sensors communicating by BLE to gateways, gateways using MQTT over TLS to a cloud broker, and a mobile application using HTTPS APIs. Threat modelling identifies four high-value trust boundaries: BLE characteristics, gateway-to-cloud identity, MQTT topic authorization, and mobile API object authorization.

Approach and solution

The team first verifies that each sensor has a unique identity and that BLE write characteristics require authorization. It then checks gateway certificates, broker topic permissions, update signatures, and network segmentation. Using two test users, the team attempts to access only synthetic records belonging to the other account. Static and dynamic application testing examines token storage, logs, deep links, and API responses.

The assessment finds that BLE write operations are protected, but all gateways share one MQTT publishing credential. A test user can also request another test user’s building record by changing an identifier in an API request. The mobile application stores short-lived tokens in protected platform storage, but verbose diagnostic logs contain occupancy metadata.

Outcome

The organization assigns high priority to replacing the shared broker credential with per-device identities and topic-level authorization. The API is changed to enforce ownership server-side, and diagnostic logging is minimized. The vendor supplies a signed-update process and a documented key-rotation procedure. Retesting confirms that a gateway can publish only to its assigned topics and that cross-account requests are denied.

Learning points

The case demonstrates that encryption does not replace authorization, a mobile interface does not define API security, and shared credentials weaken attribution and containment. It also shows why testing must follow data flows across radio, gateway, cloud, and application layers.

9. Ethical, Legal, and Governance Considerations

Wireless and IoT testing can affect people who are not part of the engagement. Radio observations may reveal device locations or personal behaviour. Mobile testing may expose private messages, photographs, contacts, or health information. Physical testing may damage equipment or affect safety systems.

Professional practice therefore requires written consent, data minimization, secure evidence storage, access limitation, retention schedules, and responsible disclosure. Regulations may apply to personal data, communications interception, critical infrastructure, medical devices, and radio transmission. A tester should obtain specialist legal advice when jurisdiction or sector requirements are uncertain.

Artificial intelligence can assist with firmware classification, log triage, vulnerability correlation, and anomaly detection. It must not be treated as an authority: generated conclusions require human verification, and confidential firmware, credentials, or personal data should not be uploaded to unapproved services. AI-assisted testing must remain within the original authorization and must not generate uncontrolled traffic or destructive actions.

10. Best Practices and Limitations

Best practices include maintaining an accurate asset inventory, using unique identities, applying least privilege, enforcing modern cryptography, validating certificates, segmenting IoT networks, securing update mechanisms, disabling production debug interfaces, monitoring radio and cloud activity, and planning end-of-life support.

Testing has limitations. A laboratory may not reproduce every radio condition, vendor cloud behaviour, supply-chain compromise, or physical attack. Black-box testing may miss source-level defects, while source review may not reveal deployment misconfiguration. A clean test result is evidence about tested conditions, not proof of absolute security. Continuous monitoring, patch management, threat modelling, and incident response remain necessary.

Chapter Summary

Wireless, mobile, Bluetooth, embedded, and IoT systems expose interconnected attack surfaces across hardware, firmware, communication, applications, cloud services, and lifecycle processes. Secure wireless deployments require modern authentication, strong encryption, certificate validation, segmentation, and rogue-device monitoring. Mobile assessments must distinguish device controls from application and backend authorization. Bluetooth testing should examine pairing, characteristic permissions, data exposure, and update security. Firmware assessment focuses on credentials, debug interfaces, secure boot, signed updates, rollback protection, and component risk. IoT testing must follow identities and data flows from sensor to gateway, broker, cloud, and mobile client. All work requires authorization, privacy protection, safety controls, evidence discipline, and retesting. No single control or test establishes complete security.

Key Terms

Wireless LAN: A network that connects devices using radio communication.

Access point: A device that provides wireless network connectivity.

SSID: The name associated with a wireless network.

WPA2: A wireless security standard commonly using AES-CCMP.

WPA3: A newer wireless security standard with improved authentication protections.

802.1X: A port-based access-control framework commonly used with enterprise Wi-Fi.

RADIUS: A protocol and service commonly used for centralized authentication and accounting.

Rogue access point: An unauthorized wireless access point.

Evil twin: A deceptive access point impersonating a legitimate network.

BLE: Bluetooth Low Energy, designed for low-power short-range communication.

Pairing: The process of establishing a Bluetooth security relationship.

Firmware: Software stored on or closely associated with a hardware device.

Secure boot: A process that permits execution only of trusted startup software.

Debug interface: A hardware or software interface used for development and diagnosis.

IoT: A collection of network-connected physical devices that sense, process, or control data.

MQTT: A lightweight publish-subscribe messaging protocol often used in IoT.

Least privilege: Granting only the access necessary for an entity to perform its function.

Mobile device management: Centralized administration and security control of mobile devices.

Threat model: A structured representation of assets, actors, trust boundaries, and threats.

Rules of engagement: Documented limits and conditions governing a security test.

Review Questions

Short Answer Questions

  1. Why is hiding an SSID not a sufficient wireless security control?
  2. Distinguish WPA2 personal mode from enterprise-mode authentication.
  3. Why must mobile API authorization be enforced server-side?
  4. Name two security concerns associated with embedded debug interfaces.
  5. What is the purpose of per-device identity in an IoT deployment?

Long Answer Questions

  1. Explain a safe and authorized workflow for assessing an enterprise WLAN.
  2. Discuss the relationship between mobile device controls, mobile applications, and backend APIs.
  3. Describe the main elements of a secure firmware update process.
  4. Compare the security considerations of Bluetooth pairing and BLE characteristic authorization.
  5. Explain how segmentation and topic-level authorization reduce IoT risk.

Analytical / Application Questions

  1. A company uses one MQTT credential for 2,000 sensors. Analyze the risks and propose a migration plan.
  2. During a mobile assessment, a user can alter an object identifier to view another user’s synthetic record. Explain the vulnerability, evidence required, and remediation.
  3. A laboratory finds an exposed UART console on a smart gateway. Design a proportionate test plan that assesses impact without affecting production systems.

Multiple Choice Questions with Answers

Question 1

Which control most directly reduces the risk of an evil-twin attack against enterprise Wi-Fi clients?

A. Disabling SSID broadcast

B. Correct validation of the authentication server certificate

C. Increasing the access point transmission power

D. Using a longer SSID name

Correct Answer: B. Correct validation of the authentication server certificate

Question 2

What is the principal security weakness of a shared IoT credential used by many devices?

A. It increases screen brightness

B. It prevents all encryption

C. It weakens attribution, revocation, and containment

D. It makes firmware smaller

Correct Answer: C. It weakens attribution, revocation, and containment

Question 3

Which statement best describes server-side authorization?

A. The client hides unauthorized buttons

B. The server verifies whether the requester may access the object or function

C. The user changes the URL to obtain access

D. The application relies only on device encryption

Correct Answer: B. The server verifies whether the requester may access the object or function

Question 4

Which item is most directly associated with firmware authenticity?

A. Signed update verification

B. SSID hiding

C. Screen timeout

D. Bluetooth discoverability

Correct Answer: A. Signed update verification

Question 5

What is MQTT primarily based on?

A. A publish-subscribe messaging model

B. A spreadsheet calculation model

C. A physical cable standard

D. A biometric enrollment model

Correct Answer: A. A publish-subscribe messaging model

Question 6

Why is encryption alone insufficient for an IoT command channel?

A. Encryption always reduces battery life to zero

B. It does not necessarily establish that the sender is authorized to issue the command

C. It prevents data integrity

D. It disables network segmentation

Correct Answer: B. It does not necessarily establish that the sender is authorized to issue the command

Question 7

Which activity should normally be defined explicitly in wireless rules of engagement?

A. The tester’s preferred font

B. Permitted frequencies, locations, and testing times

C. The color of access points

D. The number of pages in the report

Correct Answer: B. Permitted frequencies, locations, and testing times

Question 8

What is a major purpose of disabling production debug interfaces?

A. To prevent diagnostic access from exposing secrets or privileged functions

B. To improve SSID visibility

C. To create additional administrator accounts

D. To bypass secure boot

Correct Answer: A. To prevent diagnostic access from exposing secrets or privileged functions

Question 9

Which practice best protects sensitive mobile tokens?

A. Writing them to verbose public logs

B. Embedding them permanently in the application interface

C. Using protected platform storage and appropriate expiration

D. Sending them in clear text

Correct Answer: C. Using protected platform storage and appropriate expiration

Question 10

What does network segmentation primarily achieve in an IoT environment?

A. It guarantees that no device can ever be compromised

B. It limits lateral movement and separates trust zones

C. It removes the need for authentication

D. It makes all devices publicly reachable

Correct Answer: B. It limits lateral movement and separates trust zones

Penetration Testing and Ethical Hacking
Chapter 10 of 15