Log inBook a Demo
SecureMidSecurityAuto-graded

Redact live credentials from exported support logs

Make the log scrubber replace every secret with a marker, value and all, and leave ordinary text alone.redact(text) in redactor.py scrubs the logs customers paste into support tickets. Tickets show tokens, card numbers and long hex/base64 blobs arriving in the clear, password=hunter2 coming out as [REDACTED]=hunter2, and ordinary sentences that mention a password getting mangled. Replace each secret with [REDACTED], leaving no fragment of its value, and keep everything else, emails included, exactly as it was. A log with no secrets must come back unchanged.
30 min
python

You're done when

  • Every secret is gone completely, with no fragment of its value left in the output.
  • AWS access keys are redacted.
  • Bearer tokens and JWTs are redacted.
  • Credentials written as key=value are redacted, value included.
  • Long hex and base64 secrets are redacted.
  • Card numbers are redacted, grouped or not.
  • Text that isn't a secret is kept, and lines without secrets come through unchanged.

What it measures

Secret coverageCatching every credential format in the brief, including the less obvious ones.
No partial leaksWhether any piece of a secret's value survives in the output.
Keeping the contextKeeping ordinary text, code and emails intact, so the bundle is still useful for debugging.

Your environment

Terminal + editorA full shell in the browser
Coding agentAlready signed in, no API key to set up
Isolated workspaceOnly yours, wiped when you finish

Start this lab

30 min
Start labYou'll need to sign in to Anthropos first. The lab opens in a private cloud workspace with your coding agent ready to use.
AI Labs is part of Anthropos Workforce. Not on your plan yet? Book a demo