Query: detect Detects legitimate applications writing any type of file to uncommon or suspicious locations that are not typical for ap in logs
Matching passage: Sigma rule: Detects legitimate applications writing any type of file to uncommon or suspicious locations that are not typical for ap. Logsource: windows / file_event. Rule: title: Legitimate Application Writing Files In Uncommon Location id: 1cf465a1-2609-4c15-9b66-c32dbe4bfd67 related: - id: 2ddef153-167b-4e89-86b6-757a9e65dcac type: similar status: experimental description: 'Detects legitimate applications writing any type of file to uncommon or suspicious locations that are not typical for application data storage or execution. Adversaries may leverage legitimate applications (Living off the Land Binaries - LOLBins) to drop or download malicious files to uncommon locations on the system to evade detection by security solutions. ' references: - https://lolbas-project.github.io/#/download author: Swachchhanda Shrawan Poudel (Nextron Systems) date: 2025-12-10 tags: - attack.stealth - attack.t1218 - attack.command-and-control - attack.t1105 logsource: product: windows category: file_event detection: selection_img: Image|endswith: - \eqnedt32.exe - \wordpad.exe - \wordview.exe - \cmdl32.exe - \certutil.exe - \certoc.exe - \CertReq.exe - \bitsadmin.exe - \Desktopimgdownldr.exe - \esentutl.exe - \expand.exe - \extrac32.exe - \replace.exe - \mshta.exe - \ftp.exe - \Ldifde.exe - \RdrCEF.exe - \hh.exe - \finger.exe - \findstr.exe selection_locations: TargetFilename|contains: - :\Perflogs - :\ProgramData\ - :\Temp\ - :\Users\Public\ - :\Windows\ - \$Recycle.Bin\ - \AppData\Local\ - \AppData\Roaming\ - \Contacts\ - \Desktop\ - \Favorites\ - \Favourites\ - \inetpub\wwwroot\ - \Music\ - \Pictures\ - \Start Menu\Programs\Startup\ - \Users\Default\ - \Videos\ condition: all of selection_* falsepositives: - Unknown level: high regression_tests_path: regression_data/rules/windows/file/file_event/file_event_win_susp_legitimate_app_dropping_in_uncommon_location/info.yml
Near-miss passage: Sigma rule: Detects execution of "dsquery.exe" for domain trust discovery. Logsource: windows / process_creation. Rule: title: Domain Trust Discovery Via Dsquery id: 3bad990e-4848-4a78-9530-b427d854aac0 related: - id: b23fcb74-b1cb-4ff7-a31d-bfe2a7ba453b type: similar - id: 77815820-246c-47b8-9741-e0def3f57308 type: obsolete status: test description: Detects execution of "dsquery.exe" for domain trust discovery references: - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1482/T1482.md - https://posts.specterops.io/an-introduction-to-manual-active-directory-querying-with-dsquery-and-ldapsearch-84943c13d7eb?gi=41b97a644843 author: E.M. Anhaus, Tony Lambert, oscd.community, omkar72 date: 2019-10-24 modified: 2023-02-02 tags: - attack.discovery - attack.t1482 logsource: category: process_creation product: windows detection: selection_img: - Image|endswith: \dsquery.exe - OriginalFileName: dsquery.exe selection_cli: CommandLine|contains: trustedDomain condition: all of selection_* falsepositives: - Legitimate use of the utilities by legitimate user for legitimate reason level: medium regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_dsquery_domain_trust_discovery/info.yml simulation: - type: atomic-red-team name: Windows - Discover domain trusts with dsquery technique: T1482 atomic_guid: 4700a710-c821-4e17-a3ec-9e4c81d6845f