Interview Prep/DevSecOps/Certificates, TLS and security incident response

An engineer reports their laptop was stolen while unlocked; it had a kubeconfig, an active AWS SSO session and a GitHub CLI token

IntermediateTroubleshootingCertificates, TLS and security incident response
Answer

Likely causes → Every cached credential on the device is now at risk until it is revoked.

Diagnose → Inventory what the person can access: IdP group memberships, AWS permission sets, GitHub org roles, and kubeconfig contexts. Then check recent activity from unknown IPs in CloudTrail, GitHub audit logs and Kubernetes audit logs.

Fix → In order: suspend the IdP account and revoke all sessions (this kills SSO-derived access), revoke GitHub tokens and SSH keys, revoke the AWS IAM Identity Center sessions, remove static Kubernetes credentials, and rotate any secrets stored locally (.env files). Trigger a remote wipe through MDM.

Prevent → Short-lived credentials only (SSO plus OIDC for kubectl), disk encryption with auto-lock enforced by MDM, and hardware security keys for the IdP.

All DevSecOps questions

More on Certificates, TLS and security incident response