@@ -54,6 +54,9 @@ function Verify-Assemblies
54
54
if ($signature.SignerCertificate.Subject -eq " CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" ) {
55
55
Write-Debug " Valid ($ ( $signature.SignerCertificate.Thumbprint ) ): $Path "
56
56
}
57
+ elseif ($signature.SignerCertificate.Subject -eq " CN=.NET, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" ) {
58
+ Write-Debug " Valid ($ ( $signature.SignerCertificate.Thumbprint ) ): $Path "
59
+ }
57
60
elseif ($signature.SignerCertificate.Subject -eq " CN=Microsoft 3rd Party Application Component, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" ) {
58
61
Write-Debug " Valid ($ ( $signature.SignerCertificate.Thumbprint ) ): $Path [3rd Party]"
59
62
}
@@ -78,6 +81,10 @@ function Verify-Assemblies
78
81
elseif ($signature.SignerCertificate.Thumbprint -eq " 62009AAABDAE749FD47D19150958329BF6FF4B34" ) {
79
82
Write-Debug " Valid ($ ( $signature.SignerCertificate.Thumbprint ) ): $Path [Prod Signed]"
80
83
}
84
+ # For some dlls sign certificate is different signature. Skip such binaries.
85
+ elseif ($signature.SignerCertificate.Thumbprint -eq " F9A36937C16D0A69A43981DACB6B5686FAD84543" ) {
86
+ Write-Debug " Valid ($ ( $signature.SignerCertificate.Thumbprint ) ): $Path [Prod Signed]"
87
+ }
81
88
# Microsoft 3rd Party Authenticode Signature
82
89
elseif ($signature.SignerCertificate.Thumbprint -eq " 899FA016DEE8E665FF2A315A1151C43FB96C430B" ) {
83
90
Write-Debug " Valid ($ ( $signature.SignerCertificate.Thumbprint ) ): $Path [Prod Signed]"
@@ -94,6 +101,10 @@ function Verify-Assemblies
94
101
elseif ($signature.SignerCertificate.Thumbprint -eq " 81C25099511180D15B858DC2B7EC4C057B1CE4BF" ) {
95
102
Write-Debug " Valid ($ ( $signature.SignerCertificate.Thumbprint ) ): $Path [Prod Signed]"
96
103
}
104
+ # .NET Foundation, Newtonsoft.Json.dll 13.0.1
105
+ elseif ($signature.SignerCertificate.Thumbprint -eq " 4CFB89FAA49539A58968D81960B3C1258E8F6A34" ) {
106
+ Write-Debug " Valid ($ ( $signature.SignerCertificate.Thumbprint ) ): $Path [.NET Foundation Signed]"
107
+ }
97
108
else {
98
109
Write-FailLog " Invalid ($ ( $signature.SignerCertificate.Thumbprint ) ). File: $Path . [$ ( $signature.SignerCertificate.Subject ) ]"
99
110
}
0 commit comments