GitLab Security Incident Response Guide
This is a Controlled DocumentInline with GitLab’s regulatory obligations, changes to controlled documents must be approved or merged by a code owner. All contributions are welcome and encouraged.
The Security Incident Response Team (SIRT) is on-call 24/7/365 to assist with any security incidents. If an urgent security incident has been identified or you suspect an incident may have occurred, please refer to Engaging the Security Engineer On-Call.
Information about SIRT responsibilities and incident ownership is available in the SIRT On-Call Guide.
Security incident investigations are initiated when a security event has been detected on GitLab.com or as part of the GitLab company. These investigations are handled with the same level of urgency and priority regardless of whether it’s a single user or multiple projects.
Incident indicators can be reported to SIRT either internally, by a GitLab team member, or externally. It is the Security team’s responsibility to determine when to investigate dependent on the identification and verification of a security incident.
The GitLab Security team identifies security incidents as any violation, or threat of violation, of GitLab security, acceptable use or other relevant policies.
Roles & Responsibilities
|GitLab Team Members||Responsible for following the requirements in this procedure|
|SIRT||Responsible for implementing and executing this procedure|
|SIRT Management (Code Owners)||Responsible for approving significant changes and exceptions to this procedure|
Incident Response Process - this guide covers the following activities for all identified security incidents:
- The SIRT, other internal, or external entity identifies a Security or Privacy Event that may be the result of a potential exploitation of a Security Vulnerability or Weakness, or that may the result of an innocent error
- One of our Security detection controls identifies event outside of the established security baseline
- A security issue is escalated into an incident as a preventative measure
- SIRT determines whether the reported security or privacy event is in actuality security or a privacy event
- SIRT determines the incident severity and priority based on the following incident classification methodology
- Mitigates the root cause of the incident to prevent further damage or exposure
- SIRT may implement additional controls to minimize the damage as a result of the incident
- Determine if it is safe to continue operations with the affected system
- Permit or deny the operations of the affected system
- Components that have caused the security incident are eliminated
- Removal of the attackers’ access to the environment or the targeted system
- Strengthen the controls surrounding the affected system
- Represents the effort to restore the affected system’s operations after the problem that gave rise to the incident has been corrected
- Implementation of additional monitoring controls
- Update the incident record with any relevant details
- Post-Incident analysis and activities
- Post Mortem and lessons learned activity
Leaked Secrets Incident Response Process
When secrets are confirmed to be leaked, it is important to minimize the exposure time by immediately revoking the secrets. This can be done by automation or manual revocation by the Security team. Security will immediately revoke the secrets to prevent further abuse even if the potential impact of that action isn’t clearly understood at that time. In some cases this may cause disruption, when the secrets are being used for legitimate processes. Because of this potential for impact to services dependent on the revoked secrets, Security will post a notification to the
#security-revocation-self-service Slack channel, where secrets owners can use the channel for manual or automated self-service. Because the secret has already been exposed and revoked, and because it makes it easier for secrets owners to find their secrets in the channel, the clear text version of the revoked secret will be part of the notification.
Security incidents may (and usually do) involve sensitive information related to GitLab, GitLab’s customers or employees, or users who (in one way or another) have engaged with GitLab. GitLab, while codifying the Transparency value, also strongly believes in and strives to maintain the privacy and confidentiality of the data its employees, customers, and users have entrusted us with.
A confidential issue means any data within the issue and any discussions about the issue or investigation are to be kept to GitLab employees only unless permission is explicitly granted by GitLab Legal, a GitLab Security Director, the VP of Security, or the GitLab Executive Team.
Security incident investigations must begin by opening a new project and associated incident-type issue in the SIRT group. The project should be created using the Incident Response project template. The created issue will be used as tracking issue, and will be the primary location where all work and resulting data collection will reside throughout the investigation. If you would like to report an incident but do not have access to the SIRT group, please refer to the Engaging the Security Engineer On-Call page.
All artifacts from an investigation must be handled per the Artifact Handling and Sharing internal only runbook.
NOTE: The tracking issue, any collected data, and all other engagements involved in a Security Incident must be kept strictly confidential.
Assigning severity to an incident isn’t an exact science and it takes some rational concepts mixed with past experiences and gut feelings to decide how bad a situation may be. When considering severity, look at:
- The type of data involved and how it’s classified using the Data Classification Policy
- Was this data leaked or disclosed to parties who should not have visibility to it?
- Has the data been modified in our records? (either confirmed or believed to be)
- Was a user or service account taken over?
- What level of access did this account have and to what services or hosts?
- What actions were taken by the compromised account?
- If a vulnerability is present on a host or service, consider the impact it might have on GitLab and the likelihood of it being exploited by using the Risk Factors and Risk Scoring documentation.
- Was the vulnerability exploited? If so, how was it used and how frequently?
- What is the scope of the incident?
- How many GitLab.com users were/may have been impacted?
- How many hosts or services?
- Has this incident resulted in any hosts or services being unavailable?
To help place the correct severity rating on the incident you are about to submit, please refer to the Incident Classification page.
Internal Engagement & Escalation for High-Severity Incidents
Coordinate with internal teams and prepare for the incident investigation:
- Open an incident-focused Slack channel to centralize non-verbal discussion, particularly if the incident is of a sensitive nature. This should follow the naming convention
#sirt_####where #### is the GitLab issue number in the SIRT project.
- Pin a link to the SIRT Zoom conference bridge to the Slack channel’s topic and invite all available parties to this call for easier discussion.
- If a different high-severity incident is already in progress, create a new Zoom conference call and pin it to the incident Slack channel’s topic. Invite all available parties to this call for easier discussion.
- If the incident was created by the security pager, a Google Drive folder and shared Google Doc should have been created automatically and linked to the issue. If the incident was created manually:
- Set up a shared Google Drive folder or GCS bucket for centralized storage of evidence, data dumps, or other pieces of critical information for the incident.
- Try to capture significant thoughts, actions, and events in the incident issue as they’re unfolding. This will simplify potential hand-offs and an eventual Incident Review of the incident.
In the event that an incident needs to be escalated within GitLab, the Security Engineer On Call (SEOC) will page the Security Incident Manager On Call (SIMOC). It is the responsibility of the SIMOC to direct response activities, gather technical resources from required teams, coordinate communication efforts with the Communications Manager On Call, and further escalate the incident as necessary.
Characteristics of an incident requiring escalation include but are not limited to the following:
- Incidents involving or likely to involve data with an Orange or Red classification
- Incidents that are likely to impact, or are actively impacting the availability or functionality of essential services
- Incidents affecting legal or financial resources
- Incidents that are likely to require a breach notification or public notification
- Incidents involving criminal activity or that may require the involvement of law enforcement
- Incidents involving key personnel such as executive leadership
If applicable, coordinate the incident response with business contingency activities.
Once an incident has been identified and the severity has been set, the incident responder must attempt to limit the damage that has already occurred and prevent any further damage from occurring. When an incident issue is opened, it will automatically contain the
~Incident::Phase::Identification label. At the start of the containment phase this label will be updated to
The first step in this process is to identify impacted resources and determine a course of action to contain the incident while potentially also preserving evidence. Containment strategies will vary based on the type of incident but can be as simple as marking an issue confidential to prevent information disclosure or to block access to a network segment.
It’s important to remember the containment phase is typically a stop-gap measure to limit damage and not to produce a long term fix for the underlying problem. Additionally the impact of the mitigation on the service must be weighed against the severity of the incident.
priority::1/severity::1 incidents there may be times that SIRT or Infrastructure are unable to mitigate an issue, or identify the full impact of a potential mitigation. In these cases the Development Escalation Process can be used to engage with the development team on-call. It is important that this process is followed as documented and only for
Remediation and Recovery
During the remediation and recovery phase the incident responder will work to ensure impacted resources are secured and prepared to return the service to the production environment. This process may involve removing malicious or illicit content, updating access controls, deploying patches and hardening systems, redeploying systems completely, or a variety of other tasks depending on the type of incident. When transitioning from the containment phase into the remediation phase the SEOC will update the phase lable to
~Incident::Phase::Eradication and when the remediation is complete the label will be updated to
An Incident Review will be completed for all
severity::1 incidents to guide the remediation and recovery process. Careful planning is required to ensure successful recovery and prevention of repeat incidents. The incident responder coordinates impacted teams to test and validate all remediations prior to deployment.
This phase should prioritize short term changes that improve the overall security of impacted systems while the full recovery process may take several months as longer term improvements are developed. During the post remediation Incident Review process the incident phase label will be updated to
Upon completing the containment, remediation, communication and verification of impacted services, the incident will be considered resolved and the incident issues may be closed and the incident phase label will be changed to
The incident response process will move on to a post-mortem and lessons learned phase through which the process improvements and overall security of the organization can be analyzed and strengthened.
Internal & External Communication
Our security incident communication plan defines the who, what, when, and how of GitLab in notifying internal stakeholders and external customers of security incidents.
Engaging Law Enforcement
If during the course of investigating a security event the incident itself, materials involved in the incident (stored data, traffic/connections, etc), or actions surrounding the incident are deemed illegal in the United States, it may be necessary (and advisable) to engage U.S. law enforcement.
- The Security Engineer On-Call will immediately escalate to the Director of Security Operations to raise awareness of the legal concern.
- Following review, the Engineer and Director will engage the VP of Security and VP of Legal for validation of next steps.
- The Director of Security Operations will then contact the appropriate local law enforcement agencies, state agencies or US (federal) government agencies.
When You Join an Incident Channel or Call
In the event of a perceived major security incident (which may prove to not be one at a later point), adhoc communication is sometimes required for coordination. This is outlined in the sections above. If you are identified as someone who could assist during the perceived security incident with either the identification, confirmation, or mitigation of the incident, you will be added to a dedicated Zoom call or Slack channel. Upon joining that call/channel, please take note of the following:
- This is crisis management communication channel, that means that it’s private by default. It may contain business critical or PII information that cannot be shared with the larger company at this time, or ever. Should GitLab Security determine that the content of this particular communication channel can be made internally available or public at a later point, the required changes will be made.
- Read the channel history before asking questions. Get some context, read through past conversations and related documents. The relevant person will reach out to you with specific asks at the right time.
- Do your best to stay professional. However, be aware that security incidents are often stressful and we’re all humans. People may raise their voice, or use wording that seems unnecessary, harsh or inappropriate. It’s important to cut people some slack (no pun intended) during this stressful time, and raise/address any potentially erratic behavior with the relevant manager once the incident is over.
- Humor is your ally. No, it really is.
The correct use of dedicated scoped incident labels is critical to the sanity of the data in the incident tracker and the subsequent metrics gathering from it.
Incident denotes that an issue should be considered an incident and tracked as such.
||What stage is the incident at?|
||Incident is currently being triaged (log dives, analysis, and verification)|
||Limiting the damage (mitigations being put in place)|
||Cleaning, restoring, removing affected systems, or otherwise remediating findings|
||Testing fixes, restoring services, transitioning back to normal operations|
||The incident review process has begun (required for all S1/P1 incidents)|
||What is the nature of the incident?|
||Abusive activity impacted GitLab.com|
||Customer related request|
||Loss of data|
||Confidential information might have been disclosed to untrusted parties|
||Laptop or mobile device was lost or stolen|
||A service misconfiguration|
||Incident due to malicious network activity - DDoS, credential stuffing|
||Used to denote a false positive incident (such as an accidental page)|
||Data or systems were accessed without authorization|
||A vulnerability in GitLab and/or a service used by the organization has lead to a security incident|
||What is impacted?|
||One of GitLab’s AWS environments|
||GitLab’s Azure environment|
||Digital Ocean environment|
||GitLab’s GCP environment|
||Google Workspaces (GSuite, GDrive)|
||GitLab the organization and GitLab the product|
||Incident in vendor-operated SaaS platform|
||Team member devices|
||Other enterprise apps not defined here (Zoom, Slack, etc)|
||How did SIRT learn of the incident?|
||An external source (such as a GitLab.com customer)|
||An internal source (such as a finding by a team member)|
||How did GitLab learn of the incident?|
||Reported via email|
||Google Security Alert|
||Have I Been Pwned email|
||How accurate was the finding?|
We currently track several labels specific to phishing-related incidents:
||What type of phishing attack?|
||Denotes the attempt of having the user install an unwanted application.|
||Denotes phishing attacks that try to collect credentials.|
||Denotes phishing attacks that have a clear financial goal.|
||Denotes a situation where there is no phishing goal possible.|
||Denotes phishing emails that are part of an internal phishing simulation campaign.|
||A spam email that has been reported as phishing.|
Exceptions to this procedure will be tracked as per the Information Security Policy Exception Management Process.
- Parent Policy: Information Security Policy
- Security Communications Runbooks (internal)
- Incident Communications Plan
- Marketing Emergency Response process
- Time-sensitive blog post process
- Marketing rapid response process