Suspicious Package Installed - Linux


Description

Detects installation of suspicious packages using system installation utilities

Query · sigma

selection_tool_apt:
  Image|endswith:
  - /apt
  - /apt-get
  CommandLine|contains: install
selection_tool_yum:
  Image|endswith: /yum
  CommandLine|contains:
  - localinstall
  - install
selection_tool_rpm:
  Image|endswith: /rpm
  CommandLine|contains: -i
selection_tool_dpkg:
  Image|endswith: /dpkg
  CommandLine|contains:
  - --install
  - -i
selection_keyword:
  CommandLine|contains:
  - nmap
  - ' nc'
  - netcat
  - wireshark
  - tshark
  - openconnect
  - proxychains
  - socat
condition: 1 of selection_tool_* and selection_keyword

Known false positives

  • Legitimate administration activities
Raw source Suspicious Package Installed - Linux · Sigma
Esc
Published by SigmaHQ/sigma ↗, licensed under Detection Rule License 1.1 ↗. Reproduced here unmodified.
title: Suspicious Package Installed - Linux
id: 700fb7e8-2981-401c-8430-be58e189e741
status: test
description: Detects installation of suspicious packages using system installation utilities
references:
    - https://gist.githubusercontent.com/MichaelKoczwara/12faba9c061c12b5814b711166de8c2f/raw/e2068486692897b620c25fde1ea258c8218fe3d3/history.txt
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-01-03
modified: 2026-01-01
tags:
    - attack.defense-impairment
    - attack.t1553.004
logsource:
    product: linux
    category: process_creation
detection:
    selection_tool_apt:
        Image|endswith:
            - '/apt'
            - '/apt-get'
        CommandLine|contains: 'install'
    selection_tool_yum:
        Image|endswith: '/yum'
        CommandLine|contains:
            - 'localinstall'
            - 'install'
    selection_tool_rpm:
        Image|endswith: '/rpm'
        CommandLine|contains: '-i'
    selection_tool_dpkg:
        Image|endswith: '/dpkg'
        CommandLine|contains:
            - '--install'
            - '-i'
    selection_keyword:
        CommandLine|contains:
            # Add more suspicious packages
            - 'nmap'
            - ' nc'
            - 'netcat'
            - 'wireshark'
            - 'tshark'
            - 'openconnect'
            - 'proxychains'
            - 'socat'
    condition: 1 of selection_tool_* and selection_keyword
falsepositives:
    - Legitimate administration activities
level: medium

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.