← 總目錄 / Contents

Chapter 08 · Mobile and Wireless Security

流動及無線安全|English + 中文

根據第 08 章講義整理;英文概念後附中文解說。 / Based on lecture 08; English explanations are paired with Chinese.

重點筆記 / Core concepts

Threats and security properties

Wireless is broadcast and portable devices can be lost. Confidentiality prevents unauthorized disclosure; integrity detects unauthorized modification; availability keeps service usable; authentication verifies identity; authorization controls permitted actions. Non-repudiation provides evidence of an action under an appropriate trust model.

無線訊號可被範圍內裝置接收,流動裝置亦可能遺失。機密性防止未授權洩露;完整性偵測未授權修改;可用性確保服務可使用;認證核實身份;授權決定可執行的操作。不可否認性在適當信任模型下提供行為證據。

Cryptography and certificates

Symmetric encryption uses one shared secret and is efficient for bulk data. Asymmetric encryption uses public/private keys and supports key establishment and signatures. A digital signature is made with the private key and verified with the public key; a certificate binds an identity to a public key through a trusted CA. A hash alone does not authenticate its sender.

對稱加密使用共享秘密,適合大量資料;非對稱加密使用公鑰/私鑰,可用於建立金鑰及簽署。數碼簽署用私鑰簽、以公鑰驗證;證書由可信 CA 把身份與公鑰綁定。單純雜湊不能驗證發送者。

Transport and network defenses

TLS protects data in transit between its endpoints when certificates and identities are correctly validated. A VPN creates a protected tunnel, commonly using IPsec or TLS; it does not automatically protect a compromised endpoint. Firewalls filter traffic by policy but cannot replace secure application design.

正確驗證證書及身份時,TLS 保護兩個端點之間傳輸中的資料。VPN 建立受保護隧道,常使用 IPsec 或 TLS;但不能自動保護已被攻陷的端點。防火牆按政策過濾流量,不能取代安全應用設計。

Wireless and device defenses

Use strong Wi-Fi security and authenticated pairing; verify the actual endpoint to reduce evil-twin and man-in-the-middle risks. Encrypt local storage, lock devices, patch software, restrict app permissions and prepare remote management. Biometrics authenticate but are not secret and can have false acceptance/rejection.

使用強健 Wi-Fi 安全及已驗證配對;確認真正端點以減少邪惡雙胞胎與中間人風險。加密本地儲存、鎖定裝置、更新軟件、限制權限並準備遙距管理。生物識別可用作認證,但並非秘密,亦有錯誤接受/拒絕。

8.1 Threats and properties · Slides 3–15

Spoofing pretends to be another entity; sniffing observes traffic; tampering changes data; theft exposes device and local data. Match each threat to a property: spoofing challenges authentication, sniffing confidentiality, tampering integrity, and denial of service availability. A single attack can affect more than one property.

偽冒假扮其他實體;竊聽觀察流量;竄改改變資料;失竊可能暴露裝置和本地資料。可把威脅對應性質:偽冒影響認證、竊聽影響機密、竄改影響完整性、阻斷服務影響可用性;一個攻擊也可同時影響多項性質。

8.2 Symmetric and asymmetric encryption · Slides 17–21

Symmetric encryption uses the same shared key for encryption and decryption and is efficient, but distributing the key securely is a challenge. Asymmetric systems use a public/private key pair and support key establishment and signatures. Hybrid protocols use asymmetric techniques to authenticate or establish a session secret, then efficient symmetric authenticated encryption for the data.

對稱加密使用同一共享金鑰加密及解密,效率高,但安全分發金鑰具挑戰。非對稱系統使用公鑰/私鑰,可支援建立金鑰及簽署。混合協定使用非對稱技術認證或建立工作階段秘密,再以高效率對稱認證加密保護資料。

8.3 Hash, signature and certificate · Slides 22–26

A cryptographic hash maps data to a digest, but an attacker can replace both message and an unauthenticated hash. A digital signature signs a digest or equivalent representation with a private signing key; verification with the public key checks integrity and the corresponding key holder. A certificate connects a public key to an identity through a signed chain, whose validity and intended name must be checked.

密碼雜湊把資料映射成摘要,但攻擊者可以同時替換訊息及未經認證的摘要。數碼簽署以私鑰簽署摘要或等價表示,使用公鑰驗證資料完整性及對應金鑰持有人。證書透過已簽署的信任鏈把公鑰與身份連結,必須檢查有效性及預期名稱。

8.4 Authentication, 2FA and biometrics · Slides 27–31

Authentication proves a claimed identity; authorization decides what that identity may do. Two-factor authentication combines different categories, such as something known and something possessed. Biometrics are convenient but can be copied or spoofed and cannot be changed like a password; false acceptance and false rejection must be balanced with recovery procedures.

認證證明聲稱的身份;授權決定該身份可做甚麼。雙因素認證結合不同類別,例如所知及所擁有的東西。生物識別方便,但可能被複製或偽冒,也不能像密碼般更換;要平衡錯誤接受、錯誤拒絕及帳戶復原程序。

8.5 OAuth roles and flow · Slides 32–37

OAuth is an authorization framework for delegated access. The resource owner authorizes a client to access a resource server under conditions established by an authorization server. The client obtains an access token for a limited scope; it should not receive the user password merely to access the resource. OAuth alone does not define a complete user authentication protocol.

OAuth 是委派存取的授權框架。資源擁有人授權客戶端,在授權伺服器訂立的條件下存取資源伺服器。客戶端取得範圍有限的 access token,不應只為存取資源而取得用戶密碼。單靠 OAuth 本身並不定義完整的用戶認證協定。

8.6 TLS, IPsec and WTLS · Slides 38–43

TLS protects a connection between endpoints using authenticated key establishment and symmetric protection; certificate validation is essential. IPsec provides security at the IP layer and can support a VPN. WTLS is associated with the historical WAP environment and has different deployment assumptions; do not assume that every segment beyond a gateway remains end-to-end encrypted.

TLS 使用經認證的金鑰建立及對稱保護來保護端點間連線;驗證證書非常重要。IPsec 在 IP 層提供安全,可支援 VPN。WTLS 與歷史上的 WAP 環境相關,部署假設不同;不可假設經閘道後每段仍保持端到端加密。

8.7 Firewalls, VPN and limits · Slides 45–55

