liveBook · Manning

Credential compromise

As explained in Grokking Software Architecture

Secret compromise is the unauthorized exposure or acquisition of a credential that could enable access to protected systems or data.

Credential compromise occurs when a secret is exposed or acquired without authorization, potentially enabling access to protected systems or data. Prepare for it before an incident; do not wait for a credential to expire or an integration to fail. section 11.5.3

For a suspected compromise:

  • Revoke the secret and generate a replacement. section 11.5.3
  • Force re-authentication by severing active connections using the credential, or temporarily block affected services. section 11.5.3
  • Review logs to establish the timeline and scope of suspicious activity. section 11.5.3
  • Notify relevant security, operations, and—if customer data is involved—legal stakeholders; then find and fix the cause of the leak. section 11.5.3

How a secret can leak

A credential may be hardcoded in a Git commit or exposed through social engineering. Identify how it escaped, not just which secret to replace. section 11.5.3

Figure 11.7 Mature architectures "catch" authentication failures and swap in fresh secrets without stopping the application.

Illustrates how catching authentication failures and swapping in fresh secrets can keep an application running; this complements, but does not replace, the compromise response steps. section 11.5.3

How Grokking Software Architecture covers it

How deep it goes
Lists response steps from revocation through root-cause remediation, without detailing forensic investigation methods.
Examples
Uses a hardcoded Git commit and social engineering as possible leak causes.
What you can do after
Practice responding by revoking credentials, re-authenticating users or services, auditing activity, notifying stakeholders, and fixing the leak’s cause.
How it connects
Links credential compromise to Secrets Manager, secret rotation, authentication, and incident response.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Software Architecture. The section links point to the parts of the book it draws on.