Possible Creation of Github New Secret (via audit)

This rule detects when a user generates action secret for the organization, environment, codespaces or repository.

Sigmalowv1
sigma
title: Possible Creation of Github New Secret (via audit)
id: 504a354b-2788-5111-b0e8-41d93e8219d4
status: stable
description: This rule detects when a user generates action secret for the organization, environment, codespaces or repository.
author: Huntrule Team
date: 2026-04-09
references:
    - https://attack.mitre.org/techniques/T1078/004/
    - https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization#audit-log-actions
tags:
    - attack.persistence
    - attack.privilege-escalation
    - attack.initial-access
    - attack.stealth
    - attack.t1078.004
logsource:
    product: github
    service: audit
    definition: 'Requirements: The audit log streaming feature must be enabled to be able to receive such logs. You can enable following the documentation here: https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/streaming-the-audit-log-for-your-enterprise#setting-up-audit-log-streaming'
detection:
    selection:
        action:
            - 'codespaces.create_an_org_secret'
            - 'environment.create_actions_secret'
            - 'org.create_actions_secret'
            - 'repo.create_actions_secret'
    condition: selection
falsepositives:
    - Unknown
level: low

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.