Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding two new techniques to the rule - findmnt - mlocate #5091

Conversation

CheraghiMilad
Copy link
Contributor

@CheraghiMilad CheraghiMilad commented Nov 24, 2024

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

findmnt

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

locate

Changelog

Example Log Event

Fixed Issues

SigmaHQ Rule Creation Conventions

  • If your PR adds new rules, please consider following and applying these conventions

@github-actions github-actions bot added Rules Linux Pull request add/update linux related rules labels Nov 24, 2024
@frack113 frack113 added the Author Input Required changes the require information from original author of the rules label Nov 30, 2024
Copy link
Member

@frack113 frack113 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@frack113 frack113 added 2nd Review Needed PR need a second approval and removed Author Input Required changes the require information from original author of the rules labels Dec 1, 2024
@nasbench nasbench removed the 2nd Review Needed PR need a second approval label Dec 1, 2024
@nasbench nasbench merged commit c8e1d66 into SigmaHQ:master Dec 1, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux Pull request add/update linux related rules Rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants