GitHub Advanced Security Disabled
Description
Detects GitHub Advanced Security being disabled for an enterprise, for all or new repositories in an organization, for existing or new user-namespace repositories, or for selected members via enterprise policy. Disabling GHAS removes secret scanning, code scanning, and related controls.
Query · esql
from logs-github.audit-* metadata _id, _index, _version
| where
event.module == "github" and data_stream.dataset == "github.audit"
and event.action in (
"business_advanced_security.disabled",
"business_advanced_security.disabled_for_new_repos",
"business_advanced_security.disabled_for_new_user_namespace_repos",
"business_advanced_security.user_namespace_repos_disabled",
"org.advanced_security_disabled_on_all_repos",
"org.advanced_security_disabled_for_new_repos",
"org.advanced_security_policy_selected_member_disabled"
)
| keep
_id,
_index,
_version,
@timestamp,
event.action,
user.name,
github.org,
github.repo,
github.actor_ip,
github.hashed_token,
github.programmatic_access_type,
github.user_agent,
github.business
Investigation fields
Pivot points the source recommends for triage.
@timestampevent.actionuser.namegithub.orggithub.repogithub.actor_ipgithub.hashed_tokengithub.programmatic_access_typegithub.user_agentgithub.business
Known false positives
- Cost-control or license changes that turn GHAS off for archival orgs. Confirm billing intent and that production orgs remain covered.
Analyst notes
Investigating GitHub Advanced Security Disabled
Enterprise business_advanced_security.* disable actions (for the business, new repositories, and existing or new user-namespace repositories) and org-level org.advanced_security_* disable actions (all repos, new repos, and selected-member policy) strip scanning coverage. This is separate from a single-repo repository_secret_scanning.disable.
Possible investigation steps
- Identify
user.name,event.action, andgithub.org. - Check secret scanning, Dependabot, and code scanning on critical repositories.
False positive analysis
- License downsizing with a finance ticket.
Response and remediation
- Re-enable Advanced Security. Review commits made while scanning was off.