Query: write Sigma for Detects when a modification (create, update or replace) action is taken that affects mutating or validating webhook conf
Matching passage: Sigma rule: Detects when a modification (create, update or replace) action is taken that affects mutating or validating webhook conf. Logsource: kubernetes / audit. Rule: title: Kubernetes Admission Controller Modification id: eed82177-38f5-4299-8a76-098d50d225ab related: - id: 6ad91e31-53df-4826-bd27-0166171c8040 type: similar status: test description: 'Detects when a modification (create, update or replace) action is taken that affects mutating or validating webhook configurations, as they can be used by an adversary to achieve persistence or exfiltrate access credentials. ' references: - https://kubernetes.io/docs/reference/config-api/apiserver-audit.v1/ - https://security.padok.fr/en/blog/kubernetes-webhook-attackers author: kelnage date: 2024-07-11 tags: - attack.privilege-escalation - attack.initial-access - attack.persistence - attack.stealth - attack.t1078 - attack.credential-access - attack.t1552 - attack.t1552.007 logsource: product: kubernetes service: audit detection: selection: objectRef.apiGroup: admissionregistration.k8s.io objectRef.resource: - mutatingwebhookconfigurations - validatingwebhookconfigurations verb: - create - delete - patch - replace - update condition: selection falsepositives: - Modifying the Kubernetes Admission Controller may need to be done by a system administrator. - Automated processes may need to take these actions and may need to be filtered. level: medium
Near-miss passage: Sigma rule: Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by application. Logsource: windows / registry_set. Rule: title: Potential Persistence Via Shim Database Modification id: dfb5b4e8-91d0-4291-b40a-e3b0d3942c45 status: test description: 'Adversaries may establish persistence and/or elevate privileges by executing malicious content triggered by application shims. The Microsoft Windows Application Compatibility Infrastructure/Framework (Application Shim) was created to allow for backward compatibility of software as the operating system codebase changes over time ' references: - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1546.011/T1546.011.md#atomic-test-3---registry-key-creation-andor-modification-events-for-sdb - https://www.fireeye.com/blog/threat-research/2017/05/fin7-shim-databases-persistence.html - https://andreafortuna.org/2018/11/12/process-injection-and-persistence-using-application-shimming/ author: frack113 date: 2021-12-30 modified: 2025-10-22 tags: - attack.privilege-escalation - attack.persistence - attack.t1546.011 logsource: category: registry_set product: windows detection: selection: TargetObject|contains: - \SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\InstalledSDB\ - \SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Custom\ filter_main_empty_string: Details: '' filter_main_empty_value: Details: (Empty) filter_main_null: Details: null condition: selection and not 1 of filter_main_* falsepositives: - Legitimate custom SHIM installations will also trigger this rule level: medium