Sigma rule: Copy Passwd Or Shadow From TMP Path

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-b4bd1de7d67a, updated 2023-01-31T00:00:00.000Z.

Rule

Title
Copy Passwd Or Shadow From TMP Path
Status
test
Level
high
Author
Joseliyo Sanchez, @Joseliyo_Jstnk
Date
2023-01-31
File
rules/linux/process_creation/proc_creation_lnx_cp_passwd_or_shadow_tmp.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects when the file "passwd" or "shadow" is copied from tmp path

Log source

product
linux
category
process_creation

Detection

selection_img:
    Image|endswith: '/cp'
selection_path:
    CommandLine|contains: '/tmp/'
selection_file:
    CommandLine|contains:
        - 'passwd'
        - 'shadow'
condition: all of selection_*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.credential-access
  • attack.t1552.001

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_cp_passwd_or_shadow_tmp.yml

Sources and licences

  • SigmaHQ

    "Copy Passwd Or Shadow From TMP Path" by Joseliyo Sanchez, @Joseliyo_Jstnk (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/linux/process_creation/proc_creation_lnx_cp_passwd_or_shadow_tmp.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Copy Passwd Or Shadow From TMP Path",
entity page, dataset version ref-b4bd1de7d67a, updated 2023-01-31T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/fa4aaed5-4fe0-498d-bbc0-08e3346387ba (accessed 2026-11-03).
Underlying source: SigmaHQ rule fa4aaed5-4fe0-498d-bbc0-08e3346387ba, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.