[Bug]: Opening a file on Windows spawns powershell -EncodedCommand, which AVG and Avast block as malware
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 67/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- electron, node.js, typescript
- 領域
- desktop
調査の方向性
デスクトップアプリの領域(apps/desktop)から始め、ローカルファイルへのリンクをクリックしたときに Windows で npm パッケージ open がどのように呼び出されるかを追跡してください。Electron’s shell.openPath() の動作と、アプリがその結果をどのように処理するかを確認してください。レポートでは、これが推奨される置き換え先として特定されています。PowerShell を -EncodedCommand 付きで起動せずに、ローカルファイルが既定のアプリで開くようになれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/desktop
Steps to reproduce
- On Windows 11 with AVG (or Avast, same engine) and its Behavior Shield on, open T3 Code.
- In a thread, click a link to a local file (in my case a PDF in the workspace) so the app opens it in the default viewer.
Expected behavior
The file opens in its default app.
Actual behavior
The file does not open. AVG's Behavior Shield kills powershell.exe and shows "Threat secured: IDP.HELU.PSE96 - Command line detection", process C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe.
The cause is in the desktop bundle (resources/app.asar): files are opened with the open npm package, which on Windows spawns
powershell -NoProfile -NonInteractive –ExecutionPolicy Bypass -EncodedCommand <base64 of: Start "<path>">
An encoded command that also bypasses the execution policy is a classic malware pattern, so behavior-based antivirus engines flag it. Several AVG, Avast and Norton forum threads show the same IDP.HELU.PSE family firing on tools that spawn PowerShell this way.
Timing on my machine: Windows PowerShell 5.1 console start (Microsoft-Windows-PowerShell/Operational, event 40961) at 18:10:39, AVG detection at 18:10:49, no other detections that day. The file itself is clean.
Suggested fix: on Windows, open files with Electron's shell.openPath() (ShellExecute, no PowerShell process) instead of the open package.
Impact
Major degradation or frequent failure
Version or commit
T3 Code (Beta) desktop 0.1.7
Environment
Windows 11 Pro 10.0.26200, AVG Antivirus with Behavior Shield on
Logs or stack traces
AVG: Threat name IDP.HELU.PSE96 - Command line detection
Process C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Detected by Behavior Shield, Status Blocked
Workaround
Open the file from File Explorer instead of clicking it in T3 Code.
- 主要言語
- TypeScript
- スター
- 24.8k
- フォーク
- 6.4k
- 平均マージ
- 13時間 48分
- マージ済み PR(30日)
- 208
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pingdotgg/t3code のほかの issue
-
needs more info
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
pingdotgg/t3code#30685 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
pingdotgg/t3code#30228 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: ACP sign-in replaces the agent's error message with a generic one対応中かも @iScabrous が 1 日前に担当しました。 オープンbug needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pingdotgg/t3code#30205 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
pingdotgg/t3code の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
paperclipai/paperclip#19120 ·
メンテナーはふだん 1 日以内に返信
-
Gradle liquibaseDiffChangelog drops jhi_date_time_wrapper対応中かも @mraible が今日担当しました。 オープンarea: triage theme: undefined
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
jhipster/generator-jhipster#35998 ·
メンテナーはふだん 1 日以内に返信
-
ai:assign:coding feature p3 ui-ux windows
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
CherryHQ/cherry-studio#23569 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
lingdojo/kana-dojo#33602 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
GoogleCloudPlatform/BigQuery-Agent-Analytics-Plugins#16 ·
メンテナーはふだん 1 日以内に返信