Microsoft.AzureStack.ReadinessChecker.Utilities.psm1

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
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
function ConvertTo-DeploymentData {
    <#
    .SYNOPSIS
        Validate JSON file provided
    .DESCRIPTION
        Validate JSON file can parsed.
    .EXAMPLE
        Test-ValidationJSON -path .\some.json
    .INPUTS
        path to json file
    .OUTPUTS
        None - logging only
    #>

    [CmdletBinding()]
    param ($path)
    $thisFunction = $MyInvocation.MyCommand.Name
    Try {
        $deploymentData = Get-Content $path -ErrorAction Stop | ConvertFrom-Json
        Write-AzsReadinessLog -Message ('Validated JSON: {0}' -f $path) -Type Info -Function $thisFunction
    }
    Catch {
        if ($_.exception -like '*Invalid JSON primitive*') {
            Write-AzsReadinessLog -Message ('Invalid JSON file provided: {0}' -f $path) -Type Error -Function $thisFunction
            throw ('Invalid JSON file provided: {0}' -f $path)
        }
        else {
            Write-AzsReadinessLog -Message ('Reading JSON file {0} failed with error: {1}' -f $_.exception.message) -Type Error -Function $thisFunction
            throw ('Reading JSON file {0} failed with error: {1}' -f $_.exception)
        }
    }
    $deploymentData
}

function Test-CertificateReuse {
    <#
    .SYNOPSIS
        Checks if certificate validation output contains certificates that are reused.
    .DESCRIPTION
        During validation certificate are given a unique id, that unique id is compared against the certificate thumbprints to detect reuse.
    .EXAMPLE
        PS C:\> Test-CertificateReuse -validationResult $paasCertificateValidationResult
        Checks if certificate validation output contains certificates that are reused.
    #>

    param ($validationResult)
    $thisFunction = $MyInvocation.MyCommand.Name
    Write-AzsReadinessLog -Message 'Certificate Reuse Detection started' -Type Info -Function $thisFunction
    # Write new property to result with ReuseCount
    $thumbprintHash = @{}
    $group = $validationResult |
        Group-Object Thumbprint, CertificateId |
        Select-Object Name |
        ForEach-Object {$_.name.split(',')[0]} |
        Group-Object |
        Select-Object Name, Count
    $group | ForEach-Object { $thumbprintHash[$_.Name] = $_.count}
    foreach ($key in $thumbprintHash.keys) {
        $validationResult | Where-Object thumbprint -eq $key | Add-Member -NotePropertyName ReuseCount -NotePropertyValue $thumbprintHash[$key]
    }
    if ($thumbprintHash.Values -gt 1) {
        $duplicateErrorMsg = 'Duplicate Certificate Detected. We recommend using seperate certificates for each endpoint.'
        Write-AzsReadinessLog -Message "`nWARNING: $duplicateErrorMsg `n" -Type Warning -Function $thisFunction -toScreen
        foreach ($key in $thumbprintHash.keys) {
            if ($thumbprintHash[$key] -gt 1) {
                Write-AzsReadinessLog ("`t Thumbprint {0} : Count {1}" -f $key, $thumbprintHash[$key]) -Type Warning -Function $thisFunction -toscreen
                #inject warning result and failuredetail on ParsePFX test for certificate, for reporting purposes.
                $validationResult | Where-Object {$_.Thumbprint -eq $key -and $_.Test -eq 'Parse PFX'} |
                    ForEach-Object {$_.result = 'Warning'}
                $validationResult | Where-Object {$_.Thumbprint -eq $key -and $_.Test -eq 'Parse PFX'} |
                    ForEach-Object {$_.FailureDetail += $duplicateErrorMsg}
            }
        }
    }
    Write-AzsReadinessLog -Message 'Certificate Reuse Detection Completed' -Type Info -Function $thisFunction
    $validationResult
}

function Test-PasswordLength {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory = $true)]
        [int] $MinimumCharactersInPassword,

        [Parameter(Mandatory = $true)]
        [ValidateNotNullOrEmpty()]
        [SecureString]
        $Password,

        [Parameter(Mandatory = $true)]
        [ValidateNotNullOrEmpty()]
        [String]
        $CredentialDescription
    )

    if ($Password.Length -lt $MinimumCharactersInPassword) {
        throw ("Password length cannot be fewer than '{0}' characters, for '{1}'" -f $MinimumCharactersInPassword, $CredentialDescription)
    }
}

