π darkone.security.complement
Cross-cutting complementary measures β Annex A (C1βC12). (wip)
These measures have no ANSSI number but are essential to the guideβs spirit. Covers linux-hardened patches (C1), Lockdown LSM (C2), USBGuard (C3), nftables deny-by-default (C4), hardened SSH (C5), LUKS2 (C6), NTP/NTS (C7), secure DNS (C8), disabled core dumps (C9), PAM anti brute-force (C10), legal banners (C11), and cron/at restriction (C12).
Options
Section titled βOptionsβ- enable
boolEnable complementary ANSSI measures (C1βC12). - lockdownLevel
enum [ "none" "integrity" "confidentiality" ]Lockdown LSM level (C2) - lsmStack
listOf strLSM stack order (C2, R11, R20). Modifies boot.kernelParams lsm=β¦ - ntpServers
listOf strNTP/NTS servers (C7). - useNts
boolEnable NTS (Network Time Security) for NTP authentication (C7). - sshBanner
strSSH banner displayed before authentication (C11). - cronAllowedUsers
listOf strUsers allowed to schedule cron jobs (C12). - atAllowedUsers
listOf strUsers allowed to schedule at jobs (C12). Mirrors cronAllowedUsers by default. - egressAllowlist
listOf strIPv4/IPv6 addresses or CIDRs allowed outbound under the C4 reinforced egress deny-by-default policy. Empty list keeps the policy but only loopback and established/related traffic pass (proxy required).
darkone.security.complement = { enable = false; lockdownLevel = "integrity"; lsmStack = [ ]; ntpServers = [ ]; useNts = true; sshBanner = '' βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β DNF NETWORK NODE β β Restricted and monitored access. β β Unauthorized access may result in criminal prosecution β β under Articles 323-1 to 323-8 of the French Penal Code. β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ ''; cronAllowedUsers = [ ]; atAllowedUsers = [ ]; egressAllowlist = [ ];};