{"id":"75bf09fa-1dd7-4d18-9af9-dd9e492562eb","title":"ADSI-Cache File Creation By Uncommon Tool","description":"Detects the creation of an \"Active Directory Schema Cache File\" (.sch) file by an uncommon tool.","author":"xknow @xknow_infosec, Tim Shelton","status":"test","level":"medium","date":"2019-03-24","modified":"2023-10-18","tags":["attack.t1001.003","attack.command-and-control"],"technique_ids":["T1001.003"],"logsource":{"product":"windows","category":"file_event"},"falsepositives":["Other legimate tools, which do ADSI (LDAP) operations, e.g. any remoting activity by MMC, Powershell, Windows etc."],"references":["https://medium.com/@ivecodoe/detecting-ldapfragger-a-newly-released-cobalt-strike-beacon-using-ldap-for-c2-communication-c274a7f00961","https://blog.fox-it.com/2020/03/19/ldapfragger-command-and-control-over-ldap-attributes/","https://github.com/fox-it/LDAPFragger"],"source_path":"rules/windows/file/file_event/file_event_win_adsi_cache_creation_by_uncommon_tool.yml","source_sha256":"1c35b755f79dab4ae87f16e414b7b633bfa772f8d97bbf42fd907245ff7592a8","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/file/file_event/file_event_win_adsi_cache_creation_by_uncommon_tool.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: ADSI-Cache File Creation By Uncommon Tool\nid: 75bf09fa-1dd7-4d18-9af9-dd9e492562eb\nstatus: test\ndescription: Detects the creation of an \"Active Directory Schema Cache File\" (.sch) file by an uncommon tool.\nreferences:\n    - https://medium.com/@ivecodoe/detecting-ldapfragger-a-newly-released-cobalt-strike-beacon-using-ldap-for-c2-communication-c274a7f00961\n    - https://blog.fox-it.com/2020/03/19/ldapfragger-command-and-control-over-ldap-attributes/\n    - https://github.com/fox-it/LDAPFragger\nauthor: xknow @xknow_infosec, Tim Shelton\ndate: 2019-03-24\nmodified: 2023-10-18\ntags:\n    - attack.t1001.003\n    - attack.command-and-control\nlogsource:\n    product: windows\n    category: file_event\ndetection:\n    selection:\n        TargetFilename|contains: '\\Local\\Microsoft\\Windows\\SchCache\\'\n        TargetFilename|endswith: '.sch'\n    filter_main_generic:\n        - Image|endswith:\n              - ':\\Program Files\\Cylance\\Desktop\\CylanceSvc.exe'\n              - ':\\Windows\\CCM\\CcmExec.exe'\n              - ':\\windows\\system32\\dllhost.exe'\n              - ':\\Windows\\system32\\dsac.exe'\n              - ':\\Windows\\system32\\efsui.exe'\n              - ':\\windows\\system32\\mmc.exe'\n              - ':\\windows\\system32\\svchost.exe'\n              - ':\\Windows\\System32\\wbem\\WmiPrvSE.exe'\n              - ':\\windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe'\n        - Image|contains:\n              - ':\\Windows\\ccmsetup\\autoupgrade\\ccmsetup' # C:\\Windows\\ccmsetup\\autoupgrade\\ccmsetup.TMC00002.40.exe\n              - ':\\Program Files\\SentinelOne\\Sentinel Agent' # C:\\Program Files\\SentinelOne\\Sentinel Agent 21.7.7.40005\\SentinelAgent.exe\n    filter_main_office:\n        Image|contains|all:\n            - ':\\Program Files\\'\n            - '\\Microsoft Office'\n        Image|endswith: '\\OUTLOOK.EXE'\n    filter_optional_ldapwhoami:\n        Image|endswith: '\\LANDesk\\LDCLient\\ldapwhoami.exe'\n    filter_optional_citrix:\n        # Example:\n        #   TargetFilename=C:\\Windows\\ServiceProfiles\\NetworkService\\AppData\\Local\\Microsoft\\Windows\\SchCache\\REDACTED.com.sch\n        Image|endswith: ':\\Program Files\\Citrix\\Receiver StoreFront\\Services\\DefaultDomainServices\\Citrix.DeliveryServices.DomainServices.ServiceHost.exe'\n    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*\nfalsepositives:\n    - Other legimate tools, which do ADSI (LDAP) operations, e.g. any remoting activity by MMC, Powershell, Windows etc.\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1001.003","id":"T1001.003","name":"Protocol or Service Impersonation","page":"techniques/enterprise/T1001.003/"}],"data_path":"data/detection-rules/75bf09fa-1dd7-4d18-9af9-dd9e492562eb.json","kind":"sigma"}