# Test that the Password has only valid characters, does not contain the username, and satisfies the complexity requirements
function Test-PasswordComplexity {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory = $false)]
        [ValidateNotNullOrEmpty()]
        [String]
        $Username,

        [Parameter(Mandatory = $true)]
        [ValidateNotNullOrEmpty()]
        [SecureString]
        $Password,

        [Parameter(Mandatory = $true)]
        [ValidateNotNullOrEmpty()]
        [String]
        $CredentialDescription
    )

    $unmanagedString = [System.IntPtr]::Zero;
    try {
        $unmanagedString = [Runtime.InteropServices.Marshal]::SecureStringToGlobalAllocUnicode($Password)
        $plainPassword = [Runtime.InteropServices.Marshal]::PtrToStringUni($unmanagedString)
    }
    finally {
        [Runtime.InteropServices.Marshal]::ZeroFreeGlobalAllocUnicode($unmanagedString)
    }

    # Letter, Mark, Symbol, Number, Punctuation allowed
    if ($plainPassword -cnotmatch "^[\p{L}\p{M}\p{S}\p{N}\p{P}]+$") {
        throw ("Password contains bad characters. Only Letters, Marks, Symbols, Numbers and Punctuations are allowed. For '{0}'" -f $CredentialDescription)
    }

    # Password should not contain the entire username or part of the username
    if ($Username) {
        # Passwords may not contain the user's samAccountName (Account Name) value or entire displayName (Full Name value). Both checks are not case sensitive.
        # The samAccountName is checked in its entirety only to determine whether it is part of the password.
        # If the samAccountName is less than three characters long, this check is skipped.
        if ($Username.Length -ge 3 -and $plainPassword.ToLower().Contains($Username.ToLower())) {
            throw ("Password should not contain username or part of username. For '{0}'" -f $CredentialDescription)
        }

        # The displayName is parsed for delimiters: commas, periods, dashes or hyphens, underscores, spaces, pound signs, and tabs.
        # If any of these delimiters are found, the displayName is split and all parsed sections (tokens) are confirmed to not be included in the password.
        $usernameTokens = $Username.Split(  [char]0x2010, # Hyphen
            [char]0x0009, # Tab
            [char]0x002C, # Comma
            [char]0x002E, # Period
            [char]0x2012, # Figure Dash
            [char]0x2013, # EN Dash
            [char]0x2014, # EM Dash
            [char]0x2015, # Horizontal bar
            [char]0x2053, # Swung dash
            [char]0x002D, # Hyphen-Minus
            [char]0x005F, # Low line
            [char]0x0020, # Space
            [char]0x00A3) # Pound Sign

        foreach ($usernameToken in $usernameTokens) {
            # Tokens that are less than three characters are ignored, and substrings of the tokens are not checked.
            if ($usernameToken.Length -ge 3 -and $plainPassword.ToLower().Contains($usernameToken.ToLower())) {
                throw ("Password should not contain username or part of username. For '{0}'" -f $CredentialDescription)
            }
        }
    }

    # Validate that password satisifies at least 3 of 5 categories to meet complexity requirements
    $category_count = 0, 0, 0, 0, 0
    for ($i = 0; $i -lt $plainPassword.length; $i++) {
        # Uppercase letters of European languages (A through Z, with diacritic marks, Greek and Cyrillic characters)
        if ($plainPassword[$i] -cmatch "^[\p{Lu}]+$") {
            $category_count[0]++
        }

        # Lowercase letters of European languages (a through z, sharp-s, with diacritic marks, Greek and Cyrillic characters)
        if ($plainPassword[$i] -cmatch "^[\p{Ll}]+$") {
            $category_count[1]++
        }

        # Base 10 digits (0 through 9)
        if ($plainPassword[$i] -cmatch "^[0-9]+$") {
            $category_count[2]++
        }

        # Non-alphanumeric characters (special characters) (for example, !, $, #, %)
        if ($plainPassword[$i] -cmatch "^[\p{P}]+$" -or $plainPassword[$i] -cmatch "^[\p{S}]+$") {
            $category_count[3]++
        }

        # Any Unicode character that is categorized as an alphabetic character but is not uppercase or lowercase. This includes Unicode characters from Asian languages.
        if ($plainPassword[$i] -cmatch "^[\p{L}]+$" -and $plainPassword[$i] -cnotmatch "^[\p{Lu}]+$" -and $plainPassword[$i] -cnotmatch "^[\p{Ll}]+$") {
            $category_count[4]++
        }
    }
    $plainPassword = "" # reset the value, in case it persists

    $total_category_count = 0
    foreach ($count in $category_count) {
        if ($count -gt 0) {
            $total_category_count++
        }
    }

    if ($total_category_count -lt 3) {
        throw ("Password does not meet complexity requirements. It should contain at least 3 of the following: Uppercase letter, lowercase letter, numbers from 0-9, special characters, alphabetical character that is neither uppercase nor lowercase. For '{0}'" -f $CredentialDescription)
    }
}

function Set-SecurityProtocol {
    param ([Net.SecurityProtocolType]$securityProtocol)
    $thisFunction = $MyInvocation.MyCommand.Name

    if ([Net.ServicePointManager]::SecurityProtocol -notmatch $securityProtocol) {
        Write-AzsReadinessLog -Message ("{0} not found in current Service Point Manager. Current protocol(s): {1}. Attempting to add for session." -f $securityProtocol, [Net.ServicePointManager]::SecurityProtocol) -Type Info -Function $thisFunction
        try {
            [Net.ServicePointManager]::SecurityProtocol = $securityProtocol
            Write-AzsReadinessLog -Message ("Successfully added {0} to Service Point Manager." -f $securityProtocol) -Type Info -Function $thisFunction
        }
        catch {
            Write-AzsReadinessLog -Message ("Setting {0} failed with {1}. Script will continue with existing Security Protocol: {2}" -f $securityProtocol, $_.exception, [Net.ServicePointManager]::SecurityProtocol) -Type Warning -Function $thisFunction
        }
    }
    else {
        Write-AzsReadinessLog -Message ("{0} found in current Service Point Manager. No action required." -f $securityProtocol) -Type Info -Function $thisFunction
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