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

Proc creation lnx process discovery #5117

Merged

Conversation

CheraghiMilad
Copy link
Contributor

Summary of the Pull Request

Changelog

Example Log Event

pgrep log

<Events>
  <Event>
    <System>
      <Provider Name="Linux-Sysmon" Guid="{ff032593-a8d3-4f13-b0d6-01fc615a0f97}"/>
      <EventID>1</EventID>
      <Version>5</Version>
      <Level>4</Level>
      <Task>1</Task>
      <Opcode>0</Opcode>
      <Keywords>0x8000000000000000</Keywords>
      <TimeCreated SystemTime="2024-12-10T08:24:38.911075000Z"/>
      <EventRecordID>383812</EventRecordID>
      <Correlation/>
      <Execution ProcessID="1252" ThreadID="1252"/>
      <Channel>Linux-Sysmon/Operational</Channel>
      <Computer>caldera-virtual-machine</Computer>
      <Security UserId="0"/>
    </System>
    <EventData>
      <Data Name="RuleName">-</Data>
      <Data Name="UtcTime">2024-12-08 18:58:36.665</Data>
      <Data Name="ProcessGuid">{36fe7a82-ec5c-6755-c12c-d51439560000}</Data>
      <Data Name="ProcessId">9116</Data>
      <Data Name="Image">/usr/bin/pgrep</Data>
      <Data Name="FileVersion">-</Data>
      <Data Name="Description">-</Data>
      <Data Name="Product">-</Data>
      <Data Name="Company">-</Data>
      <Data Name="OriginalFileName">-</Data>
      <Data Name="CommandLine">pgrep terminal</Data>
      <Data Name="CurrentDirectory">/home/caldera</Data>
      <Data Name="User">caldera</Data>
      <Data Name="LogonGuid">{36fe7a82-0000-0000-e803-000001000000}</Data>
      <Data Name="LogonId">1000</Data>
      <Data Name="TerminalSessionId">3</Data>
      <Data Name="IntegrityLevel">no level</Data>
      <Data Name="Hashes">SHA256=5b8ca0397fa4150b1637b3c7998b5976731d0064c1fd5ce3ab8d9ce879410c31</Data>
      <Data Name="ParentProcessGuid">{36fe7a82-ec55-6755-d566-10a0cb550000}</Data>
      <Data Name="ParentProcessId">8908</Data>
      <Data Name="ParentImage">/usr/bin/bash</Data>
      <Data Name="ParentCommandLine">bash</Data>
      <Data Name="ParentUser">caldera</Data>
    </EventData>
  </Event>

pstree log

  <Event>
    <System>
      <Provider Name="Linux-Sysmon" Guid="{ff032593-a8d3-4f13-b0d6-01fc615a0f97}"/>
      <EventID>1</EventID>
      <Version>5</Version>
      <Level>4</Level>
      <Task>1</Task>
      <Opcode>0</Opcode>
      <Keywords>0x8000000000000000</Keywords>
      <TimeCreated SystemTime="2024-12-10T08:00:16.795111000Z"/>
      <EventRecordID>383002</EventRecordID>
      <Correlation/>
      <Execution ProcessID="1252" ThreadID="1252"/>
      <Channel>Linux-Sysmon/Operational</Channel>
      <Computer>caldera-virtual-machine</Computer>
      <Security UserId="0"/>
    </System>
    <EventData>
      <Data Name="RuleName">-</Data>
      <Data Name="UtcTime">2024-12-08 18:34:14.542</Data>
      <Data Name="ProcessGuid">{36fe7a82-e6a6-6755-75f5-e440d3550000}</Data>
      <Data Name="ProcessId">7884</Data>
      <Data Name="Image">/usr/bin/pstree</Data>
      <Data Name="FileVersion">-</Data>
      <Data Name="Description">-</Data>
      <Data Name="Product">-</Data>
      <Data Name="Company">-</Data>
      <Data Name="OriginalFileName">-</Data>
      <Data Name="CommandLine">pstree</Data>
      <Data Name="CurrentDirectory">/home/caldera</Data>
      <Data Name="User">caldera</Data>
      <Data Name="LogonGuid">{36fe7a82-0000-0000-e803-000000000000}</Data>
      <Data Name="LogonId">1000</Data>
      <Data Name="TerminalSessionId">3</Data>
      <Data Name="IntegrityLevel">no level</Data>
      <Data Name="Hashes">SHA256=8e43af67366ab733b795b8e4b8bff265ef0b32c8e9f07cb333796e0baad44fe6</Data>
      <Data Name="ParentProcessGuid">{36fe7a82-6868-6755-d5d6-c908e8550000}</Data>
      <Data Name="ParentProcessId">2352</Data>
      <Data Name="ParentImage">/usr/bin/bash</Data>
      <Data Name="ParentCommandLine">bash</Data>
      <Data Name="ParentUser">caldera</Data>
    </EventData>
  </Event>

