Your operating system controls what application services can access and do. Its configuration helps determine whether a compromised service can read unrelated data, modify the system or reach other services.
That foundation deserves attention as attackers become more efficient. The UK’s National Cyber Security Centre assesses that AI is increasing the speed, scale and efficiency of existing attack methods. For teams building and operating critical applications, this adds urgency to maintaining effective security controls throughout the system’s life. NCSC assessment
Debian and Ubuntu provide established foundations for applications. Configuring either for your workload and security requirements remains an engineering responsibility.
If you don’t need it, remove it. If it can’t be removed, turn it off. If it can’t be turned off, lock it in.
Apply this principle to the software, services and access available in your system. Start by establishing what the application and system operations actually require. Remove unnecessary components, disable unused functionality and contain what must remain active.
“Lock it in” means restricting a component to its intended role: the files it can access, the connections it can establish and the privileges it can exercise.
The following four steps put this principle into practice and keep it effective as the system changes.
Start with the packages your application, its dependencies and system operations actually require.
Every additional package adds something to inventory, assess and maintain. Unnecessary software can also introduce functionality or dependencies that increase exposure.
Build from a minimal installation and document why additional packages are needed. Before removing software from an existing environment, check its dependencies and operational purpose, including monitoring, recovery and administration.
The useful question is: can your team explain why each part of the installed system is there?
Apply the same discipline to services, network connections and permissions. When a component must remain installed, disable functionality that the workload does not require.
Define which services should run, which systems they need to communicate with and which identities require access. Make exceptions explicit and review them as the application changes.
For example, a web service may need to accept requests through a reverse proxy and connect to a database. That does not automatically give it a reason to accept connections from every network or reach unrelated internal systems.
Record the intended communication paths, then test that required connections work and unintended connections are blocked.
For services that must remain active, apply the final part of the principle: lock them in.
A service should have access to the files, resources and system capabilities required for its function.
On systems using systemd, service-specific sandboxing can restrict parts of that access. The appropriate settings depend on the service and the environment; their effective behaviour needs verification. systemd sandboxing documentation
Consider a document-processing service:
Read incoming documents — Which input directory must it access?
Write processed results — Can write access be limited to its output directory?
Connect to a database — Which destination and credentials are required?
Run without administration rights — Which privileges can be removed?
This is an illustrative assessment, rather than a complete hardening profile. Its purpose is to make access decisions deliberate and testable.
Restrictions can help contain a compromised service. Their effectiveness depends on the controls applied, the environment and the attacker’s capabilities.
Security configuration needs continuing ownership.
Packages receive updates. Applications acquire dependencies. Operational teams introduce exceptions. A configuration that worked at initial deployment needs reassessment as those conditions change.
Keep an inventory of deployed software, assess relevant vulnerabilities and validate updates against both application functionality and security controls.
Include negative tests: can the service still access a directory it should be unable to read? Can it establish a connection that should be blocked?
Release SBOMs and operational inventories help connect what you supplied with what is deployed after updates and other changes.
Revisit the architecture principle during these reviews: is the component still needed, does it still need to be active, and are its restrictions still appropriate?
The four steps above describe the engineering work behind DeeDee Linux. We have already applied these principles to our Debian Stable foundation:
• Minimal installations and curated software. DeeDee starts small, with a selected catalogue of supported packages and maintained security configurations.
• Deny-by-default access. Restrictive defaults mean services, connections and permissions are enabled deliberately according to the application’s needs.
• Service-specific hardening. We configure restrictions, including systemd sandboxing, to limit what individual services can access and do.
• Continuing maintenance. We assess vulnerabilities and validate product updates against the supported DeeDee foundation. Release SBOMs and DeeDee Inspect’s operational inventories support understanding what was supplied and what is deployed.
We maintain this work as part of the product, sharing the engineering effort across customers. Your team can reuse that foundation instead of developing and maintaining every security configuration independently.
Your application still needs its own security assessment, access decisions and deployment testing. Visar maintains the DeeDee products within the agreed scope, giving your team more capacity to focus on the application and the people who depend on it.
Explore DeeDee Linux or discuss your application with Visar.