Detection logic
Original SigmaHQ detection and related fields from the pinned file. The source file includes its full metadata.
logsource:
category: file_event
product: linux
detection:
selection:
TargetFilename|endswith: '/etc/nsswitch.conf'
filter_main_legitimate_path:
TargetFilename:
- '/etc/nsswitch.conf'
- '/usr/etc/nsswitch.conf'
- '/usr/share/factory/etc/nsswitch.conf'
filter_optional_snapshot:
TargetFilename|startswith: '/.snapshots/'
TargetFilename|endswith: '/snapshot/etc/nsswitch.conf'
filter_optional_snap:
TargetFilename|startswith: '/snap/core'
TargetFilename|endswith: '/etc/nsswitch.conf'
filter_optional_dracut:
TargetFilename|startswith: '/var/tmp/dracut.'
TargetFilename|endswith: '/initramfs/etc/nsswitch.conf'
condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
- Backup locations