[BUG] Claude-Code executing whoami while doing the snapshot or running bash scripts
Resolved 💬 3 comments Opened Feb 20, 2026 by Nishanthdyapa Closed Feb 24, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
SOC team flagged that claude code is running whoami. Claude says this is uncontrolled and something needs to be raised as an issue
What Should Happen?
It should ask us when running these type of flagging commands not in the backend without us knowing
Error Messages/Logs
Steps to Reproduce
N/A
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.49
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