//Azure DevOps - Security Testing Guide (Ado-STG)/Organization

Testing for Insecure Organization Configuration


ID: AdoSTG-ORG-01
If you need help assessing the security of your Azure DevOps or organization, we offer a wide range of security services. So, always feel free to reach out at: Sales@enterprisesoftproducts.com
NOTICE: The Azure DevOps - Security Testing Guide (Ado-STG) is currently in BETA; this means that there might be substantial changes and some parts may contain errors or not be fully implemented.

1 - Summary

The "organization" is the fundamental building block in Azure DevOps; this is where all the projects, repos, files, and pipelines live.

Security and a secure setup are therefore key to remediating common security issues across all underlying projects.

The security of this is mostly related to user access control, package management, and audit logging.

The key values we are looking at here are:

2 - Test Objectives

3 - How to Test

These issues can be assessed from the organization's settings page in the web interface: https://dev.azure.com/{organization}/_settings/organizationOverview.

Review the following items under 'security' -> 'policies':

0Policy.ValidateSshKeyExpiration 
1Policy.LogAuditEvents 
2Policy.DisablePATCreation 
3Policy.ArtifactsExternalPackageProtectionToken 
4Policy.EnforceAADConditionalAccess 
5Policy.DisallowAadGuestUserAccess 
6Policy.AllowFeedbackCollection 

4 - Remediation

Reconfigure the settings to the following:

0'Policy.ValidateSshKeyExpiration':  
1{  
2 "reccomendedValue": True 
3}, 
4'Policy.LogAuditEvents': 
5{  
6 "reccomendedValue": True 
7}, 
8'Policy.DisablePATCreation': 
9{  
10 "reccomendedValue": True 
11}, 
12'Policy.ArtifactsExternalPackageProtectionToken':  
13{ 
14 "reccomendedValue": True 
15}, 
16'Policy.EnforceAADConditionalAccess':  
17{ 
18 "reccomendedValue": True 
19}, 
20'Policy.DisallowAadGuestUserAccess': 
21{  
22 "reccomendedValue": True 
23}, 
24'Policy.AllowFeedbackCollection': 
25{  
26"reccomendedValue": False 
27} 

5 - References