atop log

  <Event>
    <System>
      <Provider Name="Linux-Sysmon" Guid="{ff032593-a8d3-4f13-b0d6-01fc615a0f97}"/>
      <EventID>1</EventID>
      <Version>5</Version>
      <Level>4</Level>
      <Task>1</Task>
      <Opcode>0</Opcode>
      <Keywords>0x8000000000000000</Keywords>
      <TimeCreated SystemTime="2024-12-10T08:42:03.873352000Z"/>
      <EventRecordID>384821</EventRecordID>
      <Correlation/>
      <Execution ProcessID="1252" ThreadID="1252"/>
      <Channel>Linux-Sysmon/Operational</Channel>
      <Computer>caldera-virtual-machine</Computer>
      <Security UserId="0"/>
    </System>
    <EventData>
      <Data Name="RuleName">-</Data>
      <Data Name="UtcTime">2024-12-08 19:16:01.626</Data>
      <Data Name="ProcessGuid">{36fe7a82-f071-6755-7dd4-601101560000}</Data>
      <Data Name="ProcessId">10711</Data>
      <Data Name="Image">/usr/bin/atop</Data>
      <Data Name="FileVersion">-</Data>
      <Data Name="Description">-</Data>
      <Data Name="Product">-</Data>
      <Data Name="Company">-</Data>
      <Data Name="OriginalFileName">-</Data>
      <Data Name="CommandLine">atop</Data>
      <Data Name="CurrentDirectory">/home/caldera</Data>
      <Data Name="User">caldera</Data>
      <Data Name="LogonGuid">{36fe7a82-0000-0000-e803-000000000000}</Data>
      <Data Name="LogonId">1000</Data>
      <Data Name="TerminalSessionId">3</Data>
      <Data Name="IntegrityLevel">no level</Data>
      <Data Name="Hashes">SHA256=465ab294b593beef48a4432fa7377c1e425c774a8214a25b34c5c17e3d56bae9</Data>
      <Data Name="ParentProcessGuid">{36fe7a82-6868-6755-d5d6-c908e8550000}</Data>
      <Data Name="ParentProcessId">2352</Data>
      <Data Name="ParentImage">/usr/bin/bash</Data>
      <Data Name="ParentCommandLine">bash</Data>
      <Data Name="ParentUser">caldera</Data>
    </EventData>
  </Event>

htop log

  <Event>
    <System>
      <Provider Name="Linux-Sysmon" Guid="{ff032593-a8d3-4f13-b0d6-01fc615a0f97}"/>
      <EventID>1</EventID>
      <Version>5</Version>
      <Level>4</Level>
      <Task>1</Task>
      <Opcode>0</Opcode>
      <Keywords>0x8000000000000000</Keywords>
      <TimeCreated SystemTime="2024-12-10T08:11:28.822152000Z"/>
      <EventRecordID>383673</EventRecordID>
      <Correlation/>
      <Execution ProcessID="1252" ThreadID="1252"/>
      <Channel>Linux-Sysmon/Operational</Channel>
      <Computer>caldera-virtual-machine</Computer>
      <Security UserId="0"/>
    </System>
    <EventData>
      <Data Name="RuleName">-</Data>
      <Data Name="UtcTime">2024-12-08 18:45:26.573</Data>
      <Data Name="ProcessGuid">{36fe7a82-e946-6755-255e-99ba7c550000}</Data>
      <Data Name="ProcessId">8879</Data>
      <Data Name="Image">/usr/bin/htop</Data>
      <Data Name="FileVersion">-</Data>
      <Data Name="Description">-</Data>
      <Data Name="Product">-</Data>
      <Data Name="Company">-</Data>
      <Data Name="OriginalFileName">-</Data>
      <Data Name="CommandLine">htop</Data>
      <Data Name="CurrentDirectory">/home/caldera</Data>
      <Data Name="User">caldera</Data>
      <Data Name="LogonGuid">{36fe7a82-0000-0000-e803-000000000000}</Data>
      <Data Name="LogonId">1000</Data>
      <Data Name="TerminalSessionId">3</Data>
      <Data Name="IntegrityLevel">no level</Data>
      <Data Name="Hashes">SHA256=1e14eb87ca42767242bb82f432dfc4cba3aa7d920323191cf943c368cc01b5bf</Data>
      <Data Name="ParentProcessGuid">{36fe7a82-6868-6755-d5d6-c908e8550000}</Data>
      <Data Name="ParentProcessId">2352</Data>
      <Data Name="ParentImage">/usr/bin/bash</Data>
      <Data Name="ParentCommandLine">bash</Data>
      <Data Name="ParentUser">caldera</Data>
    </EventData>
  </Event>
</Events>

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 Dec 10, 2024
@frack113 frack113 added the Work In Progress Some changes are needed label Dec 14, 2024
nasbench and others added 3 commits December 14, 2024 22:08
Co-authored-by: frack113 <62423083+frack113@users.noreply.github.com>
@nasbench nasbench dismissed frack113’s stale review December 14, 2024 20:15

Suggestion applied

@nasbench nasbench merged commit 44775b8 into SigmaHQ:master Dec 14, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux Pull request add/update linux related rules Rules Work In Progress Some changes are needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants