{"id":"47e4bab7-c626-47dc-967b-255608c9a920","title":"Permission Misconfiguration Reconnaissance Via Findstr.EXE","description":"Detects usage of findstr with the \"EVERYONE\" or \"BUILTIN\" keywords.\nThis was seen being used in combination with \"icacls\" and other utilities to spot misconfigured files or folders permissions.\n","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2022-08-12","modified":"2023-11-11","tags":["attack.credential-access","attack.t1552.006"],"technique_ids":["T1552.006"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://www.absolomb.com/2018-01-26-Windows-Privilege-Escalation-Guide/"],"source_path":"rules/windows/process_creation/proc_creation_win_findstr_recon_everyone.yml","source_sha256":"69ba652ff7c955ecb3f3824b2cc6d431ff070cd9b57d5bfee9cd0f17edd4c1f6","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_findstr_recon_everyone.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Permission Misconfiguration Reconnaissance Via Findstr.EXE\nid: 47e4bab7-c626-47dc-967b-255608c9a920\nstatus: test\ndescription: |\n    Detects usage of findstr with the \"EVERYONE\" or \"BUILTIN\" keywords.\n    This was seen being used in combination with \"icacls\" and other utilities to spot misconfigured files or folders permissions.\nreferences:\n    - https://www.absolomb.com/2018-01-26-Windows-Privilege-Escalation-Guide/\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2022-08-12\nmodified: 2023-11-11\ntags:\n    - attack.credential-access\n    - attack.t1552.006\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_findstr_img:\n        - Image|endswith:\n              - '\\find.exe'\n              - '\\findstr.exe'\n        - OriginalFileName:\n              - 'FIND.EXE'\n              - 'FINDSTR.EXE'\n    selection_findstr_cli:\n        CommandLine|contains:\n            - '\"Everyone\"'\n            - \"'Everyone'\"\n            - '\"BUILTIN\\\\\"'\n            - \"'BUILTIN\\\\'\"\n    selection_special:\n        CommandLine|contains|all:\n            # Example CLI would be: icacls \"C:\\Program Files\\*\" 2>nul | findstr \"(M)\" | findstr \"Everyone\"\n            # You could extend it for other groups and users\n            #   Example: icacls \"C:\\Program Files\\*\" 2>nul | findstr \"(M)\" | findstr \"BUILTIN\\Users\"\n            # Note: This selection only detects the command when executed from a handler such as a \"cmd /c\" or \"powershell -c\"\n            - 'icacls '\n            - 'findstr '\n            - 'Everyone'\n    condition: all of selection_findstr_* or selection_special\nfalsepositives:\n    - Unknown\nlevel: medium\nregression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_findstr_recon_everyone/info.yml\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1552.006","id":"T1552.006","name":"Group Policy Preferences","page":"techniques/enterprise/T1552.006/"}],"data_path":"data/detection-rules/47e4bab7-c626-47dc-967b-255608c9a920.json","kind":"sigma"}
