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

Detects the immediate execution of Python web servers (e.g., http.server) via the command line interface (CLI) #5079

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

Conversation

mlakri
Copy link

@mlakri mlakri commented Nov 13, 2024

Summary of the Pull Request

The purpose of this rule is to detect in the Auditd logs, 'EXECVE', the execution of Python with the parameter 'SimpleHTTPServer' for Python v2 or 'http.server' for Python 3. This exposes local directories via an unsecured web server and can also be used by an attacker for data exfiltration via HTTP

Changelog

Example Log Event

type=EXECVE msg=audit(1731511423.363:71955): argc=3 a0="python2" a1="-m" a2="SimpleHTTPServer"
type=EXECVE msg=audit(1731511655.126:72005): argc=3 a0="python3" a1="-m" a2="http.server"
type=EXECVE msg=audit(1731504735.671:71132): argc=2 a0="auditctl" a1="-D"

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 13, 2024
@nasbench nasbench added the Work In Progress Some changes are needed label Nov 13, 2024
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.

2 participants