Skip to content

Detections against malicious Python package activities - #4205

Open
onurmerdogan wants to merge 11 commits into
developfrom
python_malicious_install
Open

Detections against malicious Python package activities#4205
onurmerdogan wants to merge 11 commits into
developfrom
python_malicious_install

Conversation

@onurmerdogan

Copy link
Copy Markdown

Details

This PR contains detections against malicious activities during Python package installations.

Stories

  • Malicious Python Package Installation: New story in order to track malicious activities during Python package installations. Covers both installation and build related activities.

Detections

  • Python Network Traffic during Package Build: Detects a Python process making an outbound network connection during package installation.
  • Python PTH File Creation during Package Installation: detects the creation of a Python path configuration (.pth) file in conjunction with a package installation process.
  • Python PYTHONPATH Modification During Package Installation: Detects modification of the PYTHONPATH environment variable in conjunction with a package installation process.
  • Python Site Hooks Creation during Package Installation: Detects the creation of a Python site hook file within a packages directory in conjunction with a package installation process.

@nasbench nasbench added this to the v6.5.0 milestone Aug 12, 2026
Comment thread detections/endpoint/python_network_traffic_during_package_build.yml Outdated
Comment thread detections/endpoint/python_network_traffic_during_package_build.yml Outdated
Comment thread detections/endpoint/python_network_traffic_during_package_build.yml Outdated
Comment thread detections/endpoint/python_network_traffic_during_package_build.yml Outdated
Comment thread detections/endpoint/python_network_traffic_during_package_build.yml Outdated
Comment thread detections/endpoint/python_network_traffic_during_package_build.yml Outdated
Comment thread detections/endpoint/python_network_traffic_during_package_build.yml Outdated
Comment thread detections/endpoint/python_pth_file_creation_during_package_installation.yml Outdated
Comment thread detections/endpoint/python_pth_file_creation_during_package_installation.yml Outdated
Comment thread detections/endpoint/python_pth_file_creation_during_package_installation.yml Outdated
modification_date: '2026-07-23'
author: Onur Mustafa Erdogan, Splunk
status: production
type: TTP

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same comment as above for the type

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This one is quite rare activity, given registry key is not often not monitored. Also, editing this key on Windows seem to be quite rare, I suggest still keeping it as TTP, but if you like we can get this one downgraded to anomaly, what do you think @patel-bhavin @nasbench

@onurmerdogan
onurmerdogan requested a review from nasbench August 19, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants