EXPLORE
← Back to Explore
sigmamediumHunting

Suspicious Package Installed - Linux

Detects installation of suspicious packages using system installation utilities

MITRE ATT&CK

defense-evasion

Detection Query

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

Author

Nasreddine Bencherchali (Nextron Systems)

Created

2023-01-03

Data Sources

linuxProcess Creation Events

Platforms

linux

Tags

attack.defense-evasionattack.t1553.004
Raw Content
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-evasion
    - 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