Keybase

Category: advanced_threat · Aliases: None known · Sample count (EMBER 2018): 2 · Enrichment: expert-seo · Updated: 2026-06-09
Category: Advanced_ThreatActor: Unknown / CybercriminalIndustry: Global / OpportunisticMotivation: Opportunistic

Overview

Spyware:Win32/Keybase is a prolific, commercially available software tool weaponized as a keylogger and spyware agent. Originally sold legally as an 'employee monitoring' tool, its builder software was cracked and leaked onto underground hacker forums. Consequently, Keybase became heavily utilized by low-skill cybercriminals ('script kiddies') to mount widespread, untargeted credential theft campaigns via phishing, completely eliminating privacy on infected machines.

Understanding Keybase (Commercial Keyloggers)
To an end-user, Keybase operates invisibly in the background. For a SOC analyst, detecting Keybase indicates an immediate breach of confidentiality; the attacker has successfully installed software that records every keystroke, clipboard copy, and website visited (`T1056.001`). Unlike advanced APT malware, Keybase is 'noisy' and easier to detect, but highly destructive if left unchecked.

Execution and Espionage Mechanics
Keybase is typically distributed via spam emails containing weaponized attachments (e.g., fake invoices or tracking receipts) (`T1566.001`). Upon execution (`T1204.002`), the compiled stub drops the main keylogger executable into the `%AppData%` directory and establishes persistence via the `HKCU\Software\Microsoft\Windows\CurrentVersion\Run` registry key. It hooks into the Windows API (like `SetWindowsHookEx`) to intercept all keyboard input. It captures clipboard contents (`T1115`) and periodically takes screenshots of the active window (`T1113`). The harvested data is compiled into HTML or text files and exfiltrated to the attacker via SMTP (emailing the logs), FTP, or a web panel (`T1041`).

Indicators of Compromise & Impact
The impact is the total theft of all passwords, personal communications, and financial data entered on the machine. Host-based IoCs include EDR alerts for 'Suspicious API Hooking' (specifically keyboard hooks). A strong indicator is the creation of hidden directories in `%AppData%` containing massive text files (the key logs) and hundreds of screenshots. Network IoCs include the malware attempting to establish outbound SMTP (Port 25/587) or FTP (Port 21) connections to upload the stolen logs.

MITRE ATT&CK Techniques

Observed techniques used by this family, mapped to the MITRE ATT&CK framework:

TechniqueNameTactic
T1056.001Input Capture: Keylogging (Primary data theft mechanism)Collection
T1115Clipboard Data (Stealing copied passwords and crypto addresses)Collection
T1113Screen Capture (Visual confirmation of activity)Collection
T1041Exfiltration Over C2 Channel (Uploading logs via SMTP/FTP)Exfiltration

Tactical Mitigations

Based on the techniques used by this family, consider the following defensive strategies:

Generated Detections (Boilerplate)

These YARA and Sigma rules are auto-generated based on the family name and aliases. They must be heavily tuned before deployment in a production environment.

YARA Rule

rule MALWARE_WIN_KEYBASE {
    meta:
        description = "Detects Keybase (advanced_threat)"
        author = "SystemHelpdesk Boilerplate Generator"
        date = "2026-07-06"
    strings:
        $s1 = "keybase" ascii wide nocase
    condition:
        uint16(0) == 0x5a4d and any of them
}

Sigma Rule

title: Suspicious Keybase Activity
id: 6f2a2f55f82f941359431ce79234077d
status: experimental
description: Detects generic indicators of the keybase malware family.
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith:
            - '\cmd.exe'
            - '\powershell.exe'
        CommandLine|contains:
            - "*keybase*"
    condition: selection
level: medium

Containment & Response Steps

Home Users: If you suspect a malware infection on your personal device, disconnect from the internet immediately and run a full system scan with your antivirus software. The steps below are intended for IT professionals responding to enterprise incidents.

Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.

  1. Immediately isolate the compromised endpoint; all typed passwords and viewed documents are actively being exfiltrated.
  2. Mandate an immediate password reset for the affected user, covering ALL corporate and personal accounts accessed on that machine.
  3. Uninstall the software and run a full AV scan to remove the executable and its autostart registry keys.
  4. Analyze firewall logs to determine the exfiltration destination (e.g., the attacker's email server or FTP site) and block it.

What to Avoid

Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.

  1. Do not allow the user to type new passwords on the machine until Keybase is fully removed, as the new passwords will simply be logged.
  2. Avoid treating this solely as a corporate issue; advise the user to monitor personal bank accounts, as the attacker likely stole those credentials as well.

References & External Analysis

Frequently Asked Questions

How do I remove the Keybase Advanced_Threat from Windows?

Manual removal of Keybase is highly discouraged as it may leave persistence mechanisms intact. We recommend disconnecting the device from the internet and utilizing a professional incident response service or enterprise-grade EDR software to conduct a full forensic sweep.

Is Keybase a virus or a Advanced_Threat?

Keybase is classified as a Advanced_Threat. Unlike traditional viruses that infect files, modern malware like Keybase typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.

What are the main symptoms of a Keybase infection?

Symptoms of Keybase can include unexpected system slowness, unauthorized outbound network traffic to unknown IP addresses, disabled security software, and suspicious background processes running from AppData or Temp directories.

Related Families (Category: advanced_threat)

Explore other malware families in the same category:

Protect Your Network Against Advanced_Threats

Want to prevent Keybase and similar threats from compromising your organization? Read our comprehensive defensive guide: Suspect an Infection? What to do.

Need help with an active incident? Published by the SystemHelpdesk team.

Machine-readable

Get this profile as JSON: https://jordanricky1604-ship-it.github.io/malware-families-catalog/api/keybase.json

Ecosystem & Interactive Environments

This profile is part of the Malware Families Catalog, a public dataset of 2,899 malware families. The catalog is also published across our ecosystem: Hugging Face, Kaggle, Zenodo, Replit, StackBlitz, CodeSandbox, and CodePen.