Formbook
Overview
Executive Summary
FormBook is a highly prevalent Information Stealer (InfoStealer) and Form Grabber that has been sold as Malware-as-a-Service (MaaS) on underground hacking forums since 2016. It is explicitly designed to harvest sensitive user data, including login credentials, banking details, and personal information, directly from the memory of web browsers and other applications before it is encrypted and sent over the network.Infection Vector and Technical Capabilities
FormBook operators rely almost exclusively on massive phishing and malspam campaigns. Lures typically impersonate shipping companies (DHL, FedEx) or financial institutions, containing malicious attachments (PDFs, DOCX with macros, or executable files disguised as invoices). Its technical operation focuses on comprehensive data theft:- API Hooking (Form Grabbing): FormBook's core capability is hooking Windows APIs (like `HttpSendRequest` or `NtWriteFile`). This allows it to intercept "forms" (like a login page on a banking site) and steal the username and password *as the user types them*, bypassing HTTPS encryption.
- Comprehensive Stealing: Beyond form grabbing, it actively steals saved passwords from browser credential stores (Chrome, Firefox, Edge), FTP clients (FileZilla), and email clients (Outlook). It also features built-in keylogging and clipboard monitoring capabilities.
- Defense Evasion: The malware often uses process injection (e.g., injecting into `explorer.exe` or `svchost.exe`) to hide its activity and communicates with its Command and Control (C2) server using custom, obfuscated HTTP requests designed to blend in with normal web traffic.
Threat Assessment
A FormBook infection is a severe data breach. The immediate threat is the total compromise of every account the user accesses from the infected machine, leading directly to financial fraud, Business Email Compromise (BEC), and potential corporate network breaches if VPN credentials are stolen.Incident Response and Remediation
- Mandatory Credential Reset: The absolute highest priority is an immediate, global password reset for all accounts associated with the compromised user, especially Active Directory, webmail, and banking portals.
- MFA Enforcement: Ensure strict Multi-Factor Authentication (MFA) is enforced across all external-facing corporate portals to neutralize the threat of the stolen credentials being reused by the attackers.
- EDR Triage and Eradication: Utilize Endpoint Detection and Response (EDR) to trace the execution chain, kill the injected processes, and remove the FormBook executable and its persistence mechanisms (typically Registry `Run` keys).
Known aliases
Threat reports may refer to this family under multiple names:
MITRE ATT&CK Techniques
Observed techniques used by this family, mapped to the MITRE ATT&CK framework:
Tactical Mitigations
Based on the techniques used by this family, consider the following defensive strategies:
- T1056.001: Implement Endpoint Detection and Response (EDR) to monitor for suspicious API calls related to keystroke interception. Enforce Multi-Factor Authentication (MFA) to render stolen passwords useless.
- T1566.001: Scan email attachments for malicious macros, scripts, or suspicious archive files.
Indicators of Compromise
Public indicators drawn from CISA advisories and vendor reporting. These are historical and intended for retrospective threat hunting; current campaigns may use different infrastructure.
Delivery vectors
Phishing with RAR/ZIP/ISO attachmentsOffice documents using CVE-2017-11882GuLoader and Snake-Loader downloaders
Network indicators
HTTP POST to compromised WordPress sites acting as C2 gatesDomain rotation with randomized URI pathsBeacon every 60-120 seconds
Persistence mechanisms
Process hollowing into explorer.exe or signed Windows binariesRun keys with randomized namesNo on-disk artifact in some campaigns (memory-resident)
Detection Guidance
Detection ideas drawn from public reporting. Tune to your environment before deploying.
- Suricata FormBook C2 ruleset
- EDR rule for process hollowing of explorer.exe at startup
- YARA rule FormBook_Stealer
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_FORMBOOK {
meta:
description = "Detects Formbook (spyware)"
author = "SystemHelpdesk Boilerplate Generator"
date = "2026-07-06"
strings:
$s1 = "formbook" ascii wide nocase
$s2 = "infostealer.formbook" ascii wide nocase
$s3 = "trojan.formgrabber" ascii wide nocase
$s4 = "win32/formbook" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}Sigma Rule
title: Suspicious Formbook Activity
id: dbdf04e70d844c5d9373f9069998bbcb
status: experimental
description: Detects generic indicators of the formbook malware family.
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
CommandLine|contains:
- "*formbook*"
- "*infostealer.formbook*"
- "*trojan.formgrabber*"
- "*win32/formbook*"
condition: selection
level: mediumContainment & Response Steps
Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.
- Isolate host and collect volatile memory
- Rotate all browser-stored and FTP-client credentials
- Block C2 gate URLs at perimeter and DNS
- Audit other hosts in the org receiving the same phishing lure
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not rely on disk-based AV scans alone — FormBook often runs in memory only
- Do not assume container files like ISO are safe to open
- Do not delay credential rotation
References & External Analysis
- MITRE ATT&CK: XLoader / FormBook (S1207)
- Search "formbook" on VirusTotal (External Analysis)
Frequently Asked Questions
What is FormBook?
A widely-sold information stealer, in use since at least 2016, that harvests credentials and data from browsers, email, and FTP clients.
What is the relationship between FormBook and XLoader?
XLoader is the later evolution of FormBook; MITRE tracks the lineage together, with FormBook as the earlier name.
How is FormBook sold?
As a Malware-as-a-Service (MaaS), rented out to different operators.
How is FormBook distributed?
Through phishing campaigns with malicious attachments or links.
How can I protect credentials from FormBook/XLoader?
Use a password manager and multi-factor authentication, and be cautious with unexpected attachments.
Where is the authoritative reference?
MITRE ATT&CK's XLoader/FormBook entry (S1207), linked on this page.
How do I remove the Formbook Spyware from Windows?
Manual removal of Formbook 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 Formbook a virus or a Spyware?
Formbook is classified as a Spyware. Unlike traditional viruses that infect files, modern malware like Formbook typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Formbook infection?
Symptoms of Formbook 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: spyware)
Explore other malware families in the same category:
Protect Your Network Against Spywares
Want to prevent Formbook and similar threats from compromising your organization? Read our comprehensive defensive guide: Spyware & Keylogger Protection.
Machine-readable
Get this profile as JSON: https://jordan123234-malware-families-explorer.static.hf.space/api/formbook.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.