Skip to content

Commit b6b0b8d

Browse files
Remove all instances of policy MS.SHAREPOINT4.2v1 due to Microsoft update to custom scripting settings (#1447)
* Update removedpolicies.md with Sharepoint.4.2v1 * removed 4.2v1 * removed 4.2v1 * Deleted sharepointconfig_04 file * removed 4.2v1 * removed 4.2v1 * fix yaml linter issue in sharepoint.pnp.testplan.yml * removed sharepoint 4.1 & 4.2 checks --------- Co-authored-by: mitchelbaker-cisa <[email protected]>
1 parent e2f99c5 commit b6b0b8d

File tree

7 files changed

+7
-125
lines changed

7 files changed

+7
-125
lines changed

PowerShell/ScubaGear/Rego/SharepointConfig.rego

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -405,26 +405,3 @@ tests contains {
405405
)
406406
}
407407
#--
408-
409-
###################
410-
# MS.SHAREPOINT.4 #
411-
###################
412-
413-
#
414-
# MS.SHAREPOINT.4.2v1
415-
#--
416-
417-
# Microsoft has planned to remove the custom scripting configuration option
418-
# from SharePoint and OneDrive. We are setting this policy to not-implemented
419-
# and will likely remove it from the baseline in the next version.
420-
tests contains {
421-
"PolicyId": PolicyId,
422-
"Criticality": "Shall/Not-Implemented",
423-
"Commandlet": ["Get-SPOSite", "Get-PnPTenantSite"],
424-
"ActualValue": [],
425-
"ReportDetails": NotCheckedDeprecation,
426-
"RequirementMet": false
427-
} if {
428-
PolicyId := "MS.SHAREPOINT.4.2v1"
429-
}
430-
#--

PowerShell/ScubaGear/Testing/Unit/PowerShell/CreateReport/CreateReportStubs/TestResults.json

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3091,18 +3091,6 @@
30913091
"ReportDetails": "Requirement met",
30923092
"RequirementMet": true
30933093
},
3094-
{
3095-
"ActualValue": [
3096-
3097-
],
3098-
"Commandlet": [
3099-
3100-
],
3101-
"Criticality": "Shall/Not-Implemented",
3102-
"PolicyId": "MS.SHAREPOINT.4.1v1",
3103-
"ReportDetails": "Not currently checked automatically. See \u003ca href=\"https://github.com/cisagov/ScubaGear/blob/0.3.0/baselines/sharepoint.md#mssharepoint41v1\" target=\"_blank\"\u003eSecure Configuration Baseline policy\u003c/a\u003e for instructions on manual check",
3104-
"RequirementMet": false
3105-
},
31063094
{
31073095
"ActualValue": [
31083096

@@ -3141,19 +3129,6 @@
31413129
"ReportDetails": "Requirement met",
31423130
"RequirementMet": true
31433131
},
3144-
{
3145-
"ActualValue": [
3146-
2
3147-
],
3148-
"Commandlet": [
3149-
"Get-SPOSite",
3150-
"Get-PnPTenantSite"
3151-
],
3152-
"Criticality": "Shall",
3153-
"PolicyId": "MS.SHAREPOINT.4.2v1",
3154-
"ReportDetails": "Requirement met",
3155-
"RequirementMet": true
3156-
},
31573132
{
31583133
"ActualValue": [
31593134
2

PowerShell/ScubaGear/Testing/Unit/Rego/Sharepoint/SharepointConfig_04_test.rego

Lines changed: 0 additions & 19 deletions
This file was deleted.

PowerShell/ScubaGear/baselines/removedpolicies.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,9 @@ Users SHALL be prevented from running custom scripts on personal sites (aka OneD
6666
- _Removal date:_ July 2024
6767
- _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.
6868

69+
#### MS.SHAREPOINT.4.2v1
70+
Users SHALL be prevented from running custom scripts on self-service created sites.
71+
- _Removal date:_ November 2024
72+
- _Removal rationale:_ Microsoft has noted that after November 2024 it will no longer be possible to prevent SharePoint in resetting custom script settings to its original value (disabled) for all sites. All references including the policy, implementation steps, and section, by direction of CISA and Microsoft, have been removed as the setting will be automatically reverted back to **Blocked** within 24 hours.
73+
74+
**`TLP:CLEAR`**

PowerShell/ScubaGear/baselines/sharepoint.md

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -307,43 +307,4 @@ Reauthentication days for people who use a verification code SHALL be set to 30
307307

308308
6. Select **Save**.
309309

310-
## 4. Custom Scripts
311-
312-
This section provides policies for restricting custom scripts execution.
313-
314-
### Policies
315-
316-
#### MS.SHAREPOINT.4.2v1
317-
Users SHALL be prevented from running custom scripts on self-service created sites.
318-
319-
<!--Policy: MS.SHAREPOINT.4.2v1; Criticality: SHALL -->
320-
- _Rationale:_ Scripts on SharePoint sites run in the context of users visiting the site and therefore provide access to everything users can access. By preventing custom scripts on self-service created sites, administrators block a path for potentially malicious code execution.
321-
- _Last modified:_ June 2023
322-
- _MITRE ATT&CK TTP Mapping:_
323-
- [T1059: Command and Scripting Interpreter](https://attack.mitre.org/techniques/T1059/)
324-
- [T1059.009: Cloud API](https://attack.mitre.org/techniques/T1059/009/)
325-
326-
### Resources
327-
328-
- [Allow or prevent custom script \| Microsoft
329-
Documents](https://docs.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script)
330-
331-
### License Requirements
332-
333-
- N/A
334-
335-
### Implementation
336-
337-
#### MS.SHAREPOINT.4.2v1 Instructions
338-
339-
1. Sign in to the **SharePoint admin center**.
340-
341-
2. Select **Settings**.
342-
343-
3. Scroll down and select **classic settings page**.
344-
345-
4. Scroll to the **Custom Script** section.
346-
347-
5. Select **Prevent users from running custom script on self-service created sites**.
348-
349-
6. Select **OK**.
310+
**`TLP:CLEAR`**

Testing/Functional/Products/TestPlans/sharepoint.pnp.testplan.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,3 @@ TestPlan:
408408
Postconditions: []
409409
IsNotChecked: true
410410
ExpectedResult: false
411-
412-
- PolicyId: MS.SHAREPOINT.4.2v1
413-
TestDriver: RunScuba
414-
Tests:
415-
- TestDescription: MS.SHAREPOINT.4.2v1 Non-compliant DenyAddAndCustomizePages Not-Implemented
416-
Preconditions: []
417-
Postconditions: []
418-
IsNotChecked: true
419-
ExpectedResult: false

Testing/Functional/Products/TestPlans/sharepoint.spo.testplan.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -406,12 +406,3 @@ TestPlan:
406406
Postconditions: []
407407
IsNotChecked: true
408408
ExpectedResult: false
409-
410-
- PolicyId: MS.SHAREPOINT.4.2v1
411-
TestDriver: RunScuba
412-
Tests:
413-
- TestDescription: MS.SHAREPOINT.4.2v1 Non-compliant DenyAddAndCustomizePages Not-Implemented
414-
Preconditions: []
415-
Postconditions: []
416-
IsNotChecked: true
417-
ExpectedResult: false

0 commit comments

Comments
 (0)