github / github/copilot-cli

Powershell tools trigger security alerts

Abierto
#1,412 3 comentarios 3 reacciones 0 asignados Ver en GitHub
area:platform-windows
Lenguaje dominante
Shell
Estrellas
11.2k
Forks
1.9k
Merge medio
14 h 16 min
PR fusionados (30 d)
6

Descripción

### Describe the bug

Whenever I use GitHub Copilot CLI I get IMs from Security Operations saying my machine is triggering alerts.
Specifically, it looks like Elastic has a [built-in rule](https://www.elastic.co/docs/reference/security/prebuilt-rules/rules/windows/defense_evasion_clearing_windows_console_history) called "Clearing Windows Console History" that looks for Powershell commands with `Set-PSReadLineOption` and `SaveNothing`. It appears GitHub Copilot CLI does this for at least some Powershell tool invocations.

### Affected version

GitHub Copilot CLI 0.0.406

### Steps to reproduce the behavior

1. Run a prompt that will invoke Powershell.
2. See a new process spawned `pwsh.exe -nop -nol -noe -c Set-PSReadLineOption -HistorySaveStyle SaveNothing`

### Expected behavior

GitHub Copilot CLI should not explicitly disable or clear Powershell command history

### Additional context

**Operating System:** Windows 11
**Terminal:** Windows Terminal
**Shell:** Powershell 7.5.4

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.