{"id":13846039,"url":"https://github.com/mrtc0/kubectf","last_synced_at":"2025-04-15T23:05:06.765Z","repository":{"id":84696498,"uuid":"320750138","full_name":"mrtc0/kubectf","owner":"mrtc0","description":"Kubernetes CTF","archived":false,"fork":false,"pushed_at":"2020-12-12T04:48:40.000Z","size":20,"stargazers_count":43,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-15T23:04:42.523Z","etag":null,"topics":["ctf","kubernetes","security"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrtc0.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-12-12T04:48:25.000Z","updated_at":"2024-04-29T08:20:42.000Z","dependencies_parsed_at":"2023-03-02T11:01:13.122Z","dependency_job_id":null,"html_url":"https://github.com/mrtc0/kubectf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtc0%2Fkubectf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtc0%2Fkubectf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtc0%2Fkubectf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtc0%2Fkubectf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrtc0","download_url":"https://codeload.github.com/mrtc0/kubectf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249167447,"owners_count":21223506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ctf","kubernetes","security"],"created_at":"2024-08-04T17:04:18.322Z","updated_at":"2025-04-15T23:05:06.735Z","avatar_url":"https://github.com/mrtc0.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"# kubectf\n\n# Requirements\n\n* minikube\n* kubectl\n* Docker Engine\n  * Add `{ \"insecure-registries\": [\"docker.for.mac.localhost:5000\"] }` to Docker configuration.\n\nmore information [docs/requirements.md](docs/requirements.md)\n\n# Getting Started\n\n```shell\n$ minikube start --driver=virtualbox\n$ ./setup.sh\n```\n\n# Rule\n\nPod の一つに侵入することができたという想定で、権限昇格を行って `k8sctf{...}` というフォーマットの文字列(flag)を探し出します。  \n各問題の namespace に victim- プレフィックスのついた名前を持つ Pod がいますので、その Pod に入って問題に取り組んでください。\n\n```shell\n$ kubens mountme\n❯ kubectl get pods\nNAME                      READY   STATUS    RESTARTS   AGE\nvictim-7c5745b4dc-jxd5t   1/1     Running   0          14m\n\n❯ kubectl exec -it victim-7c5745b4dc-jxd5t bash\nI have no name!@victim-7c5745b4dc-jxd5t:/$\n```\n\n以下細かい点です。\n\n* このリポジトリの中には答えである flag が入っているので、真面目に問題を解きたいひとは見ないようにしてください。\n* クラスタ管理者という立場ではなく、victim という Pod に何らかの手段で侵入できた攻撃者という立場で取り組んでください。\n  * なので manifest の変更等は禁止です。victim Pod の中から実行可能な範囲のみで取り組んでください。\n\n# Challenges\n\n| Title | Difficulty | Description |\n|:-----:|:---------:|:----------:|\n| Mount me | 🔥 | [Link](manifests/01_challenges/mountme/README.md) |\n| Can You Keep A Secret? | 🔥 | [Link](manifests/01_challenges/can-you-keep-a-secret/README.md) |\n| Treasure Hunt | 🔥🔥 | [Link](manifests/01_challenges/treasure-hunt/README.md) |\n| Mount me 2 | 🔥🔥 | [Link](manifests/01_challenges/mountme2/README.md) |\n| Sniff | 🔥🔥 | [Link](manifests/01_challenges/sniff/README.md) |\n\n# Writeups\n\n2020 年年末に公開します\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtc0%2Fkubectf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrtc0%2Fkubectf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtc0%2Fkubectf/lists"}