Android and iOS

Sensitive-data disclosure in mobile logs

Code tampering, account abuse, data exposure and client manipulation.

Threats and abuse1 min readEditorial methods

A token or personal detail written into an error record creates another copy of protected data. Logging policy must cover failure paths and third-party components.

Evaluation approach

Apply masking or non-collection rules to tokens, personal information and transaction secrets. Separate development and production logging levels.

Application example

Use a correlation identifier instead of a session token in a RASP error report. Reproduce the issue with synthetic data.

Limits and considerations

Restricted log access does not justify unlimited data collection.

Diagnostic data creates another storage surface

A complete request or response sent for troubleshooting can carry tokens and personal data outside the application. Design log schemas field by field. Do not automatically include content that is unnecessary to explain the security event.

Verify masking in transmitted payloads and stored records, not only on screen. Review support exports and crash reports too. Retention and access boundaries should be as explicit as those for ordinary production data.

Checks and decisions

  • Remove sensitive fields
  • Reduce retention
  • Inspect support exports

Design diagnosability and data minimization together.

Sources

The primary references above provide the technical basis. Example workflows and evaluation suggestions are this publication’s explanations, not independent test results for a particular product.