EXPLORE
← Back to Explore
sigmamediumHunting

Chmod Suspicious Directory

Detects chmod targeting files in abnormal directory paths.

MITRE ATT&CK

defense-evasion

Detection Query

selection:
  Image|endswith: /chmod
  CommandLine|contains:
    - /tmp/
    - /.Library/
    - /etc/
    - /opt/
condition: selection

Author

Christopher Peacock @SecurePeacock, SCYTHE @scythe_io

Created

2022-06-03

Data Sources

linuxProcess Creation Events

Platforms

linux

Tags

attack.defense-evasionattack.t1222.002
Raw Content
title: Chmod Suspicious Directory
id: 6419afd1-3742-47a5-a7e6-b50386cd15f8
status: test
description: Detects chmod targeting files in abnormal directory paths.
references:
    - https://www.intezer.com/blog/malware-analysis/new-backdoor-sysjoker/
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1222.002/T1222.002.md
author: 'Christopher Peacock @SecurePeacock, SCYTHE @scythe_io'
date: 2022-06-03
tags:
    - attack.defense-evasion
    - attack.t1222.002
logsource:
    product: linux
    category: process_creation
detection:
    selection:
        Image|endswith: '/chmod'
        CommandLine|contains:
            - '/tmp/'
            - '/.Library/'
            - '/etc/'
            - '/opt/'
    condition: selection
falsepositives:
    - Admin changing file permissions.
level: medium