Windows install command flagged by Defender (Trojan) and uBlock (ClickFix)

Open
#101 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
54/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
powershell, rust

Research direction

Start by locating the Windows installation instructions linked in the report and inspect the documented PowerShell command and available CLI release download. The issue suggests documenting a direct ZIP download and extraction path, with SHA256 verification, as the primary Windows option. Done means the Windows instructions provide a usable alternative to the flagged command; the issue does not name tests or specific documentation files.

Written by the indexing model from the issue text.

Description

Summary

The documented Windows installation command for the Laravel CLI triggers security tooling on a stock Windows machine:

powershell -ExecutionPolicy Bypass -c "irm https://laravel.com/install.ps1 | iex"
  • Windows Defender blocks it as Severe / Trojan / Removed (Threat ID 2147852719, command-line resource). Reproduced twice, minutes apart.
  • uBlock Origin blocks the same command inline on the installation docs page as a "potential ClickFix attack".

I believe both are false positives caused by the irm … | iex + -ExecutionPolicy Bypass pattern (the textbook ClickFix shape), not by the payload itself — but the practical effect is that a new user following the official docs hits a Trojan warning on step one. Since this is reproducible from your side (docs + installer), I'm reporting it here.

Reproduction

  1. Stock Windows 11 + default Windows Defender signatures.
  2. Run the exact command from https://laravel.com/rust/docs/installation (Windows tab).
  3. Defender immediately reports Severe / Trojan / Removed for the powershell.exe … ExecutionPolicy Bypass -c irm https://laravel.com/install.ps1 | ie… command line.
  4. Open the same docs page with uBlock Origin enabled: it shows "Beware, uBlock Origin blocked a potential ClickFix attack" quoting the install command.

Detections observed (local time, same machine):

Time Threat ID Resource
01-Dec-26 5:32 PM 2147852719 CmdLine: …powershell.exe -ExecutionPolicy Bypass -c irm https://laravel.com/install.ps1 | ie…
01-Dec-26 5:37 PM 2147852719 same command line (re-run after cleaning, reproduced)

Important nuance

The downloaded binary itself is not flagged: on one attempt the install completed (laravel-cli 0.3.0, laravel --version works, file remains in ~/.laravel/bin). Only the invocation pattern is detected. So the code is fine — the delivery method documented on the site is what trips the heuristics.

Environment

  • Windows 11, Windows Defender with default signatures (Dec 1, 2026)
  • Rust 1.100.1, Node 26.x, Git 2.56 (all per docs prerequisites)
  • Laravel CLI 0.3.0 (x86_64-pc-windows-msvc, from github.com/laravel/cli-releases)

Suggested fix (docs side)

  • Document a non-iex install path as primary on Windows: direct download of laravel-cli-x86_64-pc-windows-msvc.zip from github.com/laravel/cli-releases + extract to ~/.laravel/bin, with a SHA256 to verify.
  • Optionally: code-sign laravel.exe / serve the .ps1 with a verifiable hash, and add a short "if Defender/uBlock flags this" note on the installation page.
  • Long term: a winget package would avoid the whole class of problem.

Screenshots

To follow (Defender "Threat blocked" dialog + uBlock Origin ClickFix banner). Happy to provide any extra telemetry (Defender threat trace, exact signature version) on request.

image image
Dominant language
Rust
Stars
2.2k
Forks
105
Avg merge
7h 19m
Merged PRs (30d)
41

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from laravel/rust

All issues in laravel/rust

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.