ByteToFlag
Menu

ByteToFlag / Example

What you write after Stage 1.

A note like this one is what you keep after Stage 1. At the Stage 1 checkpoint the page checks three answers; the note is for your own review, written alone and without hints. The file below is made up for this page; you will not meet it in the tasks.

Triage note · Q3-invoice.pdf.zip

Arrived as an e-mail attachment. Question asked: is it safe to open?

Claim
Windows hides the last extension, so the file shows as “Q3-invoice.pdf”: it claims to be a document.
Evidence 1 · first bytes
50 4B 03 04 = PK.., the mark of a ZIP container. A PDF starts with 25 50 44 46 (%PDF). It is an archive, not a document.
Evidence 2 · names inside
A ZIP stores the names of its files as plain text. Reading the bytes shows one file: invoice.pdf.js. A double extension; the real one is .js, a script Windows runs when it is double-clicked.
Evidence 3 · strings
Printable strings in the script include WScript.Shell (runs programs) and a web address, written here defanged as hxxp://update.example[.]invalid/a.
Decision
Do not open. Treat it as a script that downloads and runs something. Report it and delete the e-mail.
Confidence
High that it is not a PDF and contains a script. Medium on what the script does: it was read, not run.
Limits
The script was not decoded beyond its plain strings and was never executed. A sandbox run would confirm the download.

Where each line comes from

Start task 1