Sigma medium test sigma

Potential Suspicious Change To Sensitive/Critical Files

Detects changes of sensitive and critical files. Monitors files that you don't expect to change without planning on Linux system. These files include, but are not limited to, system configuration files, authentication files, and critical application files. Attackers often target these files to maintain persistence, escalate privileges, or disrupt system operations.

View Source

Detection Logic

{
  "selection_img_1": {
    "Image
| endswith": [
      "/cat",
      "/echo",
      "/grep",
      "/head",
      "/more",
      "/tail"
    ],
    "CommandLine
| contains": ">"
  },
  "selection_img_2": {
    "Image
| endswith": [
      "/emacs",
      "/nano",
      "/sed",
      "/vi",
      "/vim"
    ]
  },
  "selection_paths": {
    "CommandLine
| contains": [
      "/bin/login",
      "/bin/passwd",
      "/boot/",
      "/etc/*.conf",
      "/etc/cron.",
      "/etc/crontab",
      "/etc/hosts",
      "/etc/init.d",
      "/etc/sudoers",
      "/opt/bin/",
      "/sbin",
      "/usr/bin/",
      "/usr/local/bin/"
    ]
  },
  "filter_main_mdadm.conf": {
    "Image
| endswith": "/bin/sed",
    "CommandLine
| startswith": [
      "sed -i /^*",
      "sed -ne s/^"
    ],
    "CommandLine
| endswith": "/etc/mdadm/mdadm.conf"
  },
  "condition": "1 of selection_img_* and selection_paths and not 1 of filter_main_*"
}

False Positives

  • ⚠ Some false positives are to be expected on user or administrator machines. Apply additional filters as needed.

Field Validations

Loading…

Comments (0)

Loading comments...