Skip to main content
Develop Tools
← Return to guide list

Code and Log Masking Checklist

This guide explains what to replace before sharing and how to review the masked or anonymized result.

Information to Remove Before Pasting

Remove credentials before entering data into a masking tool. If credentials may have been exposed, revoke and reissue them instead of relying only on the masked output.

Masking and Anonymization Workflow

  1. Extract only the minimum content required for sharing.
  2. Choose the masking tool that matches the source format.
  3. Set the type of masking target and handling of comments and values.
  4. Search the entire output, including any sections you manually unmasked.
  5. Check for broken parentheses, quotes, JSON syntax, etc.

Final Check Before Sharing

Specific example: Sharing code and logs for fault investigation

When sharing Java or Python source code and error logs, even if only the code is masked, the original class name or environment name may be revealed from the log's stack trace, URL, SQL, or file path.

  1. Extract only the code necessary for reproduction and the logs before and after the error occurred.
  2. Masking tools for code and log process according to each structure.
  3. Verify that identical customer IDs and session IDs map to the same dummy value.
  4. Search again for the original company name, project name, domain, IP, and email address in all results.

Don't assume that it's safe because there are hidden characters, but check to see if a third party can combine the remaining information to infer the organization, customer, or environment.

Frequently asked questions

Is it okay to hide only part of the API key?
As a general rule, we will delete and replace the entire content as it may lead to identification or misuse. If there is a possibility that the key has been compromised, please revoke the key and reissue it.
Can I post the masking results directly to AI or a public issue?
Automatic detection has limitations. Please manually search for original data-specific words, check the syntax, and check the scope of sharing before posting.

Related tools