{"version":"2.1.332","anchor":"prompt-injection-tag-scanning-gets-a-gated-fast-path","canonical_anchor":"prompt-injection-tag-scanning-gets-a-gated-fast-path","heading":"Faster, bounded scanning for tags used in prompt injection","tier":"internal","area":"Permissions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/prompt-injection-tag-scanning-gets-a-gated-fast-path","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### Faster, bounded scanning for tags used in prompt injection\n\nClaude Code now scans for prompt-injection tags group by group with fixed limits, and falls back to a full scan when they are exceeded\n\n**What**\n\nClaude Code looks for certain tags in text and makes them harmless. This guards against prompt injection, where text tries to pass itself off as instructions to the model. The check used to use one search pattern for each set of tags. It now builds a pattern for each group of tags and works within fixed limits:\n\n- up to 64 candidate matches\n\n- up to 2048 units of filler text\n\nWhen either limit is exceeded, Claude Code falls back to scanning with the whole pattern.\n\n**Why**\n\nThis is a speed and robustness change to how Claude Code handles these tags.\n\n- Area: Permissions\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}