feat(entries): Terraform Cloud / IaC platform — 3 companion-only pairs#18
Merged
Merged
Conversation
…airs) Detections over the Terraform Cloud audit trail (product: terraform, nested resource.type / resource.action). Three companion-only red↔blue pairs: - tfc-agent-hijack ↔ tfc-agent-audit: rogue agent pool routes plans/applies to attacker infra (captures cloud creds + state); detect agent_pool create (T1543). - tfc-token-backdoor ↔ tfc-token-audit: mint an org/team API token for durable API + state access; detect authentication_token create (T1098). - tfc-var-injection ↔ tfc-var-audit: inject a workspace env variable to run code / exfil at apply; detect variable create/update (T1072). Red side is the Terraform Cloud API (curl) + tfc-agent; blue side is audit-trail Splunk SPL. resource types verified against the TFC audit-trails docs. Corpus is now 50 paired concepts + 1 unpaired recon entry. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011spYcGfeP4a3RNQQVDrGtW
There was a problem hiding this comment.
Pull request overview
Adds a new Terraform Cloud / IaC “control-plane seam” to the companion corpus by introducing three new red↔blue entry pairs backed by Terraform Cloud audit-trail telemetry, and updates the top-level docs to reflect the expanded corpus.
Changes:
- Added 3 new Terraform Cloud attack entries (red) and 3 matching audit-trail detections (blue).
- Updated the README corpus summary/table to include Terraform Cloud and reflect the new paired-count (50).
- Updated the CHANGELOG
[Unreleased]section to document the new Terraform Cloud / IaC platform additions.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Updates corpus count and table to include three Terraform Cloud pairs/platform mention. |
| CHANGELOG.md | Documents the new Terraform Cloud / IaC platform entries under [Unreleased]. |
| entries/red/tfc-agent-hijack.md | New red entry describing rogue Terraform Cloud agent pool abuse, paired to detection. |
| entries/red/tfc-token-backdoor.md | New red entry describing org/team token creation for persistence, paired to detection. |
| entries/red/tfc-var-injection.md | New red entry describing workspace env var injection to influence runs, paired to detection. |
| entries/blue/tfc-agent-audit.md | New blue detection SPL for Terraform Cloud agent_pool creation events. |
| entries/blue/tfc-token-audit.md | New blue detection SPL for Terraform Cloud authentication_token creation events. |
| entries/blue/tfc-var-audit.md | New blue detection SPL for Terraform Cloud variable create/update events. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Round 12 — Terraform Cloud / IaC
Opens the IaC control-plane seam with detections over the Terraform Cloud audit trail (
product: terraform, nestedresource.type/resource.action). Three companion-only red↔blue pairs, distinct techniques:tfc-agent-hijack— rogue agent pool routes plans/applies to attacker infra (captures cloud creds + state)tfc-agent-audit—agent_poolcreatetfc-token-backdoor— mint an org/team API token for durable API + state accesstfc-token-audit—authentication_tokencreatetfc-var-injection— inject a workspace env variable to run code / exfil at applytfc-var-audit—variablecreate/updateRed side is the Terraform Cloud API (
curl) +tfc-agent; blue side is audit-trail Splunk SPL. Resource types verified against HashiCorp's TFC audit-trails docs.Verification
./gen-views.sh --check— clean (companion-only)smb-enum-nxcunpaired)[Unreleased]updated🤖 Generated with Claude Code
Generated by Claude Code