Skip to main content
← Unit 4: Securing Devices

Code Scholars Tutoring · AP Cybersecurity

Patch and Vulnerability Management

Related Unit 4 topic notes: 4.3.

How it works

Patches fix known weaknesses. Good patching includes scheduling, testing, tracking, and prioritizing the highest-risk systems first.

If a device is busy, schedule maintenance rather than ignoring the update forever.

Common error

Unofficial downloads can create more risk than the vulnerability they claim to fix.

Unit 4 topics and evidence practice

Study four device-security topics through a fictional Cobalt Animation Workshop: device risk, authentication, protection, and detection. Cases, accounts, devices, addresses, and measurements are invented teaching examples. Use the comparison tables and worked evidence to reason through each question before opening its answer. The password-verifier exercise uses a public practice value and reproducible test salts. Original foundation lessons and exercises remain available.

4.3 Protecting Devices

Protection combines usable device policies, appropriate anti-malware, verified maintenance, and restrictions on host traffic. A control is not complete merely because someone enabled a setting: identify its scope, check the resulting behavior, and retain a recovery path. The examples below are fictional records and an explicitly simplified firewall model, not configuration commands.

Read topic 4.3 notes, evidence, and quick checks

4.3.A: Turn device rules into enforceable, usable policies

An acceptable-use policy sets expectations for approved activities, information handling, reporting, and consequences. A password policy governs account secrets and their lifecycle. A software-installation policy defines approved packages, trusted distribution, requests, and who may install them. Each needs an owner, exceptions, and evidence of enforcement. A signed acknowledgment shows that a user received a rule; it does not prove a workstation enforces it. Avoid rules that force people to share credentials or bypass safeguards to complete necessary work.

4.3.A: Apply a baseline without breaking required work

A device baseline can require supported software, individual accounts, least privilege, automatic locking, approved applications, recovery-ready encryption, and appropriate boot or firmware protections. Use role-specific configurations: a shared workstation and a dedicated controller have different needs. Check accessibility tools and essential workflows before rollout. A standard user may need a controlled elevation process; giving every user permanent administrator rights removes that boundary. Record the actual setting and a functional test rather than relying on a policy document alone.

4.3.B: Match anti-malware capabilities to the device

Signature-based detection recognizes known patterns; behavior-based detection evaluates suspicious actions; other supported capabilities may inspect memory, scripts, reputation, or exploit behavior. These approaches complement each other and have false positives and blind spots. Endpoint detection and response can add investigation and response telemetry, but features depend on platform, configuration, licensing, and connectivity. Verify agent health, engine and detection updates, coverage, and resource use. A product label does not prove that a particular threat or unsupported controller is covered.

4.3.B: Distinguish blocking a file from resolving an incident

Quarantine restricts an identified item so it cannot be used normally. If execution occurred first, investigate related processes, persistence, accounts, and connections; another copy or changed account may remain. Preserve relevant evidence and follow an approved containment process. Do not restore a quarantined file just because a workflow stopped: validate the alert, package provenance, and a safe alternative. Conversely, a false positive should be investigated and narrowly corrected rather than used as a reason to disable protection everywhere.

4.3.C: Prioritize applicable patches and prepare recovery

Inventory operating systems, applications, dependencies, drivers, and firmware. Decide whether an issue affects the installed product and configuration, then assess exploitation evidence, exposure, privileges, business impact, and available mitigations. A high-impact internet-facing issue may outrank a routine update on an isolated device, but decisions need current evidence. Obtain packages through trusted approved channels, verify provenance and integrity, test representative workflows, and plan a maintenance window and recovery method. A valid signature does not by itself mean a package is approved or risk free.

4.3.C: Verify installation, restart, and the resulting service

Separate downloaded, installed, restart-pending, verified, failed, offline, and excepted states. Confirm the required version or configuration after any necessary restart, check that the relevant weakness is addressed, and test normal operation. A deployment dashboard reporting a successful download is not evidence of a running fixed version. Track failed and offline devices to resolution. A temporary exception needs an accountable owner, mitigating controls, a review date, and a completion plan; it remains outstanding under a completion definition that requires verified installation.

4.3.D: Evaluate traffic at the host as well as the perimeter

A host-based firewall can restrict traffic reaching or leaving one device, including traffic between peers on the same subnet that may never cross a perimeter firewall. Evaluate direction, source, destination, protocol, port, application or service, and the active profile where supported. An IP address match is not proof of a user identity. Rule precedence differs across products; explicit-block behavior, priorities, profiles, state tracking, and application rules must be checked for the actual system. The ordered table below defines its own classroom semantics.

