Skip to content

Editing Challenges - Admin

Abstract

This KB article will cover how to edit challenges in Cloud CTF. If you have not yet created a Cloud CTF environment, please see the article titled Creating a Cloud CTF Environment and the section titled Launching Your Cloud CTF Environment.

There are a few ways to edit challenges in Cloud CTF. These include editing challenges directly from the main challenges page, editing challenges from the Admin challenges page, or editing challenges from within your personal challenge library. Please click on an option below to learn how to edit a challenge from one of the three different locations.


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. This option may be the quickest way to edit a challenge on the fly, and will allow a CTF Admin to Test the challenge to ensure that it is working as expected and even allow you to save it to your Personal Challenge Library. To begin, please see the steps below.

  1. Make sure you have clicked on the Challenges tab at the top of your screen, as shown in the example below.

  2. Next, please select a category that contains the challenge you wish to edit.

  3. Finally, please click on a challenge to view it.

    Clicking on the challenges tab allows you to see all active challenges for a Cloud CTF competition.

  4. Once you have selected a challenge to edit, a popup window will appear, as shown in the image below. There are three items highlighted in this image. They are:

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

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

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

  5. To edit the challenge, please click on the Edit icon.

    Clicking on the edit icon in the lower-left corner of the popup window allows you to edit a challenge.

  6. This will open the Edit a Challenge window and allow you to edit the challenge.

  7. Please see 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 have the ability to edit challenges from within the Admin page. By clicking on 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. To edit a challenge from this area, please follow the steps below.

  1. Navigate to the Admins page by clicking on ADMINS, as shown in the image below.

  2. Next, please click on the CHALLENGES tab.

    Clicking the admins tab takes you to the admins page where you can manage a Cloud CTF competition.

  3. You will then be presented with a list of active challenges for the current CTF competition, as shown in the example below.

  4. Please locate the challenge you wish to edit.

  5. Next, please click on the Settings icon and then click Edit.

    The Settings icon is located on the left side of the screen, as the second vertical column next to each Challenge name.

  6. This will open the Edit a Challenge window and allow you to edit the challenge.

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


Edit challenges in your Personal Challenge Library

Note

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

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. To edit a challenge located in your personal challenge library, please follow the steps below.

  1. Please click on ADMINS at the top of the page.

  2. Next, please click on the LIBRARY tab.

  3. Click on the settings icon to the left of the challenge you wish to edit.

  4. Finally, please click on Edit.

    The edit option is located just under the settings icon that was previously clicked, in a dropdown menu.

  5. Once you have clicked on edit, the Edit a Challenge window will appear, which will allow you to edit the challenge.

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


How to Edit Challenge Properties

Challenge Properties

  1. 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.

    The Edit a Challenge Window contains certain fields, such as Name, Description, Points, Type, and Flag.


Edit Challenge Information

  1. Once you have opened the Edit a Challenge window, please make sure the flag icon has been selected. This will allow you to edit general challenge information. The flag icon is located on the left-hand side of the window.

    The Flag Icon is located in the top left of the window, just under the header named Edit a Challenge.

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

    The Edit a Challenge Window contains certain fields, such as Name, Description, Points, Type, and Flag.

  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 see https://regex101.com.

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


Edit Artifacts and Hints

  1. To edit artifacts and hints, please make sure you have clicked on the Artifacts and Hints icon as shown in the image below.

    The Artifacts and Hints Icon is located on the left side of the screen, just under the Flag Icon. It is stylized as a paperclip.

  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 fee.

    Options and artifacts can be found under the artifact header. Options and hints can be found under the hint header.

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

  4. Next, please 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.

    Adding an Artifact to a Challenge

  5. To add a hint to an existing challenge, please click on Add a Hint, as shown in the example below.

    The Add a Hint option can be found under the Hints header.

  6. 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.

    The Add a Hint window will contain two fields, consisting of a Hint Message field, and a Points to Unlock this hint field.

  7. When you are finished, please click Confirm to add the hint to the challenge.


Advanced Challenge Settings

  1. To edit the advanced settings of a challenge, please click on the Settings icon, as shown in the image below.

    The Advanced Settings Icon is located on the left side of the screen, just under the paperclip Icon.

  2. You will then see three items that can be modified.

    • The Enabled checkbox allows CTF Admins to enable or disable challenges for a CTF competition. If you would like to hide a specific challenge for a CTF, simply uncheck the Enabled checkbox.
    • The Category field allows a CTF Admin to choose which category this challenge belongs to. To change the challenge category, please click on the category field, and either select an existing challenge category from the dropdown menu, or create a new category by typing in your desired category name. For more information on creating new categories, please see the article titled Category Management.
    • The Max number of attempts field allows CTF Admins to limit the number of times a CTF player can attempt to solve this challenge.

    Under the Settings header, the Enabled Checkbox, Category field, and Max number of attempts field can be found.


Edit Challenge Tags

  1. To edit challenge tags, please click on the Tags icon, as shown in the image below.

    The Tag Icon is located at the left side of the screen, under the Settings Icon.

  2. Next, please 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 as shown in the image below.

    The tag input field and delete icon are shown, with the Tag Input Field at the top, and the delete icon at the bottom left of the window.


How to Save a Challenge

  1. Once you have finished editing your challenge, please 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. Make sure you have clicked on the Challenges tab at the top of your screen, as shown in the example below.

  2. Next, please select a category that contains the challenge you wish to edit.

  3. Finally, please click on a challenge to view it.

    Clicking on a challenge on the challenges page will allow you to view challenge details.

  4. You will then see a popup window 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.

    The flag input field is located in the middle of the window, under the small flag header.

  5. Next, please click the Test button.

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

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

    • A green checkmark indicates the test passed.
    • A red X indicates the test failed.

    The Test Challenge message will appear under the flag input field, as a green checkmark, or a red x.


Regex Example

Our Cloud CTF competitions employ regular expressions (regex) to test and grade answers submitted by players. In order to test regex, you can follow the same instructions as listed in the string example above. You can test multiple different answers that should match the pattern.

This image shows an example of regex used in a sample Cloud CTF competition

In the image above, regex is shown clearly. This one regex answer will match and be correct for 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

Instructors have found that the following link has helped them write regex: please see https://regex101.com.


How to Delete a Challenge

  1. To delete a challenge from the Edit a Challenge window, please click on Delete, as shown in the image below.

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

  2. You will then be presented with a confirmation message informing you that the action you are about to take is not reversible. If you are certain you would like to delete the challenge, please check the box next to "I understand that this action is unrecoverable".

    The checkbox item for deleting a challenge can be found in the middle of the window, under the header named Are you Sure?

  3. Finally, please click on Confirm in the confirmation message window to completely delete the challenge.

    The Confirm Delete Button can be found at the bottom right of the window.


More on Challenge Management

If you are interested in learning more about managing challenges in Cloud CTF, please see the article titled Cloud CTF Challenge Management for more details. 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 see 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.