Week 12 · lesson

Reduce What the System Does Not Need

Every unnecessary service, permission, interface, package, network path, or feature creates something else that must be configured, patched, monitored, and understood.

Hardening often begins with subtraction.

Start from required function

Do not disable a service because a checklist calls it dangerous.

Ask:

What required function depends on this component?

Fictional host:

status-web        required
log-forwarder     required
backup-agent      required
legacy-test-server not required

If legacy-test-server has no owner and no current function, disabling/removing its listening path is easier to justify than changing a required service blindly.

Reduce exposure at the narrowest useful layer

Possible reductions include:

  • stop/disable an unnecessary service;
  • bind a required local-only service to loopback;
  • remove an unjustified role or permission;
  • reject an unused input type;
  • remove an obsolete route/path;
  • uninstall an unused package when ownership/change policy supports it.

Different controls fit different mechanisms.

Supplied hardening case

Baseline intent:

legacy-test-server: disabled
no current owner
no required function

Current evidence:

service state: active
socket: 0.0.0.0:9000 LISTEN
last documented use: previous semester

This supports a review and likely removal/disable decision in the fictional model.

It does not prove anyone misused the service.

Hardening plan

Before the change:

  1. confirm no current requirement;
  2. identify owner/approval authority;
  3. capture service/socket baseline;
  4. identify rollback path;
  5. define expected post-change state;
  6. define required-function regression tests.

Then change only the fictional/isolated service state.

Test what disappears and what stays

Expected negative result:

legacy-test-server no longer listening on 9000

Expected preserved functions:

status-web still returns required status response
log-forwarder still reports healthy
backup-agent still completes represented check

A strong hardening test proves both reduction and preservation.

Updating and patching are also controlled changes

Software updates can reduce known defects and security weaknesses, but they also modify a working system.

Good update practice includes:

  • identify what is changing;
  • read relevant release/advisory information;
  • verify compatibility requirements;
  • test in an appropriate environment;
  • establish backup/rollback strategy;
  • deploy through change control;
  • verify required function; and
  • update baseline/version evidence.

“Always update instantly” and “never update because it might break” are both weak universal rules.

Context matters.

Secure defaults reduce dependence on perfect operators

A system is easier to operate safely when the default state is narrow.

Examples:

  • privileged actions denied unless explicitly granted;
  • services bind only where required;
  • malformed input rejected;
  • secret material not logged;
  • unused features disabled;
  • backups protected according to their sensitivity;
  • monitoring enabled for important failures.

A good default makes the normal path safer without requiring every user to remember hidden rules.

Activity: select three hardening opportunities

From your Week 12 baseline, choose three differences and classify them:

Remove/reduce now

Requirement absent and evidence supports safe reduction.

Investigate first

Function/ownership unclear.

Keep

Required function justifies it and current state matches policy.

For one “remove/reduce” item, write the exact change and regression tests.

Beware security theater

A change is not good because it sounds strict.

Examples of weak thinking:

  • disable every port;
  • remove every user;
  • block all network traffic;
  • make every file unreadable;
  • require five authentication steps for every low-risk action.

Those controls may destroy function.

Security engineering is about controlled risk reduction while preserving mission.

Extend your Hardening Change Dossier

Add:

hardening target
why it is unnecessary/excessive
approval/owner
baseline evidence
change
negative test
required-function regression tests
rollback trigger

Lesson 3 completes the full change-control cycle.