A packet-filter firewall applies rules to packet attributes; an application proxy can inspect and mediate application traffic where configured. A VPN encrypts/authenticates traffic across a tunnel between its endpoints. Neither prevents every phishing attack, vulnerable app or exposure after a device is unlocked; endpoint security and identity verification remain necessary.

封包過濾防火牆依封包屬性套用規則;應用代理可在適當配置下檢查和協調應用流量。VPN 保護其兩端之間的隧道流量。兩者都不能防止所有網絡釣魚、漏洞應用或裝置解鎖後的資料外洩;端點安全與身份驗證仍然必要。

8.8 Wireless-specific and client defenses · Slides 57–77

An evil twin imitates a legitimate Wi-Fi network; a user needs to authenticate the actual service endpoint, not merely trust a familiar network name. Bluetooth pairing should authenticate peers and limit discoverability and permissions where appropriate. On the client, combine device lock, encryption, least privilege, updates, backups and a response plan for loss; no single control covers all threats.

邪惡雙胞胎模仿合法 Wi-Fi 網絡;用戶應驗證真正服務端點,不能單靠熟悉的網絡名稱。Bluetooth 配對應驗證對方,並適當限制可發現性和權限。客戶端須結合裝置鎖、加密、最小權限、更新、備份和遺失應變計劃;單一措施不能涵蓋所有威脅。

逐頁講義原文 / Slide-by-slide source text

以下為講義英文文字的自動提取,讓你逐頁核對上方中英筆記及搜尋細節;它不是逐頁中文翻譯。圖表、公式排版及部分旋轉文字可能缺失,請以原 PDF 為準。
Automatically extracted English lecture text for checking the bilingual explanations. Figures, formula layout and some rotated text may be missing; consult the original PDF.
講義第 1 頁 / Lecture slide 1
           Mobile and Wireless Security
講義第 2 頁 / Lecture slide 2
Outline
     Mobile and W ireless Security Requirements
     Security Toolbox
     Network-  Layer Defenses
     Wireless Technology Deep-Dive
     Smart Client Security
講義第 3 頁 / Lecture slide 3
Mobile and Wireless Security
    Providing security in wireless and mobile environments is
    more challenging than in wired/fixed cases.
    Why is achieving mobile and wireless security harder?
         The boundary problem
               Wired networks have physical covers;
               Wireless signals (Wi-Fi, Cellular, Bluetooth) are open in public spaces.
         The shared medium
               In a wired switched network, users only see their own traffic.
               In wireless, everyone in range hears the radio transmission.
         Mobility & theft
               Devices are small, portable, and frequently lost.
               Data are also kept on the device, not just in the data center.
講義第 4 頁 / Lecture slide 4
Mobile and Wireless Security
Requirements
    Five pillars for mobile and wireless security
         Authentication
         Integrity
         Confidentiality
         Authorization
         Non-repudiation
    Mobile and wireless security fails if any single pillar is
    weak.
              E.g., a strong password (authentication) is useless if the
              Wi-Fi is open to eavesdropping (confidentiality).
講義第 5 頁 / Lecture slide 5
Authentication
    Process of proving that people and organizations are
    “who” or “what” they claim to be.
    Conducted at two layers for wireless networks
        At the network layer
             User needs to be authenticated before being granted access.
             Achieved implicitly based on the device being used or explicitly
             using a variety of mechanisms.
        At the application layer
             Client has to prove to the server.
             The server has to authenticate to the client.
    Simplest method – user name/password.
    Advanced method – digital certificates or digital
    signature.
講義第 6 頁 / Lecture slide 6
Integrity
   Assure that the data has not been altered when sent
   from the sender to the receiver.
   Accomplished by using data encryption, combined
   with a cryptographic checksum or Message
   Authentication Code (MAC).
   This information can be encoded into the message.
   The receiver, when receiving this message,
   computes the MAC and compares it with the MAC
   encoded in the message to check if the codes are
   the same.
       If the same, the recipient is confident that the message
       has not been tampered.
       If different, the recipient can discard the data as incorrect.
講義第 7 頁 / Lecture slide 7
Confidentiality
    Maintain data privacy to ensure that unauthorized
    parties cannot view data.
    Prevent malicious users from viewing data by
    encrypting the data.
           Make data unreadable by anyone other than the intended
          recipient.
講義第 8 頁 / Lecture slide 8
Authorization
    Determine the user’s level of access
         After authentication, making sure whether a user has the
         right to perform certain actions.
    Often use access control lists to achieve
    authorization
         E.g., all users may have read-  only access to a set of data,
         while an administrator may also have write access.
講義第 9 頁 / Lecture slide 9
Non-    repudiation
    Sender and receiver prove to the third party that the
    sender indeed sent the message and the receiver
    received it.
        Make both parties accountable for transactions in which
        they have participated.
        Cannot deny their involvement at a later time.
    Signed with a digital signature that can be verified
    and time-stamped by a trusted third party.
講義第 10 頁 / Lecture slide 10
Security Threats
   Four common security threats
         Spoofing: pretending to be someone else
         Sniffing: passive eavesdropping
         Tampering: altering data in transit
         Theft: physical loss of a device
講義第 11 頁 / Lecture slide 11
Spoofing
    Gain unauthorized access to an application or system
    by pretending to be someone else.
    A major security problem in wireless Internet
        A spoofer can make application users believe that they are
        communicating with a trusted source; users provide
        personal information to the attackers.
        E.g., evil twin attack: a fake Wi-Fi hotspot mimicking a
        legitimate one (e.g., "Starbucks_Free_WiFi").
    Protected by authentication and encryption
講義第 12 頁 / Lecture slide 12
Sniffing
    Monitor the data flow on a network and get
    unauthorized copies of data transmissions (by
    eavesdropping).
    Sniffing is simple to do and difficult to detect.
        E.g., tools like Wireshark can capture unencrypted frames
        or data in open networks.
    Data encryption is the best defense
        The WEP encryption in WLAN 802.11 is not enough to
        protect wireless data transmission.
        Need more powerful encryption mechanisms.
講義第 13 頁 / Lecture slide 13
Tampering
    Malicious modification of data from its original form
        E.g., man-  in-  the-middle (MITM) attack: an attacker
        intercepts data from the original transmission, modifies
        the data, and then sends the modified data to the
        receiver as the original.
        E.g., reply attack: an attacker captures an authentication
        token and then re-sends it to gain access to the system.
    Data encryption, authentication, and authorization
    are ways to combat data tampering.
