A browser add-on is signed by a well-known publisher, and the browser checks the signature before installing it. An analyst later finds that the add-on reads every file in users' documents folders.
Client systems: the device in the user's hands
A client is the device a person uses to reach a service: a laptop, a desktop computer, a phone or a tablet. It sits on a desk, in a bag or in a pocket, where the organisation cannot watch it, and its user can change it. No technical background is assumed. A security professional decides what a client may be trusted with, how phones and tablets are managed, and which checks must happen elsewhere.
By the end of this unit you will be able to:
- Explain why a check run on the client cannot be relied on by the server
- Explain mobile code and how a sandbox limits it
- Describe how ARP, DNS and browser caches are poisoned and defended
- Tell apart BYOD, CYOD, COPE and COBO, and choose controls for each
- Name the controls of mobile device management, including remote wipe, containers and geofencing
A bouquet ordered for one pound
An illustrative example
An online florist's order page checks discount codes inside the customer's web browser and works out the total there. The total is then sent to the florist's server with the order.
One customer opens the browser's built-in developer tools, which let anyone change the page they are viewing. She sets the total for a large bouquet to one pound and submits the order. The server records the payment as correct and books the delivery.
The page did check the total. Why did that check not stop the order, and where should it have been made?
The client is outside the organisation's control
In a client-server design, the client is the device and program a person uses, and the server is the shared computer that provides the service. Everything on the client belongs, in practice, to whoever holds it. The user, or malware on the device, can change any page, program or message before it leaves.
A check made on the client is therefore a convenience. It tells an honest user at once that a field is wrong. It cannot be relied on by the server, because anyone can skip it or alter its result. Every check that protects the business, such as price, identity, permission or input format, must be repeated on the server.
The server must repeat every check the client makes
Read this figure as text
In a client-server design the client is the device and program a person uses, and the server is the shared computer that provides the service. Everything on the client belongs, in practice, to whoever holds it, so the line between the two is a trust boundary.
- On the user's device a check runs in the browser. It tells an honest user at once that a field is wrong, and that is all it is for: the user, or malware on the device, can skip it or alter its result.
- The request crosses the trust boundary to the server, where a check repeats every check that protects the business: price, identity, permission and input format.
- A request altered on the device, with the browser check skipped, crosses the same boundary and is stopped by the server's check.
- Only requests that pass the server's check reach the database, which holds the orders and records and is reached only through the server.
Client-side controls still matter for the client's own protection. Disk protects the data on a lost laptop. Anti-malware protects the device. Neither makes the client trustworthy to the server.
Code that arrives from elsewhere: mobile code
Opening a web page often runs a small program the user never chose to install. Mobile code is software sent across a network and run on the receiving computer without the user explicitly installing it. JavaScript in web pages, Java applets, ActiveX controls and macros in documents are examples.
The defence is to limit what the code can reach. A sandbox is a restricted area in which code runs, unable to read or change files, open network connections or touch other programs beyond what its allows. Browsers keep JavaScript away from the computer's files in this way. Java applets ran inside a enforced by Java's security manager.
Code signing is the other approach: the publisher signs the code, and the computer checks the signature before running it. A signature shows who wrote the code and that it was not altered. It does not show the code is safe. An ActiveX control was signed, and once a user accepted it, it had full access to the file system.
Controls are to block or sandbox mobile code by default, accept only signed code from trusted publishers, disable document macros from the internet, and keep browsers patched.
Local caches and how they are poisoned
A cache is a local store of answers kept so the device need not ask again. Three caches on a client are attacked by name.
The Address Resolution Protocol (ARP) finds the hardware address of a device on the local network, and has no way to check who sent a reply. The Domain Name System (DNS) is the internet's directory of names. DNS Security Extensions (DNSSEC) add to its answers so that forged ones can be detected. Poisoning is dangerous because the device trusts its own memory and stops asking.
| Cache | What it remembers | Poisoning | Defence |
|---|---|---|---|
| ARP cache | Which hardware address belongs to which network address on the local network | A device on the same network sends false replies, so traffic flows through the attacker | Static entries for key devices, switch features that check replies, encryption |
| DNS cache | Which numeric internet address belongs to which name, such as a bank's | False answers are planted, so the name leads to the attacker's server | DNSSEC signing, trusted resolvers, checking |
| Browser cache | Copies of pages, scripts and images already fetched | A tampered copy is stored and reused on later visits | Encrypted connections, sensible cache lifetimes, clearing on shared machines |
Phones and tablets: managing a device that travels
Phones are carried everywhere, lost often and connected to networks no organisation controls. Mobile device management (MDM), part of the wider enterprise mobility management (EMM), is software that lets an organisation enforce settings on enrolled devices from a central console.
- Device encryption and screen lock
- Data on the device is encrypted and the device locks with a PIN or biometric. A lost phone then reveals nothing to its finder.
- Remote wipe
- An erase command sent over the network. A full wipe returns the device to factory state. An enterprise wipe removes only the organisation's apps and data.
- Containerisation
- Also called storage segmentation. Work apps and data are kept in an encrypted, separately managed area, apart from personal apps and photos.
- Geofencing
- A virtual boundary around a real place. Crossing it triggers a policy, such as blocking work apps when the device leaves the country or the site.
- Sideloading
- Installing apps from outside the official store. MDM can block it, because such apps have not been checked.
- Rooting and jailbreaking
- Removing the maker's built-in restrictions, on Android and on Apple devices respectively. Most security controls can then be bypassed. MDM detects it and blocks access.
Four ownership models
Who owns the device decides how far the organisation may manage it. Wiping data the organisation does not own can raise legal problems.
| Model | Who owns it | Personal use | Typical controls |
|---|---|---|---|
| COBO: corporate-owned, business only | Organisation | None; staff carry a separate personal phone | Fully managed, approved apps only, full wipe |
| COPE: corporate-owned, personally enabled | Organisation | Some, within the organisation's rules | Managed device, blocked app list, full wipe |
| CYOD: choose your own device | Employee, from an approved list | Yes | Work container on a model known to support the agent |
| BYOD: bring your own device | Employee, any model | Yes | Work container, enterprise wipe only, access checks |
NIST describes CYOD as a personal device chosen from the organisation's approved list. Some texts use CYOD for a company-owned device the employee picks from a list. Either way, the approved list is the point: the organisation knows the device can run its controls. NIST calls COBO strict enterprise usage.
Hardening an endpoint
An endpoint is any client device at the edge of the network. Hardening is removing everything a device does not need and setting the rest to its safest workable state. The same steps apply to a laptop or a phone.
- Apply operating system and application updates promptly, through central management.
- Give users standard accounts; keep administrator rights for separate, named accounts.
- Encrypt the whole disk, with a PIN or password before start-up.
- Remove unneeded software and services, and allow only approved applications.
- Run endpoint protection that detects and reports malware.
- Turn on the device and block mobile code and macros by default.
A question, worked through
A law firm lets solicitors read client email on their own phones, enrolled in the firm's mobile device management with a work container. A solicitor reports her phone lost on a train. Her family photographs are on it, and she hopes to recover it from lost property within the week.
What should the IT manager do FIRST?
Decide on your answer, then open the reasoning
- The phone is personally owned under bring your own device, holds client data in a managed container, and is lost now.
- Rule out c. Client data is exposed for every day the firm waits. A wiped container can be restored if the phone is found.
- Rule out d. Blocking the SIM card stops calls and mobile data. The client data on the phone stays readable to whoever holds it.
- Between a and b: both remove the client data. A full wipe also destroys personal photographs on a device the firm does not own, which can raise legal problems.
- An enterprise wipe protects the firm's data and leaves the owner's data alone.
Answer: A. Send an enterprise wipe that removes only the work container
Choosing between good answers
- A security check runs in the browser or app on the user's device
- treat it as a convenience. Choose the answer that enforces the same check on the server.
- A lost device is personally owned
- prefer an enterprise wipe of the container to a full wipe. Choose a full wipe for a corporate-owned device.
- A question contrasts signing code with sandboxing it
- signing shows who wrote it and that it is unchanged. Sandboxing limits what it can do. Only sandboxing contains a signed but harmful program.
- Users are redirected to a fake site although they typed the right name
- suspect a poisoned DNS or local cache, and choose DNSSEC or certificate checks as the defence.
Try it
Trace a web shop order from browser to server and mark each check that must be made on the server side.
Loading the preview.
Check your understanding
4 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.
These questions are drafts that no named reviewer has approved yet.
Question 1 of 4
What to remember
- A check on the client helps honest users. The server cannot rely on it and must repeat every check that protects the business.
- Mobile code runs without being installed. Sandboxing limits what it can reach; signing shows only who wrote it.
- ARP, DNS and browser caches can be poisoned with false answers that the device then trusts.
- Mobile device management enforces encryption, screen locks, containers, geofencing and remote wipe, and blocks sideloading and rooted or jailbroken devices.
- COBO and COPE devices belong to the organisation; CYOD and BYOD devices, in NIST's terms, belong to the employee and are managed through a work container.
Say it from memory
What are the main weaknesses of client-based systems, and which controls answer them?
The client is under the user's control, so the server cannot rely on its checks: repeat them on the server. Mobile code runs without installation: sandbox it and accept only signed code. ARP, DNS and browser caches can be poisoned: use DNSSEC, certificate checks and encryption. Phones are lost and owned by different parties: use MDM with encryption, containers, geofencing and remote wipe, and harden every endpoint.
What is mobile code, and what does a sandbox and code signing each give?
Mobile code is software sent across a network and run on the receiving computer without the user explicitly installing it, such as JavaScript or document macros. A sandbox limits what the code can reach. A code signature shows who wrote the code and that it was not altered; it does not show the code is safe.
What does each of the ARP, DNS and browser caches remember, and what is the defence against DNS cache poisoning?
The ARP cache remembers which hardware address belongs to which network address on the local network. The DNS cache remembers which numeric internet address belongs to which name. The browser cache keeps copies of pages, scripts and images. DNS poisoning is answered by DNSSEC signing, trusted resolvers and checking certificates.
How does a full wipe differ from an enterprise wipe, and what is containerisation?
A full wipe returns the device to factory state. An enterprise wipe removes only the organisation's apps and data. Containerisation, also called storage segmentation, keeps work apps and data in an encrypted, separately managed area apart from personal apps and photos.
Order the four device ownership models from most to least organisational control, and say who owns each.
COBO, corporate-owned business only: the organisation. COPE, corporate-owned personally enabled: the organisation. CYOD, choose your own device: the employee, from an approved list. BYOD, bring your own device: the employee, any model.
What is hardening, and what steps harden an endpoint?
Hardening is removing everything a device does not need and setting the rest to its safest workable state. Apply updates promptly, give users standard accounts and encrypt the whole disk with a PIN before start-up. Remove unneeded software, allow only approved applications and run endpoint protection. Turn on the device firewall and block mobile code and macros by default.
Sources
- OWASP Cheat Sheet Series: Input Validation, OWASP FoundationClient-side validation can be bypassed; validate on the server even when the browser checks the same fields.
- NIST CSRC Glossary: mobile code, NISTMobile code as software obtained from remote systems and run locally without explicit installation, with Java, JavaScript, ActiveX and VBScript as examples.
- NIST SP 800-28 Version 2: Guidelines on Active Content and Mobile Code, NISTThe Java sandbox enforced by the security manager; JavaScript in a browser kept from files; an accepted ActiveX control with complete reign over the file system; ActiveX signatures.
- RFC 826: An Ethernet Address Resolution Protocol, IETFHow ARP maps network addresses to hardware addresses on a local network and stores the result.
- NIST SP 800-81r3: Secure Domain Name System (DNS) Deployment Guide, NISTWays a recursive name server's cache is poisoned, and DNSSEC providing authentication of DNS data.
- NIST SP 800-124 Rev. 2: Guidelines for Managing the Security of Mobile Devices in the Enterprise, NISTEnterprise mobility management; full and enterprise remote wipe; secure containers; sideloading; jailbreaking and rooting; strict enterprise use, COPE, BYOD and CYOD as deployment models; legal issues of wiping data the enterprise does not own.
- BigFix Mobile: Geofence, HCL SoftwareA geofence as a virtual boundary around a real place, with policies triggered when a managed device enters or leaves.
- NIST SP 800-40 Rev. 4: Guide to Enterprise Patch Management Planning, NISTPrompt, centrally managed patching of endpoints.
- Advice for End Users, UK National Cyber Security CentreHardening advice for end user devices.