Let me first say, on behalf of the Recon team, we cannot thank the community enough for joining us last week.
It was the first time we've ever run an event like this: 100% virtual, remote, and open to anyone and everyone.
It was a huge success, and we got incredible feedback. people were friendly, engaged, and having fun until the end.
Throughout the day, we noticed a lot of you in the slack channels helping your fellow teammates, and even your opponents, when they got stuck in the game. it was pretty cool to witness bringing everyone together like that.
GLOBAL participation: y'all, this is epic.
The fact that we were able to share this event internationally meant the world (hah, see what I did there) to us.
Just look at all! these! colors! 😍 Brian was able to take all of the IP data from CTFd and generate this map with MaxMind. Check out his blog post that explains all of the nerdiness that went into generating it.
We ran 7 scenarios that made up the 385 challenges mentioned above.
Our team worked really hard all week to ensure that they went off without a hitch. I always say that this part deserves a blog on its own, because it absolutely does.
So much research and development goes into the scenario dev side of OpenSOC that participants never get to see (for obvious reasons).
THERE IS NEVER ENOUGH TIME.
If you are unfamiliar with how our scenarios work, check out this break down on the oldest and longest running scenario, "Urgent IT Update!!!". get all the nerdy details (read: awesome details) from Eric.
Like every event we run, we inevitably have hiccups along the way. huge live environment, lots of moving parts, hundreds of people beating it up--things happen.
BUT. It makes us unbelievably happy to be able to say that this was the smoothest event we've ever had, and the largest.
Graylog went "down" twice (down in quotes because not all nodes went down at the same time), but we now know exactly why.
And it was because of our old friend,
http_thread_pool_size, that we ran into last year.
We had roughly the same player count as we did at DEF CON last year, but DEF CON was stretched across 3-4 days.
Thursday, it was 650 people hammering on our systems, all within a 12 hour window. wildly different load.
And while we had scaled all the things up with regards to CPU/memory, I naively had only quadrupled this number, instead of what I should have done, which was multiply it by 16. The first time it happened, I bumped it to 128. That held for a brief period, but it didn't take long for it to get exhausted again.
Bumped it to 256, and it was smooth sailing for the rest of the event. lesson learned. And we'll start scaling horizontally now that we have a much better baseline for that kind of load.
We could not have asked for better performance testing.
This one caught us by surprise at a weird time. It was happy all day, with a couple brief periods where the viewer service caused memory consumption to get pretty high when there were so many people in there, but it corrected itself, and all was well. I had already upped resources on this system, so I was less concerned.
What I was not prepared for, was Elasticsearch being exhausted. Elasticsearch behind Moloch is a separate system, and smaller than what we have sitting behind Graylog, since Graylog gets punished a lot more during these events.
Typically, all of the scaling efforts we put towards Elasticsearch are because of so much data being ingested, not the other way around. And, as I mentioned, usually Graylog's Elasticsearch feels the brunt of this. Not Moloch's.
But, with this kind of turnout, and with so many people doing so much awesome querying, Elasticsearch was struggling to breathe, and at around 730PM EDT, it took a nosedive, and so did Moloch.
The es_rejected_execution_exception[bulk] is a bulk queue error. It occurs when the number of requests to the Elasticsearch cluster exceeds the bulk queue size (threadpool.bulk.queue_size). The bulk queue on each node can hold between 50 and 200 requests, depending on which Elasticsearch version you are using. When the queue is full, new requests are rejected.
So, TL;DR, we added more juice to Elasticsearch behind Moloch. problem solved.
This might have been the biggest surprise of all for me. And it was also my biggest fear going into this event.
Up until a few months ago, we relied heavily on Kolide as one of our DFIR systems in our environment(s). But, we had a lot of issues with it at DEF CON.
From DEF CON, excerpt:
a half a dozen users would query a single windows system, and the osquery agent on it would come to a halt. which meant no one could hunt on it.
we crafted a fix to clean and restart those agents on a schedule, and that worked for the duration of the event(s). this is by no means a long term fix, but it worked well enough in this case.
So, to avoid this going forward, we built our own osquery frontend.
While queries to endpoints still get queued, they self-correct and we don't have to restart services, or clear out any files, or kill any processes. We simply wait for it to finish the requests in the queue and carry on.
This only became an issue when the same system was getting hammered by everyone due to everyone simultaneously working through a particular scenario.
Caveat: I've never built an application for this many people, or built any application to be used at scale. To reiterate, putting this in front of 600 people to do their worst was terrifying. I had no idea what to expect, but it held up and I was stoked.
Now we just need to build in some more bumpers for folks still struggling with the query language. and osquery in general. And for the turds doing this kind of thing:
Some people just want to watch the world burn.
We have had so many scoreboard woes over the years. Platforms that scaled, but basic features were broken, or imports/exports were unreliable. Platforms that had all the things, but didn't scale.
We decided we wanted no more of that.
We finally caved and got a subscription with CTFd to host our scoreboards going forward. Their team has been super responsive anytime we've had an issue, and last Thursday went ALL DAY without a single "THE SCOREBOARD IS DOWN!!!"
It was beautiful. So, thank you, CTFd team. Nailed it.
THANK YOU, AGAIN
We hope you all had as much fun as we did (hopefully more). We love running OpenSOC--it is really a labor of love for this team. And it truly takes the entire team, especially for an event this large.
We thrive on giving back to a community that has provided us with so much of what we use and rely on.