Back to all scenarios
Scenario #218
Security
K8s v1.21, Google Cloud

Exposure of Container Logs Due to Insufficient Log Management

Container logs were exposed to unauthorized users due to insufficient log management controls.

Find this helpful?
What Happened

Logs were stored in plain text and exposed to users who should not have had access, revealing sensitive data like error messages and stack traces.

Diagnosis Steps
  • 1Reviewed log access permissions and found that they were too permissive, allowing unauthorized users to access logs.
  • 2Checked the log storage system and found logs were being stored unencrypted.
Root Cause

Insufficient log management controls led to unauthorized access to sensitive logs.

Fix/Workaround
• Implemented access controls to restrict log access to authorized users only.
• Encrypted logs at rest and in transit to prevent exposure.
Lessons Learned

Logs should be securely stored and access should be restricted to authorized personnel only.

How to Avoid
  • 1Implement access control and encryption for logs.
  • 2Regularly review log access policies to ensure security best practices are followed.