Skip to content

Commit 5a9b498

Browse files
authored
Update GWS.CLASSROOM.1.2 and 1.2 (#802)
* Update baseline text * Change class to classes * Update rego
1 parent 5e490db commit 5a9b498

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

scubagoggles/Testing/RegoTests/classroom/classroom_api01_test.rego

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ BadClassroomApi01 := {
3131
"topOU": {
3232
"classroom_class_membership": {
3333
"whoCanJoinClasses": "ANYONE_IN_DOMAIN",
34-
"whichClassesCanUsersJoin": "CLASSES_IN_ALLOWLISTED_DOMAINS"
34+
"whichClassesCanUsersJoin": "ANY_GOOGLE_WORKSPACE_CLASS"
3535
},
3636
"classroom_service_status": {"serviceState": "ENABLED"}
3737
},
@@ -40,7 +40,7 @@ BadClassroomApi01 := {
4040
"thirdOU": {
4141
"classroom_class_membership": {
4242
"whoCanJoinClasses": "ANY_GOOGLE_WORKSPACE_USER",
43-
"whichClassesCanUsersJoin": "CLASSES_IN_ALLOWLISTED_DOMAINS"
43+
"whichClassesCanUsersJoin": "ANY_GOOGLE_WORKSPACE_CLASS"
4444
},
4545
},
4646
"fourthOU": {
@@ -81,7 +81,7 @@ test_ClassroomAPI_JoinClasses_Incorrect_1 if {
8181
PolicyId := ClassroomId1_2
8282
Output := tests with input as BadClassroomApi01
8383

84-
whichClasses := "Classes in allowlisted domains"
84+
whichClasses := "Any Google Workspace class"
8585
failedOU := [{"Name": "thirdOU",
8686
"Value": NonComplianceMessage1_2(whichClasses)},
8787
{"Name": "topOU",

scubagoggles/baselines/classroom.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@ This section covers who has the ability to join classes and what classes the use
3939
### Policies
4040

4141
#### GWS.CLASSROOM.1.1v0.6
42-
Who can join classes in your domain SHALL be set to Users in your domain only.
42+
Who can join classes in your domain SHALL be restricted to users in your domain or allowlisted domains.
4343

44-
- _Rationale:_ Classes can contain private or otherwise sensitive information. Restricting classes to users in your domain helps prevent data leakage resulting from unauthorized classroom access.
45-
- _Last modified:_ September 2023
44+
- _Rationale:_ Classes can contain private or otherwise sensitive information. Restricting access to your classes helps prevent data leakage resulting from unauthorized classroom access.
45+
- _Last modified:_ October 2025
4646
- _NIST SP 800-53 Rev. 5 FedRAMP High Baseline Mapping:_ AC-3
4747
- MITRE ATT&CK TTP Mapping
4848
- [T1530: Data from Cloud Storage](https://attack.mitre.org/techniques/T1530/)
4949
- [T1537: Transfer Data to Cloud Account](https://attack.mitre.org/techniques/T1537/)
5050

5151
#### GWS.CLASSROOM.1.2v0.6
52-
Which classes users in your domain can join SHALL be set to Classes in your domain only.
52+
Which classes users in your domain can join SHALL be restricted to classes in your domain or allowlisted domains.
5353

54-
- _Rationale:_ Allowing users to join a class from outside your domain could allow for data to be exfiltrated to entities outside the control of the organization creating a significant security risk.
55-
- _Last modified:_ January 2025
54+
- _Rationale:_ Allowing users to join classes in arbitrary domains could allow for data to be exfiltrated to entities outside the control of the organization.
55+
- _Last modified:_ October 2025
5656
- _NIST SP 800-53 Rev. 5 FedRAMP High Baseline Mapping:_ SC-7(10)
5757
- MITRE ATT&CK TTP Mapping
5858
- [T1530: Data from Cloud Storage](https://attack.mitre.org/techniques/T1530/)

scubagoggles/rego/Classroom.rego

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ NonCompliantOUs1_1 contains {
3535
ClassroomEnabled(OU)
3636
whoCanJoin := settings.classroom_class_membership.whoCanJoinClasses
3737
whoCanJoin != "ANYONE_IN_DOMAIN"
38+
whoCanJoin != "ANYONE_IN_ALLOWLISTED_DOMAINS"
3839
}
3940

4041
tests contains {
@@ -80,6 +81,7 @@ NonCompliantOUs1_2 contains {
8081
ClassroomEnabled(OU)
8182
whichClasses := settings.classroom_class_membership.whichClassesCanUsersJoin
8283
whichClasses != "CLASSES_IN_DOMAIN"
84+
whichClasses != "CLASSES_IN_ALLOWLISTED_DOMAINS"
8385
}
8486

8587
tests contains {

0 commit comments

Comments
 (0)