Security Fest 2017

Security Fest CTF 2017 in Gothenburg: Format and Results

Security Fest CTF 2017 was a jeopardy contest attached to a conference in Gothenburg and built around ransomware. This guide covers the organizer, the format, the tasks, the top of the board and what a new team can expect.

Hexfield editorial

OrganizerAssuredSecNinjas
Dates31 May-1 Jun 2017
FormatJeopardy, Gothenburg
Teams445
Event
Digram plot of encrypted data filling the whole square evenly, with no visible structure
Encrypted or well-compressed data fills the digram square uniformly, which is the signature that ransomware-themed tasks ask players to recognize.

Organizer and setting

Security Fest is a conference held in Gothenburg, Sweden, and its capture-the-flag contest in 2017 was organized by the team AssuredSecNinjas. The contest ran on 31 May and 1 June 2017, is listed on CTFtime as event 467 and carries a weight of 23.5. The format is a jeopardy, the field was 445 teams, and the contest was open for remote participation, so teams from many time zones could compete.

The timing is what gives the 2017 edition its character. The WannaCry ransomware outbreak had hit hundreds of thousands of computers just a few weeks earlier, in May 2017, and the organizers built the board around the topic.

The ransomware theme

CTFtime lists 19 tasks. Among them are Ranshomware, a playful name that signals the theme, and Wanna try?, which is worth 500 points and sits at the top of the board. The theme gives a natural frame for several categories at once.

Ransomware has a recognizable anatomy, and tasks can follow it. A sample binary has to be analyzed to find how it picks files, how it generates a key and where it stores or sends that key. The encrypted file has to be recognized as such, which means telling an encrypted blob from a compressed one or from a file with a custom header. Then comes the cryptographic weakness: a key derived from the time, a short or repeated key stream, a block cipher with a predictable initialization vector, or a key left in memory. Network traffic of the malware adds a protocol to decode, and a decryption routine can be recovered when the key is known. A task named after WannaCry also points to the exploit chain that the real worm used, in which a vulnerability in the Windows SMB service delivered the payload.

Players with a background in binary data have an advantage here. An encrypted file fills a digram evenly, while a compressed one often leaves faint structure, and plain text collects in a corner. The compression versus encryption guide lays out these differences with real data, and the write-up of Decrypt the Undecryptable shows the same reasoning on another contest.

Format

All 19 tasks are on the board from the start, each with a value that reflects its difficulty. A flag is submitted when found, and the table is ranked by total points. The values are visible, so teams can see the price of each task and plan: a 500-point task costs several hours, and a team should decide early whether it has someone who can attempt it.

With 445 teams, the lower half of the table is made of teams that solved only a few of the easy tasks, and the top is a small group that cleared most of the board. That structure makes the first-day pace important: the top teams start with the cheap tasks to build a lead and then split their members across the hardest ones.

The published top of the board

The winner finished with 3,215 points. In second place came motesolo with 2,945, which is 270 points behind. OpenToAll took third place with 2,275, khack40 fourth with 2,180 and w0pr fifth with 1,990.

The shape is worth noting. The top two teams are far ahead of the rest, with a gap of 670 points between second and third, which is more than the value of the hardest single task on the board. A gap of that size fits a board where the most valuable tasks decide the order: the 500-point item alone is worth most of it. Below third place the table is dense, with differences of 95 and 190 points between the next positions.

What it is like for a new team

A conference CTF with a theme is a good place for a team that has not played much, because the theme gives a way to organize the work. Start by solving the tasks that are the most straightforward readings of the theme, such as a plain binary that decrypts files with a known algorithm, then move to the tasks that need a script. Keep a template for the standard analysis steps of a sample: identify the file type, extract strings, check imported functions for cryptography, then run it in a sandbox.

For teams that are more comfortable with web and crypto than with reverse engineering, the best use of the first hours is to read all the tasks and mark those that depend on understanding a binary, because they take longest. A shared timeline of submissions helps decide when to stop on a stuck task. More on how teams organize such contests is on the team page, and the blog carries related notes.

Where the event went later

Security Fest has continued as a yearly conference in Gothenburg, and its CTF has been played again in following years, each time with its own CTFtime page listing the teams and results. The 2017 edition is often remembered for the timing of its theme, since a ransomware outbreak and a ransomware contest fell within the same month.

Questions readers ask

Where was Security Fest CTF 2017 held?

The contest belonged to the Security Fest conference in Gothenburg, Sweden, and ran on 31 May and 1 June 2017. CTFtime lists the organizer as AssuredSecNinjas, the format as jeopardy and the field as 445 teams, so it was open to participants from all over the world.

What was the theme of the tasks?

Most tasks were built around ransomware, a topic that was in the news after the WannaCry outbreak of May 2017. Among the 19 tasks listed on CTFtime are Ranshomware and the 500-point Wanna try?, which is the most valuable item of the board.

How big was the winning margin?

The winner scored 3,215 points, 270 more than motesolo in second place. The next teams were OpenToAll with 2,275, khack40 with 2,180 and w0pr with 1,990. After the first two places the table is much more compressed.

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

Read the CTF guide