Skip to content

armgit / AiSOC

Public Imported from GitHub
0

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

3.5 KB
Raw Blame
id: splunk-security-content-5e3f6b44-42cb-4f8a-99f0-59e78a52ea1d
name: Cisco NVM - Installation of Typosquatted Python Package
description: 'This analytic detects suspicious python package installations where
  the package name resembles popular Python libraries but may be typosquatted or slightly
  altered.

  Typosquatting is a common technique used by attackers to trick users into installing
  malicious packages that mimic legitimate ones.

  This detection leverages Cisco NVM flow telemetry and checks for pip or poetry package
  managers with the "install" or "add" flags, making outbound connections to package
  repository such as `pypi.org` with known or suspected typo package names.'
severity: medium
enabled: false
tags:
  mitre:
  - T1059
  categories:
  - endpoint
references:
- https://securelist.com/two-more-malicious-python-packages-in-the-pypi/107218/
- https://blog.checkpoint.com/securing-the-cloud/pypi-inundated-by-malicious-typosquatting-campaign/
- https://rhisac.org/threat-intelligence/typosquatting-campaign-targets-python-developers-with-hundreds-of-malicious-libraries/
logsource:
  product: splunk
detection:
  splunk_spl: "`cisco_network_visibility_module_flowdata`\ndest_hostname IN (\"*.pythonhosted.org\"\
    , \"*pypi.org\", \"*python-poetry.org\")\n(\n  (process_arguments = \"*pip*\"\
    \ process_arguments = \"*install*\")\n  OR\n  (process_arguments = \"*poetry*\"\
    \ process_arguments = \"*add*\")\n)\n| rex field=process_arguments \"(?i)(?:pip|poetry)[^|]*?\\\
    s+(?:install|add)\\s+(?P<package_name>[^\\s\\\"']+)$\"\n| lookup typo_squatted_python_packages\n\
    \         typosquatted_package_name as package_name\n         OUTPUTNEW comment\
    \ package_official_url\n| where isnotnull(comment)\n| stats count min(_time) as\
    \ firstTime max(_time) as lastTime\n        values(parent_process_arguments) as\
    \ parent_process_arguments\n        values(process_arguments) as process_arguments\n\
    \        values(parent_process_hash) as parent_process_hash\n        values(process_hash)\
    \ as process_hash\n        values(module_name_list) as module_name_list\n    \
    \    values(module_hash_list) as module_hash_list\n        values(dest_port) as\
    \ dest_port\n        values(aliul) as additional_logged_in_users_list\n      \
    \  values(dest_hostname) as dest_hostname\n        by src dest parent_process_path\
    \ parent_process_integrity_level process_path process_name process_integrity_level\
    \ process_id transport package_name comment package_official_url\n| `security_content_ctime(firstTime)`\n\
    | `security_content_ctime(lastTime)`\n| table firstTime lastTime src dest_hostname\
    \ dest dest_port transport  package_name comment package_official_url\n  parent_process_integrity_level\
    \ parent_process_path parent_process_arguments parent_process_hash\n  process_integrity_level\
    \ process_path process_name process_arguments process_hash process_id\n  additional_logged_in_users_list\
    \ module_name_list module_hash_list\n| `cisco_nvm___installation_of_typosquatted_python_package_filter`"
provenance:
  source: splunk/security_content
  source_id: 5e3f6b44-42cb-4f8a-99f0-59e78a52ea1d
  source_commit: 4d4c7ee
  license: Apache-2.0
  license_url: https://github.com/splunk/security_content/blob/develop/LICENSE
  imported_at: '2026-05-04'
  imported_by: splunk_importer
  upstream_path: detections/endpoint/cisco_nvm___installation_of_typosquatted_python_package.yml
notes:
  splunk_status: production
  splunk_data_source: []
  quarantine_reason: raw SPL — needs translation to AiSOC detection schema