Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove MS.SHAREPOINT.4.1v1 policy and references (baseline only) #1228

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion PowerShell/ScubaGear/baselines/removedpolicies.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@ N/A

### Removed Policies

N/A
#### MS.SHAREPOINT.4.1v1
Users SHALL be prevented from running custom scripts on personal sites (aka OneDrive).
- _Removal date:_ July 2024
- _Removal rationale:_ The option to enable and disable custom scripting on personal sites (aka OneDrive) found in policy MS.SHAREPOINT.4.1v1 has been deprecated by Microsoft. All references including the policy and its implementation steps have been removed as the setting is no longer present. Furthermore, it is no longer possible to allow custom scripts on personal sites.
24 changes: 0 additions & 24 deletions PowerShell/ScubaGear/baselines/sharepoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,17 +313,6 @@ This section provides policies for restricting custom scripts execution.

### Policies

#### MS.SHAREPOINT.4.1v1
Users SHALL be prevented from running custom scripts on personal sites (aka OneDrive).

<!--Policy: MS.SHAREPOINT.4.1v1; Criticality: SHALL -->
- _Rationale:_ Scripts in OneDrive folders run in the context of user visiting the site and have access to everything users can access. By preventing custom scripts on personal sites, administrators block a path for potentially malicious code execution.
- _Last modified:_ June 2023
- _MITRE ATT&CK TTP Mapping:_
- [T1027: Obfuscated Files or Information](https://attack.mitre.org/techniques/T1027/)
- [T1059: Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059/)
- [T1059.009: Cloud API](https://attack.mitre.org/techniques/T1059/009/)

#### MS.SHAREPOINT.4.2v1
Users SHALL be prevented from running custom scripts on self-service created sites.

Expand All @@ -345,19 +334,6 @@ Users SHALL be prevented from running custom scripts on self-service created sit

### Implementation

#### MS.SHAREPOINT.4.1v1 Instructions

1. Sign in to the **SharePoint admin center**.

2. Select **Settings**.

3. Scroll down and select **classic settings page**.

4. Scroll to the **Custom Script** section.

5. Select **Prevent users from running custom script on personal sites**.

6. Select **OK**.

#### MS.SHAREPOINT.4.2v1 Instructions

Expand Down
Loading