spec: add CTR-012 and update rule mappings in compiler threat detection spec (v1.0.2)#31135
Merged
spec: add CTR-012 and update rule mappings in compiler threat detection spec (v1.0.2)#31135
Conversation
…on spec v1.0.2 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add CTR-012 and update rule mappings in compiler threat detection spec
spec: add CTR-012 and update rule mappings in compiler threat detection spec (v1.0.2)
May 9, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the compiler threat detection specification to add a new rule (CTR-012) and reconcile rule-to-implementation mappings for several already-implemented validations, bumping the spec version accordingly.
Changes:
- Bump spec version to v1.0.2 and update publication date.
- Add CTR-012 Safe-Outputs Wildcard Push Scope to the core rule catalog and Section 6.1 mapping table.
- Update Section 6.1 mappings for CTR-001 / CTR-006 / CTR-010 / CTR-011 and record the changes in the changelog.
Show a summary per file
| File | Description |
|---|---|
specs/compiler-threat-detection-spec.md |
Adds CTR-012 and updates Section 6.1 rule mappings + changelog for v1.0.2. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 2
| | CTR-004 Sandbox Bypass Configuration | `pkg/workflow/sandbox_validation*.go`, `pkg/workflow/strict_mode_sandbox_validation*.go` | `pkg/workflow/*sandbox*_test.go` | | ||
| | CTR-005 Unsafe Output Route | `pkg/workflow/compiler_safe_outputs*.go`, `pkg/workflow/safe_outputs*.go` | `pkg/workflow/*safe_outputs*_test.go` | | ||
| | CTR-006 Template Injection | `pkg/workflow/template_injection_validation.go` | `pkg/workflow/template_injection_validation_test.go`, `pkg/workflow/template_injection_validation_fuzz_test.go` | | ||
| | CTR-006 Template Injection | `pkg/workflow/template_injection_validation.go`, `pkg/workflow/heredoc_validation.go` | `pkg/workflow/template_injection_validation_test.go`, `pkg/workflow/template_injection_validation_fuzz_test.go` | |
| | CTR-009 Shell Expansion in Safe-Outputs | `pkg/workflow/safe_outputs_steps_shell_expansion_validation.go` | `pkg/workflow/safe_outputs_steps_shell_expansion_validation_test.go` | | ||
| | CTR-010 Expression Safety Allowlist | `pkg/workflow/expression_safety_validation.go` | `pkg/workflow/expression_extraction_test.go` | | ||
| | CTR-011 Network Firewall Configuration | `pkg/workflow/network_firewall_validation.go`, `pkg/workflow/firewall_validation.go` | `pkg/workflow/network_firewall_validation_test.go` | | ||
| | CTR-010 Expression Safety Allowlist | `pkg/workflow/expression_safety_validation.go`, `pkg/workflow/expression_syntax_validation.go` | `pkg/workflow/expression_extraction_test.go` | |
This was referenced May 9, 2026
Merged
Copilot AI
added a commit
that referenced
this pull request
May 9, 2026
…on spec (v1.0.2) (#31135) Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
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.
Daily threat spec optimizer reconciled four existing implementation files missing from the Section 6.1 mapping table, and formally specifies a new rule CTR-012 for the safe-outputs wildcard push scope threat.
Changes
New Rule: CTR-012 Safe-Outputs Wildcard Push Scope
Covers
push_to_pull_request_branch_validation.go— detects two misconfiguration patterns whentarget: "*"is set:fetch: ["*"]in checkout (suppressed for public repos)title-prefixorlabelsmeans unconstrained write scope over all PRsDistinct from CTR-008 (pwn-request via
pull_request_target) — CTR-012 is scoped to the safe-outputs subsystem.Mapping Updates (Section 6.1)
github_app_permissions_validation.goheredoc_validation.goexpression_syntax_validation.gostrict_mode_network_validation.go+ description extended to cover wildcard*domain rejectionSpec bumped from v1.0.1 → v1.0.2.