--- title: "Appliance STIG Hardening" slug: "appliance-stig-hardening-v7-0" description: "Apply STIG hardening to your AppGate ZTNA appliances with our customization package, ensuring compliance and enhanced security for your systems." tags: ["STIG", "System Security", "Security Best Practices", "System Hardening"] updated: 2026-11-19T14:22:39Z published: 2026-11-19T14:22:39Z canonical: "support.appgate.com/appliance-stig-hardening-v7-0" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.appgate.com/llms.txt > Use this file to discover all available pages before exploring further. # Appliance STIG Hardening The [STIG customization package](https://github.com/appgate/sdp-stig-appliance) applies STIG hardening to your AppGate ZTNA appliances. Use this customization as part of your STIG compliance workflow for a seeded appliance. --- ## Installing the Customization To install the customization, complete the following steps: 1. Sign in to the AppGate admin UI. 2. Upload the `.zip` package to the **Appliance Customizations** page (System > [Appliance Customizations](/v1/docs/appliance-customizations-v7-0)). 3. Apply the customization to each appliance where STIG settings must be applied (System > Appliances > [Miscellaneous](/v1/docs/adding-a-new-appliance-v7-0#miscellaneous) settings). --- ## View cz-stig commands To view available commands: 1. SSH in to the appliance. 2. Run `man cz-stig`. Use these options to further harden the appliance if necessary. > [!NOTE] > NOTE > > The following optional commands can affect user experience or system performance. Use these commands only if compliance requires them. | Description | Command | | --- | --- | | Enable `auditd` | `cz-config set -j hardening/auditd true` | | Enable `auditd` from boot | `cz-config set kernel/cmdlineOptions "$(cz-config get kernel/cmdlineOptions) audit=1"` | | Set issue string | `cz-config set motd/issue.net "$(cat /usr/share/stigdata/dod_banner.txt)"` `cz-config set motd/issue "$(cat /usr/share/stigdata/dod_banner.txt)"` | | Lock single-user and maintenance mode | `cz-config set -j kernel/lockGrubEdit true` | | Set the password, even in cloud environments | Run `passwd`, copy the hash from the shadow file, and replace it in the command: `cz-config set users/0/encrypted-password '<hash>'` `cz-configd set -j users/0/nopasswd false` | | Denylist USB storage kernel module | `cz-config set kernel/cmdlineOptions "$(cz-configd get kernel/cmdlineOptions) module_blacklist=usb_storage"` `cz-configd set -j hardening/blacklistUsbStorage true` | | Harden the SSH configuration | `cz-config set -j hardening/hardenSSH true` | --- ## Optional Configurations You can make further customizations by configuring the following lines in `/data/settings.config`: - Line 2: Edit the expected underlying OS value. - Line 3: Change the error message text. --- ## Packaging Changes If you modify the package contents under `src/`, use the following zip structure. Required layout: ```plaintext folder.zip                                                                                    start  status  stop  data/... ``` --- ## Tailoring Profile The customization repository includes a SCAP tailoring file that controls which findings the scan selects. Mark findings as *Not selected* in the tailoring file to exclude them from checks. Internal scans use `CAN_Ubuntu_24-04_STIG001.004.006MAC-2_Public_tailored_tailoring.xml` to achieve the advertised score. A separate attestation outlines justifications for the exclusions in this file. Contact an AppGate ZTNA representative to obtain a copy.