{"id":"63bf8794-9917-45bc-88dd-e1b5abc0ecfd","title":"Powershell Install a DLL in System Directory","description":"Uses PowerShell to install/copy a file into a system directory such as \"System32\" or \"SysWOW64\"","author":"frack113, Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"high","date":"2021-12-27","modified":"2024-01-22","tags":["attack.persistence","attack.credential-access","attack.defense-impairment","attack.t1556.002"],"technique_ids":["T1556.002"],"logsource":{"product":"windows","category":"ps_script","definition":"Requirements: Script Block Logging must be enabled"},"falsepositives":["Unknown"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1556.002/T1556.002.md#atomic-test-1---install-and-register-password-filter-dll"],"source_path":"rules/windows/powershell/powershell_script/posh_ps_copy_item_system_directory.yml","source_sha256":"8251fff2a38f22eb93f2c9ade696beb1f83961f3621ccf60be30fc86b7a4ddf8","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/powershell/powershell_script/posh_ps_copy_item_system_directory.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 Install a DLL in System Directory\nid: 63bf8794-9917-45bc-88dd-e1b5abc0ecfd\nstatus: test\ndescription: Uses PowerShell to install/copy a file into a system directory such as \"System32\" or \"SysWOW64\"\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1556.002/T1556.002.md#atomic-test-1---install-and-register-password-filter-dll\nauthor: frack113, Nasreddine Bencherchali (Nextron Systems)\ndate: 2021-12-27\nmodified: 2024-01-22\ntags:\n    - attack.persistence\n    - attack.credential-access\n    - attack.defense-impairment\n    - attack.t1556.002\nlogsource:\n    product: windows\n    category: ps_script\n    definition: 'Requirements: Script Block Logging must be enabled'\ndetection:\n    selection:\n        ScriptBlockText|re: '(Copy-Item|cpi) .{2,128} -Destination .{1,32}\\\\Windows\\\\(System32|SysWOW64)'\n    condition: selection\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1556.002","id":"T1556.002","name":"Password Filter DLL","page":"techniques/enterprise/T1556.002/"}],"data_path":"data/detection-rules/63bf8794-9917-45bc-88dd-e1b5abc0ecfd.json","kind":"sigma"}
