Description:

This check verifies that a publicly visible GitLab project includes a SECURITY.md file in its repository. This file tells external researchers and users how to responsibly report security vulnerabilities, typically including a contact method, disclosure process, and supported versions. This check applies only to projects with public visibility, since privately visible projects are not exposed to external researchers in the same way.


Rationale:

Public repositories can be discovered and reviewed by anyone on the internet, including independent security researchers who may identify a vulnerability. Without a clear, documented way to report an issue, a researcher may either give up on responsible disclosure or resort to public disclosure before the maintainers have had a chance to address the issue. A SECURITY.md file provides a clear, low-friction path for responsible vulnerability reporting, reducing the risk of surprise public disclosures and enabling maintainers to address issues before they become widely known.


Impact:

  • Provide external researchers with clear instructions for reporting vulnerabilities responsibly.

  • Reduce the likelihood of vulnerabilities being publicly disclosed before a fix is available.

  • Improve the project's security posture and transparency for external contributors and users.

  • Require little to no ongoing maintenance once created.


Default Value:

Not present By default, newly created GitLab projects do not include a SECURITY.md file. It must be manually added by a project maintainer.


Pre-Requisites:

  • Maintainer or Owner access to the project

  • An existing GitLab project


Test Plan:

  1. Sign in to GitLab at https://gitlab.com.

  2. Navigate to the target project.

  3. Confirm the project's visibility is set to Public (Settings → General → Visibility).

  4. Navigate to the project's repository files.

  5. Verify that a SECURITY.md file exists in the root directory of the default branch.


Implementation Steps:

  1. Sign in to GitLab at https://gitlab.com.

  2. Navigate to the target project.

  3. Confirm the project's visibility is Public (Settings → General → Visibility, if not already).

  4. Navigate to the project's repository.

  5. Create a new file named SECURITY.md in the root directory.

     

  1. Add content describing how to report vulnerabilities, including contact information, expected response times, and any disclosure policy.

  2. Commit the file to the default branch.


Backout Plan:

  1. Sign in to GitLab at https://gitlab.com.

  2. Navigate to the project's repository.

  3. Locate the SECURITY.md file.

  4. Delete the file if it was added as part of this remediation and needs to be reverted.

  5. Commit the change to the default branch.


Reference: