Skip to content

Commit

Permalink
Calculate memory and automatically choose used cores
Browse files Browse the repository at this point in the history
Update rules
Refactor a lot of code
  • Loading branch information
wagga40 committed Nov 11, 2024
1 parent b75342c commit 9aab3c8
Show file tree
Hide file tree
Showing 14 changed files with 2,310 additions and 1,661 deletions.
Binary file modified docs/Zircolite_manual.pdf
Binary file not shown.
14 changes: 7 additions & 7 deletions rules/rules_linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -1863,9 +1863,9 @@
"filename": "proc_creation_lnx_cve_2022_26134_atlassian_confluence.yml"
},
{
"title": "Python Spawning Pretty TTY",
"title": "Python Spawning Pretty TTY Via PTY Module",
"id": "c4042d54-110d-45dd-a0e1-05c47822c937",
"description": "Detects python spawning a pretty tty which could be indicative of potential reverse shell activity",
"description": "Detects a python process calling to the PTY module in order to spawn a pretty tty which could be indicative of potential reverse shell activity.\n",
"author": "Nextron Systems",
"tags": [
"attack.execution",
Expand All @@ -1874,9 +1874,9 @@
"falsepositives": [
"Unknown"
],
"level": "high",
"level": "medium",
"rule": [
"SELECT * FROM logs WHERE (((Image LIKE '%/python' ESCAPE '\\' OR Image LIKE '%/python2' ESCAPE '\\' OR Image LIKE '%/python3' ESCAPE '\\') OR (Image LIKE '%/python2.%' ESCAPE '\\' OR Image LIKE '%/python3.%' ESCAPE '\\')) AND ((CommandLine LIKE '%import pty%' ESCAPE '\\' AND CommandLine LIKE '%.spawn(%' ESCAPE '\\') OR CommandLine LIKE '%from pty import spawn%' ESCAPE '\\'))"
"SELECT * FROM logs WHERE (((Image LIKE '%/python' ESCAPE '\\' OR Image LIKE '%/python2' ESCAPE '\\' OR Image LIKE '%/python3' ESCAPE '\\') OR (Image LIKE '%/python2.%' ESCAPE '\\' OR Image LIKE '%/python3.%' ESCAPE '\\')) AND (CommandLine LIKE '%import pty%' ESCAPE '\\' OR CommandLine LIKE '%from pty %' ESCAPE '\\') AND CommandLine LIKE '%spawn%' ESCAPE '\\')"
],
"filename": "proc_creation_lnx_python_pty_spawn.yml"
},
Expand Down Expand Up @@ -2174,9 +2174,9 @@
"filename": "proc_creation_lnx_crontab_enumeration.yml"
},
{
"title": "Potential Python Reverse Shell",
"title": "Python Reverse Shell Execution Via PTY And Socket Modules",
"id": "32e62bc7-3de0-4bb1-90af-532978fe42c0",
"description": "Detects executing python with keywords related to network activity that could indicate a potential reverse shell",
"description": "Detects the execution of python with calls to the socket and pty module in order to connect and spawn a potential reverse shell.\n",
"author": "@d4ns4n_, Nasreddine Bencherchali (Nextron Systems)",
"tags": [
"attack.execution"
Expand All @@ -2186,7 +2186,7 @@
],
"level": "high",
"rule": [
"SELECT * FROM logs WHERE (Image LIKE '%python%' ESCAPE '\\' AND CommandLine LIKE '% -c %' ESCAPE '\\' AND CommandLine LIKE '%import%' ESCAPE '\\' AND CommandLine LIKE '%pty%' ESCAPE '\\' AND CommandLine LIKE '%spawn(%' ESCAPE '\\' AND CommandLine LIKE '%.connect%' ESCAPE '\\')"
"SELECT * FROM logs WHERE (Image LIKE '%python%' ESCAPE '\\' AND CommandLine LIKE '% -c %' ESCAPE '\\' AND CommandLine LIKE '%import%' ESCAPE '\\' AND CommandLine LIKE '%pty%' ESCAPE '\\' AND CommandLine LIKE '%socket%' ESCAPE '\\' AND CommandLine LIKE '%spawn%' ESCAPE '\\' AND CommandLine LIKE '%.connect%' ESCAPE '\\')"
],
"filename": "proc_creation_lnx_python_reverse_shell.yml"
},
Expand Down
93 changes: 65 additions & 28 deletions rules/rules_windows_generic.json

Large diffs are not rendered by default.

229 changes: 153 additions & 76 deletions rules/rules_windows_generic_full.json

Large diffs are not rendered by default.

93 changes: 65 additions & 28 deletions rules/rules_windows_generic_high.json

Large diffs are not rendered by default.

229 changes: 153 additions & 76 deletions rules/rules_windows_generic_medium.json

Large diffs are not rendered by default.

229 changes: 153 additions & 76 deletions rules/rules_windows_generic_pysigma.json

Large diffs are not rendered by default.

93 changes: 65 additions & 28 deletions rules/rules_windows_sysmon.json

Large diffs are not rendered by default.

229 changes: 153 additions & 76 deletions rules/rules_windows_sysmon_full.json

Large diffs are not rendered by default.

93 changes: 65 additions & 28 deletions rules/rules_windows_sysmon_high.json

Large diffs are not rendered by default.

229 changes: 153 additions & 76 deletions rules/rules_windows_sysmon_medium.json

Large diffs are not rendered by default.

229 changes: 153 additions & 76 deletions rules/rules_windows_sysmon_pysigma.json

Large diffs are not rendered by default.

Loading

0 comments on commit 9aab3c8

Please sign in to comment.