The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-30877

CVE-2022-30877: Keep Python Package RCE Vulnerability

CVE-2022-30877 is a remote code execution backdoor in the Keep Python package distributed on PyPI, inserted by a third party. This article covers the security impact, affected versions, and mitigation steps.

Published: February 11, 2026

CVE-2022-30877 Overview

CVE-2022-30877 is a critical supply chain vulnerability affecting the keep Python package distributed via PyPI. A malicious third party inserted a code-execution backdoor into the package, allowing attackers to execute arbitrary code on systems that installed the compromised version. This type of supply chain attack represents one of the most dangerous threat vectors in modern software development, as developers often implicitly trust packages from popular repositories like PyPI.

Critical Impact

Systems that installed the compromised version of the keep package may have been exposed to arbitrary code execution, potentially leading to complete system compromise, data exfiltration, and lateral movement within networks.

Affected Products

  • keep_project keep (versions prior to 1.2)
  • Python environments with the compromised keep package installed from PyPI
  • Any applications or systems that imported the backdoored keep module

Discovery Timeline

  • 2022-06-08 - CVE-2022-30877 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-30877

Vulnerability Analysis

This vulnerability represents a software supply chain attack where a malicious actor gained the ability to inject a code-execution backdoor into the keep Python package distributed through PyPI. Supply chain attacks targeting package repositories are particularly insidious because they exploit the trust relationship between developers and package ecosystems.

When a developer installs a Python package using pip install keep, the package manager retrieves the code from PyPI and executes any setup scripts as part of the installation process. In this case, the compromised package contained malicious code that would execute during or after installation, providing the attacker with code execution capabilities on the victim's system.

The attack leverages the fact that Python packages can execute arbitrary code during installation via setup.py scripts, or at runtime when the package is imported. This allows attackers to establish persistence, exfiltrate sensitive data, or use the compromised system as a pivot point for further attacks.

Root Cause

The root cause of this vulnerability is a supply chain compromise where a third party successfully inserted malicious code into the keep package distributed on PyPI. This could have occurred through various means including:

  • Compromised maintainer credentials allowing unauthorized package uploads
  • Typosquatting or dependency confusion attacks
  • Exploitation of the package repository's upload mechanisms

The vulnerability highlights the inherent risks in trusting third-party code repositories and the need for robust package verification mechanisms.

Attack Vector

The attack vector is network-based, as victims are compromised when they download and install the malicious package from PyPI over the network. The attack requires no user interaction beyond the standard package installation process.

The backdoor could be triggered in multiple ways depending on its implementation:

  • During installation: Malicious code in setup.py executes with the privileges of the user running pip install
  • At import time: Code executes when an application imports the keep module
  • During normal usage: Backdoor functionality hidden within legitimate-looking code paths

The attacker would receive remote code execution capabilities on any system that installed the compromised package version, allowing them to run arbitrary commands, access sensitive files, establish reverse shells, or deploy additional malware.

Detection Methods for CVE-2022-30877

Indicators of Compromise

  • Presence of keep package versions prior to 1.2 in Python environments
  • Unexpected network connections originating from Python processes
  • Suspicious Python package installations in pip logs or virtual environments
  • Anomalous process spawning from Python interpreter processes

Detection Strategies

  • Audit all Python environments for installed versions of the keep package using pip show keep or pip freeze | grep keep
  • Review pip installation logs for evidence of compromised package installation
  • Monitor for suspicious outbound network connections from Python processes
  • Implement Software Composition Analysis (SCA) tools to track package versions across development and production environments

Monitoring Recommendations

  • Deploy endpoint detection and response (EDR) solutions like SentinelOne to monitor for malicious process behavior and code execution
  • Implement network monitoring to detect command-and-control communications
  • Configure package repository proxies that scan for known malicious packages
  • Enable logging for all package installation activities in CI/CD pipelines

How to Mitigate CVE-2022-30877

Immediate Actions Required

  • Immediately upgrade the keep package to version 1.2 or later using pip install --upgrade keep
  • Audit all systems, containers, and virtual environments for compromised package versions
  • Investigate any systems with the compromised package for signs of post-exploitation activity
  • Reset credentials and secrets that may have been accessible on compromised systems

Patch Information

The clean version of the keep package is 1.2, which has the backdoor removed. Organizations should upgrade immediately by running:

bash
pip install keep==1.2

For additional information, refer to the PyPI Project for Keep and the GitHub Issue #85 Discussion which contains community discussion about this security incident.

Workarounds

  • Pin package versions explicitly in requirements.txt files to prevent automatic installation of potentially compromised versions
  • Use virtual environments to isolate Python dependencies and limit blast radius
  • Implement package hash verification using pip --require-hashes to ensure package integrity
  • Consider using a private PyPI mirror or repository manager that provides additional security scanning
bash
# Configuration example
# Upgrade keep package to safe version
pip install --upgrade keep==1.2

# Verify installed version
pip show keep | grep Version

# Check for package in all virtual environments
find / -name "site-packages" -exec ls -la {}/keep 2>/dev/null \;

# Pin safe version in requirements.txt
echo "keep==1.2" >> requirements.txt

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechKeep Project

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability1.55%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-Other
  • Technical References
  • GitHub Issue #85 Discussion
  • Vendor Resources
  • Douban PyPI Simple Package

  • PyPI Project for Keep
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English