Title: AMSI logging implemented on Linux · Issue #21492 · PowerShell/PowerShell · GitHub
Open Graph Title: AMSI logging implemented on Linux · Issue #21492 · PowerShell/PowerShell
X Title: AMSI logging implemented on Linux · Issue #21492 · 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/21492
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AMSI logging implemented on Linux","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 AMSI logging is still being performed on Linux even though there are no AMSI modules installed.\r\n\r\nAs demonstrated in [#21473](https://github.com/PowerShell/PowerShell/issues/21473) this can lead to excessive heap usage\n\n### Expected behavior\n\n```console\n#!/usr/bin/env pwsh\r\n$env:__PSDumpAMSILogContent='1'\r\n$bytes = new-object byte[] -ArgumentList @(,200554320)\r\n$random = new-object Random\r\n$random.NextBytes($bytes)\r\n\r\nShould not print anything\n```\n\n\n### Actual behavior\n\n```console\n#!/usr/bin/env pwsh\r\n$env:__PSDumpAMSILogContent='1'\r\n$bytes = new-object byte[] -ArgumentList @(,200554320)\r\n$random = new-object Random\r\n$random.NextBytes($bytes)\r\n\r\nPrints the following log\r\n\r\n=== Amsi notification report content ===\r\n\u003cSystem.Random>.NextBytes(\u003cSystem.Byte[]>)\r\n=== Amsi notification report success: False ===\n```\n\n\n### Error details\n\n```console\nNo actual error other than incorrect behaviour\n```\n\n\n### Environment data\n\n```powershell\nName Value\r\n---- -----\r\nPSVersion 7.4.2\r\nPSEdition Core\r\nGitCommitId 7.4.2\r\nOS Debian GNU/Linux 11 (bullseye)\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\n```\n\n\n### Visuals\n\n_No response_","author":{"url":"https://github.com/rhubarb-geek-nz","@type":"Person","name":"rhubarb-geek-nz"},"datePublished":"2024-04-17T17:55:09Z","url":"https://github.com/PowerShell/PowerShell/issues/21492"}
| 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:906e2b76-f449-a289-19f6-8558ae1d83fa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE6E:2C1876:19909D:21E51D:6AFD1157 |
| html-safe-nonce | fcc46a1eee379f8378ab29f45df0e2f7a97c955f5c88b1289beeeab8cfe5a3e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTZFOjJDMTg3NjoxOTkwOUQ6MjFFNTFEOjZBRkQxMTU3IiwidmlzaXRvcl9pZCI6IjczNDkxMzg5NDczNzAxOTMyMzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 439a1c147f2a3a4c6e83e39b3866096410a783dae3f9088efd802348102948f8 |
| hovercard-subject-tag | issue:2248894524 |
| 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/21492/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4cd2bb77081e846e2d6d5d0717a5f025c04bcb70081b89c14264ccd4005ab69c/PowerShell/PowerShell/issues/21492 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4cd2bb77081e846e2d6d5d0717a5f025c04bcb70081b89c14264ccd4005ab69c/PowerShell/PowerShell/issues/21492 |
| 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 | rhubarb-geek-nz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7c34e25df4e46e972c8f0225e63410231bdeb9ea5634597c712796bbcdb2e627 |
| 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 | 8fa571ebaa95e4e6bf872197c0e84b7dc48e6785 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width