Query: alert when Detects when a user disables a critical security feature for an organization.
Matching passage: Sigma rule: Detects when a user disables a critical security feature for an organization.. Logsource: github / audit. Rule: title: Github High Risk Configuration Disabled id: 8622c92d-c00e-463c-b09d-fd06166f6794 status: test description: Detects when a user disables a critical security feature for an organization. references: - https://docs.github.com/en/organizations/managing-oauth-access-to-your-organizations-data/disabling-oauth-app-access-restrictions-for-your-organization - https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization#dependabot_alerts-category-actions - https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository - https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise author: Muhammad Faisal (@faisalusuf) date: 2023-01-29 modified: 2024-07-22 tags: - attack.credential-access - attack.persistence - attack.defense-impairment - attack.t1556 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: - business_advanced_security.disabled_for_new_repos - business_advanced_security.disabled_for_new_user_namespace_repos - business_advanced_security.disabled - business_advanced_security.user_namespace_repos_disabled - org.advanced_security_disabled_for_new_repos - org.advanced_security_disabled_on_all_repos - org.advanced_security_policy_selected_member_disabled - org.disable_oauth_app_restrictions - org.disable_two_factor_requirement - repo.advanced_security_disabled condition: selection falsepositives: - Approved administrator/owner activities. level: high
Near-miss passage: Sigma rule: Detects potential overwriting and deletion of a file using DD.. Logsource: linux / process_creation. Rule: title: DD File Overwrite id: 2953194b-e33c-4859-b9e8-05948c167447 status: test description: Detects potential overwriting and deletion of a file using DD. references: - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1485/T1485.md#atomic-test-2---macoslinux---overwrite-file-with-dd author: Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research), MSTIC date: 2021-10-15 modified: 2022-07-07 tags: - attack.impact - attack.t1485 logsource: product: linux category: process_creation detection: selection1: Image: - /bin/dd - /usr/bin/dd selection2: CommandLine|contains: of= selection3: CommandLine|contains: - if=/dev/zero - if=/dev/null condition: all of selection* falsepositives: - Any user deleting files that way. level: low