Adding two new techniques to the rule - findmnt - mlocate #5091
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of the Pull Request
Techniqe 01 : findmnt
Identifying Network Shares
If the system uses network file systems (e.g., NFS, CIFS), findmnt can help locate paths to remote shares. Attackers may then attempt to access these shares for lateral movement or data exfiltration.
Example:
findmnt -t nfs
Output:
TARGET SOURCE FSTYPE OPTIONS
/mnt/share 192.168.1.100:/nfs nfs rw,vers=4.2
Adversary Usage: They might use the target IP (192.168.1.100) and path (/nfs) to probe the network share for misconfigurations or weak credentials.
log:
Nov 24 17:34:24 caldera-virtual-machine sysmon: 154100x8000000000000000251336Linux-Sysmon/Operationalcaldera-virtual-machine-2024-11-24 16:34:23.272{36fe7a82-558f-6743-6190-44f572550000}4214/usr/bin/findmnt-----findmnt -t nfs/home/calderacaldera{36fe7a82-0000-0000-e803-000000000000}10003no levelSHA256=d0a7b38954dbe00b6f7c733eb038eeefaf7c4c64bfbb1f346ffe6ce3dfd383bc{36fe7a82-1381-6743-d526-4b5458550000}2249/usr/bin/bashbashcaldera
host = caldera-virtual-machinesource = Syslog:Linux-Sysmon/Operationalsourcetype = sysmon_linux
Techniqe 02 : mlocate
Locating Sensitive Files
Attackers might search for files containing sensitive information, such as:
Passwords
Private keys
Configuration files
Database dumps
Example:
locate password
Output:
/etc/passwd
/home/user/passwords.txt
/var/www/html/backup_passwords.zip
Adversary Usage: The attacker might target /home/user/passwords.txt or backup_passwords.zip for credential theft.
log:
Nov 24 19:12:03 caldera-virtual-machine sysmon: 154100x8000000000000000251852Linux-Sysmon/Operationalcaldera-virtual-machine-2024-11-24 18:12:02.906{36fe7a82-6c72-6743-e17c-4b4151560000}5541/usr/bin/mlocate-----locate password/home/calderacaldera{36fe7a82-0000-0000-e803-000000000000}10003no levelSHA256=eb02f4b55245a599ca9047aa47fc07d064ffb98d45cbb0359a65b3c0fd5619ad{36fe7a82-1381-6743-d526-4b5458550000}2249/usr/bin/bashbashcaldera
host = caldera-virtual-machinesource = Syslog:Linux-Sysmon/Operationalsourcetype = sysmon_linux
Changelog
Example Log Event
Fixed Issues
SigmaHQ Rule Creation Conventions