diff --git a/docs/harbian_audit_Debian_9_Benchmark_v0.1.mkd b/docs/harbian_audit_Debian_9_Benchmark_v0.1.mkd index d643bbe..46163a4 100644 --- a/docs/harbian_audit_Debian_9_Benchmark_v0.1.mkd +++ b/docs/harbian_audit_Debian_9_Benchmark_v0.1.mkd @@ -44,6 +44,32 @@ If "no-debsig" is set, this is a finding. ### Remediation Delete the configuration line containing "no-debsig". +## 1.4 Set no allow insecure repository when by apt update (scored) + +### Profile Applicability +Level 2 + +### Description +The operating system must prevent the installation of software, patches, service packs, device drivers, or operating system components of packages without verification of the repository metadata. + +### Rationale +Changes to any software components can have significant effects on the overall security of the operating system. This requirement ensures the software has not been tampered with and that it has been provided by a trusted vendor. Accordingly, patches, service packs, device drivers, or operating system components must be signed with a certificate recognized and approved by the organization. Verifying the authenticity of the software prior to installation validates the integrity of the patch or upgrade received from a vendor. This ensures the software has not been tampered with and that it has been provided by a trusted vendor. Self-signed certificates are disallowed by this requirement. The operating system should not have to verify the software again. This requirement does not mandate DoD certificates for this purpose; however, the certificate used to verify the software must be from an approved Certificate Authority. + +### Aduit + +Verify the operating system prevents the installation of patches, service packs, device drivers, or operating system components of local packages without verification of the repository metadata. Check that apt verifies the package metadata prior to install with the following command: +``` +# grep AllowInsecureRepositories /etc/apt/ -r +Acquire::AllowInsecureRepositories "true"; +``` +If "AllowInsecureRepositories" is set to "true", this is a finding. + +### Remediation +Configure the operating system to verify the repository metadata by setting the following options in the "/etc/apt/[conf-file]" file: +``` +Acquire::AllowInsecureRepositories "false"; +``` + ## 2.26 Set nosuid option for /home filesystem/Partition (scored) ### Profile Applicability