Slashdot Mirror


Ask Slashdot: Capture the Flag Training

An anonymous reader writes "I'm a computer science professor and a group of students want me to help them train for a capture the flag competition. I am interested in this and I'm familiar with security in general, but I've never been involved in one of these competitions. Does anyone know of any resources which would be useful to train for this?"

63 of 102 comments (clear)

  1. roblox? by goombah99 · · Score: 1

    lots of paintball capture the flags on roblox. not very realistic motions however unless you can jump higher than your head

    --
    Some drink at the fountain of knowledge. Others just gargle.
  2. CTF? by exomondo · · Score: 3, Interesting

    As in a real-world Capture the Flag or in a game like Team Fortress CTF?

    1. Re:CTF? by exomondo · · Score: 4, Insightful

      Oh nevermind, I assume you mean the DefCon style one, difficult to know when there's no link to anything.

    2. Re:CTF? by exomondo · · Score: 2

      I wasn't aware of it, I figured maybe they wanted him to help design algorithms/simulations for CTF-style games.

    3. Re:CTF? by Anonymous Coward · · Score: 2, Informative

      ctftime.org

      ctf github

      a lot of writeups, a lot of links to existing challenges from previous years. Don't read the writeup, and let them solve the downloadable challenges.

      go to defcon, play openctf

    4. Re:CTF? by EvanED · · Score: 3, Insightful

      I went straight there... but a year ago I hadn't heard of hacker-style CTF, and I would expect many other visitors haven't either. The comments bear either that or 'everyone is a troll' out.

    5. Re:CTF? by AJolly_2000 · · Score: 1

      Could be both. Check out Hack Fortress (at Defcon/Shmoocon every year)

    6. Re:CTF? by exomondo · · Score: 1

      Cheers!

    7. Re:CTF? by DoomSprinkles · · Score: 1

      Note, this guy *does* note that OP mentions security.

  3. Why not... by Anonymous Coward · · Score: 1

    ...use Unreal Tournament 99. Lots of levels for CTF, Last Man Standing, Deathmatch, Team Deathmatch and Assault.

    1. Re:Why not... by Hamsterdan · · Score: 1

      Domination was a favorite of mine when we had our clan...

      --
      I've got better things to do tonight than die.
    2. Re:Why not... by cstec · · Score: 1

      LMCTF

    3. Re:Why not... by AqD · · Score: 1

      Unreal Tournament 99 is only practically playable on 32-bit Windows now, because community-made plugins require it.

      It was the best days...

    4. Re:Why not... by phantomfive · · Score: 1

      Doesn't 64 bit windows support 32 bit mode?

      --
      "First they came for the slanderers and i said nothing."
    5. Re:Why not... by ihtoit · · Score: 1

      uh... there would be a problem if they required 16-bit environment, since 64-bit Windows has the canny ability to run 32-bit in compatibility mode (most of the time completely seamlessly) in which the memory space is shared. 16-bit mode in 64-bit requires a segregated memory space and a sandboxed environment.

      --
      Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
    6. Re:Why not... by AqD · · Score: 1

      Yes. It was when Vista came out and I remember the problem has something to do with native dll plugins. However, I just tried it and all seem to be fine now. They also made new renderers to take advantage of new hardwares.

  4. Not a good idea by Anonymous Coward · · Score: 1, Funny

    Most computer science students are fat and out of shape. Someone could get hurt.

    1. Re:Not a good idea by Anonymous Coward · · Score: 2, Funny

      Your stereotype is out of date. Most computer science students are Indians who eat curry and stay thin by dancing to Bollywood showtunes. Any fat American slob who is still studying computer science is an idiot who will never find a job.

    2. Re:Not a good idea by Anonymous Coward · · Score: 2, Funny

      Sorry, but your stereotype is out of date.

      Computer science students are all women because they were given scholarships and inflated grades in order to promote something mis-named "equality".

    3. Re:Not a good idea by Thanshin · · Score: 4, Funny

      Sorry, but your stereotype is out of date.

      There are no computer science students, only entrepreneurs who happen to be in the early stages of their short path to becoming multi-billionaires and who vote for the rightmost wing to protect their imminent fortune.

    4. Re:Not a good idea by Half-pint+HAL · · Score: 3, Insightful

      Sorry, but your stereotype is out of date.

      There are no computer science students, because the industry only wants trained monkeys rather than people who can do new and clever things, and demand that computer science courses are replaced with programming ones.

      --
      Got them moderator blues I blieve I walk out the do', With these mod-points I been gettin', I 'most never post no mo'
    5. Re:Not a good idea by Talderas · · Score: 4, Funny

      Sorry, but your stereotype is out of date. Ever since they gaved trained monkeys rights like humans the industry only wants drunk college coeds.

      --
      "Lack of speed can be overcome. In the worst case by patience." --Znork
    6. Re:Not a good idea by parkinglot777 · · Score: 1

      demand that computer science courses are replaced with programming ones.

      Sorry, but your stereotype is OFF.

      Computer Science is not teaching you to do "programming"! If you want to replace the core course with "programming," you are picking the wrong major. You should rather change your major and go on Information Technology/System instead because they do learn more in programming (look at their course catalogue).

  5. Best comments ever by Bovius · · Score: 2, Informative

    The comments to this post are hilarious.

    1. Re:Best comments ever by nazsco · · Score: 1

      co-co-co-combo breaker!

  6. Pico Ctf by Anonymous Coward · · Score: 1

    Pico CTf is a good start.

  7. Group wants, not want, by Anonymous Coward · · Score: 1

    "I'm a computer science professor and a group of students want me to help them train for a capture the flag competition."

    Why not just be a scout leader?

  8. ingress by Anonymous Coward · · Score: 1

    Www.ingress.com. it's about dominating control points. Lots of strategy and games are ongoing abd dynamic.

  9. The obvious by penguinoid · · Score: 3, Insightful

    Get as much information about the playing field as possible, and also the opponent robots. Study multiple strategies, and play them against each other. The optimum would identify the enemy's strategy and play the one strongest against that, but you may be unable to reliably identify it. When choosing a strategy, consider the rules and whether it is better to score as many flags as possible, or win as many games as possible.

    --
    Don't waste your vote! Vote for whoever you want, unless you live in a swing state it won't matter anyways
  10. For web-app CTFs by Anonymous Coward · · Score: 1

    Google Gruyere
    OWASP's vulnerable web app project
    HackThis Site

  11. Keep it up by Anonymous Coward · · Score: 5, Funny

    Not sure if the comments are hilariously misguided or weak trolls. Either way, good job.

    Next month:
    Team coached by Slashdotter banned from CTF competition. It took security two hours to apprehend all team members, who were running around non-stop. "We were just looking for their flag", said one of the members. When asked for their reasons to run like madmen on coke, they had this to say: "The other teams were not even trying, they were just fucking around on their computers. We found it strange at first, but kept looking". They accused other teams of cheating, stating "we searched for hours and found not a single flag, zero. The cheating bastards broke the rules, and even laughed at us. We found out and have been banned."
    When pressed for comments, their coach mumbled something about "stupid [inaudible] beta" and walked away without making eye contact.

  12. Have you looked at CyberPatriot? by plover · · Score: 2

    You didn't say how old your students are. If they're still in high school (or younger), consider the CyberPatriot competition. It's a National Youth Cyber Education Program, put on by the Air Force. In the competition, teams are given VM images that have various vulnerable operating systems that they have to keep operational while they keep them secure. The earlier rounds feature a scoring robot; in the later rounds the students face a Red Team.

    The entire competition is focused on defense, so there are no points for attack. Teams from around the country compete for a trip to the national finals. Prizes include scholarships for the winning teams.

    If you're interested, have a look at https://en.wikipedia.org/wiki/... . Today is the last day to register teams for this year's competition, so you might want to look quickly.

    Even if you're not interested in standing up a competitive team, their site provides instructions on how to build practice images, and you can download their scoring bot to see how well your teams fared. http://www.uscyberpatriot.org/...

    --
    John
    1. Re:Have you looked at CyberPatriot? by Spy+Handler · · Score: 1

      You didn't say how old your students are.

      First line of the summary says "I'm a computer science professor"

      His students are 18-23.

  13. Roll your own by Anonymous Coward · · Score: 1

    I would recommend rolling your own mini CTF style competition. Here at Evergreen some of the members have been creating chals for the rest of the team to solve as practice for the upcoming CSAW finals. They range from the very simple to somewhat complicated.
    For some examples on what you can do, check out:
    ctf.hackevergreen.com

    We often use resources from websites like:
    root-me.org
    phrack magazine
    (esp good one about stack smashing http://phrack.org/issues/49/14...)

  14. Another resource by plover · · Score: 3, Informative

    Sorry about following up to myself, but I just thought of another resource. The Information Security stackexchange site has several postings you might find of value. Search for CTF: http://security.stackexchange.... and you'll find really helpful sites like http://capture.thefl.ag/

    --
    John
  15. Edged weapons and grappling by Maxmin · · Score: 1

    I'm a traditionalist.

    --
    O lord, bless this thy holy hand grenade, that with it thou mayest blow thine enemies to tiny bits, in thy mercy.
    1. Re:Edged weapons and grappling by Thanshin · · Score: 1

      Which tradition involves edged weapons and grappling? Greco-Roman filleting?

    2. Re: Edged weapons and grappling by Anonymous Coward · · Score: 1

      Want to win CTF? Bring real guns. Win by default.

  16. The information you are looking for... by Visserau · · Score: 5, Informative

    That is, if you're trying to figure out WTF the CTF in question is. (I've never heard of it before, but it sounds cool.)

    Capture the Flag (CTF) is a special kind of information security competitions. There are three common types of CTFs: Jeopardy, Attack-Defence and mixed.

    Jeopardy-style CTFs has a couple of questions (tasks) in range of categories. For example, Web, Forensic, Crypto, Binary or something else. Team can gain some points for every solved task. More points for more complicated tasks usually. The next task in chain can be opened only after some team solve previous task. Then the game time is over sum of points shows you a CTF winer. Famous example of such CTF is Defcon CTF quals.

    Well, attack-defence is another interesting kind of competitions. Here every team has own network(or only one host) with vulnarable services. Your team has time for patching your services and developing exploits usually. So, then organizers connects participants of competition and the wargame starts! You should protect own services for defence points and hack opponents for attack points. Historically this is a first type of CTFs, everybody knows about DEF CON CTF - something like a World Cup of all other competitions.

    Mixed competitions may vary possible formats. It may be something like wargame with special time for task-based elements (like UCSB iCTF).

    CTF games often touch on many other aspects of information security: cryptography, stego, binary analysis, reverse engeneering, mobile security and others. Good teams generally have strong skills and experience in all these issues.

    https://ctftime.org/ctf-wtf/

    1. Re:The information you are looking for... by carnivore302 · · Score: 1

      Thanks, I was wondering what it was. Doesn't matter though, I feel too old for this shit.

      --
      Please login to access my lawn
    2. Re:The information you are looking for... by h4ck7h3p14n37 · · Score: 1

      Are you restricted from using common techniques to protect your system during the competition? Wouldn't one simply make their services unreachable by the attackers and declare victory? Doing basic things like filtering packets and requiring that clients present security certificates are going to be pretty much impossible to bypass.

  17. Yes by physicsphairy · · Score: 5, Funny

    For your convenience I have put some good resources in C:/ on the FBI mainframe.

    1. Re:Yes by fph+il+quozientatore · · Score: 1

      I'd be really scared if the FBI mainframe ran Windows...

      --
      My first program:

      Hell Segmentation fault

    2. Re:Yes by jfdavis668 · · Score: 1

      If the FBI mainframe ran VM/CMS, it would have a C drive.

  18. Suggested reading by ihtoit · · Score: 2

    The Fugitive Game, by J. Littman (9780316528696).

    Um... that's it, really. Unless you got time, in which case you could pick up The Art of Intrusion, The Art of Deception, or Ghost in the Wires (all K. D. Mitnick).

    --
    Political debates have me rolling my eyes so much I think I got optical whiplash. I should sue. - Foamy The Squirrel
  19. Willing to help by DrDevil · · Score: 1

    I'm also a comp sci prof and have played many cybersec ctfs. If you want to have a chat on the phone pm me and I can give some tips.

    Best
    Gareth

    1. Re:Willing to help by freeze128 · · Score: 2

      Don't do it! He'll hack your brain!

  20. quakelive kind of ctf? by PC_THE_GREAT · · Score: 1

    quakelive kind of ctf? 2 runs after the flags, the rest guards the base, keep running keep running keep running never stop.

  21. Software Tools by zhennian · · Score: 4, Informative

    I went looking for some open-source software to facilitate multi-team cyber training. There didn't seem to be much around so I wrote this set of python scripts to provide some basic CTF-like training - http://sourceforge.net/project.... You still have to set up all the servers and networking, but this lets you set up new tokens and keep score.

  22. Re:Banal by telchine · · Score: 2

    Stop pretending to be banal, and sit up; it'll ruin your posture.

  23. resources by numatrix · · Score: 5, Informative

    (for some reason the first time I loaded this page there were no comments, so some of this is duplicate)

    Excellent! Very glad to hear it. There are a /ton/ of helpful resources out there for you. Here's a brain-dump of some of the most popular:

    * CTFTime : http://ctftime.org/ : Website that tracks team scores, upcoming events, and writeups for previous events.
    * CapTF : http://captf.com/ : My CTF dump-site that includes a calendar, links to "practice" sites (aka Wargames), and many years worth of CTF events archived
    * Field Guide : http://trailofbits.github.io/c... : Specifically covering the skills / approaches, the field guide is a good read for anyone getting into this world.
    * Guide for Running a CTF : https://github.com/pwning/docs... : Written by PPP (CMU's ever-dominant CTF team) along with feedback from the broader CTF community, this guide is more relevant when making a CTF, but can aid in understanding how the good CTFs are designed.
    * PicoCTF : https://picoctf.com/ : PicoCTF is designed for high school students, but had an awesome difficulty curve, getting up to some relatively advanced challenges by the end of it. It's also extremely well designed, runs for a longer period of time and is a
    * CSAW : https://ctf.isis.poly.edu/ : One of the best events targeted specifically at College students, unfortunately the qualifier round just finished, and the participants already selected for the final round, but you can always check out the archives of previous challenges to get a feel for the difficulty. Note that the qualifier event is typically intended to be much easier than the in-person finals to better encourage new students to get into the sport.
    * IRC : irc.freenode.net#pwning : There's a lively and active community in #pwning on freenode that would be happy to help you with questions/advice related to CTFs.
    * YouTube : There's a couple of different presentations/talks on CTFs over the years. If your'e interested in learning more about attack-defense CTFs and in-particular DEF CON CTF, I gave an old talk that's mostly still relevant (https://www.youtube.com/watch?v=okPWY0FeUoU), though I'd recommend you not focus on A/D at first, but just get into the regular challenge based or jeopardy boards as they're sometimes called.

    The best way to prepare for CTF is by... playing CTFs. There's no real magic formula, just go out there and start working on challenges. Old CTFs are great as learning exercises since you can usually cheat and read a writeup, but avoid the temptation as much as possible. If stuck, go off and try another problem first, and only if you're /really/ stuck should you check out a writeup.

  24. root-me by zeropol · · Score: 3, Informative

    To train for CTF you may practice on root-me.org
    Also has IRC, forum, and some ressources.

  25. Just grep around by blueshift_1 · · Score: 1

    $ grep -v flag ctf.txt

  26. some free classes by raymorris · · Score: 1

    Along with the practice images others mentioned, some of your students may be interested in these free online classes, particularly the CYB-201 track.

    http://www.teex.org/teex.cfm?p...

  27. Links by Anonymous Coward · · Score: 1

    Trail of Bits have written a startup guide: https://trailofbits.github.io/ctf/ctf.html

    You will probably like to take a look at the Kali Linux distribution: http://www.kali.org/
    It's a Ubuntu based live distro (can be installed too) with lots of security tools.

    For web security you should take a look at WebGoat: https://www.owasp.org/index.php/Category:OWASP_WebGoat_Project
    It's a deliberately insecure Java web application with tutorials on each vulnerability.

    http://www.kioptrix.com/ - Is a couple of downloadable VM's with old but real vulnerabilities that you can use Metasploit or other public exploits on.

    For reverse engineering you can go to http://crackmes.de/ where you can download thousands of crackmes written in many languages and for many architectures and in many levels of difficulty.

    For binary exploitation try this one: http://io.smashthestack.org:84/
    You get ssh access to the 'level1' user through which you can somehow elevate you privilege to the 'level2' user and read his password. You can then relogin as 'level2' and elevate to 'level3' aaaand so on. They start out easy but become devilish.

    This one is also fun: http://treasure.pwnies.dk/
    Many different challenges.

    ShellStorm has an archive containing many challenges from previous CTFs: http://repo.shell-storm.org/CTF/
    Play with and crack them.

    If you like hours of videolectures goto http://opensecuritytraining.info/

    When you feel like you know a little, go to https://ctftime.org/ and sign up for the next CTF, get your asses kicked and learn a lot...then sign up for the next and get your asses kicked a little less and learn a lot...repeat many times and become h4x0rz.

  28. An oldie but goodie by Anonymous Coward · · Score: 1

    HackThisSite has been around since 2003. Its missions are old, but it's one of many good starting points. They're updating their challenges, too .. eventually.

  29. CTF resources by EdMcMan · · Score: 3, Informative

    Take a look at this list of practice or permanent CTFs. The root of the site also has a great archive of past CTFs, and other useful stuff.

  30. study past competitions by iceco2 · · Score: 2

    This is the best advice for any competition.
    Alsi arm yourselves with every tool you csn think of. Any minute spent familiarizing yourself with an extra tool is well spent.
    Several years ago I led a team of capture the flag, our main tool was simply metasploit(the only tool we used more than once), 8 hours into the conpetition we were down to the last flag trailing the leading team by 15 minutes. We collected a hint stating that some users use the same password on multiple servers which got us to attempt to retrieve all passwords from an already compromised windows machine and try them on an apparently iron clad linux box with nothing but the latest openssh exposed. The other teams were using john the ripper but we had rainbow tabels. This is the only different tool we used and it gave us the win.

    1. Re: study past competitions by iceco2 · · Score: 1

      Apologies for the horrible spelling.

  31. Make sure you get permissions... by INT_QRK · · Score: 2

    Make sure you get specific written permissions, and execute your exercise in a controlled, preferably closed, network to prevent unintended or collateral damage. Lots of laws come into play, and you don't want to risk liability for damage or criminal culpability for breaking any laws.

  32. LAPTOP! useful, indeed. by helobugz · · Score: 1

    Either way, start with portable computing. 0wn the server fake the flag. w00t.

    who's IP is 69.144.75.19 ? =).

  33. Organized sports or military training assistance. by Skip+Morris · · Score: 1

    Most commentators are assuming a computer-based game which is a reasonable assumption, but not guaranteed. They might actually want to do something different and get out into the woods.

    My experience with CTF games using paintball guns is the the vast majority of players want to strike out on their own or with a couple friends and be the hero. No concept of discipline, organization, or coordinated action exists. These groups of Rambos are easy pickings for any group that has learned to work together in a planned action. Military veterans and most people who have spent time playing in team sports will have developed the skills and ability to work in a group. Enlist people like that to teach your students to work together.