{"version":"2.1.327","anchor":"sanitise-bracketed-role-labels-more-strictly","canonical_anchor":"sanitise-bracketed-role-labels-more-strictly","heading":"Fake role labels such as [user] are harder to slip past Claude Code","tier":"notice","area":"Permissions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/sanitise-bracketed-role-labels-more-strictly","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Fake role labels such as [user] are harder to slip past Claude Code\n\nClaude Code cleans bracketed labels more thoroughly before checking them against reserved names like user and assistant\n\n**What**\n\nSome text contains labels in square brackets that name a speaker, such as user or assistant. Claude Code reserves some of these names. Before it compares a label with the reserved names, it now cleans the label more thoroughly:\n\n- it strips out a further set of characters\n\n- it turns the braille blank character, which looks like empty space, into an ordinary space\n\nPreviously the label was only trimmed and turned into lower case.\n\n**Why**\n\nSomeone could disguise a reserved label with lookalike or invisible characters so that text pretends to come from the user or from Claude. The stricter cleaning blocks this.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}