Skip to main content
Version: 3.0.0-preview

CIS.GH.1.3.8 - (L1) Ensure strict base permissions are set for repositories

Overviewโ€‹

1.3.8 (L1) Ensure strict base permissions are set for repositories

CIS Benchmark: CIS GitHub Benchmark v1.2.0

Assessment Status: Manual

Rationaleโ€‹

Base permissions apply broadly across organization repositories. Keeping the default at none or read follows least privilege and lowers the chance that every member can change code where they do not have a specific business need.

Impactโ€‹

Some members may lose default write access and require explicit repository, team, or role assignments before they can contribute changes.

Maester automation noteโ€‹

CIS marks this recommendation as Manual. This Maester test automates the portion of CIS GH 1.3.8 that maps to documented GitHub REST API evidence. It should be treated as automated evidence collection for the corresponding GitHub setting, not as a claim that every possible manual review path has been fully evaluated.

API evidenceโ€‹

Endpoint: GET /orgs/{org}

Evidence field: default_repository_permission

The test passes when default_repository_permission is none or read. It fails when the value is write or admin.

Permissions requiredโ€‹

GitHub requires organization-owner visibility for full organization details. Use Connect-MtGitHub with a classic PAT that has admin:org, or a fine-grained PAT with organization Members read and Administration read permissions.

Remediation summaryโ€‹

In the organization settings, open Member privileges and set Base permissions to None or Read.

Known limitationsโ€‹

This test verifies the organization default repository permission only. It does not review per-repository collaborators, teams, or custom access grants.

Test Metadataโ€‹

FieldValue
Test IDCIS.GH.1.3.8
SeverityHigh
SuiteCIS
ProductGitHub
FeatureOrganization settings
AreaAccess control
Resource typeTenant
User impactMedium
Implementation costMedium
MITRE ATT&CKT1677 Poisoned Pipeline Execution, T1195.002 Compromise Software Supply Chain
Supports benchmarkCIS GitHub Benchmark (version 1.2.0), requirement 1.3.8
Benchmark levelL1
Benchmark profilesGH Level 1
Supports controlscis-github:1.3.8, nist-800-53-r5:AC-6, nist-800-53-r5:AC-3
PowerShell testTest-MtCisGitHubStrictBasePermission
ServicesGitHub

Sourceโ€‹