{"version":"2.1.330","anchor":"git-config-hardening-patterns","canonical_anchor":"git-config-hardening-patterns","heading":"More git config settings are recognised as risky","tier":"internal","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/git-config-hardening-patterns","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### More git config settings are recognised as risky\n\nClaude Code now matches git config keys such as `core.unsetenvvars`, `hook.*` and several Git LFS transfer settings\n\n**Unclear.** It is not clear what Claude Code does when one of these keys matches.\n\n**What**\n\nClaude Code keeps patterns that pick out particular git configuration keys. They now also match:\n\n- keys starting with `hook.`\n\n- `core.unsetenvvars`\n\n- `lfs.extension` keys\n\n- `lfs.customtransfer` keys\n\n- keys ending in `standalonetransferagent` under `lfs.`\n\n**Why**\n\nSeveral of these settings can make git run other programs, so the patterns look like a guard against commands sneaking in through git configuration.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}