4.3.D: Retain required dependencies and test both directions

A useful policy permits only needed paths while preserving authorized administration, logging, name resolution, updates, and essential application traffic. Inbound permission does not automatically authorize new outbound traffic. A TCP rule does not cover UDP on the same port. Established return traffic, control traffic, IPv6, and alternate paths require explicit design even when omitted from a small exercise. Blocking a file-transfer port restricts that flow; it does not prove that data cannot leave through an allowed web session or another channel. Verify narrow positive and negative tests before adoption.

A verified maintenance cycle

Repeat the cycle for operating systems, applications, and supported firmware. Failed or excepted devices stay visible until their approved disposition is resolved.

  1. 1. Inventory and assign

    Identify the device, installed components, owner, dependencies, and recovery needs.

  2. 2. Assess and prioritize

    Establish applicability, exposure, exploitation evidence, impact, and temporary mitigations.

  3. 3. Prepare and test

    Validate the approved package and test representative workflows with a recovery plan.

  4. 4. Deploy with control

    Use the approved window and deployment method; record installed, failed, and offline states separately.

  5. 5. Restart and verify

    Perform any required restart, confirm the running fix, and test security and normal operation.

  6. 6. Resolve and review

    Follow up on failures and exceptions, record evidence, and update the baseline.

Connect written device policies to configuration and evidence
PolicyExample requirementEvidence and operational check
Acceptable useUse approved accounts and report unexpected security prompts.Confirm awareness, a usable reporting route, and an example report handled by the owner.
Password and account lifecycleUse approved long secrets, controlled recovery, and bounded login attempts.Inspect effective account settings and test a permitted recovery path without collecting real passwords.
Software installationStandard users request reviewed packages through the approved process.Check permissions and provenance; verify an essential accessibility tool still works.
Device baselineLock unattended sessions and retain supported protection.Inspect effective settings, lock/unlock behavior, agent health, and role-specific exceptions.
Patch ledger: 24 workshop devices; completion requires installation, required restart, and workflow verification
StateDevice countCounts as complete?
Installed, restarted, and workflow verified14Yes: all stated completion checks passed.
Installed; required restart still pending4No: running state has not met the completion definition.
Download failed3No: diagnose delivery and retry through the approved process.
Offline and not verified2No: confirm state when reachable and arrange maintenance.
Approved temporary exception1No: track the owner, mitigation, review date, and completion plan.
INV-22 host policy: first matching row for NEW IPv4 TCP/UDP flows in this classroom model only; SELF = 10.194.30.22
Priority · actionDirectionSourceDestinationProtocolDestination port
10 · PERMITIN10.194.40.1210.194.30.22TCP22
20 · PERMITIN10.194.20.0/2410.194.30.22TCP8443
30 · DENYINANY10.194.30.22TCP22
40 · DENYINANY10.194.30.22TCP445
50 · DENYINANY10.194.30.22TCP/UDPANY
60 · PERMITOUT10.194.30.2210.194.30.60TCP6514
70 · PERMITOUT10.194.30.2210.194.30.53TCP/UDP53
80 · PERMITOUT10.194.30.22203.0.113.171TCP443
90 · DENYOUT10.194.30.22ANYTCP/UDPANY

Installation counts are not completion counts

Fictional workshop patch ledger
Total devices: 24
Verified complete: 14
Installed but required restart pending: 4
Download failed: 3
Offline: 2
Time-bound exception: 1

AI draft: "18 installed means 75% complete; ignore the exception."

The categories sum to 24. Fourteen devices meet the stated definition, so verified completion is 14/24 = 58.3% to one decimal place. Eighteen installed is a different measure, 18/24 = 75%, which includes four unverified pending restarts. Ten devices remain outside verified completion, including the approved exception. Check the required running version and workflows rather than relabeling outstanding devices as complete.

Trace new flows through the explicit host policy

Fictional INV-22 policy tests; first matching row only
IN  10.194.40.12 -> SELF TCP/22   => 10 PERMIT
IN  10.194.20.35 -> SELF TCP/8443 => 20 PERMIT
IN  10.194.20.35 -> SELF TCP/22   => 30 DENY
IN  10.194.30.80 -> SELF TCP/445  => 40 DENY
IN  10.194.10.38 -> SELF TCP/8443 => 50 DENY
IN  10.194.20.35 -> SELF UDP/8443 => 50 DENY
OUT SELF -> 10.194.30.60 TCP/6514  => 60 PERMIT
OUT SELF -> 10.194.30.53 UDP/53    => 70 PERMIT
OUT SELF -> 203.0.113.171 TCP/443  => 80 PERMIT
OUT SELF -> 198.51.100.91 TCP/21   => 90 DENY

