{"id":"fecfd1a1-cc78-4313-a1ea-2ee2e8ec27a7","title":"PowerShell Logging Disabled Via Registry Key Tampering","description":"Detects changes to the registry for the currently logged-in user. In order to disable PowerShell module logging, script block logging or transcription and script execution logging","author":"frack113","status":"test","level":"high","date":"2022-04-02","modified":"2023-08-17","tags":["attack.stealth","attack.defense-impairment","attack.t1564.001","attack.t1112","attack.persistence"],"technique_ids":["T1112","T1564.001"],"logsource":{"category":"registry_set","product":"windows"},"falsepositives":["Unknown"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1112/T1112.md#atomic-test-32---windows-powershell-logging-disabled"],"source_path":"rules/windows/registry/registry_set/registry_set_powershell_logging_disabled.yml","source_sha256":"def2d009946917f0241a2871f0ae7ddefcc19f4a86bf88b629818c2b2a032890","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/registry/registry_set/registry_set_powershell_logging_disabled.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: PowerShell Logging Disabled Via Registry Key Tampering\nid: fecfd1a1-cc78-4313-a1ea-2ee2e8ec27a7\nstatus: test\ndescription: Detects changes to the registry for the currently logged-in user. In order to disable PowerShell module logging, script block logging or transcription and script execution logging\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1112/T1112.md#atomic-test-32---windows-powershell-logging-disabled\nauthor: frack113\ndate: 2022-04-02\nmodified: 2023-08-17\ntags:\n    - attack.stealth\n    - attack.defense-impairment\n    - attack.t1564.001\n    - attack.t1112\n    - attack.persistence\nlogsource:\n    category: registry_set\n    product: windows\ndetection:\n    selection:\n        TargetObject|contains:\n            - '\\Microsoft\\Windows\\PowerShell\\' # PowerShell 5\n            - '\\Microsoft\\PowerShellCore\\' # PowerShell 7\n        TargetObject|endswith:\n            - '\\ModuleLogging\\EnableModuleLogging'\n            - '\\ScriptBlockLogging\\EnableScriptBlockLogging'\n            - '\\ScriptBlockLogging\\EnableScriptBlockInvocationLogging'\n            - '\\Transcription\\EnableTranscripting'\n            - '\\Transcription\\EnableInvocationHeader'\n            - '\\EnableScripts'\n        Details: 'DWORD (0x00000000)'\n    condition: selection\nfalsepositives:\n    - Unknown\nlevel: high\nregression_tests_path: regression_data/rules/windows/registry/registry_set/registry_set_powershell_logging_disabled/info.yml\nsimulation:\n    - type: atomic-red-team\n      name: Disable PowerShell Logging via Registry\n      technique: T1112\n      atomic_guid: 95b25212-91a7-42ff-9613-124aca6845a8\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1112","id":"T1112","name":"Modify Registry","page":"techniques/enterprise/T1112/"},{"key":"enterprise/T1564.001","id":"T1564.001","name":"Hidden Files and Directories","page":"techniques/enterprise/T1564.001/"}],"data_path":"data/detection-rules/fecfd1a1-cc78-4313-a1ea-2ee2e8ec27a7.json","kind":"sigma"}
