Detectionmediumtest

Use Icacls to Hide File to Everyone

Detect use of icacls to deny access for everyone in Users folder sometimes used to hide malicious files

Open in Detection LabConvert ruleBuild Package
François HubautCreated 2022-07-18Updated 2024-04-294ae81040-fc1c-4249-bfa3-938d260214d9windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_icacls:
        - OriginalFileName: 'iCACLS.EXE'
        - Image|endswith: '\icacls.exe'
    selection_cmd: # icacls "C:\Users\admin\AppData\Local\37f92fe8-bcf0-4ee0-b8ba-561f797f5696" /deny *S-1-1-0:(OI)(CI)(DE,DC)
        CommandLine|contains|all:
            - '/deny'
            - '*S-1-1-0:'
    condition: all of selection_*
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

Rule Metadata
Rule ID
4ae81040-fc1c-4249-bfa3-938d260214d9
Status
test
Level
medium
Type
Detection
Created
2022-07-18
Modified
2024-04-29
Path
rules/windows/process_creation/proc_creation_win_icacls_deny.yml
Raw Tags
attack.stealthattack.t1564.001
View on GitHub