The approved administrator matches row 10 before the broader SSH deny. A staff application client matches row 20, but the same source has no SSH permission. The same-subnet peer is still denied TCP/445 by the host. The staff UDP request does not match the TCP application rule. The outbound examples retain logging, DNS, and the fictional update endpoint while denying a new TCP/21 flow. This table omits established returns, required control traffic, and IPv6; it is not a complete production policy or a claim that every operating system uses first-match processing.

Review a tempting exception before restoring an application

WS-14 baseline: standard user; approved accessibility tool required.
Alert: preview-addon.exe quarantined after execution.
Package request: unknown origin; no approval record.
User impact: one preview feature stopped; required accessibility tool still works.
Proposed shortcut: restore the file, disable scanning, and grant permanent admin.

The evidence supports reviewing the specific alert and finding an approved replacement, not three broad reductions in protection. Preserve the relevant file and process records, investigate actions before quarantine, and verify that essential accessibility support remains available. If a benign false positive is confirmed, use the narrow authorized correction and document it. Neither a user complaint nor a familiar filename proves the package is trusted.

Vocabulary in context

Acceptable-use policy
Written expectations for authorized use and reporting; technical enforcement and usable procedures are separate evidence.
Security baseline
The approved configuration for a device role, with controlled exceptions and verification.
Quarantine
Restriction of an identified item; it does not establish that all prior actions or other artifacts have been resolved.
Patch applicability
Whether an update addresses a component and configuration actually present on the device.
Verified completion
A defined maintenance outcome supported by required installation, restart, security, and functional checks.
Host-based firewall
Traffic enforcement on an individual endpoint, including eligible same-subnet traffic.

Quick checks

Form your answer, then open the question to compare your reasoning.

1. Does accepting a device policy prove that installation restrictions are enforced?

No. Acceptance records awareness; inspect effective permissions and test the approved installation workflow to evaluate enforcement.

2. What should a baseline test include besides security settings?

Check required applications, accessibility support, normal operation, recovery, and the workflow for authorized temporary elevation.

3. Why combine signatures with behavior or memory visibility where supported?

Known-pattern matching and observation of actions have different strengths and blind spots. Confirm actual platform capabilities, healthy coverage, and false-positive handling.

4. A file was quarantined after it ran. Is the incident resolved?

Quarantine limits the identified item. Investigate earlier processes, persistence, account changes, connections, and other affected devices before declaring recovery.

5. Which patch ledger count meets the stated completion definition?

Fourteen of 24 devices, or 58.3% rounded to one decimal place. The four pending restarts are installed but not verified complete.

6. May the approved exception be removed from outstanding maintenance?

Not under this completion definition. Keep its owner, mitigation, review date, and remediation plan visible among the ten devices outside verified completion.

7. Can 10.194.30.80 reach INV-22 on TCP/445 because both are on the same subnet?

No. Row 40 denies that NEW inbound flow at INV-22 even if no perimeter router is crossed.

8. Why does staff TCP/8443 pass while staff UDP/8443 fails?

Row 20 permits TCP from the staff subnet to that application port. The UDP request does not match it and reaches row 50.

9. Does the classroom first-match table describe every host firewall?

No. The exercise states its own processing model. Real products may use different precedence, profiles, application rules, and state behavior that must be checked.

10. Does denying outbound TCP/21 establish that no data can leave INV-22?

No. It denies that modeled flow. Allowed web traffic, other paths, IPv6, compromised permitted services, and authenticated application behavior still require appropriate controls and evidence.

Worked example

Prioritize approved updates using exposure and consequences.

Evidence

A: internet-facing service, high-risk known flaw
B: isolated test device, low-impact flaw
C: staff laptop, routine update

Investigate and prioritize A because of exposure and impact, using the approved risk assessment and change process. Test the update, preserve a rollback plan, deploy through trusted channels, and verify success. An urgent risk may also require a temporary approved mitigation.

Exercises

Exercise 1

Why should a patch downloaded from an unverified forum not be trusted merely because it claims to fix an urgent flaw?

Show solution

The source or file may be malicious or incorrect. Obtain updates through trusted vendor or organizational channels and validate the deployment.

Exercise 2

List three pieces of evidence that show a patch process is complete.

Show solution

Record the installed version or update status, verification that the targeted weakness is addressed as expected, and a successful required-workflow test. Track failed or deferred devices separately.

Need help with this topic?

Work through questions with a tutor and get help with the steps you find difficult.

Get help with this topic