Sigma rule: Github New Secret Created

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-e0de3c510485, updated 2023-01-20T00:00:00.000Z.

Rule

Title
Github New Secret Created
Status
test
Level
low
Author
Muhammad Faisal (@faisalusuf)
Date
2023-01-20
File
rules/application/github/audit/github_new_secret_created.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects when a user creates action secret for the organization, environment, codespaces or repository.

Log source

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

False positives (as the rule lists them)

  • This detection cloud be noisy depending on the environment. It is recommended to keep a check on the new secrets when created and validate the "actor".

Tags

  • attack.persistence
  • attack.privilege-escalation
  • attack.initial-access
  • attack.stealth
  • attack.t1078.004

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/application/github/audit/github_new_secret_created.yml

Sources and licences

  • SigmaHQ

    "Github New Secret Created" by Muhammad Faisal (@faisalusuf) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/application/github/audit/github_new_secret_created.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Github New Secret Created",
entity page, dataset version ref-e0de3c510485, updated 2023-01-20T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/f9405037-bc97-4eb7-baba-167dad399b83 (accessed 2026-11-03).
Underlying source: SigmaHQ rule f9405037-bc97-4eb7-baba-167dad399b83, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.