A developer discovered that xAI's Grok command-line interface uploaded their entire home directory to the company's servers without explicit consent.

The incident, reported on social media, included the upload of SSH keys, password manager databases, documents, photos, and videos. The user had apparently run the Grok CLI tool from their home directory.

"Okay, grok has uploaded my entire user directory to xAI's servers. It contains my SSH keys, my password manager database, my documents, photos, videos, everything," the developer posted.

The report sparked immediate concern among security-conscious developers in the replies. One user noted they had implemented protective measures including running browsers in dedicated user accounts and using SSH agent vaults to prevent key exfiltration.

Another developer recommended establishing deny lists in configuration files to prevent access to sensitive file paths, along with security instructions in project documentation.

Security implications

The incident highlights broader concerns about AI tools' data collection practices. Command-line AI assistants typically require broad file system access to analyze codebases and provide contextual assistance.

SSH keys and password databases represent particularly sensitive data that could enable unauthorized access to other systems and accounts. The upload of such materials to third-party servers raises questions about data handling policies.

Several developers suggested running AI tools in sandboxed environments or dedicated user accounts to limit potential data exposure. Others recommended implementing file path restrictions and monitoring systems.

xAI has not yet responded to requests for comment about the incident or clarified what data retention policies apply to uploaded files.