Debian GNU/Linux · Services

Disable the Squid web proxy on systems that are not proxy servers

When it fails: A web proxy can run on a system that is not a proxy server. An open or forgotten proxy relays traffic for others and hides its origin.

CB-DEB-SVC-009mediumactiveautomatedautomated fixprofile core

As released in v0.1.0 beta · pre-release. Current state.

Description

Squid (squid.service) is the HTTP caching proxy packaged by Debian.

The control passes when the unit is masked or not installed at all.

A unit that does not exist counts as compliant, so removing the package is an equally valid fix.

Rationale

A proxy relays connections for its clients. A misconfigured one lets outsiders reach internal systems or use the host to hide attacks, and its cache can hold sensitive responses.

Impact

Masking the unit stops it and prevents it from starting again. Proxy servers must exclude this control in their tailoring file.

Audit

Run systemctl is-enabled squid.service. It must print masked, or fail because the unit does not exist.

Automated: every check must pass. Scanners report each check by its id.

squid

Squid proxy server.

unit: squid.service
state: masked

Remediation

Run systemctl mask --now squid.service, or apt purge squid if the package is not needed.

Restartnone
Disruptionlow

Rollback

Run systemctl unmask squid.service then systemctl enable --now squid.service.

squid

Generated from check squid: the engine writes the fix for every output, it sets the expected value and the check runs again after.

Each release turns these fixes into remediate.sh and an Ansible role per profile: dry run by default, a fix runs only when its check fails.

References

Mappings

FrameworkIDRelationNote
ANSSI-BP-028 - Recommandations de configuration d'un système GNU/Linux2.0R62partialR62 asks to disable every unneeded service; this control covers the web proxy.
NIST SP 800-53 Rev. 55.1.1CM-7partial

How this control relates to the other framework's: equivalent, stricter, looser, partial or related.

Threats mitigated

  • related CB-DEB-SVC-008 Disable web server services on systems that do not serve web content

People and lifecycle

Authors
Verified2026-10-18 by Sn0wAlice on 12, Proxmox VM, Debian 12 genericcloud image, kernel 6.1.0-54-cloud-amd64. Fresh image passes; with squid installed the check fails, fix masks, audit passes after reboot.
Verified2026-10-18 by Sn0wAlice on 13, Proxmox VM, Debian 13 genericcloud image, kernel 6.12.113+deb13-cloud-amd64. Fresh image passes; with squid installed the check fails, fix masks, audit passes after reboot.
Introduced inv0.1.0
Created, updated2026-10-18, 2026-10-18
Translationsfr