Skip to content

fix(ci): strip attacker-controlled Claude/MCP config in PR workflows#626

Open
m1amgn wants to merge 2 commits into
devfrom
updates/dev-update
Open

fix(ci): strip attacker-controlled Claude/MCP config in PR workflows#626
m1amgn wants to merge 2 commits into
devfrom
updates/dev-update

Conversation

@m1amgn
Copy link
Copy Markdown
Contributor

@m1amgn m1amgn commented May 26, 2026

PR trees are attacker-controlled and run through claude on a self-hosted runner with clean: false. A PR carrying .claude/settings.json (SessionStart hooks) or .mcp.json (MCP servers) would execute arbitrary commands as the runner user. Remove those files after checkout (after rebase in pr-fix to avoid dirtying the tree) and load the fullstack.md persona from the trusted origin/dev blob instead of the PR tree to prevent system-prompt injection.

#616: fixed bug with menus

m1amgn added 2 commits May 26, 2026 11:42
PR trees are attacker-controlled and run through `claude` on a self-hosted
runner with clean: false. A PR carrying .claude/settings.json (SessionStart
hooks) or .mcp.json (MCP servers) would execute arbitrary commands as the
runner user. Remove those files after checkout (after rebase in pr-fix to
avoid dirtying the tree) and load the fullstack.md persona from the trusted
origin/dev blob instead of the PR tree to prevent system-prompt injection.
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