Convoluted windows shortcut code causing security problems

Open
#468 11 comments 1 reaction 1 assignee View on GitHub

Maintainers usually reply within 1 day

@lrandersson is already working on this.

Since May 14, 2026.

  • #553 by @marcoesters — open

Assessment

This issue has not been assessed yet.

Description

type::bug
Checklist
  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate
What happened?

When creating a shortcut on Windows, the code that the shortcut is running is something like this:

C:\WINDOWS\system32\cmd.exe /D /C START /MIN "" "C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe" -WindowStyle hidden "start 'C:\Users\path\to\miniforge3\envs\myapp_env\Menu\myapp 1.0.0.bat' -WindowStyle hidden"

Something about this is being flagged by our security software as malicious. Why is it so convoluted? Is there an easier way than having one shell calling another shell and having multiple hidden flags in the mix?

Dominant language
Python
Stars
50
Forks
49
Avg merge
1d 22h
Merged PRs (30d)
13

Getting set up

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 conda/menuinst

All issues in conda/menuinst

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.