-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate SignatureSha256 for MSIX packages during the manifest valida…
…tion (#2384)
- Loading branch information
1 parent
a91559d
commit e8f5c43
Showing
24 changed files
with
528 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
15 changes: 15 additions & 0 deletions
15
src/AppInstallerCLITests/TestData/Manifest-Bad-InconsistentMsixBundleInstallerFields.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Bad manifest: Inconsistent field values in unsigned MSIX bundle | ||
PackageIdentifier: AppInstallerCliTest.InconsistentMsixBundleInstallerFields | ||
PackageVersion: 1.2.3.4 # Mismatching value with msix installer | ||
PackageLocale: es-MX | ||
PackageName: es-MX package name | ||
Publisher: es-MX publisher | ||
PackageFamilyName: FakeInstallerForTesting_Bad # Mismatching value with msix installer | ||
MinimumOSVersion: 5.6.7.8 # Mismatching value with msix installer | ||
InstallerType: msix | ||
Installers: | ||
- Architecture: x64 | ||
InstallerUrl: Installer-Good.msixbundle | ||
SignatureSha256: 0000000000000000000000000000000000000000000000000000000000000000 # Unexpected value for unsigned msix installer | ||
ManifestType: merged | ||
ManifestVersion: 1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...pInstallerCLITests/TestData/Manifest-Bad-InconsistentSignedMsixBundleInstallerFields.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Bad manifest: Inconsistent field values in signed MSIX bundle | ||
PackageIdentifier: AppInstallerCliTest.InconsistentMsixBundleInstallerFields | ||
PackageVersion: 1.2.3.4 # Mismatching value with msix installer | ||
PackageLocale: es-MX | ||
PackageName: es-MX package name | ||
Publisher: es-MX publisher | ||
PackageFamilyName: FakeInstallerForTesting_Bad # Mismatching value with msix installer | ||
MinimumOSVersion: 5.6.7.8 # Mismatching value with msix installer | ||
InstallerType: msix | ||
Installers: | ||
- Architecture: x64 | ||
InstallerUrl: Installer-Signed-Good.msixbundle | ||
SignatureSha256: 0000000000000000000000000000000000000000000000000000000000000000 # Inconsistent signature hash | ||
ManifestType: merged | ||
ManifestVersion: 1.0.0 |
15 changes: 15 additions & 0 deletions
15
src/AppInstallerCLITests/TestData/Manifest-Bad-InconsistentSignedMsixInstallerFields.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Bad manifest: Inconsistent field values in signed MSIX | ||
PackageIdentifier: AppInstallerCliTest.InconsistentMsixInstallerFields | ||
PackageVersion: 1.2.3.4 # Mismatching value with msix installer | ||
PackageLocale: es-MX | ||
PackageName: es-MX package name | ||
Publisher: es-MX publisher | ||
PackageFamilyName: FakeInstallerForTesting_Bad # Mismatching value with msix installer | ||
MinimumOSVersion: 5.6.7.8 # Mismatching value with msix installer | ||
InstallerType: msix | ||
Installers: | ||
- Architecture: x64 | ||
InstallerUrl: Installer-Signed-Good.msix | ||
SignatureSha256: 0000000000000000000000000000000000000000000000000000000000000000 # Inconsistent signature hash | ||
ManifestType: merged | ||
ManifestVersion: 1.0.0 |
13 changes: 13 additions & 0 deletions
13
src/AppInstallerCLITests/TestData/Manifest-Good-MsixBundleInstaller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
PackageIdentifier: AppInstallerCliTest.GoodMsixBundleInstaller | ||
PackageVersion: 43690.48059.52428.56797 | ||
PackageLocale: es-MX | ||
PackageName: es-MX package name | ||
Publisher: es-MX publisher | ||
PackageFamilyName: FakeInstallerForTesting_125rzkzqaqjwj | ||
MinimumOSVersion: 10.0.16299.0 | ||
InstallerType: msix | ||
Installers: | ||
- Architecture: x64 | ||
InstallerUrl: Installer-Good.msixbundle | ||
ManifestType: merged | ||
ManifestVersion: 1.0.0 |
14 changes: 14 additions & 0 deletions
14
src/AppInstallerCLITests/TestData/Manifest-Good-SignedMsixBundleInstaller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
PackageIdentifier: AppInstallerCliTest.GoodSignedMsixBundleInstaller | ||
PackageVersion: 43690.48059.52428.56797 | ||
PackageLocale: es-MX | ||
PackageName: es-MX package name | ||
Publisher: es-MX publisher | ||
PackageFamilyName: FakeInstallerForTesting_125rzkzqaqjwj | ||
MinimumOSVersion: 10.0.16299.0 | ||
InstallerType: msix | ||
Installers: | ||
- Architecture: x64 | ||
InstallerUrl: Installer-Signed-Good.msixbundle | ||
SignatureSha256: d70bd623f87b6ce4ddba4506c6000cf43ef3af4ab1207f5579ec43400de1623f | ||
ManifestType: merged | ||
ManifestVersion: 1.0.0 |
14 changes: 14 additions & 0 deletions
14
src/AppInstallerCLITests/TestData/Manifest-Good-SignedMsixInstaller.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
PackageIdentifier: AppInstallerCliTest.GoodSignedMsixInstaller | ||
PackageVersion: 43690.48059.52428.56797 | ||
PackageLocale: es-MX | ||
PackageName: es-MX package name | ||
Publisher: es-MX publisher | ||
PackageFamilyName: FakeInstallerForTesting_125rzkzqaqjwj | ||
MinimumOSVersion: 10.0.0.0 | ||
InstallerType: msix | ||
Installers: | ||
- Architecture: x64 | ||
InstallerUrl: Installer-Signed-Good.msix | ||
SignatureSha256: 50562001202c8dad456474d3f20903138d0a15c44ee497c3d4f82e85edbf2f97 | ||
ManifestType: merged | ||
ManifestVersion: 1.0.0 |
Oops, something went wrong.