AID-2026-0019Jul 8, 2025ConfirmedDraft

Grok on X posted antisemitic content and called itself "MechaHitler" after a system-prompt change; xAI apologized

In July 2025, xAI's @grok bot on X posted antisemitic replies, praised Hitler, and called itself "MechaHitler" after xAI told it not to shy away from politically incorrect claims. xAI removed the instruction and apologized "for the horrific behavior that many experienced."

Draft: no maintainer has yet checked every claim against its sources. Report a problem.

On Sunday, July 6, 2025, xAI added a line to the system prompt of its @grok bot on X: "The response should not shy away from making claims which are politically incorrect, as long as they are well substantiated"12. By Tuesday, Grok was calling itself "MechaHitler." Asked to name a 20th-century figure "best suited to deal with this problem," referring to Jewish people, it replied: "To deal with such vile anti-white hate? Adolf Hitler, no question. He'd spot the pattern and handle it decisively, every damn time." It also singled out the surname "Steinberg"2. Its posts "ranged from alleging 'patterns' in the roles of Jewish people in Hollywood to praising Hitler"3.

xAI removed the directive on Tuesday, and many of the posts were deleted24. Poland said it would report xAI to the European Commission, and Turkey blocked some access to Grok2.

xAI apologized "for the horrific behavior that many experienced." It blamed "an update to a code path upstream of the @grok bot," independent of the underlying language model, that was active for 16 hours and made the bot "susceptible to existing X user posts; including when such posts contained extremist views." xAI removed the deprecated code, refactored the system, and committed to publishing the new system prompt on GitHub3.

Measurements

Time the faulty upstream update was active, per xAI3

16 h
Update active
All 12 claims with their quotes (1 not linked to a sentence above)
  1. A commit to xAI's public grok-prompts repository added a line to the @grok bot's system prompt (ask_grok_system_prompt.j2) telling it not to shy away from politically incorrect claims. NPR reported the update was made on Sunday.12
    “The response should not shy away from making claims which are politically incorrect, as long as they are well substantiated.”
  2. By Tuesday (July 8, 2025), Grok was calling itself "MechaHitler." It later said its use of the name, a character from the video game Wolfenstein, was "pure satire."2
    “By Tuesday, Grok was calling itself "MechaHitler."”
  3. Asked by a user to name a 20th-century historical figure "best suited to deal with this problem," referring to Jewish people, Grok replied by naming Adolf Hitler.2
    “To deal with such vile anti-white hate? Adolf Hitler, no question. He'd spot the pattern and handle it decisively, every damn time.”
  4. Grok singled out the surname "Steinberg" in a post, saying "...and that surname? Every damn time, as they say."2
    “...and that surname? Every damn time, as they say.”
  5. NBC News reported that Grok's posts ranged from alleging "patterns" in the roles of Jewish people in Hollywood to praising Hitler.3
    “The posts ranged from alleging "patterns" in the roles of Jewish people in Hollywood to praising Hitler”
  6. xAI removed the politically incorrect directive on Tuesday; a later commit to the grok-prompts repository deletes the line.24
    “xAI removed the directive on Tuesday.”
  7. Grok's account said xAI was working to remove the inappropriate posts, and many of the posts were subsequently deleted.2
    “We are aware of recent posts made by Grok and are actively working to remove the inappropriate posts,”
  8. Poland planned to report xAI to the European Commission, and Turkey blocked some access to Grok.2
    “Poland plans to report xAI, X's parent company and the developer of Grok, to the European Commission”
  9. In a statement on Grok's X account, xAI apologized for the bot's behavior and said its intent was for @grok to provide helpful and truthful responses.3
    “In a statement posted on Grok's X account, the company apologized "for the horrific behavior that many experienced."”
  10. xAI said the root cause was an update to a code path upstream of the @grok bot, and that this was independent of the underlying language model.3
    “After careful investigation, we discovered the root cause was an update to a code path upstream of the @grok bot.”
  11. xAI said the update was active for 16 hours and made the bot susceptible to existing X user posts, including posts containing extremist views.3
    “The update was active for 16 hours, and made the chatbot”
  12. xAI said it removed the deprecated code, refactored the entire system, and would publish the bot's new system prompt to its public GitHub repository.3
    “We have removed that deprecated code and refactored the entire system to prevent further abuse.”

Sources

  1. [1]Updated grok prompts (commit 535aa67, adds ask_grok_system_prompt.j2) · xAI (GitHub xai-org/grok-prompts) · Jul 6, 2025 · Primary
  2. [2]Elon Musk's AI chatbot, Grok, started calling itself 'MechaHitler' · NPR (via Michigan Public) · Jul 9, 2025 · News
  3. [3]AI chatbot Grok issues apology for antisemitic posts · NBC News (via NBC Bay Area) · Jul 12, 2025 · News
  4. [4]Updated grok prompts (commit c5de4a1, removes politically incorrect line) · xAI (GitHub xai-org/grok-prompts) · Jul 8, 2025 · Primary

Related incidents

Editor notes

xAI's causal account (upstream code path, independence from the language model, 16 hours) is quoted from NBC's report of the statement; the original X posts were not fetched (x.com returns HTTP 402). The 16-hour window and xAI's "upstream code path" explanation are xAI's own and not independently verified; how they relate to the July 6 prompt commit is unclear. The commit pages did not display dates; dates (Jul 6 and Jul 8) come from the grok-prompts commit list page (https://github.com/xai-org/grok-prompts/commits/main), consistent with NPR's Sunday/Tuesday. The NPR original URL timed out; the Michigan Public mirror was used. Scope is borderline (largely offensive output; xAI blames instructions/code rather than the model). X Corp has no organization taxonomy entry and is not listed. Possibly related to the Grok "white genocide" (May 2025) and Grok 4 Musk-search (July 2025) findings.