{"id":"f62176f3-8128-4faa-bf6c-83261322e5eb","title":"Malicious PowerShell Keywords","description":"Detects keywords from well-known PowerShell exploitation frameworks","author":"Sean Metcalf (source), Florian Roth (Nextron Systems)","status":"test","level":"medium","date":"2017-03-05","modified":"2023-06-20","tags":["attack.execution","attack.t1059.001"],"technique_ids":["T1059.001"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Depending on the scripts, this rule might require some initial tuning to fit the environment"],"references":["https://adsecurity.org/?p=2921"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_malicious_keywords.yml","source_sha256":"0154e84808ee8fb0ccdca21a2f68657403b5ba00f5dd283410546160117e1f5c","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_malicious_keywords.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Malicious PowerShell Keywords\nid: f62176f3-8128-4faa-bf6c-83261322e5eb\nstatus: test\ndescription: Detects keywords from well-known PowerShell exploitation frameworks\nreferences:\n    - https://adsecurity.org/?p=2921\nauthor: Sean Metcalf (source), Florian Roth (Nextron Systems)\ndate: 2017-03-05\nmodified: 2023-06-20\ntags:\n    - attack.execution\n    - attack.t1059.001\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection:\n        ScriptBlockText|contains:\n            - 'AdjustTokenPrivileges'\n            - 'IMAGE_NT_OPTIONAL_HDR64_MAGIC'\n            # - 'LSA_UNICODE_STRING'\n            - 'Metasploit'\n            - 'Microsoft.Win32.UnsafeNativeMethods'\n            - 'Mimikatz'\n            - 'MiniDumpWriteDump'\n            - 'PAGE_EXECUTE_READ'\n            - 'ReadProcessMemory.Invoke'\n            - 'SE_PRIVILEGE_ENABLED'\n            - 'SECURITY_DELEGATION'\n            - 'TOKEN_ADJUST_PRIVILEGES'\n            - 'TOKEN_ALL_ACCESS'\n            - 'TOKEN_ASSIGN_PRIMARY'\n            - 'TOKEN_DUPLICATE'\n            - 'TOKEN_ELEVATION'\n            - 'TOKEN_IMPERSONATE'\n            - 'TOKEN_INFORMATION_CLASS'\n            - 'TOKEN_PRIVILEGES'\n            - 'TOKEN_QUERY'\n    condition: selection\nfalsepositives:\n    - Depending on the scripts, this rule might require some initial tuning to fit the environment\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059.001","id":"T1059.001","name":"PowerShell","page":"techniques/enterprise/T1059.001/"}],"data_path":"data/detection-rules/f62176f3-8128-4faa-bf6c-83261322e5eb.json","kind":"sigma"}
