Repository Secret Scanning Push Protection
| action | Description | Sample | Rule |
|---|---|---|---|
| repository_ | Secret scanning push protection was disabled for a repository. | Y | Y |
| repository_ | Secret scanning push protection was enabled for a repository. | Y | N |
repository_secret_scanning_push_protection.disable
#Description
Secret scanning push protection was disabled for a repository.
Documented on GitHub's enterprise audit log reference. Full rule details for this event, including ATT&CK technique mappings and native queries →Example Audit Log Entry #
{
"@timestamp": 1783910557925,
"_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDAwODA=",
"action": "repository_secret_scanning_push_protection.disable",
"actor": "user",
"actor_id": 9000002,
"actor_is_bot": false,
"actor_location": {
"country_code": "XX"
},
"business": "example-business",
"business_id": 9000003,
"created_at": 1783910557925,
"hashed_token": "U1lOVEhFVElDX1RPS0VOX0hBU0hfMDAwMQ==",
"operation_type": "modify",
"org": "example-org",
"org_id": 9000004,
"programmatic_access_type": "Personal access token (classic)",
"public_repo": false,
"repo": "user/example-repo",
"repo_id": 9000011,
"request_access_security_header": null,
"request_id": "94D6:32DEEF:B396DB6:B7677D0:6A54509D",
"token_id": 9000006,
"token_scopes": "admin:enterprise,admin:gpg_key,admin:org,admin:org_hook,admin:public_key,admin:repo_hook,admin:ssh_signing_key,audit_log,codespace,copilot,delete:packages,delete_repo,gist,notifications,project,repo,user,workflow,write:discussion,write:network_configurations,write:packages",
"user": "user",
"user_agent": "python-requests/2.34.2",
"user_id": 9000002
}
Detection Rules #
YARA-L #
T1562Panther #
T1562
repository_secret_scanning_push_protection.enable
#Description
Secret scanning push protection was enabled for a repository.
Documented on GitHub's enterprise audit log reference.Example Audit Log Entry #
{
"@timestamp": 1783910557460,
"_document_id": "U1lOX0RPQ18wMDAwMDAwMDAwMDAwODE=",
"action": "repository_secret_scanning_push_protection.enable",
"actor": "user",
"actor_id": 9000002,
"actor_is_bot": false,
"actor_location": {
"country_code": "XX"
},
"business": "example-business",
"business_id": 9000003,
"created_at": 1783910557460,
"hashed_token": "U1lOVEhFVElDX1RPS0VOX0hBU0hfMDAwMQ==",
"operation_type": "modify",
"org": "example-org",
"org_id": 9000004,
"programmatic_access_type": "Personal access token (classic)",
"public_repo": false,
"repo": "user/example-repo",
"repo_id": 9000011,
"request_access_security_header": null,
"request_id": "94D6:32DEEF:B396B38:B767572:6A54509D",
"token_id": 9000006,
"token_scopes": "admin:enterprise,admin:gpg_key,admin:org,admin:org_hook,admin:public_key,admin:repo_hook,admin:ssh_signing_key,audit_log,codespace,copilot,delete:packages,delete_repo,gist,notifications,project,repo,user,workflow,write:discussion,write:network_configurations,write:packages",
"user": "user",
"user_agent": "python-requests/2.34.2",
"user_id": 9000002
}