Hack.lu CTF 2016

Hack.lu CTF 2016: Format, Tasks and Final Results

Hack.lu CTF 2016 was a high-weight online jeopardy played during the Luxembourg conference. This guide covers the organizer, the dates, the tasks, the top of the scoreboard and what a team should prepare.

Hexfield editorial

OrganizerFluxFingers
Dates19-20 Oct 2016
FormatOnline jeopardy
Teams220
Event
Byte map of a minified JavaScript file, showing dense printable ASCII with sparse control characters
A minified script fills the byte map with printable ASCII, which makes appended or embedded binary data easy to spot.

Organizer and conference

Hack.lu is an annual security conference in Luxembourg, and its capture-the-flag contest is organized by FluxFingers, the CTF team of the Ruhr University Bochum in Germany. The 2016 conference was the twelfth edition. The CTF ran on 19 and 20 October 2016, is listed on CTFtime as event 380, and was played online, so the conference attendees did not have to be present in order to compete.

The event has built a reputation for well-made, clean tasks. That reputation is reflected in the CTFtime weight of 55.04, one of the higher values of the 2016 season. The weight is derived from the ratings of the teams that finish near the top, so a figure above 50 says that the contest drew the strongest teams of the year and that a good placement meant a real step up in the global ranking.

Format and field

The contest is an online jeopardy with 220 teams on the final board. Each task has a point value, a flag is submitted when it is solved, and the board is ranked by total points with the time of the last accepted flag as tie-break. A team chooses its own order of attack, and a good strategy is to scan the whole list in the first half hour and give the first hour to whatever looks cheapest.

Over a two-day window the strongest teams do not run out of work, but the top of the board compresses. When many teams clear most tasks, a few points decide the order, and in 2016 that is exactly what happened.

The task list

CTFtime names eight tasks: Old-Tshirt Contest, Maze, dataonly, CthCoin, cornelius1, simplepdf, Cryptolocker and redacted. The names suggest the spread.

A task called Maze usually involves a binary or a service that encodes a path-finding problem, and the solution is a short script that walks the maze automatically. CthCoin points at a cryptocurrency or blockchain theme, where the weakness is normally a flaw in how a signature, hash or proof-of-work is checked. Cryptolocker follows the ransomware pattern: a program encrypts a file and the task is to recover the plaintext from a known or weak construction, for example a short key or a nonce that repeats. Document-format tasks such as simplepdf and redacted rely on the fact that a PDF is a container of objects, where hidden layers, compressed streams and incremental updates can hold data that the visible page does not show. In a redacted document the black box is often an overlay, and the text underneath is still stored in the content stream.

All of these reward the same first step: inspect the bytes. A PDF that contains a stream with unusually high entropy, an executable with a long run of near-random bytes, or a file where a layered digram shows a block of structure inside noise tells the player where to dig. The compression versus encryption page explains the visual difference between those cases.

The published top of the board

LC↯BC won with 2,281 points. A runner-up finished 3 points behind, on 2,278. Eat Sleep Pwn Repeat took third with 2,274, only 7 points off the lead. The next two teams were some distance back: 217 on 1,924 and 0daysober on 1,922.

So the first three places are inside 7 points, and then a gap of about 350 points opens. That pattern says three teams cleared essentially the full board while everyone else left one or two substantial tasks unsolved. With such small margins the order was settled by the final hours, and a single late flag moved a team between positions. It is a good example of why points alone do not describe the difference between the top teams.

What it is like for a new team

For a team entering a high-weight event for the first time, the main surprise is the pace of the top table. The easier items fall within hours, and then progress depends on depth in one category. The sensible approach is to specialize: assign each member a category, decide in advance who owns reverse engineering, crypto, web and forensics, and use chat to ask for a second opinion after about an hour of no progress.

Practical preparation includes a tested template for pwntools scripts, a Python environment with the usual crypto libraries, a local copy of the standard documentation for PDF and ZIP internals, and a habit of saving every intermediate file. Public write-ups appear soon after the contest, and reading those for unsolved tasks is the most efficient training. More background on how these skills are practiced sits on the team page and in the blog.

Where the event went later

The Hack.lu CTF kept its place in the October calendar in later years under the same organizers, with every edition tracked on CTFtime together with its task list and results. FluxFingers also run other events and publish their own task archives, so a player can practice on past Hack.lu challenges long after the contest ended. The conference side has continued as well, with talks, workshops and the CTF running in the same week in Luxembourg.

Questions readers ask

Who runs the Hack.lu CTF?

The CTF is organized by FluxFingers, the CTF team of the Ruhr University Bochum, as part of the Hack.lu conference in Luxembourg. In 2016 it ran online on 19 and 20 October, so teams from anywhere could take part while the conference itself took place in Luxembourg.

How strong was the 2016 field?

CTFtime gave the event a weight of 55.04, one of the higher values of that year, with 220 teams on the board. A weight above 50 means the strongest teams of the season took part, which is why the top of the table was so tight.

Which tasks were on the board?

CTFtime names eight tasks: Old-Tshirt Contest, Maze, dataonly, CthCoin, cornelius1, simplepdf, Cryptolocker and redacted. The titles cover reverse engineering, crypto, document formats and web-style problems, and public write-ups exist for most of them.

New to capture the flag? Formats, teams and a first-month plan in one place.

Read the CTF guide