Title: macOS pwsh binary for v7.4.4 is not code signed · Issue #24088 · PowerShell/PowerShell · GitHub
Open Graph Title: macOS pwsh binary for v7.4.4 is not code signed · Issue #24088 · PowerShell/PowerShell
X Title: macOS pwsh binary for v7.4.4 is not code signed · Issue #24088 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/24088
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"macOS pwsh binary for v7.4.4 is not code signed","articleBody":"### Prerequisites\n\n- [X] Write a descriptive title.\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\n- [X] Search the existing issues.\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\n\n### Steps to reproduce\n\nThe `pwsh` binary for version 7.4.4, located at `/usr/local/microsoft/powershell/7/pwsh` (symlinked to `/usr/local/bin/pwsh`) is not code signed, and was in previous releases, most recently 7.4.2. \r\n\r\nThis constitutes a security issue as there is no way to confirm `pwsh` has not been modified without a valid Microsoft application signature attached.\n\n### Expected behavior\n\n```console\nRunning `codesign -dvv` on the 7.4.4 binary shows a proper certificate chain with Microsoft's signing authority and team identifier, like is displayed with the 7.4.2 release:\r\n\r\n\r\n➜ Payload codesign -dvv usr/local/microsoft/powershell/7/pwsh\r\nExecutable=/private/tmp/powershell-7.4.2-osx-arm64.pkg/powershell-7.4.2.pkg/Payload/usr/local/microsoft/powershell/7/pwsh\r\nIdentifier=apphost-55554944334c276ec52934338e28e21fac52c69a\r\nFormat=Mach-O thin (arm64)\r\nCodeDirectory v=20400 size=1044 flags=0x0(none) hashes=26+2 location=embedded\r\nSignature size=9013\r\nAuthority=Developer ID Application: Microsoft Corporation (UBF8T346G9)\r\nAuthority=Developer ID Certification Authority\r\nAuthority=Apple Root CA\r\nTimestamp=Apr 9, 2024 at 6:11:26 PM\r\nInfo.plist=not bound\r\nTeamIdentifier=UBF8T346G9\r\nSealed Resources=none\r\nInternal requirements count=1 size=208\r\n```\n```\n\n\n### Actual behavior\n\n```console\nRunning `codesign -dvv` on the 7.4.4 binary shows an ad hoc signature with no way to validate integrity and confirm it is a genuine Microsoft release:\r\n\r\n\r\n➜ Payload codesign -dvv usr/local/microsoft/powershell/7/pwsh\r\nExecutable=/private/tmp/powershell-7.4.4-osx-arm64.pkg/powershell-7.4.4.pkg/Payload/usr/local/microsoft/powershell/7/pwsh\r\nIdentifier=apphost-55554944ebbb141c7c103d9ebac3a924d1f83baa\r\nFormat=Mach-O thin (arm64)\r\nCodeDirectory v=20400 size=1033 flags=0x2(adhoc) hashes=26+2 location=embedded\r\nSignature=adhoc\r\nInfo.plist=not bound\r\nTeamIdentifier=not set\r\nSealed Resources=none\r\nInternal requirements count=0 size=12\r\n```\n```\n\n\n### Error details\n\n_No response_\n\n### Environment data\n\n```powershell\nName Value\r\n---- -----\r\nPSVersion 7.4.4\r\nPSEdition Core\r\nGitCommitId 7.4.4\r\nOS Darwin 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:26:29 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_VM…\r\nPlatform Unix\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\n```\n\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/NoahRJ","@type":"Person","name":"NoahRJ"},"datePublished":"2024-07-25T14:51:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/24088/PowerShell/issues/24088"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7d7aa7fa-b232-8304-71f1-eeee276fa23c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8C82:A3D77:FBEBCF:16D16DD:6A579E47 |
| html-safe-nonce | 287db7c352d62ba887fa81279419f0b39a52cae1e9db46d73d963f04810ff9eb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzgyOkEzRDc3OkZCRUJDRjoxNkQxNkREOjZBNTc5RTQ3IiwidmlzaXRvcl9pZCI6IjI2MzE4ODQxNTMyMTQ3MDUyMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a976b4d2701be02965f3e36fae0223ab141495ee6d050d6f898e1a128d25495e |
| hovercard-subject-tag | issue:2430195680 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/24088/issue_layout |
| twitter:image | https://opengraph.githubassets.com/95c10c711e87d9bc2f503b8d5ff3b4b314ed7d163e06550a551fccccd311c08f/PowerShell/PowerShell/issues/24088 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/95c10c711e87d9bc2f503b8d5ff3b4b314ed7d163e06550a551fccccd311c08f/PowerShell/PowerShell/issues/24088 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | NoahRJ |
| hostname | github.com |
| expected-hostname | github.com |
| None | 017a07c29bdd8a37b5907fc9a689338deb7103b5af7f56714193b2700229b3df |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0dd6847d644323df8f8c1368c065f9f630095e3b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width