講義第 14 頁 / Lecture slide 14
Theft
    Not only lose the device but also confidential data that
    resides on the device.
    Serious threat to smart client applications, as they contain
    persistent confidential data.
    Authentication and encryption,     along with security policy,
    help to prevent malicious data access from a lost or stolen
    device.
    Some rules for securing mobile devices
         Lock the device with a username and password.
         Require authentication to access any applications residing on the
         device.
         Don’t store passwords on the device.
         Encrypt any persistent data storage facilities.
         Enforce corporate security policies for mobile users.
講義第 15 頁 / Lecture slide 15
On-     class Activity
     Match each threat to the pillar it violates
                                                                            Authentication
                      Spoofing
                                                                                 Integrity
                       Sniffing
                                                                            Confidentiality
                     Tampering
                                                                             Authorization
                         Theft
                                                                          Non-repudiation
講義第 16 頁 / Lecture slide 16
Outline
     Mobile and W ireless Security Requirements
     Security Toolbox
     Network-  Layer Defenses
     Wireless Technology Deep-Dive
     Smart Client Security
講義第 17 頁 / Lecture slide 17
Security Toolbox
    Security technologies used to defend against
    the above threats
         Cryptography
         Digital certificate
         Digital signature
         Public key infrastructure
         Two-factor authentication
         Biometrics
         Open authorization
講義第 18 頁 / Lecture slide 18
Cryptography
   Ensure secure communication between two parties over an
   insecure channel without a third party to understand what is
   being transmitted.
   A simple concept but complex for large-scale mobile
   implementation.
   Data encryption and decryption
        Convert plaintext data into an unreadable ciphertext (encryption).
        The privacy of sensitive data is maintained even when accessed by
        unauthorized users.
        The data can only be read by transforming it back to its original form
        (decryption).
   Encryption/decryption algorithms use keys to control the
   encryption and decryption of data.
        Once the message has been encrypted, it can only be decrypted by
        users who have the corresponding key.
講義第 19 頁 / Lecture slide 19
Key-based Algorithms:
           Symmetric vs Asymmetric
    Symmetric encryption (secret-key encryption)
          Use a single key to encrypt and decrypt all messages (plaintexts).
          The sender uses the key to encrypt the plaintext into a ciphertext and
          sends the ciphertext to the recipient via the network.
          The recipient uses the same key to decrypt the ciphertext into
          plaintext.
          Pros and cons
               Pros: Fast. Good when there is a safe way to transmit the key between the
               parties.
               Cons: Key distribution problem. How to share the key with someone who
               has never met?
講義第 20 頁 / Lecture slide 20
Key-based Algorithms:
            Symmetric vs Asymmetric
    Asymmetric encryption (public -key encryption)
          Use two separate but related keys
               Use public key to encrypt the data
               Use private key  to decrypt data
          Two keys are related in an obscure way
               Computationally infeasible to calculate the private key based on the public
               key.
          The best- known asymmetric algorithm is RSA.
          ECC (Elliptic Curve Cryptography) for mobile
               Much less expensive in terms of processing power and key size.
講義第 21 頁 / Lecture slide 21
Hybrid Encryption
    A combination of symmetric and asymmetric
    encryptions
         The shared secret key is sent over an insecure channel
         using public-key encryption.
         When both parties have the secret key, the message data
         can be encrypted and decrypted using symmetric
         encryption.
講義第 22 頁 / Lecture slide 22
Digital Certificate
   The security risk
        If Alice wants to send a message to Bob, Alice needs to
        use Bob’s public key to encrypt the message.
        When Bob advertises its public key, the key may be
        replaced by Charlie; thus, Alice may receive Charlie’s public
        key instead of Bob’s.
        If Alice uses Charlie’s public key to encrypt the message,
        Charlie can decrypt the message.
   How does Alice know the received public key belongs
   to Bob  instead of Charlie?
   Solution
        The digital certificate provides a way to guarantee that the
        public key belongs to the party it represents.
講義第 23 頁 / Lecture slide 23
Digital Certificate
    A trusted third party (Certificate Authority, CA)
    can verify a digital certificate to ensure that it
    represents the claimed entity.
        E.g., VeriSign, Entrust, Certicom.
    A digital certificate contains the following
        Name of the holder as well as other information uniquely
        identifying the holder.
        The holder’s public key.
        The name of the CA that issued the certificate.
        The lifetime of the certificate to be valid.
        Digital signature from the CA.
講義第 24 頁 / Lecture slide 24
Digital Certificate
    The leading digital certificate is X.509.
        An industry standard for authentication, mainly for Internet
        applications.
        X.509 certificates are too big for wireless applications.
    WAP Server WTLS Certificate is available for
    wireless.
        WTLS certificate is a simpler version of X.509.
        Mainly used in WAP applications where the microbrowser
        authenticates the identity of a WAP server and encrypts
        information using the Wireless Transport Layer Security
        (WTLS).
講義第 25 頁 / Lecture slide 25
Digital Signature
    Used to verify whether the message really came from the
    claimed sender.
    How does a digital signature work?
         The sender computes the message digest of the document.
              A message digest takes an arbitrary-sized input and generates a fixed-size
              output (digest).
              The message digest represents the current state of a document (if the
              document changes, its message digest will also change).
         The sender concatenates the digest with information about the signer,
         a timestamp, and other required information.
         The sender encrypts the set of information using the sender’s private
         key – the result is the digital signature.
         The recipient of the message can use the sender’s public key to
         decrypt the digital signature to check if the received message really
         belongs to the sender.
              Incorporating the message digest into the signature allows the recipient to
              detect if the document has been altered.
講義第 26 頁 / Lecture slide 26
Public Key Infrastructure (PKI)
     A complete organization of systems and rules defining a
     single security system.
          IETF X.509 Working Group’s definition:
                “The set of H/W, S/W, people and procedures needed to create, manage,
                store, distribute and revoke certificates based on public key cryptography”.
     A solution to public-key queries
          The chain of trust (hierarchical structure): Root CA is trusted by
          everyone; a lower- level CA can be certified by the next higher CA.
     Components of PKI
          Certificate authorities responsible for issuing and revoking certificates.
          Registration authorities responsible for binding public keys and the identities of
          their holders.
          Certificate holders who have been issued certificates that they can use to sign
          digital documents.
          Repositories that store certificates as well as certificate revocation lists.
          Security policy that defines an organization’s top-level direction on security.
