{"id":"f9405037-bc97-4eb7-baba-167dad399b83","title":"Github New Secret Created","description":"Detects when a user creates action secret for the organization, environment, codespaces or repository.","author":"Muhammad Faisal (@faisalusuf)","status":"test","level":"low","date":"2023-01-20","modified":"","tags":["attack.persistence","attack.privilege-escalation","attack.initial-access","attack.stealth","attack.t1078.004"],"technique_ids":["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"},"falsepositives":["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\"."],"references":["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"],"source_path":"rules/application/github/audit/github_new_secret_created.yml","source_sha256":"a520a929d65e817d3a16dd7cc7a863437ab55e575aee6705964faa793d0ac2f7","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/application/github/audit/github_new_secret_created.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Github New Secret Created\nid: f9405037-bc97-4eb7-baba-167dad399b83\nstatus: test\ndescription: Detects when a user creates action secret for the organization, environment, codespaces or repository.\nauthor: Muhammad Faisal (@faisalusuf)\ndate: 2023-01-20\nreferences:\n    - 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\ntags:\n    - attack.persistence\n    - attack.privilege-escalation\n    - attack.initial-access\n    - attack.stealth\n    - attack.t1078.004\nlogsource:\n    product: github\n    service: audit\n    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'\ndetection:\n    selection:\n        action:\n            - 'codespaces.create_an_org_secret'\n            - 'environment.create_actions_secret'\n            - 'org.create_actions_secret'\n            - 'repo.create_actions_secret'\n    condition: selection\nfalsepositives:\n    - 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\".\nlevel: low\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1078.004","id":"T1078.004","name":"Cloud Accounts","page":"techniques/enterprise/T1078.004/"}],"data_path":"data/detection-rules/f9405037-bc97-4eb7-baba-167dad399b83.json","kind":"sigma"}
