Suspicious Replace.exe Use (via process_creation)

This rule detects the use of Replace.exe that can be leveraged to replace file with another file

SigmamediumWindowsv1
sigma
title: Suspicious Replace.exe Use (via process_creation)
id: 109568a1-b8c2-538d-9748-37ab1addc78c
status: stable
description: This rule detects the use of Replace.exe that can be leveraged to replace file with another file
references:
    - https://attack.mitre.org/techniques/T1105/
    - https://lolbas-project.github.io/lolbas/Binaries/Replace/
    - https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/replace
author: Huntrule Team
date: 2026-07-02
tags:
    - attack.command-and-control
    - attack.t1105
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\replace.exe'
    argument:
        CommandLine|contains|windash: '-a'
    condition: selection and argument
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.