Query: detection rule: Detects the usage of attrib with the "+s" option to set scripts or executables located in suspicious locations as system
Matching passage: Sigma rule: Detects the usage of attrib with the "+s" option to set scripts or executables located in suspicious locations as system. Logsource: windows / process_creation. Rule: title: Set Suspicious Files as System Files Using Attrib.EXE id: efec536f-72e8-4656-8960-5e85d091345b related: - id: bb19e94c-59ae-4c15-8c12-c563d23fe52b type: derived status: test description: 'Detects the usage of attrib with the "+s" option to set scripts or executables located in suspicious locations as system files to hide them from users and make them unable to be deleted with simple rights. The rule limits the search to specific extensions and directories to avoid FPs ' references: - https://app.any.run/tasks/c28cabc8-a19f-40f3-a78b-cae506a5c0d4 - https://app.any.run/tasks/cfc8870b-ccd7-4210-88cf-a8087476a6d0 - https://unit42.paloaltonetworks.com/unit42-sure-ill-take-new-combojack-malware-alters-clipboards-steal-cryptocurrency/ author: Nasreddine Bencherchali (Nextron Systems) date: 2022-06-28 modified: 2023-03-14 tags: - attack.stealth - attack.t1564.001 logsource: category: process_creation product: windows detection: selection_img: - Image|endswith: \attrib.exe - OriginalFileName: ATTRIB.EXE selection_cli: CommandLine|contains: ' +s' selection_paths: CommandLine|contains: - ' %' - \Users\Public\ - \AppData\Local\ - \ProgramData\ - \Downloads\ - \Windows\Temp\ selection_ext: CommandLine|contains: - .bat - .dll - .exe - .hta - .ps1 - .vbe - .vbs filter_optional_installer: CommandLine|contains|all: - \Windows\TEMP\ - .exe condition: all of selection* and not 1 of filter_optional_* falsepositives: - Unknown level: high
Near-miss passage: Sigma rule: Detects known hacktool execution based on image name.. Logsource: linux / process_creation. Rule: title: Linux HackTool Execution id: a015e032-146d-4717-8944-7a1884122111 status: test description: Detects known hacktool execution based on image name. references: - https://github.com/Gui774ume/ebpfkit - https://github.com/pathtofile/bad-bpf - https://github.com/carlospolop/PEASS-ng - https://github.com/t3l3machus/hoaxshell - https://github.com/t3l3machus/Villain - https://github.com/HavocFramework/Havoc - https://github.com/1N3/Sn1per - https://github.com/Ne0nd0g/merlin - https://github.com/Pennyw0rth/NetExec/ author: Nasreddine Bencherchali (Nextron Systems), Georg Lauenstein (sure[secure]) date: 2023-01-03 modified: 2024-09-19 tags: - attack.execution - attack.resource-development - attack.t1587 logsource: product: linux category: process_creation detection: selection_c2_frameworks: Image|endswith: - /crackmapexec - /havoc - /merlin-agent - /merlinServer-Linux-x64 - /msfconsole - /msfvenom - /ps-empire server - /ps-empire - /sliver-client - /sliver-server - /Villain.py selection_c2_framework_cobaltstrike: Image|contains: - /cobaltstrike - /teamserver selection_scanners: Image|endswith: - /autorecon - /httpx - /legion - /naabu - /netdiscover - /nuclei - /recon-ng selection_scanners_sniper: Image|contains: /sniper selection_web_enum: Image|endswith: - /dirb - /dirbuster - /eyewitness - /feroxbuster - /ffuf - /gobuster - /wfuzz - /whatweb selection_web_vuln: Image|endswith: - /joomscan - /nikto - /wpscan selection_exploit_tools: Image|endswith: - /aircrack-ng - /bloodhound-python - /bpfdos - /ebpfki - /evil-winrm - /hashcat - /hoaxshell.py - /hydra - /john - /ncrack - /nxc-ubuntu-latest - /pidhide - /pspy32 - /pspy32s - /pspy64 - /pspy64s - /setoolkit - /sqlmap - /writeblocker selection_linpeas: Image|contains: /linpeas condition: 1 of selection_* falsepositives: - Unlikely level: high