# App registrations should no longer use secrets

This test checks if you have any app registrations that have secrets configured. Using secrets is discouraged!

Source: https://maester.dev/docs/tests/MT.1057

<!-- 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/svrooij" title="Stephan van Rooij · Original author"><img src="https://github.com/svrooij.png" alt="Stephan van Rooij" 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/svrooij">Stephan van Rooij</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/maester">Maester</a> · Entra ID · Applications · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId MT.1057
```

## Overview

This test checks if you have any app registrations that have secrets configured. Using secrets is discouraged! There are better ways available to authenticate your applications.

#### Remediation action

Open all app registrations below and remove the secrets.

## Details

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

| Field | Value |
| --- | --- |
| Test ID | MT.1057 |
| Severity | Medium |
| Suite | Maester |
| Product | Entra ID |
| Feature | Applications |
| Area | Applications and workload identities |
| Resource type | Application |
| User impact | Low |
| Implementation cost | High |
| MITRE ATT&CK | T1078.004 Cloud Accounts, T1552 Unsecured Credentials |
| Supports controls | nist-800-53-r5:IA-5 |
| PowerShell test | [Test-MtAppRegistrationsWithSecrets](https://github.com/maester365/maester/blob/main/tests/maester/entra/Test.MT.1057.ps1) |
| Services | Graph |
| Long running | Yes |

</details>

## Source

- Test: [`tests/maester/entra/Test.MT.1057.ps1`](https://github.com/maester365/maester/blob/main/tests/maester/entra/Test.MT.1057.ps1)
- Documentation: [`tests/maester/entra/Test.MT.1057.md`](https://github.com/maester365/maester/blob/main/tests/maester/entra/Test.MT.1057.md)
