[Bug]: Opening a file on Windows spawns powershell -EncodedCommand, which AVG and Avast block as malware
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 67/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- electron, node.js, typescript
- Lĩnh vực
- desktop
Hướng nghiên cứu
Bắt đầu trong khu vực ứng dụng desktop (apps/desktop) và lần theo cách nhấp vào liên kết tệp cục bộ gọi gói npm open trên Windows. Kiểm tra hành vi của Electron’s shell.openPath() và cách ứng dụng xử lý kết quả; báo cáo xác định đây là phương án thay thế được đề xuất. Hoàn thành khi các tệp cục bộ mở bằng ứng dụng mặc định mà không khởi chạy PowerShell với -EncodedCommand.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 24.8k
- Fork
- 6.4k
- Merge trung bình
- 13 giờ 48 phút
- Pull request đã merge (30 ngày)
- 208
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pingdotgg/t3code
-
needs more info
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
pingdotgg/t3code#30685 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
pingdotgg/t3code#30228 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: ACP sign-in replaces the agent's error message with a generic oneCó thể đã có người làm @iScabrous đã nhận 1 ngày trước. Đang mởbug needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pingdotgg/t3code#30205 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pingdotgg/t3code
Issue tương tự
-
bug module:nodes tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
rocketride-org/rocketride-server#3020 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area: dashboard area: tests good first issue size: XS tests
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Read canvas commentsĐang mởenhancement needs-community-review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
shaharia-lab/slackcli#501 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] Pod detail shows CPU usage ten times too high, and throws on decimal memory suffixesCó thể đã có người làm @RaphaelFakhri đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 11 ngày
-
`package.json`: build tools listed as runtime dependencies, exact pins causing duplicate installsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
themesberg/flowbite-vue#471 ·