anomalyco / anomalyco/opencode

opencode detected as malware by Cortex XDR

Open
#49,727 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Cortex XDR, installed and centrally managed by my company on my work laptop, detects the OpenCode executable as malware and blocks it from running.

Since Cortex XDR is managed by the company, I cannot whitelist or add a local exception for OpenCode.

This effectively prevents using OpenCode in corporate environments where Cortex XDR endpoint protection is enforced.

It may be a false positive, but it would be useful to investigate what in the distributed binary/build is triggering the detection and whether the binary could be submitted to Palo Alto Networks for false-positive analysis.

Plugins

No response

OpenCode version

1.18.31

Steps to reproduce
  1. Install OpenCode.
  2. Run opencode.
  3. Cortex XDR detects the executable as malware.
  4. Cortex XDR blocks its execution.
Screenshot and/or share link
Image
Operating System

MacOS 26.7 (screenshot says 26.6, I updated the OS after this issue and it is still happening)

Terminal

No response

Contributor guide

Open the contributing guide

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.

Research direction

Start by reproducing the block with OpenCode 1.18.31 on macOS using Cortex XDR, then investigate what in the distributed executable or build triggers the detection. Done means identifying a likely cause and determining whether the executable can be submitted to Palo Alto Networks for false-positive analysis.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.