SpinTheMic
Pro

Interview practice question

Secrets exposed in shell history and process lists

Cloud & DevOps · Linux and Scripting · Experienced

A security review finds database passwords in shell history files and visible in process lists on servers. How do you fix this?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Rotate exposed credentials.
  • Avoid passing secrets as CLI args.
  • Use env files with tight permissions or secret managers.
  • HISTIGNORE / leading space; clean history.
  • Audit scripts and runbooks.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics