From f790d3212703c546adfe022cdd14d3d18bf12f48 Mon Sep 17 00:00:00 2001 From: shaktisinhchavda Date: Tue, 24 Feb 2026 23:19:27 +0530 Subject: [PATCH] add word boundaries to regex patterns to reduce false positives closes https://github.com/mandiant/capa-rules/issues/1109 --- .../clear-logs/clear-windows-event-logs.yml | 4 +- .../reference-analysis-tools-strings.yml | 152 +++++++++--------- ...ntials-from-windows-credential-manager.yml | 2 +- ...ure-network-configuration-via-ipconfig.yml | 2 +- .../powershell/run-powershell-expression.yml | 4 +- nursery/delete-windows-backup-catalog.yml | 2 +- ...le-automatic-windows-recovery-features.yml | 4 +- .../enumerate-device-drivers-on-windows.yml | 2 +- 8 files changed, 86 insertions(+), 86 deletions(-) diff --git a/anti-analysis/anti-forensic/clear-logs/clear-windows-event-logs.yml b/anti-analysis/anti-forensic/clear-logs/clear-windows-event-logs.yml index d35238a55..87466688d 100644 --- a/anti-analysis/anti-forensic/clear-logs/clear-windows-event-logs.yml +++ b/anti-analysis/anti-forensic/clear-logs/clear-windows-event-logs.yml @@ -28,7 +28,7 @@ rule: - api: wevtapi.EvtOpenSession - basic block: - and: - - string: /wevtutil(\.exe)?\s+(clear-log|cl)/i + - string: /\bwevtutil(\.exe)?\s+(clear-log|cl)/i - call: - and: - - string: /wevtutil(\.exe)?\s+(clear-log|cl)/i + - string: /\bwevtutil(\.exe)?\s+(clear-log|cl)/i diff --git a/anti-analysis/reference-analysis-tools-strings.yml b/anti-analysis/reference-analysis-tools-strings.yml index 42ca34d91..2db473f5f 100644 --- a/anti-analysis/reference-analysis-tools-strings.yml +++ b/anti-analysis/reference-analysis-tools-strings.yml @@ -15,81 +15,81 @@ rule: - al-khaser_x86.exe_ features: - or: - - string: /ollydbg(\.exe)?/i - - string: /ProcessHacker(\.exe)?/i - - string: /tcpview(\.exe)?/i - - string: /autoruns(\.exe)?/i - - string: /autorunsc(\.exe)?/i - - string: /filemon(\.exe)?/i - - string: /procmon(\.exe)?/i - - string: /regmon(\.exe)?/i - - string: /procexp(\.exe)?/i + - string: /\bollydbg(\.exe)?\b/i + - string: /\bProcessHacker(\.exe)?\b/i + - string: /\btcpview(\.exe)?\b/i + - string: /\bautoruns(\.exe)?\b/i + - string: /\bautorunsc(\.exe)?\b/i + - string: /\bfilemon(\.exe)?\b/i + - string: /\bprocmon(\.exe)?\b/i + - string: /\bregmon(\.exe)?\b/i + - string: /\bprocexp(\.exe)?\b/i - string: /(?