Concept and mechanism
Security engineering should accompany requirements, design, implementation, and operation. Final SSDF 1.1 provides lifecycle practices; consulted revision 1.2 remains draft and should not be presented as a final standard. The pipeline needs to preserve artifact identity: testing one digest and later deploying a mutable tag can deliver different content.
Provenance helps relate an artifact to its build process but requires checking authenticity, builder identity, and expected policy. A valid signature from an untrusted identity does not resolve that decision. Record the exact approved content and the conditions under which results apply.
Guided application
In a fictional project, Terraform marks a password sensitive. That can hide display, but state may still store it; protect state, plans, and access, considering ephemeral mechanisms only where version and provider support them. In Ansible, check mode helps anticipate changes, but unsupported modules and conditions based on registered results limit simulation.
Diff can reveal secrets and needs targeted handling. For Linux pods, Restricted combines privilege limits, non-root execution, and other restrictions; one field does not establish complete compliance. Before release, rehearse data-aware rollback too: returning to an earlier binary does not automatically undo an incompatible schema.
Acceptance should connect execution and final state, leaving gaps explicitly open.
Design the allowlist around the server role
Application control requires defining what needs to execute and who can change that definition. A reconciliation server does not automatically need every utility produced by the middleware vendor. Hash rules identify specific bytes and require updating when an approved version arrives. Publisher rules can reduce that effort but need sufficient scope around product, version and role. A valid signature establishes a relationship with the signer; it does not decide whether the program is needed on that server.
Path-based rules depend on who can write to those paths and their components. If the partner intake process can place files under /opt/approved, allowing everything in that tree creates a weak boundary. Root ownership alone does not resolve group permissions or ACLs that retain write access. Design tests covering the authorized version, a different version, an unnecessary tool from the same vendor and content introduced by a process lacking approval authority. At handover, document how a legitimate update enters the allowlist and who reviews exceptions. The goal is a sustainable rule following the host's function, including recovery and maintenance. This also makes the impact of a proposed publisher-wide exception visible to the service owner.
Move from auditing to policy enforcement
An audit-mode pilot helps discover dependencies but does not establish blocking. If the log says “would block” and the application executed, record exactly those two facts. The control observed a hypothetical decision without enforcing it. Before moving to enforcement, classify representative events: the main application, overnight jobs, backup, diagnostic tools and recovery. A sample covering only office hours may miss month-end reconciliation. Functional inventory should guide the pilot's duration and coverage.
In a fictional rollout, associate the approved binary with its corresponding rule and distribute both in an order preserving continuity. Test acceptance of the new binary and rejection of an out-of-policy version. Retain a way to recover from a wrong rule without depending exclusively on the application it might block. A temporary exception should identify scope, reason, expiry and owner. At change closure, confirm the effective running mode instead of trusting only the configuration file. Acceptance includes both legitimate work and intended prevention. This distinction prepares APS to explain why an event metric is not a prevention metric. It also provides a clear exit criterion before removing the earlier version's authorization.
Diagnose SELinux before granting access
On RHEL 9, begin with the effective account, DAC permissions, process context, object context and denied operation. A correct SELinux type does not automatically grant reading that Unix permissions reject. A DAC denial may occur before the relevant SELinux decision and produce no expected AVC. When an AVC exists, relate source, target and permission to the functional requirement. An application attempting to write a sensitive file does not establish that it should be allowed to do so.
When moving web content to /srv/reports, chcon can change current context without establishing the persistent rule used by relabeling. Define the appropriate mapping through semanage fcontext and apply it through restorecon to the reviewed scope. Then confirm context and application access. If behavior depends on a boolean, inspect what that boolean actually grants; its name does not guarantee restriction to one destination. Avoid automatically installing audit2allow-generated modules from an incident interval. Red Hat guidance directs investigation first toward labeling and configuration. An authorized per-domain permissive test can support diagnosis, but observed AVCs still describe decisions that would be denied. Repeat acceptance after restoring enforcement, retaining both legitimate access and an intended negative check.
Combine execution controls within their actual scope
Each layer controls a different property. A noexec mount limits direct execution of files on that filesystem but does not automatically prevent an authorized interpreter on another volume from reading a script as data and executing its instructions. A partner-intake directory therefore also needs rules about who writes, which content is accepted and which processes interpret it. Testing should follow the application's real path rather than only an attempt to execute a file directly.
Seccomp BPF can filter syscalls and scalar arguments in the kernel-defined context. It cannot arbitrarily dereference a pointer to compare a pathname string. A proposal to allow openat only beneath /srv/reports is not implemented by comparing the argument's memory address. Choose mechanisms suitable for file policy and combine them with syscall reduction. Record legitimate functions requiring each capability. In a batch-service design, also test startup, diagnosis and recovery paths, which may use operations different from normal processing. These examples are documentation-based architecture exercises; this block's lab does not execute SELinux, mounts or seccomp. Preserve that distinction in the acceptance report. It helps the implementation team turn a reviewed design into explicit platform tests without treating prose as runtime evidence.
Drivers, modules and actual platform capabilities
Linux module-signing support does not establish that every unsigned module is rejected. Kernel configuration and enforcement state determine behavior. In a scenario without CONFIG_MODULE_SIG_FORCE and without active module.sig_enforce, an unsigned module may load and taint the kernel. That indicator records a condition; it does not turn the module into trusted content. Acceptance should test an authorized module and a load that policy requires rejecting, retaining the effective configuration.
On Windows, virtualization-backed memory integrity depends on capabilities and compatibility. An HVCI pilot blocking a required driver exposes a dependency to address before expanding deployment. The same configuration file does not create an IOMMU on a machine lacking one, nor does it guarantee active DMA protection. Group targets by hardware, firmware and drivers, verify operation and reserve a recovery route. The project owner needs a matrix of supported classes, exceptions and deadlines, while APS needs diagnostics and reversal criteria. Do not assign DMA-isolation assurance to Secure Boot merely because both appear in the same security panel. These are related controls with separate prerequisites, failure modes and acceptance evidence. The lesson's platform examples guide that review without claiming a Windows or kernel lab execution here.
DNS and email: identify the failed assurance
A DNSSEC failure can look like ordinary application unavailability. In a fictional example, the validating resolver returns SERVFAIL and records an expired signature, while a nonvalidating query returns an address. The contrast does not prove an attack but supports checking the clock, RRSIG validity and consistent zone and chain publication. Permanently disabling validation removes a symptom while withdrawing the assurance the project required. Record the confirmed cause and route any temporary exception through the defined authority. DNSSEC provides DNS-data authentication and integrity without automatically encrypting queried names; transport confidentiality is another decision.
For email, distinguish favorable SPF or DKIM from the alignment required by DMARC. Under the RFC 7489 contract used in these exercises, an aligned SPF route or a valid aligned DKIM route can satisfy DMARC authentication. A convincing display name does not replace those controls. Forwarding and body changes can affect results, so interpret headers within the actual delivery chain. This lesson's operational summary is to identify the mechanism, effective policy and legitimate function; test allowed and denied behavior; preserve boundaries and recovery. None of these protocols was executed by the local PKI lab, so protocol integration remains a separate implementation task.
Digest A tested and tag now at B: validate B or deploy A, without transferring approval by name.
Common pitfalls
sensitive as state removal; check as complete rehearsal; signature without trust; rollback without data.
Related topics: Governance, risk, and exceptions · Suppliers, data, and threats · Resilience and recovery dependencies
Maintain a verifiable chain from requirements through build, configuration, and execution.
References
- Secure Software Development Framework 1.1 · SP 800-218 final 1.1 (2022); 1.2 remains draft on publication register
- Guide to Application Whitelisting · SP 800-167 final, October 2015; application allowlisting concepts
- Troubleshooting problems related to SELinux · RHEL 9 rolling documentation inspected 2026-10-08
- Seccomp BPF filtering · Current primary kernel documentation inspected 2026-10-08; no kernel execution claimed
- mount: filesystem mount options · Current util-linux mount manual inspected 2026-10-08; noexec direct-execution scope
- Kernel module signing facility · Current primary kernel documentation inspected 2026-10-08
- Enable memory integrity · Windows 10/11 and listed Server editions; current rolling document inspected 2026-10-08
- DNS Security Introduction and Requirements · RFC 4033, March 2005; authentication/integrity scope
- Protocol Modifications for DNS Security Extensions · RFC 4035, March 2005; validating resolver response behavior
- Domain-based Message Authentication Reporting and Conformance · RFC 7489, March 2015, Informational; aligned SPF or DKIM authentication