documentation_complete: true


title: 'The OAuth Audit Logs Directory Must Have Mode 0700'

platform: ocp4-master-node

description: |-
    {{{ describe_file_permissions(file="/var/log/oauth-apiserver/", perms="0700") }}}

rationale: 'If users can write to audit logs, audit trails can be modified or destroyed.'

severity: medium


identifiers:
    cce@ocp4: CCE-90633-9

references:
    cis-csc: 1,11,12,13,14,15,16,18,19,3,4,5,6,7,8
    cobit5: APO01.06,APO11.04,APO12.06,BAI03.05,BAI08.02,DSS02.02,DSS02.04,DSS02.07,DSS03.01,DSS05.04,DSS05.07,DSS06.02,MEA02.01
    isa-62443-2009: 4.2.3.10,4.3.3.3.9,4.3.3.5.8,4.3.3.7.3,4.3.4.4.7,4.3.4.5.6,4.3.4.5.7,4.3.4.5.8,4.4.2.1,4.4.2.2,4.4.2.4
    isa-62443-2013: 'SR 2.1,SR 2.10,SR 2.11,SR 2.12,SR 2.8,SR 2.9,SR 5.2,SR 6.1'
    iso27001-2013: A.10.1.1,A.11.1.4,A.11.1.5,A.11.2.1,A.12.4.1,A.12.4.2,A.12.4.3,A.12.4.4,A.12.7.1,A.13.1.1,A.13.1.3,A.13.2.1,A.13.2.3,A.13.2.4,A.14.1.2,A.14.1.3,A.16.1.4,A.16.1.5,A.16.1.7,A.6.1.2,A.7.1.1,A.7.1.2,A.7.3.1,A.8.2.2,A.8.2.3,A.9.1.1,A.9.1.2,A.9.2.3,A.9.4.1,A.9.4.4,A.9.4.5
    nerc-cip: CIP-003-8 R5.1.1,CIP-003-8 R5.2,CIP-003-8 R5.3,CIP-004-6 R2.3,CIP-004-6 R3.3,CIP-007-3 R2.1,CIP-007-3 R2.2,CIP-007-3 R2.3,CIP-007-3 R5.1,CIP-007-3 R5.1.1,CIP-007-3 R5.1.2,CIP-007-3 R6.5
    nist: CM-6(a),AC-6(1),AU-9
    nist-csf: DE.AE-3,DE.AE-5,PR.AC-4,PR.DS-5,PR.PT-1,RS.AN-1,RS.AN-4
    pcidss: Req-10.5.2
    srg: SRG-APP-000118-CTR-000240,SRG-APP-000119-CTR-000245,SRG-APP-000120-CTR-000250,SRG-APP-000121-CTR-000255,SRG-APP-000122-CTR-000260,SRG-APP-000123-CTR-000265

ocil_clause: '{{{ ocil_clause_file_permissions(file="/var/log/oauth-apiserver/", perms="drwx------") }}}'

ocil: |-
    {{{ ocil_file_permissions(file="/var/log/oauth-apiserver/", perms="drwx------") }}}

template:
    name: file_permissions
    vars:
        filepath: /var/log/oauth-apiserver/
        filemode: '0700'
