GitHub enterprise or organization recovery codes activity

This rule is part of a beta feature. To learn more, contact Support.

Goal

Detect when a GitHub enterprise or organization recovery code has been interacted with by a user.

Strategy

This rule monitors GitHub audit logs for when a Github recovery code is generated, viewed, downloaded, or printed. Attackers may use recovery codes to establish an administrator account and allow persistent access to the Github organization.

Triage and response

  1. Determine if the action taken by {{@github.actor}} is expected and/or authorized.
  2. If the change was not authorized or was unexpected, begin your organization’s incident response process and investigate.