-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathOSPS-AC.yaml
More file actions
328 lines (325 loc) · 11.1 KB
/
OSPS-AC.yaml
File metadata and controls
328 lines (325 loc) · 11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
groups:
- id: AC
title: Access Control
description: |
Access Control focuses on the mechanisms and
policies that control access to the project's version
control system and CI/CD pipelines. These controls help
ensure that only authorized users can access sensitive
data, modify repository settings, or execute build and
release processes.
controls:
- id: OSPS-AC-01
title: |
Use MFA for Sensitive Actions
objective: |
Reduce the risk of account compromise or insider threats by requiring
multi-factor authentication for collaborators modifying the project
repository settings or accessing sensitive data.
group: AC
guidelines:
- reference-id: BPB
entries:
- reference-id: CC-G-1
- reference-id: CRA
entries:
- reference-id: 1.2d
- reference-id: 1.2e
- reference-id: 1.2f
- reference-id: SSDF
entries:
- reference-id: PO.3.2
- reference-id: PS.1
- reference-id: PS.2
- reference-id: CSF
entries:
- reference-id: PR.A-02
- reference-id: PR.A-05
- reference-id: OpenCRE
entries:
- reference-id: 486-813
- reference-id: 124-564
- reference-id: 347-352
- reference-id: 333-858
- reference-id: 152-725
- reference-id: 201-246
- reference-id: PSSCRM
entries:
- reference-id: G2.6
- reference-id: P3.3
- reference-id: E1.2
- reference-id: E1.3
- reference-id: E1.4
- reference-id: E3.1
- reference-id: SAMM
entries:
- reference-id: Operations -Environment Management -Configuration Hardening Lvl1
- reference-id: PCIDSS
entries:
- reference-id: 2.2.1
- reference-id: 8.2.1
- reference-id: 8.3.1
- reference-id: 800-161
entries:
- reference-id: AC-4(21)
- reference-id: AC-17
- reference-id: CM-5
- reference-id: CM-6
- reference-id: IA-2
- reference-id: IA-5
- reference-id: 1.2e
- reference-id: 1.2f
- reference-id: UKSSCOP
entries:
- reference-id: Claim 1.4.2
- reference-id: Claim 2.1.5
- reference-id: Claim 2.2.2
- reference-id: BSI-TR-03185-2
entries:
- reference-id: GV.02
assessment-requirements:
- id: OSPS-AC-01.01
text: |
When a user attempts to read or modify a sensitive resource in the project's
authoritative repository, the system MUST require the user to complete
a multi-factor authentication process.
applicability:
- maturity-1
- maturity-2
- maturity-3
recommendation: |
Enforce multi-factor authentication for the project's version
control system, requiring collaborators to provide a second form of
authentication when accessing sensitive data or modifying repository
settings. Passkeys are acceptable for this control.
- id: OSPS-AC-02
title: |
Restrict Collaborator Permissions
objective: |
Reduce the risk of unauthorized access to the project's repository by
limiting the permissions granted to new collaborators.
group: AC
guidelines:
- reference-id: CRA
entries:
- reference-id: 1.2f
- reference-id: SSDF
entries:
- reference-id: PO.2
- reference-id: PO.3.2
- reference-id: PS.1
- reference-id: PS.2
- reference-id: CSF
entries:
- reference-id: PR.AA-02
- reference-id: PR.AA-05
- reference-id: OpenCRE
entries:
- reference-id: 486-813
- reference-id: 124-564
- reference-id: 802-056
- reference-id: 368-633
- reference-id: 152-725
- reference-id: PSSCRM
entries:
- reference-id: P2.3
- reference-id: E1.2
- reference-id: E3.3
- reference-id: PCIDSS
entries:
- reference-id: 2.2.1
- reference-id: 800-161
entries:
- reference-id: AC-2
- reference-id: AC-3
- reference-id: AC-4(21)
- reference-id: AC-5
- reference-id: AC-6
- reference-id: CM-5
- reference-id: CM-7
- reference-id: UKSSCOP
entries:
- reference-id: Claim 2.2.2
- reference-id: BSI-TR-03185-2
entries:
- reference-id: GV.02
assessment-requirements:
- id: OSPS-AC-02.01
text: |
When a new collaborator is added, the version control system MUST
require manual permission assignment, or restrict the collaborator
permissions to the lowest available privileges by default.
applicability:
- maturity-1
- maturity-2
- maturity-3
recommendation: |
Most public version control systems are configured in this manner.
Ensure the project's version control system always assigns the lowest
available permissions to collaborators by default when added, granting
additional permissions only when necessary.
- id: OSPS-AC-03
title: |
Protect the Primary Branch from Accidental Modification
objective: |
Reduce the risk of accidental changes or deletion of the primary branch
of the project's repository by preventing unintentional modification.
group: AC
guidelines:
- reference-id: CRA
entries:
- reference-id: 1.2f
- reference-id: SSDF
entries:
- reference-id: PO.3.2
- reference-id: PS.1
- reference-id: PS.2
- reference-id: CSF
entries:
- reference-id: PR.A-02
- reference-id: PR.A-05
- reference-id: OpenCRE
entries:
- reference-id: 486-813
- reference-id: 124-564
- reference-id: 152-725
- reference-id: Scorecard
entries:
- reference-id: Branch-Protection
- reference-id: PSSCRM
entries:
- reference-id: P3.2
- reference-id: P3.5
- reference-id: E1.5
- reference-id: E3.1
- reference-id: PCIDSS
entries:
- reference-id: 2.2.1
- reference-id: 800-161
entries:
- reference-id: AC-3
- reference-id: AC-5
- reference-id: CM-3
- reference-id: CM-3(2)
- reference-id: CM-5
- reference-id: UKSSCOP
entries:
- reference-id: Claim 1.1.4
- reference-id: Claim 2.2.2
- reference-id: BSI-TR-03185-2
entries:
- reference-id: GV.02
- reference-id: QA.06
assessment-requirements:
- id: OSPS-AC-03.01
text: |
When a direct commit is attempted on the project's primary branch,
an enforcement mechanism MUST prevent the change from being applied.
applicability:
- maturity-1
- maturity-2
- maturity-3
recommendation: |
If the VCS is centralized, set branch protection on the primary branch
in the project's VCS. Alternatively, use a decentralized approach,
like the Linux kernel's, where changes are first proposed in another
repository, and merging changes into the primary repository requires a
specific separate act.
- id: OSPS-AC-03.02
text: |
When an attempt is made to delete the project's primary branch,
the version control system MUST treat this as a sensitive activity
and require explicit confirmation of intent.
applicability:
- maturity-1
- maturity-2
- maturity-3
recommendation: |
Set branch protection on the primary branch in the project's version
control system to prevent deletion.
- id: OSPS-AC-04
title: |
Enforce Least Privilege on CI/CD Pipelines
objective: |
Reduce the risk of unauthorized access to the project's build and release
processes by limiting the permissions granted to steps within the CI/CD
pipelines.
group: AC
guidelines:
- reference-id: CRA
entries:
- reference-id: 1.2d
- reference-id: 1.2e
- reference-id: 1.2f
- reference-id: SSDF
entries:
- reference-id: PO.2
- reference-id: PO.3.2
- reference-id: PS.1
- reference-id: PS.2
- reference-id: CSF
entries:
- reference-id: PR.AA-02
- reference-id: PR.AA-05
- reference-id: OpenCRE
entries:
- reference-id: 486-813
- reference-id: 124-564
- reference-id: 347-507
- reference-id: 263-284
- reference-id: 123-124
- reference-id: SLSA
entries:
- reference-id: Producer - Choose an appropriate build platform
- reference-id: Build platform - Isolation strength - Isolated
- reference-id: PSSCRM
entries:
- reference-id: P3.2
- reference-id: SAMM
entries:
- reference-id: Operations -Environment Management -Configuration Hardening Lvl1
- reference-id: PCIDSS
entries:
- reference-id: 2.2.1
- reference-id: 8.2.1
- reference-id: 800-161
entries:
- reference-id: AC-3(8)
- reference-id: AC-4
- reference-id: AC-4(6)
- reference-id: AC-6
- reference-id: AC-20
- reference-id: AC-20(1)
- reference-id: CM-5
- reference-id: CM-7
- reference-id: UKSSCOP
entries:
- reference-id: Claim 2.1.1
- reference-id: Claim 2.1.3
- reference-id: Claim 2.2.2
assessment-requirements:
- id: OSPS-AC-04.01
text: |
When a CI/CD task is executed with no permissions specified, the
CI/CD system MUST default the task's permissions to the lowest
permissions granted in the pipeline.
applicability:
- maturity-2
- maturity-3
recommendation: |
Configure the project's settings to assign the lowest available
permissions to new pipelines by default, granting additional
permissions only when necessary for specific tasks.
- id: OSPS-AC-04.02
text: |
When a job is assigned permissions in a CI/CD pipeline, the source
code or configuration MUST only assign the minimum privileges
necessary for the corresponding activity.
applicability:
- maturity-3
recommendation: |
Configure the project's CI/CD pipelines to assign the lowest available
permissions to users and services by default, elevating permissions
only when necessary for specific tasks. In some version control
systems, this may be possible at the organizational or repository
level. If not, set permissions at the top level of the pipeline.