Redacting a screen recording before you upload it

A security demo works because it shows the real thing. That is also the risk. A terminal, a browser and a desktop hold far more than the part you meant to show, and a video keeps all of it, at every frame, for as long as the course is online.

This article covers what tends to leak, how to stop it at the source, how to fix what is left in editing, and what to do if something slips through anyway.

1What leaks in security demos

Most leaks are small and unintended. These are the ones to look for.

  1. Tokens and API keys, in a terminal, an environment variable listing, a configuration file or a browser developer tools panel.
  2. Internal IP ranges and hostnames, in a scan result, a routing table, a prompt or a log line. A private range still describes someone’s network.
  3. Client names, in folder paths, project names, file names, report titles and tabs.
  4. Email addresses, in a mail client, a git configuration, a certificate subject or a password manager list.
  5. Notifications, which slide in from the corner of the screen at the worst moment: chat messages, calendar reminders, mail previews.
  6. Browser autofill and suggestions, which can offer saved usernames, addresses and previously visited sites as you click into a field.
  7. Shell history, which a single press of the up arrow will show, and which a prompt may print in full.

Add the title bar, the bookmarks bar and the tab strip to that list. They are always on screen and rarely checked.

2Prepare a clean demo profile and machine

Redacting afterwards is the second line of defence. The first is not having anything sensitive to show.

  1. Use a virtual machine or a separate user account that exists only for recording. Install only what the demo needs.
  2. Use a fresh browser profile with no saved logins, no autofill, no extensions you do not need and a plain bookmarks bar.
  3. Create demo credentials, demo tokens and demo hostnames for the course. Use documentation address ranges and example domains where you can, so the footage never contains a real value.
  4. Clear the shell history before you start, and set the prompt to something short and generic.
  5. Turn on do not disturb, close chat, mail and calendar, and stop any sync client that can pop up a message.
  6. Set the screen to a plain background and a resolution that suits the video, so you are not tempted to crop later.
  7. Keep a list of values that must never appear, and search your own footage for them.

Do a short test recording first and watch it back. It costs a few minutes and tells you what the prepared environment still gives away.

3Blur and crop in editing

Some things will still need hiding. Use the editing tools to do it in a way that holds up.

  1. Crop when the sensitive part is at the edge of the frame, such as a taskbar or a tab strip. A crop removes the pixels. Nothing remains to recover.
  2. Use a solid block or a strong blur on text, and make it larger than the text, not an exact fit. A light blur on small text can sometimes be read back, and a pixelation filter can be partly reversed.
  3. Track the blur to anything that moves. A mask that stays still while a window is dragged leaves the value showing for a few frames.
  4. Cover the whole span the value is visible, not only the moment you noticed it. Scrub the timeline past the edges to be sure.
  5. Do not rely on zooming in on the part you want. The full frame may still be in the file.
  6. Export a new file. Do not upload the project, the raw recording or a file with extra tracks.

Remember audio and captions too. A spoken hostname or a client name in a transcript is as public as one on screen.

4Check before you upload

Watch the exported file through, at normal speed, with the volume up, then once more with the playback bar scrubbed in small steps through every screen change. Pause on each terminal, browser and dialogue box and read it as an attacker would.

If you can, ask someone else to watch it. They will see things you have stopped noticing. Check the thumbnail, the video title and the file name as well, and the metadata the editor wrote into the file.

5If something slipped

It happens to careful people. What matters is how quickly you act, and the order.

  1. Rotate the secret first. Treat any token, key or password that appeared on screen as exposed from the moment the video went public, and issue a new one. Removing the video does not undo the exposure.
  2. Tell whoever owns the affected system or client, so they can check for use of the old value.
  3. Replace the video. Fix it in editing, export a new file and upload it in place of the old one. Check that no copy of the old file remains attached to the lesson or listed under downloads. Ask us through the support form to remove the old file from the site too, because a file that is no longer attached can still be reachable at its address.
  4. Review the rest of the course for the same mistake. If one lesson leaked a token, others recorded in the same session may have.
  5. Tell us if you need help with the platform side. Use support.onlysecurity.com/ and describe the lesson affected, without pasting the secret into the request.

6Make it a habit

Treat the redaction check as part of finishing a lesson, like checking the audio. A short written checklist next to your recording setup is enough.

If you are thinking about turning your own demos into a course, you can apply at onlysecurity.com/trainer-application/.

More from this author