Back to Intelligence

Multi-Vector Threat Advisory: GitHub Worm, Poisoned Packages, and Android Exploits

SA
Security Arsenal Team
June 9, 2026
8 min read

Introduction

Last week's threat landscape was a stark reminder that while attack vectors evolve, the fundamentals of defense often remain neglected. A "Weekly Recap" highlights a dangerous convergence of threats: a worm actively tearing through GitHub repositories, poisoned software packages in the supply chain, an unpatched Android vulnerability being exploited in the wild, and a critical security failure where an AI chatbot was fooled into leaking a bot token.

For defenders, this is not just noise; it is an active exploitation campaign spanning code repositories, mobile endpoints, and AI integrations. The "ugly part" noted in the intelligence—that basic tricks still worked—suggests that gaps in fundamental hygiene (credential hygiene, package verification, and input validation) are being leveraged for significant impact. This advisory breaks down these active threats and provides immediate detection and remediation guidance.

Technical Analysis

1. GitHub Worm (Repository Propagation)

Attack Vector: Self-replicating malware targeting software developers and CI/CD pipelines. Mechanism: The worm propagates by automating Git operations. Upon compromising a developer's environment or CI runner, the malware queries repository permissions, creates a malicious commit, and pushes it to downstream repositories. This "tearing through repos" behavior indicates automated propagation scripts abusing authenticated Git sessions. Impact: Code contamination, persistent supply chain compromise, and potential leakage of secrets stored in repository code.

2. Poisoned Packages (Software Supply Chain)

Attack Vector: Dependency confusion or typosquatting. Mechanism: Attackers upload malicious packages mimicking legitimate internal or popular open-source libraries. When build systems execute pip install, npm install, or equivalent commands, they fetch the poisoned package, executing arbitrary code during the build process. Status: Active. The summary confirms "poisoned packages" were a key component of last week's activity, likely tied to the worm or standalone campaigns.

3. Android Unpatched Vulnerability

Attack Vector: Mobile Exploitation. Mechanism: An actively exploited vulnerability on Android devices remains unpatched. While the specific CVE was not disclosed in this report, the behavior suggests an exploit chain capable of circumventing sandboxing or accessing user data. Attackers are using this to establish a foothold on mobile devices used for enterprise access.

4. AI Helper Token Leak (Prompt Injection)

Attack Vector: LLM Prompt Injection / Data Exfiltration. Mechanism: A chatbot interface was manipulated ("fooled") into revealing sensitive data. Specifically, a bot token was leaked inside malicious software or logs. This occurs when inputs to the AI model contain adversarial prompts designed to override safety instructions, forcing the model to dump system context, environment variables, or API keys.

Detection & Response

The following detection logic focuses on the GitHub worm and poisoned packages, as these represent the most immediate technical risks to infrastructure.

SIGMA Rules

YAML
---
title: Potential GitHub Worm Propagation - High Frequency Git Pushes
id: 8a4b2c1d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
status: experimental
description: Detects automated Git push behavior characteristic of a worm spreading across repositories. Looks for rapid successive pushes or pushes to multiple distinct remotes in a short window.
references:
  - https://thehackernews.com/2026/06/weekly-recap-instagram-account-hacks.html
author: Security Arsenal
date: 2026/06/01
tags:
  - attack.execution
  - attack.t1059.004
logsource:
  category: process_creation
  product: windows
detection:
  selection:
    Image|endswith:
      - '\git.exe'
      - '\git.cmd'
    CommandLine|contains:
      - 'push'
  condition: selection | count() > 5 by Image, CommandLine within 1m
timeframe: 1m
falsepositives:
  - Legitimate bulk repository management by developers
level: high
---
title: Poisoned Package Installation via PyPI or NPM
id: 9b5c3d2e-6f7a-5b8c-9d0e-1f2a3b4c5d6e
status: experimental
description: Detects the installation of packages from package managers frequently targeted in poisoned package campaigns. Identifies rare or potentially typosquatted package names if suspicious flags are used.
references:
  - https://thehackernews.com/2026/06/weekly-recap-instagram-account-hacks.html
author: Security Arsenal
date: 2026/06/01
tags:
  - attack.initial_access
  - attack.t1195.002
logsource:
  category: process_creation
  product: windows
detection:
  selection_pip:
    Image|endswith: '\python.exe'
    CommandLine|contains: 'pip install'
  selection_npm:
    Image|endswith: '\node.exe'
    CommandLine|contains: 'npm install'
  condition: 1 of selection*
falsepositives:
  - Legitimate developer dependency installation
level: medium

KQL (Microsoft Sentinel / Defender)

KQL — Microsoft Sentinel / Defender
// Hunt for suspicious Git activity indicative of a Worm
DeviceProcessEvents
| where Timestamp > ago(7d)
| where FileName in ("git.exe", "git", "git.cmd")
| where ProcessCommandLine contains "push" or ProcessCommandLine contains "commit"
| project Timestamp, DeviceName, AccountName, ProcessCommandLine, InitiatingProcessFileName, FolderPath
| summarize count() by DeviceName, AccountName, bin(Timestamp, 5m)
| where count_ > 3 // High frequency of git ops indicates automation
| order by count_ desc

// Hunt for Poisoned Packages (Python/Node)
DeviceProcessEvents
| where Timestamp > ago(7d)
| where (FileName endswith "python.exe" and ProcessCommandLine contains "pip install") or
       (FileName endswith "node.exe" and ProcessCommandLine contains "npm install")
