Skip to content

Editing Challenges - Admin

Abstract

This article will guide you through the different processes of editing challenges in Cloud CTF. If you have not yet created a Cloud CTF environment, please refer to the article titled Creating a Cloud CTF Environment and the section titled Launching Your Cloud CTF Environment.

Edit Challenges Directly from the Main Challenges Page

One way for a CTF Admin to edit challenges is by navigating to the main challenges page in Cloud CTF. Editing from this page also allows a CTF Admin to test the challenge to ensure that it functions as expected and save the challenge to their Personal Challenge Library.

  1. To begin, open your Cloud CTF environment and navigate to the Challenges tab in the primary navigation bar.

    The Challenges tab is at the top of the screen, before the My Teams tab.

  2. Select the challenge you wish to edit.

    Challenges are located below the category headers.

  3. Once you have selected a challenge to edit, a pop-up window will appear. Within this window, there are a few controls along the bottom to choose from:

    1. The Edit button. This allows you to edit the challenge. Please refer to the section titled How to Edit Challenge Properties for more information.

    2. The Save button. This allows you to save the challenge. Please refer to the section titled How to Save a Challenge for more information.

    3. The Test button. This allows you to test the challenge after you have made changes or before you save it to your personal challenge library. Please refer to the section titled How to Test a Challenge for more information.

  4. To edit the challenge, please click on the Edit button, denoted with a pencil icon.

    The Edit button is in the bottom left of the challenge pop-up window.

  5. This will open the Edit a Challenge window.

  6. Please refer to the section titled How to Edit Challenge Properties for more information related to editing challenge properties.


Edit Challenges from the Admin Challenge Page

CTF Admins also have the ability to edit challenges from within the Admin page. Within the Challenges tab on the Admins page, CTF Admins get an overview of all active challenges for a CTF competition. Here, CTF Admins can view failed/successful challenge attempts and manage all challenges.

  1. To begin, navigate to the Admins page in the primary navigation bar.

    The Admins tab located after the Scoreboard tab.

  2. Next, click on the Challenges tab.

    The Challenges tab is located beneath the Admins heading, after the Teams tab.

  3. You will then be presented with a list of active challenges for the current CTF competition. Locate the challenge you wish to edit.

  4. Next, please click on the settings gear icon and then click Edit in the dropdown menu.

    The Settings icon is located before the name of a challenge, with Edit being the first choice.

  5. This will open the Edit a Challenge window.

  6. Please refer to the section titled How to Edit Challenge Properties for more information related to editing challenge properties.


Edit Challenges in Your Personal Challenge Library

CTF Admins have the ability to edit challenges from within their personal challenge library. The personal challenge library provides Admins the ability to save customized challenges for future competitions.

  1. To begin, navigate to the Admins page in the primary navigation bar.

    The Admins tab located after the Scoreboard tab.

  2. Click on the Library tab.

    The Library tab is located beneath the Admins heading, after the Challenges tab.

  3. Click on the settings gear icon to the left of the challenge you wish to edit and then click on Edit in the dropdown menu.

    The Settings icon is located before the name of a challenge, with edit being the first choice.

  4. Once you have clicked on edit, the Edit a Challenge window will appear.

  5. Please refer to the section titled How to Edit Challenge Properties for more information related to editing challenge properties.


How to Edit Challenge Properties

Challenge Properties

Once you have opened the Edit a Challenge window for a specific challenge, you can begin editing the challenge properties. The challenge properties are divided into four categories listed below. Each category can be accessed by clicking on the associated icon in the left-hand side of the window.


Edit Challenge Information

  1. Once you have opened the Edit a Challenge window, select the Flag icon in the top left of the pop-up window. This will allow you to edit general challenge information.

    The Flag Icon is first in the list of categories.

  2. Here you can edit the challenge name, description, point value, challenge flag type (String or Regex), and the actual flag (answer).

  3. To add another challenge flag, please click on Add a Flag and select either String or Regex (regular expression) as the flag type.

    • If the flag is a String type, the player has to match the string exactly, to include the same capitalization, punctuation, and spelling.
    • If the flag is a Regex, you may enter a regular expression that will be used to match the players' input. Regular expressions allow for more flexibility in the players' flag entry, but they are more complicated to create if you are not familiar with them. To learn more about regular expressions used for Regex flags, please refer to https://regex101.com.

    The String or Regex options can be found towards the bottom of the window, to the left of the Flag field.

Note

In addition to single-choice answer challenges, you also have the option of creating challenges with multiple answer choices. Please refer to our article titled Multiple Choice Challenges for more information.


Edit Artifacts and Hints

  1. To edit artifacts and hints, click on the Artifacts and Hints icon.

    The Artifacts and Hints Icon is located just under the Flag Icon.

  2. You will then be presented with challenge artifacts and hints attached to the challenge, and can click on the title of the artifact or hint to edit or remove it.

    • Artifact - A challenge artifact can be an uploaded file (text, binary, picture, etc.) or a link to an external website.
    • Hint - A challenge hint provides players with more information about a particular challenge, usually for a small point fee.

  3. To add an artifact to an existing challenge, click on Add an Artifact and then select your artifact type. This can be either a file or a web link.

  4. Next, supply a name for the artifact and then add a file or web link to the challenge. After you are finished, please click on Confirm to add the artifact to your challenge.

    Confirm is at the bottom right of the Add an Artifact pop-up window.

  5. To add a hint to an existing challenge, click on Add a Hint. You can then add a hint message and assign it a point value.

    • The hint message is the message that will be revealed to a CTF Player when they unlock the hint.
    • The point value is how much it will cost a team to unlock the hint.
  6. When you are finished, click Confirm to add the hint to the challenge.

    The Confirm button is in the bottom right of the Add a Hint pop-up window.


