You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 98fa286
Browse filesBrowse the repository at this point in the historyBrowse files
fix: deny bash commands with arguments when command name matches rule
Fixesanomalyco#7063
When evaluating bash permissions, the system now checks both:
1. The full command pattern (e.g., 'yarn test')
2. The command name (first word, e.g., 'yarn')
This ensures that when a user configures 'yarn: deny', commands like
'yarn test', 'yarn install', etc. are correctly denied, not just the
exact 'yarn' command.
The fix modifies the evaluate() function to extract the first word
of bash commands and check if it matches any deny rules, preventing
permission bypass via command arguments.
0 commit comments