Skip to content

fix: prevent regex bypass in block-monk fallback by recognizing shell separators - #478

Open
XueyuanPang-Google wants to merge 1 commit into
monk-io:mainfrom
XueyuanPang-Google:fix/block-monk-fallback-shell-separators-471
Open

XueyuanPang-Google wants to merge 1 commit into
monk-io:mainfrom
XueyuanPang-Google:fix/block-monk-fallback-shell-separators-471

Conversation

@XueyuanPang-Google

@XueyuanPang-Google XueyuanPang-Google commented Aug 31, 2026

Copy link
Copy Markdown

Summary

Updates the fallback regular expressions in block-monk.ps1 and block-monk.sh across all plugin bundles (.antigravity-plugin, hooks, plugins/monk):

  • Replaces trailing boundary (\s|$) / ([[:space:]]|$) with ([\s;&|(){}]|$)/([[:space:];&|(){}]|$)
  • Ensures chained commands like monk; <cmd>, monk& <cmd>, monk| <cmd>, and subshells (monk) are strictly blocked when binary fallback executes

Closes #471


Bounty Payout / Contributor Details:

  • Recipient Wallet Address (BSC / EVM / Polygon): 0x0e88A5bd43a1BF2e0C2B954E5b51F257b9322B66
  • Ready for maintainer review and merge.

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.

[Bug bounty] PreToolUse block-monk fallback regex bypassed by shell separators (monk; / monk& / monk|)

1 participant