DefCamp finals 2016

DefCamp CTF Finals 2016: Format, Tasks and Results

The DefCamp CTF final brought 16 qualified teams to Bucharest for an on-site jeopardy. This guide covers the organizer, the format, the tasks named on CTFtime, the top of the board and what to expect.

Hexfield editorial

OrganizerCCSIR.org
Dates10-11 Nov 2016
FormatOn-site jeopardy, Bucharest
Teams16
Event
Byte histogram of a 64-bit ELF binary with a large spike at zero bytes and a spread of low-value opcode bytes
A compiled ELF binary shows the zero-byte spike of padding and small immediates, the profile that reverse engineering tasks start from.

Organizer and setting

DefCamp is an information security conference held every year in Bucharest, Romania, and its capture-the-flag competition is organized by CCSIR.org, the Romanian association behind the conference program. The CTF runs in two stages. An online qualifier, usually in the autumn, selects the strongest teams, and the finals are played in the conference venue. The 2016 finals ran on 10 and 11 November 2016 and are listed on CTFtime as event 393, with a weight of 22.

On-site finals feel different from an online weekend. The 16 finalists sit in one hall, a conference is going on around them, and the schedule is fixed by the venue. Teams bring their own laptops and tooling, and the organizers provide the network and the scoring server. For a team that plays most contests from a living room, the main adjustment is physical: noise, shared tables, limited sleep and the lack of a second monitor.

Format

The finals use a jeopardy board. Each task has a point value, a flag is submitted to the scoring system, and the team with the most points at the end of play wins. There is no defended infrastructure and no attack-defense component, so the contest is a pure race of solving speed and breadth. The play time runs through the night, and the late hours of such a format tend to decide the table: a team that is waiting on one stubborn binary can still gain points elsewhere if a second member has a different task in hand.

With only 16 teams, the board stays readable. Every participant has qualified, so weaker entries that pad the middle of an open online contest are absent. The difference between the fifth and the sixth place is often a single task.

Tasks named on CTFtime

CTFtime lists five tasks for the finals: SMS, Personality, WildImage, Shredder and LeCrypto. The titles hint at the spread of categories. A task about an SMS service points toward a protocol or application bug in a messaging flow. Personality is a reverse engineering challenge whose solution is written up in a separate page on this site. WildImage suggests image parsing or a file-format trick. Shredder fits the common pattern of a document that has been cut into pieces which must be reassembled. LeCrypto is a cryptography task, as the name implies.

Tasks of those types share a few typical solution paths. Image and shredded-document tasks are won by the person who inspects the raw bytes first: the header, the chunk layout, the length fields and the appended data. A byte histogram or digram view separates compressed data from plain text within a second, and that is exactly the habit the binary visualization guide describes. Crypto tasks at this level tend to hide a textbook weakness, such as a reused nonce or a small public exponent, behind unusual packaging. Reverse engineering tasks reward patience with a decompiler and a willingness to write a small script instead of tracing by hand.

The published top of the board

The CTFtime result lists scryptos in first place with 4,622 points. A runner-up finished only 6 points behind, on 4,616. Third place went to dcua with 4,207, fourth to p4 with 4,015, and fifth to HackingForSoju with 3,508.

The top two are separated by less than one task’s worth of points, and then a gap of roughly 400 points opens to the rest of the table. In practice that means the winner and the runner-up cleared nearly the same set of tasks and the order came down to the time of the last accepted flag. Teams further down solved fewer tasks in total or spent too long on a single large one. A margin of 6 points on a board of this size is a reminder that submission timing, flag typos and wasted attempts are part of the game.

What it is like for a new team

A first-time finalist should expect three things. First, preparation matters more than in an online event, because there is no way to download a missing tool at the venue if the network is restricted: a prepared VM with disassemblers, a debugger, pwntools, a Python environment and offline documentation is worth more than a long tool list. Second, the schedule is demanding. Sleep in shifts, keep one person per category and rotate before fatigue sets in. Third, interaction with other teams is limited to the hallway; the real competition happens on the scoreboard, and teams are free to watch it live.

For teams that want to read ahead, the fastest preparation is to work through public write-ups of earlier DefCamp tasks, then practice the reverse engineering and file-format categories under a timer. The team page and the blog point to related material, and the CTFzone qualifier covered in another event guide shows a similar board from a different organizer.

Where the event went later

The DefCamp CTF continued in the following years with the same two-stage structure, an online qualifier followed by on-site finals during the conference week in Bucharest. The conference itself has grown into one of the larger security gatherings in Central and Eastern Europe, and the CTF remains a fixed part of its program. Each edition is listed on CTFtime with its own date, number of teams and result table, so the series can be followed year by year.

Questions readers ask

Where and when were the DefCamp CTF finals held?

The 2016 finals took place in Bucharest, Romania, on 10 and 11 November 2016, alongside the DefCamp security conference. CTFtime lists the organizer as CCSIR.org and the format as on-site jeopardy, so every finalist team sat in the same venue.

How many teams played and how heavy is the event?

Sixteen teams took part, all of them qualified through the online stage. CTFtime gives the finals a weight of 22, which is solid for a regional on-site event: the field is small, but it is made up of teams that already proved themselves in the qualifier.

Which task from this event has its own write-up?

The Personality task is covered in a separate page on this site, with the reasoning behind the solution. The other tasks named on CTFtime are SMS, WildImage, Shredder and LeCrypto, and those titles are a good starting point for anyone searching public write-ups.

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

Read the CTF guide