{"id":"904e8e61-8edf-4350-b59c-b905fc8e810c","title":"Security Software Discovery Via Powershell Script","description":"Detects calls to \"get-process\" where the output is piped to a \"where-object\" filter to search for security solution processes.\nAdversaries may attempt to get a listing of security software, configurations, defensive tools, and sensors that are installed on a system or in a cloud environment. This may include things such as firewall rules and anti-virus\n","author":"frack113, Anish Bogati, Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2021-12-16","modified":"2023-10-24","tags":["attack.discovery","attack.t1518.001"],"technique_ids":["T1518.001"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["False positives might occur due to the nature of the ScriptBlock being ingested as a big blob. Initial tuning is required.","As the \"selection_cmdlet\" is common in scripts the matching engine might slow down the search. Change into regex or a more accurate string to avoid heavy resource consumption if experienced"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1518.001/T1518.001.md#atomic-test-2---security-software-discovery---powershell"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_get_process_security_software_discovery.yml","source_sha256":"2bd6e3fc916e3f09f9192796b9e6ba1f06ab714cd2ebe2bdbc19b44546e8ab62","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_get_process_security_software_discovery.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Security Software Discovery Via Powershell Script\nid: 904e8e61-8edf-4350-b59c-b905fc8e810c\nstatus: test\ndescription: |\n    Detects calls to \"get-process\" where the output is piped to a \"where-object\" filter to search for security solution processes.\n    Adversaries may attempt to get a listing of security software, configurations, defensive tools, and sensors that are installed on a system or in a cloud environment. This may include things such as firewall rules and anti-virus\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1518.001/T1518.001.md#atomic-test-2---security-software-discovery---powershell\nauthor: frack113, Anish Bogati, Nasreddine Bencherchali (Nextron Systems)\ndate: 2021-12-16\nmodified: 2023-10-24\ntags:\n    - attack.discovery\n    - attack.t1518.001\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection_cmdlet:\n        ScriptBlockText|contains:\n            - 'get-process | \\?'\n            - 'get-process | where'\n            - 'gps | \\?'\n            - 'gps | where'\n    selection_field:\n        ScriptBlockText|contains:\n            - 'Company -like'\n            - 'Description -like'\n            - 'Name -like'\n            - 'Path -like'\n            - 'Product -like'\n    selection_keywords:\n        ScriptBlockText|contains:\n            # Note: These strings are using wildcard assuming the search is using the \"-like\" operator.\n            #       You can add specific variant with the actual process names to increase coverage\n            - '\\*avira\\*'\n            - '\\*carbonblack\\*'\n            - '\\*cylance\\*'\n            - '\\*defender\\*'\n            - '\\*kaspersky\\*'\n            - '\\*malware\\*'\n            - '\\*sentinel\\*'\n            - '\\*symantec\\*'\n            - '\\*virus\\*'\n    condition: all of selection_*\nfalsepositives:\n    - False positives might occur due to the nature of the ScriptBlock being ingested as a big blob. Initial tuning is required.\n    - As the \"selection_cmdlet\" is common in scripts the matching engine might slow down the search. Change into regex or a more accurate string to avoid heavy resource consumption if experienced\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1518.001","id":"T1518.001","name":"Security Software Discovery","page":"techniques/enterprise/T1518.001/"}],"data_path":"data/detection-rules/904e8e61-8edf-4350-b59c-b905fc8e810c.json","kind":"sigma"}
