Skip to content

[BUG] APM became a virus? #744

@icarterpaloit

Description

@icarterpaloit

Describe the bug

After an unsuccessful run of apm install, Windows Defender picked up a threat called Trojan:win32/bearfoos.A!ml. After quarantining the threat, apm was effectively made inoperable. Re-installing apm does not work:

PS C:\Users\User> irm https://aka.ms/apm-windows | iex

===========================================================
                    APM Installer
             The NPM for AI-Native Development
===========================================================
Fetching latest release information...
Latest version: v0.8.11
Downloading apm-windows-x86_64.zip from v0.8.11...
Download successful
Verifying download checksum...
Checksum verified
Extracting package...
Testing binary...
Downloaded binary failed to run: Program 'apm.exe' failed to run: Operation did not complete successfully because the file contains a virus or potentially unwanted softwareAt line:349 char:23
+         $testOutput = & $exePath --version 2>&1
+                       ~~~~~~~~~~~~~~~~~~~~~~~~~.

Here is the original apm.yml:

name: my-project
version: 1.0.0
dependencies:
  apm:
    # Instructions
    - github/awesome-copilot/instructions/azure-devops-pipelines.instructions.md
    - github/awesome-copilot/instructions/azure-verified-modules-bicep.instructions.md
    - github/awesome-copilot/instructions/azure-verified-modules-terraform.instructions.md
    - github/awesome-copilot/instructions/bicep-code-best-practices.instructions.md
    - github/awesome-copilot/instructions/devops-core-principles.instructions.md
    - github/awesome-copilot/instructions/github-actions-ci-cd-best-practices.instructions.md
    - github/awesome-copilot/instructions/kubernetes-deployment-best-practices.instructions.md
    - github/awesome-copilot/instructions/kubernetes-manifests.instructions.md
    - github/awesome-copilot/instructions/terraform-azure.instructions.md
    - github/awesome-copilot/instructions/terraform.instructions.md
    # Skills
    - github/awesome-copilot/skills/azure-pricing
    - microsoft/skills/.github/skills/entra-agent-id
    - microsoft/skills/.github/skills/mcp-builder
    # Plugins
    - github/awesome-copilot/plugins/security-best-practices
    - microsoft/skills/.github/plugins/azure-sdk-python
    # Agents
    # - github/awesome-copilot/agents/api-architect.agent.md
    # APM Packages
    # - microsoft/apm-sample-package#v1.0.0
  mcp:
    - name: AWS Documentation MCP Server
      registry: false
      transport: stdio
      command: uvx
      args:
        - awslabs.aws-documentation-mcp-server@latest
      env:
        FASTMCP_LOG_LEVEL: ERROR
        AWS_DOCUMENTATION_PARTITION: aws
    - name: AWS Pricing MCP Server
      registry: false
      transport: stdio
      command: uvx
      args:
        - awslabs.aws-pricing-mcp-server@latest
      env:
        FASTMCP_LOG_LEVEL: ERROR
        AWS_DOCUMENTATION_PARTITION: aws
    - name: Azure MCP Server
      registry: false
      transport: stdio
      command: uvx
      args:
        - --from
        - msmcp-azure
        - azmcp
    - name: Microsoft Learn
      transport: http
      url: https://learn.microsoft.com/api/mcp
target: vscode

To Reproduce
Steps to reproduce the behavior:

irm https://aka.ms/apm-windows | iex
apm install

Expected behavior
I expected to be able to run apm without downloading malicious artifacts.

Environment

  • OS: Windows 11
  • Python Version: 3.13
  • APM Version: 0.8.11
  • VSCode Version (if relevant): 1.115.0

Logs
Here are relevant logs.

C:\Users\User\gen-e2-ai-engineering>apm install
[>] Installing dependencies from apm.yml...

  [+] github.com/github/awesome-copilot/instructions/azure-devops-pipelines.instructions.md
  |-- 1 instruction(s) integrated -> .github/instructions/
  [+] github.com/github/awesome-copilot/instructions/azure-verified-modules-bicep.instructions.md
  |-- 1 instruction(s) integrated -> .github/instructions/
  [+] github.com/github/awesome-copilot/instructions/azure-verified-modules-terraform.instructions.md     
  |-- 1 instruction(s) integrated -> .github/instructions/                                                
  [+] github.com/github/awesome-copilot/instructions/bicep-code-best-practices.instructions.md
  |-- 1 instruction(s) integrated -> .github/instructions/
  [+] github.com/github/awesome-copilot/instructions/devops-core-principles.instructions.md               
  |-- 1 instruction(s) integrated -> .github/instructions/                                                
  [+] github.com/github/awesome-copilot/instructions/github-actions-ci-cd-best-practices.instructions.md  
  |-- 1 instruction(s) integrated -> .github/instructions/                                                
  [+] github.com/github/awesome-copilot/instructions/kubernetes-deployment-best-practices.instructions.md 
  |-- 1 instruction(s) integrated -> .github/instructions/
  [+] github.com/github/awesome-copilot/instructions/kubernetes-manifests.instructions.md
  |-- 1 instruction(s) integrated -> .github/instructions/
  [+] github.com/github/awesome-copilot/instructions/terraform-azure.instructions.md
  |-- 1 instruction(s) integrated -> .github/instructions/
  [+] github.com/github/awesome-copilot/instructions/terraform.instructions.md
  |-- 1 instruction(s) integrated -> .github/instructions/
  [+] github.com/github/awesome-copilot/plugins/security-best-practices
#9d117370f901e2244316dfd8cf5362435705b658 @9d117370
  |-- 1 skill(s) integrated -> .github/skills/
  [+] github.com/github/awesome-copilot/skills/azure-pricing (cached)
  |-- Skill integrated -> .github/skills/
  [+] github.com/microsoft/skills/.github/plugins/azure-sdk-python
#33b598366fd91350f032be9b385389ff14876dcc @33b59836
  |-- 42 skill(s) integrated -> .github/skills/
  [+] github.com/microsoft/skills/.github/skills/entra-agent-id #33b598366fd91350f032be9b385389ff14876dcc 
@33b59836
  [+] github.com/microsoft/skills/.github/skills/mcp-builder #33b598366fd91350f032be9b385389ff14876dcc    
@33b59836

+- MCP Servers (4)
[x] Error installing dependencies: [Errno 22] Invalid argument: 
'C:\\Users\\User\\AppData\\Local\\Programs\\apm\\releases\\v0.8.11\\apm.exe'
[i] Run with --verbose for detailed diagnostics

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/distributionInstallers (curl/PowerShell/Brew/Scoop), self-update, devcontainer, codespaces.area/docs-sitedocs/src/content (Starlight), README, doc generation.bugDeprecated: use type/bug. Kept for issue history; will be removed in milestone 0.10.0.needs-triageDeprecated: use status/needs-triage. Kept for issue history; will be removed in milestone 0.10.0.priority/highShips in current or next milestonestatus/acceptedDirection approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).theme/securitySecure by default. Content scanning, lockfile integrity, MCP trust boundaries.type/bugSomething does not work as documented.

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions