# Reauthentication days for people who use a verification code SHALL be set to 30 days or less

Reauthentication days for people who use a verification code SHALL be set to 30 days or less.

Source: https://maester.dev/docs/tests/CISA.MS.SHAREPOINT.3.3

<!-- 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/mynster9361" title="-Mynster · Original author"><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/mynster9361">-Mynster</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/cisa">CISA</a> · SharePoint · External sharing · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId CISA.MS.SHAREPOINT.3.3
```

## Overview

Reauthentication days for people who use a verification code SHALL be set to 30 days or less.

Rationale: Requiring periodic reauthentication via verification codes ensures that external users maintain valid access and reduces the risk of prolonged unauthorized access through stale sessions.

#### Remediation action:

1. Sign in to the [SharePoint admin center](https://go.microsoft.com/fwlink/?linkid=2185219).
2. Select Policies > Sharing.
3. Under Advanced settings, check **Guests must sign in using the same account to which sharing invitations are sent**.
4. Check **People who use a verification code must reauthenticate after this many days** and set to **30** days or less.
5. Select Save.

#### Related links

* [CISA 3 Verification Code Reauth - MS.SHAREPOINT.3.3v1](https://github.com/cisagov/ScubaGear/blob/main/PowerShell/ScubaGear/baselines/sharepoint.md#mssharepoint33v1)
* [CISA ScubaGear Rego Reference](https://github.com/cisagov/ScubaGear/blob/main/PowerShell/ScubaGear/Rego/SharepointConfig.rego)

## Details

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

| Field | Value |
| --- | --- |
| Test ID | CISA.MS.SHAREPOINT.3.3 |
| Severity | Medium |
| Suite | CISA |
| Product | SharePoint |
| Feature | External sharing |
| Area | Authentication |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Low |
| MITRE ATT&CK | T1213.002 Sharepoint, T1530 Data from Cloud Storage |
| Supports benchmark | CISA SCuBA Secure Configuration Baselines for Microsoft 365 (version ScubaGear main, 2026-10-11), requirement MS.SHAREPOINT.3.3 |
| Criticality | SHALL |
| Upstream requirement | MS.SHAREPOINT.3.3v2 |
| Supports controls | cisa-scuba:MS.SHAREPOINT.3.3, nist-800-53-r5:IA-11 |
| PowerShell test | [Test-MtCisaSpoVerificationCodeReauth](https://github.com/maester365/maester/blob/main/tests/cisa/sharepoint/Test.CISA.MS.SHAREPOINT.3.3.ps1) |
| Services | SharePointOnline |

</details>

## Source

- Test: [`tests/cisa/sharepoint/Test.CISA.MS.SHAREPOINT.3.3.ps1`](https://github.com/maester365/maester/blob/main/tests/cisa/sharepoint/Test.CISA.MS.SHAREPOINT.3.3.ps1)
- Documentation: [`tests/cisa/sharepoint/Test.CISA.MS.SHAREPOINT.3.3.md`](https://github.com/maester365/maester/blob/main/tests/cisa/sharepoint/Test.CISA.MS.SHAREPOINT.3.3.md)
