Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rule for impair system power settings #5090

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

CheraghiMilad
Copy link
Contributor

@CheraghiMilad CheraghiMilad commented Nov 24, 2024

Summary of the Pull Request

Adversaries may impair a system's ability to hibernate, reboot, or shut down in order to extend access to infected machines. When a computer enters a dormant state, some or all software and hardware may cease to operate which can disrupt malicious activity

Adversaries may abuse system utilities and configuration settings to maintain access by preventing machines from entering a state, such as standby, that can terminate malicious activity.

Changelog

impair_system_power_settings

Rule:
index=* host="caldera-virtual-machine" type="EXECVE" AND a0="systemctl*" AND a1="mask" AND (a2="suspend.target" OR a2="hibernate.target" OR a2="hybrid-sleep.target")

hibernate.target log

<Events>
  <Event>
    <System>
      <Timestamp>11/24/24 3:24:29.304 PM</Timestamp>
      <Type>EXECVE</Type>
      <AuditID>1732449269.304:11435</AuditID>
      <Arguments>
        <Argument>systemctl</Argument>
        <Argument>mask</Argument>
        <Argument>hibernate.target</Argument>
      </Arguments>
      <Host>caldera-virtual-machine</Host>
      <Source>/var/log/audit/audit.log</Source>
      <SourceType>linux:audit</SourceType>
    </System>
  </Event>

suspend.target log

  <Event>
    <System>
      <Timestamp>11/24/24 3:24:13.744 PM</Timestamp>
      <Type>EXECVE</Type>
      <AuditID>1732449253.744:11301</AuditID>
      <Arguments>
        <Argument>systemctl</Argument>
        <Argument>mask</Argument>
        <Argument>suspend.target</Argument>
      </Arguments>
      <Host>caldera-virtual-machine</Host>
      <Source>/var/log/audit/audit.log</Source>
      <SourceType>linux:audit</SourceType>
    </System>
  </Event>
</Events>

Example Log Event

Fixed Issues

SigmaHQ Rule Creation Conventions

  • If your PR adds new rules, please consider following and applying these conventions

@github-actions github-actions bot added Rules Linux Pull request add/update linux related rules labels Nov 24, 2024
CheraghiMilad and others added 2 commits November 29, 2024 21:04
…auditd_Invalidate_system_power_settings.yml

Change the rule name from impair system power settings
 to Invalidate System Power Setting
Copy link
Member

@frack113 frack113 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@frack113 frack113 added the 2nd Review Needed PR need a second approval label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2nd Review Needed PR need a second approval Linux Pull request add/update linux related rules Rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants