# (L1) Ensure app permission policies are configured

(L1) Ensure app permission policies are configured. A Maester check for Teams, Apps.

Source: https://maester.dev/docs/tests/CIS.M365.8.4.1

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/henrikpiecha" title="Henrik Piecha · Original author"><img src="https://github.com/HenrikPiecha.png" alt="Henrik Piecha" width="28" height="28" loading="lazy" decoding="async" /></a><a class="test-byline-avatar" href="/contributors/merill" title="Merill Fernando · Co-contributor"><img src="https://github.com/merill.png" alt="Merill Fernando" width="28" height="28" loading="lazy" decoding="async" /></a><a class="test-byline-avatar" href="/contributors/marcojanse" title="Marco Janse · Co-contributor"><img src="https://github.com/MarcoJanse.png" alt="Marco Janse" width="28" height="28" loading="lazy" decoding="async" /></a><a class="test-byline-avatar" href="/contributors/mynster9361" title="-Mynster · Co-contributor"><img src="https://github.com/Mynster9361.png" alt="-Mynster" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/henrikpiecha">Henrik Piecha</a> with 3 co-contributors</span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/cis">CIS</a> · Teams · Apps · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId CIS.M365.8.4.1
```

## Overview

8.4.1 (L1) Ensure app permission policies are configured

This policy setting controls which class of apps are available for users to install.

#### Rationale

Allowing users to install third-party or unverified apps poses a potential risk of introducing malicious software to the environment.

#### Impact

Users will only be able to install approved classes of apps.

#### Remediation action

1. Navigate to [Microsoft Teams Admin Center](https://admin.teams.microsoft.com).
2. Click to expand **Teams apps**, then select **Permission policies**.
3. Select the **Global (Org-wide default)** policy.
4. Under **Third-party apps**, set to **Block all apps** (or **Allow specific apps and block all others**).
5. Under **Custom apps**, set to **Block all apps** (or **Allow specific apps and block all others**).
6. Click **Save**.

##### PowerShell

1. Connect to Teams PowerShell using `Connect-MicrosoftTeams`.
2. Run the following command to block all third-party and custom apps:

```powershell
Set-CsTeamsAppPermissionPolicy -Identity Global -GlobalCatalogAppsType AllowedAppList -GlobalCatalogApps @() -PrivateCatalogAppsType AllowedAppList -PrivateCatalogApps @()
```

#### Related links

* [Microsoft Teams Admin Center](https://admin.teams.microsoft.com).
* [Manage app permission policies in Microsoft Teams](https://learn.microsoft.com/microsoftteams/teams-app-permission-policies)
* [Set-CsTeamsAppPermissionPolicy](https://learn.microsoft.com/powershell/module/teams/set-csteamsapppermissionpolicy)
* [CIS Microsoft 365 Foundations Benchmark v7.0.0 - Page 526](https://www.cisecurity.org/benchmark/microsoft_365)

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | CIS.M365.8.4.1 |
| Severity | Medium |
| Suite | CIS |
| Product | Teams |
| Feature | Apps |
| Area | Applications and workload identities |
| Resource type | Tenant |
| User impact | Medium |
| Implementation cost | Medium |
| MITRE ATT&CK | T1195 Supply Chain Compromise, T1671 Cloud Application Integration |
| Supports benchmark | CIS Microsoft 365 Foundations Benchmark (version 7.0.0), requirement 8.4.1 |
| Benchmark level | L1 |
| Benchmark profiles | E3 Level 1 |
| Supports controls | cis-m365:8.4.1, nist-800-53-r5:CM-7 |
| PowerShell test | [Test-MtCisThirdPartyAndCustomApps](https://github.com/maester365/maester/blob/main/tests/cis/Test.CIS.M365.8.4.1.ps1) |
| Services | Teams |

</details>

## Source

- Test: [`tests/cis/Test.CIS.M365.8.4.1.ps1`](https://github.com/maester365/maester/blob/main/tests/cis/Test.CIS.M365.8.4.1.ps1)
- Documentation: [`tests/cis/Test.CIS.M365.8.4.1.md`](https://github.com/maester365/maester/blob/main/tests/cis/Test.CIS.M365.8.4.1.md)
