command_guard

Regex-based shell command filter applied before execution.


What it mitigates


Profilemode
localenforce strict deny patterns
standardenforce baseline deny patterns
unboundedobserve or narrowed deny set

Minimal config

moduleConfig:
  command_guard:
    denyPatterns:
      - "(^|\\s)sudo\\s"
      - "rm\\s+-rf\\s+/"
      - "(^|\\s)(cat|less|more|head|tail|grep|awk|sed)\\s+[^\\n]*\\.env(?:\\.|\\s|$)"

Pattern design guidance