Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ export const PII_PATTERNS: NamedPattern[] = [
// ============================================================================
// Destructive Command Pattern
// ============================================================================
// NOTE: dd patterns should catch both "dd if=/..." and variants with spaces around '='.

export const DEFAULT_DESTRUCTIVE_CMD = /\b(rm|rmdir|unlink|del|format|mkfs|dd\s+if=)\b/;
export const DEFAULT_DESTRUCTIVE_CMD = /\b(rm|rmdir|unlink|del|format|mkfs)\b|\bdd\s+if\s*=/;

// ============================================================================
// Sensitive File Patterns
Expand Down