講義第 27 頁 / Lecture slide 27
Two-     Factor Authentication (2FA)
    Users apply two factors to authenticate themselves.
         For transactions where strong authentication is required.
         One factor is something the user knows, e.g., a PIN, and the other is
         something the user has, e.g., a token card to generate a one-time
         password.
         This combination makes it more difficult for unauthorized users to gain
         access.
    Smart client applications inherently provide a form of two-
    factor authentication.
         The user must have the device to access the application.
         The user must authenticate themselves to gain access to the
         application and any back-  end system it connects.
講義第 28 頁 / Lecture slide 28
Biometrics
    Evolution of authentication
         Moving from something you know (PIN/Password) to
         something you are (Biometrics).
    Biometrics authenticate an individual based on
    unique physical or behavioral characteristics.
    Common modalities
         Fingerprint scanning
         Facial recognition
         Voice recognition
         Iris and retinal scanning
講義第 29 頁 / Lecture slide 29
Biometrics
    Why use biometrics?
         Stronger authentication
               Tied directly to the physical person, making impersonation
               extremely difficult.
         Convenience
               Faster login times (no typing long passwords on small mobile
               keyboards).
         Non-transferable
               Unlike a password or token, biometric traits are inherently linked to
               the user and cannot be easily shared or stolen via phishing.
         Mobile integration
               Modern smartphones use secure enclaves (e.g., Apple Secure
               Enclave, Android StrongBox) to store biometric templates locally,
               never sending raw data to the cloud.
