Elastic high stable kql

GitHub Organization Removed or Transferred from Enterprise

Identifies when a GitHub organization is removed from an enterprise or transferred to another enterprise. Removing an organization takes its repositories, members, audit history, and billing out of the enterprise's centralized management and security monitoring, while a transfer hands the organization and its repositories to a different enterprise or owner. An adversary with enterprise owner access can use either action to move intellectual property beyond the organization's visibility or to disrupt the enterprise's governance and security controls.

View Source

Detection Logic

from logs-github.audit-* metadata _id, _index, _version
| where
  event.module == "github" and data_stream.dataset == "github.audit"
    and event.action in ("business.remove_organization", "org.transfer_outgoing", "org.transfer")
| keep
    _id,
    _index,
    _version,
    @timestamp,
    event.action,
    user.name,
    github.org,
    github.actor_ip,
    github.hashed_token,
    github.programmatic_access_type,
    github.user_agent,
    github.business

False Positives

  • ⚠ Approved org moves between enterprises or decommission of a lab org. Confirm with enterprise owners before treating as incident.

Field Validations

Loading…

Comments (0)

Loading comments...