Title: Discussion: AppLocker Startup Performance Impact Mitigations · Issue #11074 · PowerShell/PowerShell · GitHub
Open Graph Title: Discussion: AppLocker Startup Performance Impact Mitigations · Issue #11074 · PowerShell/PowerShell
X Title: Discussion: AppLocker Startup Performance Impact Mitigations · Issue #11074 · PowerShell/PowerShell
Description: Background #10983 AppLocker doesn't have an API to see if it is on or not, so we have to call it every startup which causes significant delays. In the cited case, the system was air gapped, and this lead to a 9-14 second delay in my test...
Open Graph Description: Background #10983 AppLocker doesn't have an API to see if it is on or not, so we have to call it every startup which causes significant delays. In the cited case, the system was air gapped, and thi...
X Description: Background #10983 AppLocker doesn't have an API to see if it is on or not, so we have to call it every startup which causes significant delays. In the cited case, the system was air gapped, and...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11074
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Discussion: AppLocker Startup Performance Impact Mitigations","articleBody":"## Background\r\n\r\nhttps://github.com/PowerShell/PowerShell/issues/10983\r\n\r\nAppLocker doesn't have an API to see if it is on or not, so we have to call it every startup which causes significant delays.\r\nIn the cited case, the system was air gapped, and this lead to a 9-14 second delay in my testing.\r\n\r\n## Possibile Mitigations\r\n\r\n1. Add a PowerShell policy that is required to be enable, before PowerShell checks AppLocked\r\n * We would not back port this to Windows PowerShell to avoid breaking that large user-base.\r\n * I propose that this would only happen in vNext and not be back-ported to any PowerShell Core version either.\r\n * Add telemetry to see how many people are using this\r\n * Pros\r\n * This would solve the lack of API in AppLocker to see if AppLocker in enabled.\r\n Only, system that explicitly say they want PowerShell to use AppLocker would see any significant delay.\r\n * We can measure the problem this way with telemetry\r\n * Cons\r\n * This would be a breaking change and AppLocker user would have to know they need to do this.\r\n2. Add a message when we see more that a 10 second delay in the API, that points to a document, for troubleshooting.\r\n * Pros:\r\n * This would not be a breaking change\r\n * Cons:\r\n * This does not improve the actual performance, only tells users how to improve performance in the **worst** case.\r\n * Because the problem occurs in air gapped system, this solution does not help provide telemetry\r\n3. Remove AppLocker support\r\n * AppLocker is a Defense in Depth feature which has numerous bypasses and users should move to WDAC.\r\n * Pros:\r\n * Completely solves the problem\r\n * Simplifies the code base\r\n * Cons\r\n * This would be a **big** breaking and change and AppLocker users would need to learn to use WDAC. \r\n\r\n## Poll\r\nPlease vote for the solution that you think works the best\r\n[](https://api.gh-polls.com/poll/01DSRHK80E3RPYH722N7V09GP9/Add%20a%20PowerShell%20policy%20that%20is%20required%20to%20be%20enable.../vote)\r\n[](https://api.gh-polls.com/poll/01DSRHK80E3RPYH722N7V09GP9/Add%20a%20message%20when%20we%20see%20more%20that%20a%2010%20second%20delay.../vote)\r\n[](https://api.gh-polls.com/poll/01DSRHK80E3RPYH722N7V09GP9/Remove%20AppLocker%20Support/vote)\r\n\r\n## Other solutions\r\n\r\n1. Checking for internet connectivity and disable AppLocker\r\n * This is basically the what the Windows Certificate verification code is doing and we would be duplicating their code.\r\n * That is a very complex solution. We don't know what host they will want to connect to and there could be a firewall with access rules that allow Microsoft hosts, but not the host where your CRL is hosted.\r\n * This could introduce a **very** easy security bypass if we cache the result\r\n\r\n","author":{"url":"https://github.com/TravisEz13","@type":"Person","name":"TravisEz13"},"datePublished":"2019-11-14T19:36:02Z","url":"https://github.com/PowerShell/PowerShell/issues/11074"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:afa763d5-d7f4-5fc2-9fcc-c1435a1075c2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A558:1F9263:5F29F:7EDF3:6AFD08A6 |
| html-safe-nonce | edd3540d4580e4bb29e01849bf1250ddacf93d20d48b0fd8ae57540be3ce21ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTU4OjFGOTI2Mzo1RjI5Rjo3RURGMzo2QUZEMDhBNiIsInZpc2l0b3JfaWQiOiI2MzAzOTA3MTUwNjQwNzc3MzgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | db57cd781de5979fc59ab137ed09251a1bb2e2622653bc903b98a7d08f6a484f |
| hovercard-subject-tag | issue:523061745 |
| 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/11074/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d5a4570c82aa7f1c36f37f9d94cfd2ce87ac3fb2794e87c04cb657a39649e7c/PowerShell/PowerShell/issues/11074 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d5a4570c82aa7f1c36f37f9d94cfd2ce87ac3fb2794e87c04cb657a39649e7c/PowerShell/PowerShell/issues/11074 |
| og:image:alt | Background #10983 AppLocker doesn't have an API to see if it is on or not, so we have to call it every startup which causes significant delays. In the cited case, the system was air gapped, and thi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TravisEz13 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b29de2abb97b6307b16270785efeb58b51a117d5a9b659acf00b77aa00e7043b |
| 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 | 8c9e619def6d670dc18a45d3b02cea938c1c7e47 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width