| extend PackageName = extract(@"(install|add)\s+([-@./a-zA-Z0-9]+)", 2, ProcessCommandLine)
| where isnotempty(PackageName)
| project Timestamp, DeviceName, AccountName, FileName, PackageName, ProcessCommandLine
| summarize count() by PackageName, DeviceName
| where count_ < 5 // Rare packages are more likely to be typosquatted or malicious
| order by count_ asc

Velociraptor VQL

VQL — Velociraptor
-- Hunt for recent Git push activity in shell histories or running processes
SELECT Pid, Name, CommandLine, Exe, Username
FROM pslist()
WHERE Name =~ 'git'
  AND CommandLine =~ 'push'

-- Hunt for Python package installation attempts
SELECT Pid, Name, CommandLine, Exe, Username
FROM pslist()
WHERE Name =~ 'python'
  AND CommandLine =~ 'pip install'

-- Check for suspicious modifications to package configuration files
SELECT FullPath, Mtime, Size
FROM glob(globs='/*/.git/config')
WHERE Mtime > now() - 24h // Modified in last 24 hours

Remediation Script (PowerShell)

PowerShell
<#
.SYNOPSIS
    Audit and Remediate Indicators of GitHub Worm and Poisoned Packages
.DESCRIPTION
    Checks for recent suspicious git activity and recent python/npm installs.
#>

Write-Host "[+] Starting Threat Audit for GitHub Worm and Poisoned Packages..." -ForegroundColor Cyan

# 1. Check for recent Git Push events (Potential Worm Indicators)
$recentEvents = Get-WinEvent -LogName Security -FilterXPath "*[System[(EventID=4688)]] and *[EventData[Data[@Name='NewProcessName']='*\git.exe']] and *[EventData[Data[@Name='CommandLine']]*'push']*" -ErrorAction SilentlyContinue | Where-Object { $_.TimeCreated -gt (Get-Date).AddHours(-24) }

if ($recentEvents) {
    Write-Host "[!] WARNING: Detected recent 'git push' processes in the last 24 hours." -ForegroundColor Red
    $recentEvents | Select-Object TimeCreated, Id, Message | Format-Table -Wrap
} else {
    Write-Host "[+] No suspicious Git push events found in Security Log." -ForegroundColor Green
}

# 2. Audit recently modified Python package files
Write-Host "[*] Auditing Python environments..." -ForegroundColor Cyan
$pythonPaths = @("$env:LOCALAPPDATA\Programs\Python", "$env:USERPROFILE\AppData\Local\Programs\Python")
foreach ($path in $pythonPaths) {
    if (Test-Path $path) {
        Get-ChildItem -Path $path -Recurse -Filter "*.py" -ErrorAction SilentlyContinue | Where-Object { $_.LastWriteTime -gt (Get-Date).AddDays(-1) } | Select-Object FullName, LastWriteTime
    }
}

# 3. Network Check (Block known bad repositories if applicable - Placeholder for specific IOCs)
Write-Host "[*] Reviewing Hosts file for redirections to package managers..." -ForegroundColor Cyan
$hostsPath = "$env:windir\System32\drivers\etc\hosts"
if (Test-Path $hostsPath) {
    Get-Content $hostsPath | Select-String -Pattern "pypi|npmjs|github" -Context 0,0
}

Write-Host "[+] Audit Complete. Review findings above." -ForegroundColor Green

Remediation

To address the active threats identified in this recap, Security Arsenal recommends the following immediate actions:

1. GitHub Worm Containment

  • Rotate Credentials: Immediately rotate all SSH keys and Personal Access Tokens (PATs) used by developers and CI/CD pipelines that may have interacted with infected repositories.
  • Audit Repositories: Scan your organization's GitHub/GitLab instances for unauthorized commits made within the last 7 days. Look for files named similarly to common build scripts (e.g., build.bat, setup.sh) that were not committed by authorized users.
  • Branch Protection: Enforce strict branch protection rules requiring Pull Request reviews and status checks to prevent direct pushes to main branches.

2. Poisoned Packages

  • Verify Dependencies: Run pip-audit or npm audit on all build environments immediately.
  • Pin Versions: Lock dependency versions in requirements.txt or package-lock. to prevent accidental installation of malicious updates.
  • Private Registries: Configure package managers to use internal or verified private registries and block access to the public PyPI/NPM registry for automated build systems unless strictly necessary.

3. Android Unpatched Vulnerability

  • Google Play Protect: Ensure Google Play Protect is enabled on all corporate-owned and BYOD Android devices.
  • Patch Management: Monitor Android security bulletins closely. While a patch for the specific unpatched flaw mentioned in the intel may not be available immediately, apply all pending security updates to reduce the attack surface.
  • Network Segmentation: Enforce strict mobile device management (MDM) policies that prevent unmanaged devices from accessing internal network segments.

4. AI Chatbot & Token Leak

  • Secrets Rotation: Rotate the leaked bot token immediately. Assume any token exposed to an AI model is compromised.
  • Prompt Guardrails: Implement strict input sanitization and allow-listing for AI chatbot interfaces. Prevent the model from processing system commands or accessing raw environment data.
  • Audit Logs: Review AI interaction logs for the specific prompt patterns used to "fool" the bot to identify the scope of the data exposure.

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

sigma-rulekql-detectionthreat-huntingdetection-engineeringsiem-detectiongithub-wormsupply-chainandroid-security

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.