Skip to content

Conversation

@jarrodcoulter
Copy link

Previously matched dd if= only; missed dd if=/... without space. Updated regex to dd\s+if\s*= and kept other destructive commands. Tested locally: dd if=/dev/zero... now blocked.

Previously matched dd if= only; missed dd if=/... without space. Updated regex to dd\\s+if\\s*= and kept other destructive commands. Tested locally: dd if=/dev/zero... now blocked.
@jarrodcoulter jarrodcoulter changed the title Update regex for DEFAULT_DESTRUCTIVE_CMD pattern Fix: update regex for DEFAULT_DESTRUCTIVE_CMD pattern Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant