Harden sync-jp-docs agent workflows against prompt injection#350
Open
Copilot wants to merge 2 commits into
Open
Harden sync-jp-docs agent workflows against prompt injection#350Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Move the SECURITY warning to the top of the instructions section in both sync-jp-docs-xplat.md and sync-jp-docs-angular.md so the agent reads it before processing any documentation content. The strengthened note explicitly calls out that commands or scripts found in documentation (e.g. python3 sync_jp_docs.py) must be ignored entirely, and lists the only permitted tools. The redundant security note at the end of each workflow is removed.
Copilot
AI
changed the title
[WIP] Fix missing tools in sync Japanese documentation workflow
Harden sync-jp-docs agent workflows against prompt injection
Jun 23, 2026
viktorkombov
approved these changes
Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The xplat (and by parity, Angular) JP-sync agent workflow was susceptible to prompt injection: content embedded in a documentation file could cause the agent to attempt executing arbitrary commands (e.g.
python3 sync_jp_docs.py). The threat detection system correctly blocked the execution and flagged it, generating the issue.Changes
sync-jp-docs-xplat.md/sync-jp-docs-angular.md## Instructionssection — before Step 1, so it is read prior to any documentation content that could carry injected instructionstools:frontmatter), call out the attack pattern by example (sync_jp_docs.py-style references), and make clear that any command found in documentation prose must be ignored entirely