kerberosmansour/hulumi / skills/hulumi-threat-model
hulumi-threat-model
FlaggedRun an AWS or GitHub cloud / platform threat model for a specific Hulumi scenario. Produces a structured markdown threat-model document at docs/threat-model-<scenario>-<date>.md in the user's working directory, citing CSA CCM v4.1, NIST SP 800-53 Rev 5, NIST SP 800-218A, MITRE ATLAS v5.1, CIS AWS Foundations v5.0.0, CIS GitHub Benchmark v1.2.0, NIST SSDF v1.1, OpenSSF Scorecard, MITRE ATT&CK T1195, and GitHub Well-Architected SSDF by framework ID only (no verbatim control text). Use when the user asks for a threat model for an AWS or GitHub scenario, wants to ground IaC design decisions in standard controls, or wants to see which @hulumi/baseline components apply.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.0 KB |
| package.json | manifest | 572 B |
| scenarios/aws-multi-account-baseline.json | config | 5.5 KB |
| scenarios/eks-cluster-baseline.json | config | 5.0 KB |
| scenarios/eks-runtime-and-backup.json | config | 4.6 KB |
| scenarios/github-actions-supply-chain.json | config | 5.9 KB |
| scenarios/github-app-token-exposure.json | config | 5.5 KB |
| scenarios/github-oidc-trust-cloud-account.json | config | 5.4 KB |
| scenarios/github-self-hosted-runner.json | config | 5.3 KB |
| scenarios/iam-least-privilege.json | config | 4.7 KB |
| scenarios/lambda-secrets-access.json | config | 5.0 KB |
| scenarios/operations-audit-pipeline-broken.json | config | 4.3 KB |
| scenarios/operations-detective-services-disabled.json | config | 4.1 KB |
| scenarios/operations-patch-compliance-lapse.json | config | 4.0 KB |
| scenarios/rds-encryption-at-rest.json | config | 4.7 KB |
| scenarios/s3-public-bucket-hardening.json | config | 4.9 KB |
| scripts/generate-threat-model.mjs | script | 22.7 KB |
| scripts/list-scenarios.mjs | script | 2.0 KB |
| templates/threat-model.template.md | markdown | 1.1 KB |
| tsconfig.json | config | 289 B |
scenarios/aws-multi-account-baseline.json
View on GitHub{
"id": "aws-multi-account-baseline",
"title": "AWS Multi-Account Baseline — Day-Zero Account Foundation",
"description": "A platform engineer stands up a new AWS account (or a collection of accounts under an Organization) with Hulumi. The target end state: CloudTrail centralised, AWS Config recording, GuardDuty enabled, Security Hub enabled with CIS AWS Foundations v5.0 subscribed, IAM baseline (password policy, no inline admin), and a KMS key ring with automatic rotation. Cross-account topology uses org-delegated services for GuardDuty and Security Hub.",
"requiredFrameworks": ["CCM", "NIST-800-53-r5", "ATLAS", "CIS-AWS-v5.0.0", "NIST-800-218"],
"actors": [
"Platform Engineer (trusted)",
"AI Coding Agent (trusted, authoring IaC via Claude Code)",
"External Attacker (untrusted)",
"Malicious Insider (semi-trusted)"
],
"assets": [
"AWS Organization root credentials",
"Member account IAM roles",
"CloudTrail log bucket and KMS key",
"Config aggregator data",
"Security Hub findings"
],
"stride": [
{
"type": "S",
"name": "Root credential spoofing",
"description": "An external attacker acquires an AWS root account credential (e.g., via phishing a maintainer) and assumes that identity to reconfigure services out-of-band.",
"controls": [
"CCM:IAM-01",
"CCM:IAM-10",
"CIS-AWS-v5.0.0:1.4",
"CIS-AWS-v5.0.0:1.5",
"NIST-800-53-r5:IA-2"
]
},
{
"type": "T",
"name": "CloudTrail tampering",
"description": "A privileged principal (or a compromised IAM role) disables CloudTrail or modifies trail configuration to blind the incident-response pipeline. Prevention: multi-region CloudTrail with log-file validation and CMK-encrypted destination bucket.",
"controls": [
"CCM:LOG-02",
"CIS-AWS-v5.0.0:3.1",
"CIS-AWS-v5.0.0:3.2",
"CIS-AWS-v5.0.0:3.7",
"NIST-800-53-r5:AU-9",
"NIST-800-53-r5:AU-12"
]
},
{
"type": "R",
"name": "Repudiation via untagged IaC principal",
"description": "An IaC action appears in CloudTrail but the assumed role does not carry a distinguishing Hulumi tag (`hulumi:iac-role=true`). Without the tag, console break-glass looks identical to IaC deploys, degrading forensic attribution.",
"controls": ["CCM:IAM-06", "NIST-800-53-r5:AU-12"]
},
{
"type": "I",
"name": "Information disclosure via misconfigured KMS policies",
"description": "An overly permissive KMS key policy lets a broader principal set decrypt data encrypted at rest. Hulumi's `AccountFoundation` KMS ring (shipped in M3) applies `deny-without-tag` policies in Startup-Hardened tier.",
"controls": [
"CCM:CEK-03",
"CCM:CEK-04",
"CIS-AWS-v5.0.0:3.7",
"CIS-AWS-v5.0.0:3.8",
"NIST-800-53-r5:SC-12",
"NIST-800-53-r5:SC-28"
]
},
{
"type": "D",
"name": "Denial-of-service via unchecked resource creation",
"description": "A compromised IAM role creates thousands of expensive resources (EC2, NAT gateways, SageMaker endpoints), racking up cost and exhausting service quotas. Mitigations: budget alerts, SCPs restricting resource types, Security Hub findings reviewed promptly.",
"controls": ["CCM:LOG-04", "NIST-800-53-r5:SI-4"]
},
{
"type": "E",
"name": "LLM-authored elevation via stale AWS API knowledge",
"description": "Claude Code or another AI agent produces IaC that applies broad IAM permissions (`Resource: *`, `Action: *`) because its training data predates newer least-privilege defaults. Hulumi's baseline components cap these defaults; the `HulumiHardeningPack` (shipped in M2) blocks wildcard IAM policies at preview time.",
"controls": [
"CCM:IAM-07",
"CIS-AWS-v5.0.0:1.22",
"NIST-800-53-r5:AC-6",
"ATLAS:AML.T0080",
"ATLAS:AML.T0099",
"NIST-800-218A:RV.1.1"
]
}
],
"recommendedComponents": [
{
"name": "hulumi.baseline.aws.AccountFoundation",
"availability": "Shipped in M3 (v0.3)",
"rationale": "Composes CloudTrail + Config + GuardDuty + Security Hub + IAM baseline + KMS ring with tier-differentiated defaults (Sandbox / Startup-Hardened). Delivers this scenario's target end state as a single ComponentResource invocation."
},
{
"name": "hulumi.policies.aws.CisV5Pack",
"availability": "Shipped in M3 (v0.3; sections 1-3 full, 4-5 advisory stub)",
"rationale": "CrossGuard policy pack subscribing to CIS AWS Foundations v5.0.0. Provides preventive policy checks complementing Security Hub's detective findings."
},
{
"name": "hulumi.policies.aws.HulumiHardeningPack",
"availability": "Shipped in M2 (v0.2; H3 iac-role-tag rule mandatory at v1.0)",
"rationale": "Blocks raw `aws.s3.BucketV2`, file:// state backends, and IAM policies with `Resource: '*'` outside `iam:*` reads. The `hulumi:iac-role=true` tag check (advisory in M2, mandatory at v1.0.0 paired with the SCP template) is the compensating control for the repudiation threat above."
},
{
"name": "hulumi.drift.DriftClassifier",
"availability": "Shipped in M4 (v0.4)",
"rationale": "Post-deployment drift triage — distinguishes provider-API churn from console break-glass from genuine IaC drift using four pluggable local adapters. TLA+-verified verdict matrix; cache file mode 0600; CloudTrail filter requires hulumi:iac-role=true (full namespace)."
}
]
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |