Potential CVE-2022-29072 Exploitation Attempt


Description

Detects potential exploitation attempts of CVE-2022-29072, a 7-Zip privilege escalation and command execution vulnerability. 7-Zip version 21.07 and earlier on Windows allows privilege escalation (CVE-2022-29072) and command execution when a file with the .7z extension is dragged to the Help>Contents area. This is caused by misconfiguration of 7z.dll and a heap overflow. The command runs in a child process under the 7zFM.exe process.

Query · sigma

selection_parent:
  ParentImage|endswith: \7zFM.exe
selection_img:
- Image|endswith:
  - \cmd.exe
  - \powershell.exe
  - \pwsh.exe
- OriginalFileName:
  - Cmd.Exe
  - PowerShell.EXE
  - pwsh.dll
filter_main_extensions_and_flags:
- CommandLine|contains:
  - ' /c '
  - ' /k '
  - ' /r '
- CommandLine|endswith:
  - .bat
  - .cmd
  - .ps1
filter_main_null:
  CommandLine: null
condition: all of selection_* and not 1 of filter_main_*

Known false positives

  • Unknown
Raw source Potential CVE-2022-29072 Exploitation Attempt · Sigma
Esc
Published by SigmaHQ/sigma ↗, licensed under Detection Rule License 1.1 ↗. Reproduced here unmodified.
title: Potential CVE-2022-29072 Exploitation Attempt
id: 9a4ccd1a-3526-4d99-b980-9f9c5d3a6ee3
status: test
description: |
    Detects potential exploitation attempts of CVE-2022-29072, a 7-Zip privilege escalation and command execution vulnerability.
    7-Zip version 21.07 and earlier on Windows allows privilege escalation (CVE-2022-29072) and command execution when a file with the .7z extension is dragged to the Help>Contents area. This is caused by misconfiguration of 7z.dll and a heap overflow.
    The command runs in a child process under the 7zFM.exe process.
references:
    - https://github.com/kagancapar/CVE-2022-29072
    - https://twitter.com/kagancapar/status/1515219358234161153
author: frack113, @kostastsale
date: 2022-04-17
modified: 2024-08-15
tags:
    - attack.execution
    - cve.2022-29072
    - detection.emerging-threats
logsource:
    product: windows
    category: process_creation
detection:
    selection_parent:
        ParentImage|endswith: '\7zFM.exe'
    selection_img:
        - Image|endswith:
              - '\cmd.exe'
              - '\powershell.exe'
              - '\pwsh.exe'
        - OriginalFileName:
              - 'Cmd.Exe'
              - 'PowerShell.EXE'
              - 'pwsh.dll'
    filter_main_extensions_and_flags:
        - CommandLine|contains:
              - ' /c '
              - ' /k '
              - ' /r '
        - CommandLine|endswith:
              - '.bat'
              - '.cmd'
              - '.ps1'
    filter_main_null:
        CommandLine: null
    condition: all of selection_* and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.