Stealth Operations - The Evolution of GitLab's Red Team
Stealth Operations - The Evolution of GitLab's Red Team
This blog dives into the steps we took as we matured and lessons we
learned along the way. We also share highlights of a recent stealth
operation and the value it provided our organization.
https://about.gitlab.com/blog/2023/11/20/stealth-operations-the-evolution-of-gitlabs-red-team/ 11/21/23, 8 48 PM
Page 1 of 11
:
Where we started
Our Red Team was formed in July 2019 - about four years ago. We
started off as three engineers and one manager spread across the
U.S., Australia, and Europe.
Wrote down what we were doing, why were doing it, and what
rules we would stick to. This was critical to our success,
especially as a team that worked asynchronously across time
zones.
Met with our counterparts in Security Incident Response (SIRT)
to understand how they could benefit from an offensive security
practice.
Met with our counterparts in Engineering and IT to build
relationships and help them understand our overall goals and
approach.
Read. A lot. Documentation, runbooks, architecture diagrams.
Whatever we could find to understand GitLab's environment
and attack surface.
Getting to work
https://about.gitlab.com/blog/2023/11/20/stealth-operations-the-evolution-of-gitlabs-red-team/ 11/21/23, 8 48 PM
Page 2 of 11
:
Finally, it was time to hack.
This was great - it reduced risk at GitLab and gave our team a
chance to better understand our environment and its risks.
https://about.gitlab.com/blog/2023/11/20/stealth-operations-the-evolution-of-gitlabs-red-team/ 11/21/23, 8 48 PM
Page 3 of 11
:
We needed a plan.
This gave us a broad roadmap that we could work towards for the
next two-to-three years. Looking back, it was worth the effort. We
use the roadmap extensively, leveraging it to guide tricky decisions
and to plan quarterly goals that moved us further on our journey.
The inspiration for our model came from many places, including:
https://about.gitlab.com/blog/2023/11/20/stealth-operations-the-evolution-of-gitlabs-red-team/ 11/21/23, 8 48 PM
Page 4 of 11
:
Key milestones along the way
When we first wrote our maturity model, we were sitting somewhere
in the second column. Moving beyond that would require a big shift -
from opportunistically finding and exploiting vulnerabilities to
emulating adversaries and providing opportunities for detection and
response.
For us, that path started with Purple Teaming and then moved on to
stealth operations.
These strategies are highly aligned with our own, and build an
https://about.gitlab.com/blog/2023/11/20/stealth-operations-the-evolution-of-gitlabs-red-team/ 11/21/23, 8 48 PM
Page 5 of 11
:
excellent framework for a more collaborative approach in
planning, designing, and executing attack emulations. When both
teams are involved in all stages of a campaign, we are more likely
to produce an outcome that is actionable and beneficial to the
organization.
When the quarter was complete, we had the following to show for it:
https://about.gitlab.com/blog/2023/11/20/stealth-operations-the-evolution-of-gitlabs-red-team/ 11/21/23, 8 48 PM
Page 6 of 11
:
We replicated a token leak where an attacker leveraged legitimate
credentials to establish persistence and move laterally within the
GitLab.com environment. This provided an opportunity to test
existing security information and event management (SIEM) alerts,
validate the ability to locate all malicious activity in log files, and to
implement earlier detection and prevention capabilities.
One recent operation began with selecting an attack group that had
been in the news for targeting organizations similar to ours. This
operation spanned three months - the majority of which was spent
on researching the adversary and developing capabilities to emulate
them.
What we learned
At GitLab, we believe that performing Red Team operations in stealth
provides the most realistic opportunity to practice detecting and
responding to real-life attacks.
https://about.gitlab.com/blog/2023/11/20/stealth-operations-the-evolution-of-gitlabs-red-team/ 11/21/23, 8 48 PM
Page 11 of 11
: