Forfiles is a Windows utility commonly used in batch jobs to execute commands on one or more selected files or directories (ex: list all directories in a drive, read the first line of all files created yesterday, etc.). Forfiles can be executed from either the command line, Run window, or batch files/scripts. docs.microsoft.com
Forfiles can be used to locate certain types of files/directories in a system.(ex: locate all files with a specific extension, name, and/or age)netzpolitik.org
Forfiles can be used to subvert controls and possibly conceal command execution by not directly invoking cmd.x.com
Stealth48 detection rules
Standing S0193
Reach counts this tool’s techniques, tactics, groups and campaigns; coverage shows how well defended those techniques are, both compared with other ATT&CK software.
Reach
Techniques3Bottom 12%
12th percentile · 88% of 842 ATT&CK software entries have more Enterprise techniques.
Tactics3Bottom 21%
21st percentile · 79% of 842 ATT&CK software entries have more tactics spanned.
Threat group162% tie · 22 values
62% of the population shares a single value across only 22 distinct values, so a percentile here would rank the tie, not the entity.
Campaigns086% tie · 8 values
86% of the population shares a single value across only 8 distinct values, so a percentile here would rank the tie, not the entity.
Coverage
Rules / technique29med73rd pct
73rd percentile · 73% of 842 ATT&CK software entries have this many detection rules per technique or fewer.
Tests / technique5med41st pct
41st percentile · 59% of 842 ATT&CK software entries have more atomic tests per technique.
Forfiles detections S0193
100 distinct rules cover the 3 techniques recorded for this tool. 81 Sigma · 19 Splunk.
3 covered by at least one rule100 distinct rules in total
Showing 1-50 of 100 rules
Drag headers to reorder | Drag edges to resize
Source
Title
Description
OS
Product
Event
ATT&CK Techniques
Severity
Category
Status
CVEs
Refs
Author
ID
2023-11-30
SigmaHQ
Detects suspicious local connections via a named pipe to the AD FS configuration database (Windows Internal Database). (...)
Detects potential abuse of Windows Subsystem for Linux (WSL) binary as a Living of the Land binary in order to execute arbitrary Linux or Windows commands.
This detection identifies access to sensitive system and configuration files on an ESXi host, including authentication data, service configurations, and VMware-specific management settings. (...)
The following analytic detects suspicious database file and directory discovery activities, which may signal an attacker attempt to locate and assess critical database assets on a compromised system. (...)
The following analytic detects suspicious file and directory discovery activities, which may indicate an attacker's effort to locate sensitive documents and files on a compromised system. (...)
The following analytic detects suspicious creation of hidden files and directories, which may indicate an attacker's attempt to conceal malicious activities or unauthorized data. (...)
The following analytic detects suspicious discovery of virtual disk files and directories, which may indicate an attacker's attempt to locate and access virtualized storage environments. (...)
Microsoft Intune device remediation scripts are a tool administrators can use to remotely manage devices, this functionality can also be abused for SYSTEM level code execution and lateral movement to intune managed devices. (...)
Microsoft Intune supports deploying packaged applications to support software deployment, this functionality can also be abused for deploying malicious payloads to intune managed devices. (...)
Detects the execution of Notepad to open a file that has the string "password" which may indicate unauthorized access to credentials or suspicious activity.
Detects suspicious child processes related to Windows Shell utilities spawned by `conhost.exe`, which could indicate malicious activity using trusted system components.
Detects the invocation of vshadow.exe with the -exec parameter that executes a specified script or command after the shadow copies are created but before the VShadow tool exits. (...)