Repository navigation
v0.6.1
Fixed
- Respelled operands are judged as the paths the shell resolves. These spellings were judged more leniently than the plain form and are now blocked like it:
mvandtouchof a protected path written with a brace group (mv {~/.claude,x} /tmp,touch ~/.claude/{settings.json,zz}), including$HOMEforms.- A relative operand after
cd(cd .claude && touch settings.json,cd .. && touch .claude/settings.json). - Quote-split verbs and paths (
m""v,c""d), and letter case on case-insensitive filesystems.
- Path folding no longer drops the slash a brace group or quote continues, so the expansion names the right path.
- Similarly named paths outside the protected tree stay allowed (controls in the corpus).
Corpus
41 new rows; corpus run replays 325 cases. corpus fuzz is clean on Python 3.9 and 3.12 over the whole respelling space.
Out of scope (stated in docs/threat-model.md)
A cd whose target is a variable, cd - and popd, and a brace expansion past the cap. A control-plane file name after such a cd still asks.
Feedback and reports welcome: https://github.com/dotdevdotdev/damage-control-dev/issues