講義第 30 頁 / Lecture slide 30
Biometrics
    Limitations and drawbacks
         User acceptance & intrusiveness
               Many systems are perceived as intrusive.
               Privacy concerns: Users may be uncomfortable providing biological
               data (fear of surveillance or data breaches).
         Reliability & false refusal
               Technology reliability varies based on environmental factors
               (lighting, noise, dirt on sensors).
               False refusal rate (FRR) vs. false acceptance rate (FAR)
                    Legitimate users are incorrectly denied access ("false refusal").
                    Unauthorized users are incorrectly granted access ("false acceptance”).
                    Trade-off between FAR and FRR.
         The “unchangeable" problem
               If a biometric template is compromised (e.g., a fingerprint hash is
               stolen), you cannot issue the user a new fingerprint.
講義第 31 頁 / Lecture slide 31
Biometrics
    Implement biometrics for mobile deployment
         Never store raw biometrics
              Store only mathematical templates/hashes, preferably on a secure
              hardware element (Secure Enclave).
         Liveness detection
              Ensure the system can distinguish between a real finger/face and a
              photo, mold, or 3D print.
         Fallback mechanism
              Always provide a secure PIN/Password fallback (but limit attempts
              to prevent brute force).
         Two-factor authentication
              Use biometrics as one factor, combined with device possession
              (e.g., "Something you have" or "Something you are").
講義第 32 頁 / Lecture slide 32
Open Authorization (OAuth)
    Security issues for Internet app services -- third-party apps access to a
    user’s sensitive information (e.g., username & password).
          Data privacy: Apps store a user’s credentials.
          Full access: Apps have access to the user’s entire account, not just what
          apps need.
          No revocation: The user cannot revoke apps to access without changing the
          password.
          Auditability: The user has no way to see which apps have access.
    OAuth is an open standard for secure access delegation.
          Provide a way for Internet users to grant secure, delegated access to their
          information on servers without giving their credentials (e.g. passwords) to
          third-party apps.
          OAuth is analogous to “valet parking“.
               User gives a valet key that only opens the car door and starts the car
               engine (limited access), not a car ownership document (full access).
               User never gives his master key (password).
講義第 33 頁 / Lecture slide 33
Open Authorization (OAuth)
     Main components
     Components             Description                               Real-world
                                                                                        example
     Resource owner          The user who owns the data                                 User
                                      and can grant access
     Client                         The application that wants to                       A photo printing app
                                      access the user's data
     Authorization server    The server that authenticates                              Google’s login server
                                      the user and issues tokens
     Resource server          The API server that hosts the                             Google photos API
                                      user's protected data
講義第 34 頁 / Lecture slide 34
Open Authorization (OAuth)
講義第 35 頁 / Lecture slide 35
Open Authorization (OAuth)
    OAuth key features
          Delegate access securely
                Allow an application to access resources on behalf of a user without
                sharing the user's credentials.
          Scope-based authorization
                Limit application access to specific resources and for a defined duration.
          User-centric control
                Users must explicitly grant permission. They can see what access is being
                requested and revoke it easily.
          Client flexibility
                The framework supports different types of clients (web apps, mobile apps,
                single-page apps, smart devices).
講義第 36 頁 / Lecture slide 36
Open Authorization (OAuth)
    Typical application scenarios
         Social login - leverages OAuth for authentication – e.g., sign in with
         Google/Facebook/Apple
         API access - third-party apps accessing APIs – e.g., Twitter bots, GitHub
         integrations, cloud services.
         Microservices architecture – Internal services communicating with each
         other using "client credentials" grant.
    Applications in mobile computing scenarios
         Same core scenarios: Social login, accessing device-specific data
         (health, contacts), cloud APIs, and payments.
         Use the authorization code flow with PKCE (Proof Key for Code
         Exchange) for enhanced security without requiring a static client
         secret.
講義第 37 頁 / Lecture slide 37
Open Authorization (OAuth)
    Critical challenges in mobile computing scenarios
          User experience disruption
               Switching between the app and a browser for login can be annoying.
          App impersonation
               Malicious apps can mimic the login flow for phishing.
          Token management
               Mobile apps can be disconnected or closed at any time. How to securely
               store access tokens, as well as how to seamlessly refresh tokens after the
               network is restored, is challenging.
          Cross-app authentication
               Apps are isolated from one another. Securely transmitting authorization
               information between apps relies on specific mechanisms provided by the
               OS, which increases implementation complexity.
          Balance between security and convenience
               Mobile devices are more susceptible to being lost or stolen. Revoking
               token access permissions in a timely manner after a device is lost is an
               important consideration.
               Overly frequent authorization requests (e.g., requiring login every time the
講義第 38 頁 / Lecture slide 38
Secure Protocols
     Secure Socket Layer (SSL)
     Transport Layer Security (TLS)
     IP Security (IPSec )
講義第 39 頁 / Lecture slide 39
Secure Socket Layer (SSL)
    Provide a secure and private Internet session
         Typically used by HTTP.
    Use a combination of symmetric and asymmetric encryption.
    Four phases
         Handshake and cipher negotiation – both client and server agree on
         the algorithms and ciphers to use
         Authentication – server, and optionally client, is authenticated using
         digital certificates.
         Key exchange – the client creates a shared secret key, uses the
         server’s public key to encrypt it, and sends the encrypted key to the
         server; the server decrypts the original secret key using its private key.
         Application data exchange – once the secure symmetric session has
         been established, the client and server can communicate the
         encrypted data using the secret key.
    Encryption and decryption can be done at the packet level.
講義第 40 頁 / Lecture slide 40
Transport Layer Security (TLS)
    Next generation of SSL
    The goals include
    cryptographic security,
    interoperability, and
    extensibility
    Operate between the
    transport layer (TCP) and
    the application layer (HTTP)
    Used by HTTPS
講義第 41 頁 / Lecture slide 41
Transport Layer Security  (TLS)
    Consists of two layers
         Lower layer (TLS Record protocol)
             On top of TCP
             Provide private and reliable connections
         Higher layer (TLS Handshake protocol)
             Provides connection security (authenticating using
             asymmetric cryptography, negotiating a secret key, and
             providing reliable negotiation).
    Independent and can use a range of ciphers.
講義第 42 頁 / Lecture slide 42
Wireless Transport Layer Security
(WTLS)
   Operate above the transport protocol layer.
        Goals are similar to SSL and TLS and aim to provide
        privacy, data integrity, and authentication between two
        communicating parties.
   Similar to TLS, but optimized for low-bandwidth
   networks with high latency.
        New features: datagram support, optimized handshakes,
        etc.
        Supports the use of WTLS certificates for server-side
        authentication.
        WTLS is largely obsolete today.
講義第 43 頁 / Lecture slide 43
IP Security (IPSec)
    Aim to make the Internet itself secure
         Provide authentication, integrity, and privacy services at the network
         layer (support TCP/IP).
         Build a logical connection between two hosts, called Security
         Association (SA)
              SA is a unidirectional connection between source and destination and has
              a security identifier.
              Two SAs are needed for a duplex connection
    Two security protocols
         Authentication Header (AH) protocol
              Provide message authentication and integrity, but not privacy.
         Encapsulating Security Payload (ESP) protocol
              Provide message authentication, integrity, and privacy.
    Mainly targeted at laptop/phone clients in the mobile space.
         E.g., corporate clients on laptops/phones use IPSec to create a secure
講義第 44 頁 / Lecture slide 44
Outline
     Mobile and W ireless Security Requirements
     Security Toolbox
     Network-  Layer Defenses
     Wireless Technology Deep-Dive
     Smart Client Security
講義第 45 頁 / Lecture slide 45
Network-  Layer Defenses
     Firewalls
     Virtual private network (VPN)
講義第 46 頁 / Lecture slide 46
Firewalls
    A device (router or computer) installed between the
    internal network of an organization and the rest of
    the internet
         Establish a security perimeter between public and private
         worlds.
          A set of software programs is installed on the device,
         designed to forward some packets and filter others.
         At a lower level, it examines each packet to determine
         whether it should be forwarded to the destination.
              If permitted, using specific ports or only to known users
講義第 47 頁 / Lecture slide 47
Firewalls
    Classified as a packet filter firewall and proxy-based
    firewall.
         Packet filter firewall
               A router that inspects every incoming and outgoing packet
               Use a filtering table to decide which packets to discard
               Operate at the network or transport layer
         Proxy-based firewall
               A proxy computer (application gateway) that stands between the
               customer computer and the corporation computer
               Use some software to analyze the packet to decide whether to
               transmit or discard the packet
               Operate at the application layer
講義第 48 頁 / Lecture slide 48
Firewalls
     For mobile devices that have an always-on connection,
     installing an on-    device firewall may be useful.
           Prevents unauthorized access to laptops and PDAs.
           Prevents not only suspicious connections but also inappropriate
           content.
講義第 49 頁 / Lecture slide 49
Virtual Private Networks (VPNs)
    Private network
         Build a network using
         dedicated leased lines
    Virtual private network
         Build a private network over a public network, e.g., the
         Internet, without using dedicated leased lines
         Allows remote workers to communicate with the corporate
         network securely.
講義第 50 頁 / Lecture slide 50
Virtual Private Networks (VPNs)
     VPN technology
          IPSec
                Provide a single authenticated and encrypted security association
                (SA) between two routers
          Tunneling
                The original datagram is encapsulated in another datagram
講義第 51 頁 / Lecture slide 51
Virtual Private Networks (VPNs)
    Mobile VPN
          Allow mobile devices to have secure access over public
          networks
          Used to overcome WLAN security problems
               Provide a direct link over a WLAN to go through the corporate
               firewall.
          Drawbacks
               Inability to roam between WLAN access points.
講義第 52 頁 / Lecture slide 52
On-     class Activity
    Which protocol (TLS/WTLS/IPSec ) would it use for
    the following application scenarios?
      (a) HTTPS for web browsing;
      (b) WAP (Wireless Application Protocol);
      (c) Corporate VPN.
講義第 53 頁 / Lecture slide 53
On-     class Activity
     Which protocol (TLS/WTLS/IPSec) would it use?
      (a) HTTPS for web browsing
         Use TLS for HTTPS web browsing
         Why TLS?
               TLS operates between the transport layer (TCP) and the application layer (HTTP).
                HTTPS is literally HTTP over TLS.
               Every modern web browser and mobile app uses TLS for secure web traffic. It
                provides confidentiality (encryption), integrity (MAC), and authentication (digital
                certificates).
         Why not WTLS?
               WTLS was designed for WAP microbrowsers on early feature phones. Modern
                smartphones run full TLS stacks—WTLS is obsolete.
         Why not IPSec?
               IPSec operates at the network layer and secures all IP traffic, not a specific
                application. Using IPSec for a single web session is overkill and does not fit the
                browser's architecture.
講義第 54 頁 / Lecture slide 54
On-     class Activity
    Which protocol (TLS/WTLS/IPSec) would it use?
      (b) WAP
         Use WTLS for WAP 1.x; TLS for WAP 2.0+
         Why WTLS for WAP 1.x and TLS for WAP 2.0+?
               WTLS operates above the transport protocol layer, specifically designed for the WAP
                stack. WTLS was optimized for low-bandwidth networks with high latency and
                limited device processing power, exactly the constraints of early WAP phones.
               Standard TLS was too heavy for early WAP devices (large certificates, complex
                handshakes, high processing overhead).
               WAP 2.0 abandoned the WAP 1.x protocol stack entirely. It adopted standard
                Internet protocols: HTTP over TLS (HTTPS) for secure browsing, and TCP over IP
                for transport. There is no WTLS in WAP 2.0. This is what runs on modern
                smartphones.
         Why not IPSec?
               IPSec requires IP-layer support and is not designed for the WAP gateway
                architecture.
講義第 55 頁 / Lecture slide 55
On-     class Activity
     Which protocol (TLS/WTLS/IPSec) would it use?
      (c) Corporate VPN
         Use IPSec  for Corporate VPN.
         Why IPSec    ?
               IPSec operates at the network layer. It secures all IP traffic between two hosts or
                gateways, regardless of the application (web, email, file sharing, voice).
               A corporate VPN creates a secure tunnel between a remote worker's device and the
                corporate network. IPSec's     tunnel mode encapsulates the entire original datagram
                inside a new one, hiding the internal network topology.
               IPSec uses AH (Authentication Header) for integrity and authentication, and ESP
                (Encapsulating Security Payload) for confidentiality, integrity, and authentication.
         Why not TLS?
               TLS secures individual application sessions (e.g., HTTPS). It cannot secure all traffic
                from a device to a corporate network.
               A VPN needs to protect everything, not just web traffic.
         Why not WTLS?
               WTLS is for WAP only; it has no role in corporate VPNs.
講義第 56 頁 / Lecture slide 56
Outline
     Mobile and W ireless Security Requirements
     Security Toolbox
     Network-  Layer Defenses
     Wireless Technology Deep-Dive
     Smart Client Security
講義第 57 頁 / Lecture slide 57
Wireless Technology Deep-Dive
    We now zoom in from the wide area to the local
    area to the personal area, examining each wireless
    technology’s security threat model and defenses.
         WWAN (cellular networks)
         WLAN (802.11)
         WPAN (Bluetooth)
講義第 58 頁 / Lecture slide 58
Wireless Technology Deep-Dive
    Security threats in WWAN (cellular networks)
          WWAN spans multiple domains, and each has distinct risks
                User domain (Air interface)
                     Eavesdropping: Intruders may intercept radio transmissions between the
                      mobile device and the cell tower (the air interface is the most exposed link).
                     Device-level risks: Loss/theft of the device exposes data; compromised devices
                      can be used to attack the network.
                Infrastructure domain (Core network)
                     Unauthorized access: Intruders may access sensitive data stored in the
                      operator's core network (e.g., subscriber info, billing records).
                     Insider threats: Compromised network elements can expose subscriber
                      information.
                Availability domain (Network)
                     Denial-of-   service (DoS): Intruders may flood signaling channels, jam towers, or
                      spoof messages to disrupt service for legitimate users.
                     Signaling storm: A single rogue device flooding the network can degrade
                      service for many subscribers.
講義第 59 頁 / Lecture slide 59
Wireless Technology Deep-Dive
    Defenses in WWAN
         Against eavesdropping
               Data encryption: Both signaling/control data and user traffic must be
               encrypted and authenticated.
               Mutual authentication: The network and the device must authenticate each
               other at the start of service and during the session (mutual authentication
               prevents fake base station attacks).
         Against infrastructure attacks
               Mutual authentication: Required for service access at the start and during
               the session.
               Regulatory enforcement: The service provider can terminate service
               support for users found in breach of regulations.
               Access control: Strict separation of network domains and least-privilege
               access to core systems.
         Against DoS / Interference
               Location confidentiality: Keep user location and message origin secret, so
               attackers cannot easily target users or launch DoS attacks.
               Authenticate signaling messages: Make sure every control message really
               comes from a legitimate source, so attackers cannot insert fake messages
講義第 60 頁 / Lecture slide 60
Wireless Technology Deep-Dive
    Defenses in the 5G Era
          Stronger encryption
               5G uses 256-bit NEA3/NIA3 (based on AES) for encryption and integrity,
               replacing older 3G/4G algorithms.
          SUCI (Subscription Concealed Identifier)
               Encrypts the subscriber's permanent identity (IMSI) so it is not transmitted
               in plaintext — directly addressing the "location/origin confidentiality" goal.
          Mutual authentication
               5G AKA requires the device to authenticate the network before the
               network authenticates the device, defeating fake base stations.
          Network slicing
               Isolates traffic so a DoS attack on one slice does not affect others.
講義第 61 頁 / Lecture slide 61
Wireless Technology Deep-Dive
    Security threats in WLAN (802.11)
         Eavesdropping
               802.11 signals propagate over a few hundred meters; an attacker can
               easily detect and capture the wireless signal from a distance.
               If the traffic is not encrypted (or weakly encrypted), the attacker has
               direct access to the raw data stream.
         WEP (Wired Equivalent Privacy) was used for WLAN security
               Used as the original security protocol for WLAN (introduced in 1997) and
               aimed to provide a level of security equivalent to a wired LAN.
               The fatal flaw: It uses the RC4 stream cipher for encryption. RC4 uses
               short, static keys and a poorly designed Initialization Vector (IV). The IV is
               only 24 bits and is transmitted in plaintext. Because IVs repeat so often,
               attackers can collect enough packets to mathematically recover the key in
               minutes.
               WEP has been proven insecure since 2001. Its flaw is not "weak
               passwords," but a fundamental design flaw (RC4 + short IV). Changing a
               sophisticated password does not save WEP.
講義第 62 頁 / Lecture slide 62
Wireless Technology Deep-Dive
    Defenses in WLAN
         Use enhanced MAC layer security
               WPA2 (Wi-Fi Protected Access 2, introduced in 2004)
                    Based on the IEEE 802.11i.
                    Use AES-CCMP (Advanced Encryption Standard - Counter Mode
                     with Cipher Block Chaining Message Authentication Code Protocol)
                          AES is a strong block cipher to encrypt the data
                          CCMP provides confidentiality through encryption (Counter
                           Mode) and integrity and authentication  through a message
                           authentication code (CBC-  MAC)
                    Two versions
                          WPA2-Personal mode: everyone on the network uses the same
                           password.
                          WPA2-Enterprise mode: everyone uses unique per- user keys
                           based on the IEEE 802.1X (Port-Based Network Access
                           Control).
講義第 63 頁 / Lecture slide 63
Wireless Technology Deep-Dive
    Defenses in WLAN
          Use enhanced MAC layer security
                WPA3: successor to WPA2 (introduced in 2018)
                     It is a certification program that mandates stronger authentication,
                      disallows outdated protocols, and introduces new operational modes.
                     It still uses strong ciphers (like AES-CCMP) for encryption.
                     Two versions
                           WPA3-Personal mode: replaces the vulnerable 4-way handshake with a
                            new handshake called SAE (Simultaneous Authentication of Equals)
                                  Fundamentally strengthens the process of getting connected and
                                   mandates a higher baseline of security across the network.
                                        Provides robust protection against offline dictionary attacks.
                                               An attacker cannot capture the handshake and repeatedly
                                                guess the password offline.
                                        Provides forward secrecy.
                                               Even if the password is compromised later, past recorded
                                                traffic cannot be decrypted.
                           WPA3-Enterprise mode: provides stronger authentication and link-layer
                            encryption than WPA2-Enterprise; provides an optional suite that
                            mandates specific, consistent cryptographic tools for environments
講義第 64 頁 / Lecture slide 64
Wireless Technology Deep-Dive
     Security threats in WPAN (Bluetooth)
          Bluetooth’s unique risk profile
                The “short range" assumption is misleading
                      Bluetooth range is typically ~10 meters, less security risk than WLAN.
                      However, attackers can use directional antennas to extend range, and "10
                       meters" still introduces security risks in crowded public spaces (cafés, trains,
                       airports). Physical proximity is not a security control.
                The core weakness: device-centric, not user-centric
                      Bluetooth authenticates the device, not the person holding it.
                      Consequence: if a phone or laptop is stolen, the thief obtains the device's
                       Bluetooth pairing/authorization and potentially access to sensitive data.
                      Device-level authentication is not enough for high-value data.
                Common attacks
                      Bluejacking: Sending unsolicited messages.
                      Bluesnarfing: Unauthorized access to device private data.
                      Bluebugging: Taking full control of a device's Bluetooth functions.
講義第 65 頁 / Lecture slide 65
Wireless Technology Deep-Dive
    Security mechanisms in WPAN
          Physical layer
               Frequency hopping spread spectrum (FHSS): The signal hops rapidly
               across frequencies, making it harder to intercept or jam a single channel.
           Data link layer
               Shared secret key (Passkey): Two devices must share a passkey to
               establish a trusted channel (pairing).
               128-     bit session key encryption: Once paired, data is encrypted with a
               random 128-     bit session key during transmission.
          Application layer
               Use PIN or biometrics: Add user- level authentication on top of device-level
               pairing.
          Key insight
               Bluetooth's security is strongest at the link layer (pairing+encryption), but
               weakest at the user level; this is why the application layer must add
               PIN/biometrics for sensitive data.
講義第 66 頁 / Lecture slide 66
Wireless Technology Deep-Dive
    Bluetooth security: from legacy pairing to BLE
         Legacy pairing (Bluetooth 2.0 and earlier)
               Use a short PIN (often 4 digits) to generate the link key.
               Vulnerability: The PIN can be brute-forced, and the pairing exchange is
               vulnerable to eavesdropping (e.g., the "PIN crack" attack).
         Secure Simple Pairing (SSP) (Bluetooth 2.1+)
               Use Elliptic Curve Diffie-Hellman (ECDH) for key exchange.
               Provide protection against passive eavesdropping and man-   in-the-middle
               (MITM) attacks.
         Bluetooth Low Energy (BLE) (Bluetooth 4.0)
               Use AES-CCM for encryption.
               LE Secure Connections uses ECDH for strong pairing.
               Privacy feature: Random resolvable private addresses prevent tracking of
               devices.
         Best practice for Bluetooth users
               Turn off Bluetooth when not in use (temporary "discoverable mode").
               Never accept pairing requests from unknown devices.
               Use application-layer authentication (PIN/biometrics) for sensitive apps.
講義第 67 頁 / Lecture slide 67
On-     class Activity
    Which wireless technology (WWAN/WLAN/WPAN)
    would you use?
     (a) A hospital tablet syncing patient records;
     (b) A fitness tracker syncing step data to a phone;
     (c) A phone call.
講義第 68 頁 / Lecture slide 68
On-     class Activity
    Which wireless technology would you use for
     (a)   A hospital tablet syncing patient records?
        Use WLAN for A hospital tablet syncing patient records
        Why WLAN?
             Range: The tablet moves throughout a hospital building. WLAN APs
               provide building-wide coverage without cellular data costs.
              Bandwidth: Patient records require high throughput. WLAN delivers
               hundreds of Mbps.
              Security: WPA2/WPA3-Enterprise with 802.1X provides per- user
               authentication and AES-CCMP encryption—essential for patient privacy.
        Why not WWAN?
             Cellular data is expensive at scale, coverage inside hospital buildings may
               be poor, and the hospital cannot control the carrier's security.
         Why not WPAN?
              Bluetooth range (~10 m) and bandwidth are far too limited for syncing large
               medical records.
講義第 69 頁 / Lecture slide 69
On-     class Activity
    Which wireless technology would you use for
     (b) A fitness tracker syncing step data to a phone?
        Use WPAN (Bluetooth Low Energy) for a fitness tracker
        Why WPAN?
             Power: A fitness tracker must run for days or weeks on a tiny battery. BLE
               is designed for ultra-low power consumption.
             Range: The tracker only needs to reach the paired phone on the user's
               body (~1–2 meters). WPAN's ~10 m range is more than sufficient.
              Bandwidth: Step counts, heart rate, and sleep data are tiny payloads —
               BLE's low throughput is adequate.
              Security: BLE Secure Connections (ECDH pairing) + AES-CCM encryption
               protect the health data in transit.
        Why not WLAN/WWAN?
             Both are massive overkill for a low-power wearable and would destroy
               battery life.
              A fitness tracker with Wi-Fi or cellular exists (e.g., smartwatches), but
               those are higher- power devices with larger batteries.
講義第 70 頁 / Lecture slide 70
On-     class Activity
    Which wireless technology would you use for
     (c) A phone call?
        Use WWAN for a phone call.
        Why WWAN?
             Range: A phone call must work anywhere. Cellular networks provide wide-
               area continuous coverage.
              Mobility: WWAN supports seamless roaming and handover as the user
               moves.
             Security: 4G/5G provides encryption of signaling and voice traffic, mutual
               authentication, and SIM-   based identity. The carrier manages the security
               infrastructure.
        Why not WLAN?
             Wi-    Fi calling exists, but it requires a Wi-    Fi network that does not provide
               wide-area mobility.
             It is a supplement to WWAN, not a replacement.
        Why not WPAN?
講義第 71 頁 / Lecture slide 71
Outline
     Mobile and W ireless Security Requirements
     Security Toolbox
     Network-  Layer Defenses
     Wireless Technology Deep-Dive
     Smart Client Security
講義第 72 頁 / Lecture slide 72
Smart Client Security
    The core problem
         Smart clients store and process corporate data on mobile devices
         (laptops, phones, tablets).
         That data is stored outside the corporate firewall, often in untrusted
         environments (public Wi- Fi, lost devices, shared laptops).
         Security is required to protect sensitive information at rest and in
         transit.
    Three areas of security concern
         User authentication – Who is allowed to access the app and its data?
         Data store encryption – How is data stored on the device protected?
         Transport-level security – How is data protected while moving between
         the device and server?
講義第 73 頁 / Lecture slide 73
Smart Client Security
    User authentication (Three layers)
          Why authenticate?
               Corporate data is stored on the mobile device, so access must be gated by
               user authentication.
          Layer 1: Minimum
               Username + password: the baseline level of authentication.
               Rule: Never store the password on the device.
               Rule: Do not automatically authenticate the user to the enterprise server's
               data (force a fresh login).
          Layer 2: Stronger authentication
               A second factor is needed, usually something more sophisticated
                    VPN (creates a secure tunnel before app data flows).
                    Digital certificate (binds identity to the device/user cryptographically).
               Benefit: Enterprises can minimize unauthorized users even if a password is
               stolen.
          Layer 3: Device lock
               The mobile OS provides a lock mechanism (PIN, password, biometric).
               Requires the user to authenticate before any access to the device or apps.
講義第 74 頁 / Lecture slide 74
Smart Client Security
    Local data store encryption
          Why do local data store encryption?
               To protect the on-device data store from unauthorized access.
          Step 1 – Users must be authenticated before accessing the data
          Step 2 – Encrypt the data store itself
               Mobile database vendors provide built-in encryption technology.
               Best practice: Implement both authentication and encryption in a single
               process.
                     E.g., encrypt the data store using the user's password as the seed, so all data
                      returned from the store is decrypted using that password.
          Step 3 – When strong encryption is too costly
               Strong encryption can carry a performance penalty on low-end devices.
               A weaker form of protection: data obfuscation.
                     Scrambles the data so it is not viewable by text- viewing tools.
                     Has little or no impact on overall performance.
               Obfuscation is not real encryption.
                     It should only be a fallback, not a substitute for AES on sensitive data.
講義第 75 頁 / Lecture slide 75
Smart Client Security
    Transport-level security
          Why protect data in transit?
               Data synchronized between the mobile device and the enterprise server
               must be encrypted at the transport layer.
          Encryption in transit
               Commercial encryption products can encrypt any data transferred to and
               from mobile devices.
               Many smart client application vendors include 128-bit data encryption in
               their solutions.
          Deploy authentication beyond encryption
               A strong form of authentication (e.g., digital signatures) is recommended
               alongside encryption.
               This ensures data integrity and non-  repudiation, not just confidentiality.
          Additional defense
               Keep the firewall around corporate data as secure as possible —
               encryption at the transport layer does not replace network perimeter
               security.
講義第 76 頁 / Lecture slide 76
Smart Client Security
    Three pillars of smart client security
     Area                 Primary Control        Secondary Control        Key Rule
     User                  Username +                   VPN/Digital certificate          Never store
     Authentication        Password                     + Device lock                    passwords on
                                                                                         devices
     Data Store        Encryption               Obfuscation (fallback                    Authenticate
                                                        only)                            before access
     Transport          128-     bit encryption    Digital signatures         Keep firewall
                                                                                         strong
    Security must be applied in all three areas simultaneously. A
    strong password is useless if the local database is
    unencrypted; strong encryption is useless if the transport
    channel is open.
講義第 77 頁 / Lecture slide 77
Security Policy: Turning Rules into
Enforcement
   A policy answers: Who may use which devices? What data
   may be stored where? What must users do? What happens if
   rules are broken?
   Users are the weakest link because security creates friction -
   they disable locks, share passwords, and join free Wi-Fi.
   A policy is not a suggestion; it is enforceable: it pairs rules
   with technologies (MDM remote wipe, 802.1X revocation,
   VPN, etc.) that automatically enforce them.
   Key takeaway: "Intruders attack the weakest link—    often the
   user. Policy is how an organization turns 'please be careful'
   into an enforceable rule."
講義第 78 頁 / Lecture slide 78
Summary
      Five pillars for mobile and wireless security; one failure breaks the system
            Authentication · Integrity · Confidentiality · Authorization · Non-repudiation
            Every threat maps to at least one pillar, and some violate several.
      Cryptography is the toolbox, not the whole solution
            Symmetric (fast, bulk data) + Asymmetric (key exchange) = Hybrid encryption (TLS)
            Certificates and signatures turn keys into trust (PKI, CAs)
            Choose the right layer: TLS (application), IPSec (network), WTLS (legacy WAP)
            Authorization ≠ Authentication: OAuth delegates limited access without sharing
            passwords
      Each wireless technology has its own threat model
            WWAN (Cellular): mutual authentication, 5G network slicing
            WLAN (Wi-Fi): WEP is dead → WPA2 (AES-CCMP) → WPA3 (SAE, forward secrecy)
            WPAN (Bluetooth): device-centric auth, BLE Secure Connections (ECDH)
      Protect the app and the user
            Smart client: three layers—user authentication, data-store encryption, transport security
            Policy is a control: users are the weakest link; enforce rules with technologies
      Key takeaways: No single control is enough. Security is a layered system, and the
      user is part of it.