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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2024-1631

CVE-2024-1631: Dfinity Icp-js-core Key Generation Flaw

CVE-2024-1631 is an information disclosure vulnerability in Dfinity Icp-js-core that causes insecure ed25519 key pair generation, potentially exposing private keys and leading to fund loss or canister access issues.

Published: April 15, 2026

CVE-2024-1631 Overview

CVE-2024-1631 is an Insecure Random Number Generation vulnerability affecting the DFINITY Agent.js library's Ed25519KeyIdentity.generate function. The library offers a function to generate an ed25519 key pair via Ed25519KeyIdentity.generate with an optional parameter to provide a 32-byte seed value, which is then used as the secret key. When no seed value is provided, the library is expected to generate the secret key using secure randomness. However, a code change broke this guarantee and introduced an insecure seed for key pair generation, resulting in predictable cryptographic keys.

Critical Impact

The private key generated by the vulnerable library version is compromised, allowing attackers to steal funds from associated ledger principals or gain unauthorized control of canisters where the compromised principal is set as controller.

Affected Products

  • DFINITY icp-js-core
  • @dfinity/identity NPM package (affected versions)
  • Applications using Agent.js for Internet Computer identity management

Discovery Timeline

  • 2024-02-21 - CVE-2024-1631 published to NVD
  • 2025-12-10 - Last updated in NVD database

Technical Details for CVE-2024-1631

Vulnerability Analysis

This vulnerability represents a critical cryptographic failure in the DFINITY Agent.js library used for interacting with the Internet Computer blockchain. The Ed25519KeyIdentity.generate function is designed to create cryptographically secure ed25519 key pairs for identity management. When developers call this function without providing an explicit seed, the library should generate a cryptographically secure random 32-byte seed internally.

However, a regression introduced an insecure seed generation mechanism. Instead of using a cryptographically secure random number generator (CSPRNG), the vulnerable code produces a predictable seed value. This results in the generation of a known, compromised private key corresponding to the principal 535yc-uxytb-gfk7h-tny7p-vjkoe-i4krp-3qmcl-uqfgr-cpgej-yqtjq-rqe.

Any application that used the vulnerable version to generate new identities without explicitly providing a secure seed has created compromised identities. Attackers with knowledge of this vulnerability can derive the private key and impersonate these identities.

Root Cause

The root cause is classified under CWE-330 (Use of Insufficiently Random Values) and CWE-321 (Use of Hard-coded Cryptographic Key). A code change inadvertently replaced the secure random number generation logic with a mechanism that produces a static or predictable seed value. This violates the fundamental security requirement that cryptographic key material must be derived from high-entropy, unpredictable sources.

Attack Vector

The attack vector is network-based and requires no privileges or user interaction. An attacker can exploit this vulnerability by:

  1. Identifying applications or users that generated identities using the vulnerable library version
  2. Using the known compromised private key to sign transactions or perform authenticated actions
  3. Accessing funds stored in ledger accounts associated with the compromised principal
  4. Taking control of canisters where the compromised principal is designated as a controller

The vulnerability is particularly dangerous because it affects key generation at the foundational level—once keys are generated insecurely, all subsequent security measures built upon those keys are compromised.

Since this is a cryptographic vulnerability in key generation, the exploitation mechanism involves deriving the known compromised private key and using it to authenticate as any identity that was generated with the vulnerable library. For detailed technical analysis, refer to the GitHub Security Advisory GHSA-c9vv-fhgv-cjc3.

Detection Methods for CVE-2024-1631

Indicators of Compromise

  • Presence of the compromised principal identifier 535yc-uxytb-gfk7h-tny7p-vjkoe-i4krp-3qmcl-uqfgr-cpgej-yqtjq-rqe in application identity stores or canister controller lists
  • Unauthorized transactions or asset transfers from ledger accounts associated with identities generated during the vulnerable period
  • Unexpected canister configuration changes or unauthorized method calls from the compromised principal

Detection Strategies

  • Audit all identities generated using @dfinity/identity to identify any matching the known compromised principal
  • Review application dependencies and package-lock.json files for vulnerable versions of the @dfinity/identity package
  • Monitor canister controller lists and ledger transactions for activity from the compromised principal

Monitoring Recommendations

  • Implement continuous monitoring of canister controller modifications and ledger transactions for the known compromised principal
  • Set up alerts for any authentication attempts using the compromised identity within your Internet Computer applications
  • Conduct periodic audits of cryptographic key generation processes and dependency versions

How to Mitigate CVE-2024-1631

Immediate Actions Required

  • Update the @dfinity/identity package to version 1.0.1 or later immediately
  • Audit all identities that were generated using the vulnerable library version and regenerate them using the patched version
  • Transfer any funds from ledger accounts associated with compromised identities to newly generated secure identities
  • Update canister controller configurations to replace any compromised principals with newly generated secure identities

Patch Information

DFINITY has addressed this vulnerability in the Agent.js library. The fix is available in @dfinity/identity version 1.0.1 and later. The patch restores proper cryptographically secure random number generation when Ed25519KeyIdentity.generate is called without an explicit seed parameter. Users should update their dependencies by installing the latest version from NPM. For technical details on the fix, see GitHub Pull Request #851.

Workarounds

  • If immediate patching is not possible, explicitly provide a cryptographically secure 32-byte seed when calling Ed25519KeyIdentity.generate using Node.js crypto.randomBytes(32) or equivalent
  • Avoid generating new identities with the vulnerable version until the package can be updated
  • Consider implementing identity generation in a separate, isolated service using a patched library version
bash
# Update @dfinity/identity to the patched version
npm update @dfinity/identity

# Verify the installed version is 1.0.1 or later
npm list @dfinity/identity

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechDfinity Icp Js Core

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability1.74%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-321

  • CWE-330
  • Technical References
  • Agent.js Documentation

  • GitHub Repository for Agent.js

  • NPM Package @dfinity/identity v1.0.1
  • Vendor Resources
  • GitHub Pull Request #851

  • GitHub Security Advisory GHSA-c9vv-fhgv-cjc3
  • Latest CVEs
  • CVE-2026-8468: Elixir Plug Library DoS Vulnerability

  • CVE-2026-8295: simdjson Information Disclosure Vulnerability

  • CVE-2025-68421: Comarch ERP Optima Auth Bypass Vulnerability

  • CVE-2025-68420: Comarch ERP Optima Privilege Escalation
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