Advanced Challenge Settings

  1. To edit the advanced settings of a challenge, please click on the Advanced Settings icon.

    The Advanced Settings Icon is located just under the Artifacts and Hints Icon.

  2. Within the Advanced Settings, CTF Admins are able to edit the following:

    • Enabled Checkbox: This option allows CTF Admins to enable or disable challenges for a CTF competition. To hide a specific challenge for a CTF, uncheck the Enabled checkbox.
    • Category: This field allows CTF Admins to assign the challenge to a category. To modify the challenge category, click on the category field and select an existing challenge category from the dropdown menu or enter a new category name to create a new category. For more information on creating new categories, please refer to the article titled Category Management.
    • Max Number of Attempts: This field allows CTF Admins to limit the number of times a CTF player can attempt to solve this challenge.
    • Unlock This Challenge By Solving: This field allows CTF Admins to require players to solve specific challenges before unlocking others. To set a prerequisite challenge, click the field and select one or more challenges from the dropdown menu.

Edit Challenge Tags

  1. To edit challenge tags, click on the Tags icon.

    The Tag icon is located under the Advanced Settings icon.

  2. Next, click on the Tags input field.

  3. You can now begin typing a custom tag or select one from the dropdown menu that appears.

  4. When a tag has been successfully added, it will be shown below the tags input field and highlighted in blue.

  5. To remove a specific tag, please click on the X icon, located at the end of each tag added.


Edit Notes and Solutions

  1. To edit notes and solutions to a challenge, select the Notes and Solutions icon.

    The Notes and Solutions icon is the last in the list on the left, after the Tag icon.

  2. Type in any notes about the challenge or solution descriptions in their respective input fields.


How to Save a Challenge

Once you have finished editing your challenge, click on the Confirm button to save all changes made to the challenge.

The Confirm Button is located at the bottom right of the window.


How to Test a Challenge

Testing a challenge allows a CTF Admin to preview the behavior of a challenge without affecting the score or any statistics related to a competition. To test a challenge, please follow the steps below.

  1. Navigate to the Challenges tab in the primary navigation.

  2. Next, select the challenge you wish to test.

  3. A pop-up window will appear with a flag input field and a few controls related to the challenge. Please input what the correct flag should be to test the challenge.

  4. Next, please click the Test button.

    The Test button for a challenge is located at the bottom right of the window, before the Cancel button.

  5. You will then be presented with a message indicating whether the test passed or failed.

    • A green checkmark with the word "Match" indicates the test passed.
    • A red X with the words "No Match" indicate the test failed.

    The Testing window will show all flags saved to the challenge and whether the input flag matches any of them.


Regex Example

Our Cloud CTF competitions offers regular expressions (regex) answer matching engine. Regex is a very powerful, pattern matching syntax to test and grade multiple answers submitted by players. One well written regex answer match can solve many different student submission variations, as shown below. In order to test your regex patterns, follow the same instructions as listed in the string example above, only put your answer between the pattern slashes, and add the special regex symbols to indicate the criteria for your regex pattern.

The flag input of "wh4t th3 h3x is th15" is shown to match the regex flag of "/wh4t.*th3.*h3x.*is.*th15/ig".

In the image above, the regex matching pattern is between the slashes, and uses special characters to denote various patterns. In this case a single '.' represents any single character, while '.*' represents zero or more of any character. So putting '.*' between words catches zero or more spaces, underscores, hyphens, etc. The trailing 'i' after the slash means to match any upper/lower case letters within the slashes, and 'g' stands for "global" match, or accept anything before or after the match (such as a flag{answer} wrapper).

Given our use of .* and /ig, this one regex answer will match and be correct for all of (but not limited to) the following answers:

  • Wh4t_th3_h3x_is_th15
  • wh4t_th3_h3x_is_th15
  • flag{Wh4t_th3_h3x_is_th15}
  • flag{wh4t_th3_h3x_is_th15}
  • Hellowh4t_th3_h3x_is_th15World

This is much more efficient than attempting to write 14-15 or hundreds of different possible correct string answers.

If you are in need of a helpful website for writing regex, please refer to https://regex101.com.


How to Delete a Challenge

  1. To delete a challenge from the Edit a Challenge window, click on the Delete button.

    The Delete Button is located at the bottom left of the window.

  2. In the pop-up window that appears, check the box next to "I understand that this action is irreversible" and click the Confirm button to permanently delete the challenge.

    The checkbox must be checked to delete the challenge.


More on Challenge Management

If you are interested in learning more about managing challenges in Cloud CTF, please refer to the article titled Cloud CTF Challenge Management. Our Challenge Management article links to topics such as creating and saving custom challenges, adding challenge hints and flags, understanding challenge statistics, and other advanced challenge management features.


Have a Question? Contact Support

If you experience any issues starting or viewing Cloud CTF in your web browser, please refer to the article titled Can't Launch Cloud CTF for helpful tips on resolving the matter.

We're here to help you. If you still have questions after reviewing the information above, please feel free to submit a ticket with our Support Team and we'll get back to you as soon as possible.