Form Grabber
Introduction
Section titled “Introduction”A form grabber hooks browser APIs to capture form data (credentials, credit cards, PII) before TLS encryption, bypassing HTTPS protection. It’s a core component of banking trojans and info stealers.
How It Works
Section titled “How It Works”| Hook Target | Browser | Captures |
|---|---|---|
PR_Read / PR_Write | Firefox (NSPR) | Plaintext form data |
SSL_Read / SSL_Write | Firefox (NSS) | Pre-TLS plaintext |
InternetReadFile / InternetWriteFile | IE/Edge (WinINet) | WinINet traffic |
WinHttpReadData / WinHttpWriteData | WinHTTP | WinHTTP traffic |
Chrome API | Chrome | Custom hooks via extension/injection |
Attack Flow
Section titled “Attack Flow”1. INJECTION └─ DLL injection into browser process └─ Or malicious browser extension
2. API HOOKING └─ Detour / IAT hook / inline hook target APIs └─ Intercept plaintext before TLS encryption
3. DATA CAPTURE └─ Parse HTTP POST bodies for form fields └─ Extract: username, password, CC, SSN, etc.
4. EXFILTRATION └─ Send to C2 via HTTP/HTTPS/DNS └─ Often real-time (before user submits)Notable Families
Section titled “Notable Families”| Family | Type | Notable |
|---|---|---|
| Zeus/Zbot | Form grabber + kernel | First major |
| SpyEye | Form grabber | Form grab focus |
| Citadel | Zeus fork | Modular |
| Tinba | Tiny Banking Trojan | 20KB; form grab |
| Dridex | Macro delivery | Form grab + webinject |
| TrickBot | Modular | Form grab module |
| Tiny Banker / Tinba | Minimal | 20KB |
Detection
Section titled “Detection”| Indicator | Detection |
|---|---|
| API Hooks | EDR hook detection (IAT, inline, EAT) |
| Browser Process Injection | EDR process tree |
| Network | C2 communication patterns |
| Memory | Injected DLL in browser process |
Prevention
Section titled “Prevention”- ✅ FIDO2/WebAuthn — No passwords to steal
- ✅ Password Manager — Auto-fill bypasses form fields
- ✅ EDR with API Hook Detection — Monitor IAT/EAT/inline hooks
- ✅ Browser Hardening — Disable unnecessary extensions
- ✅ Memory Scanning — Detect injected code in browser
- ✅ Virtual Keyboard — For high-value entry
MITRE ATT&CK
Section titled “MITRE ATT&CK”| Technique | ID | Description |
|---|---|---|
| Input Capture | T1056 | Form grabbing |
| Credentials from Password Stores | T1555 | Browser password theft |
| Web Session Cookie | T1550.004 | Session hijacking |
Related
Section titled “Related”- Banking Trojan — Delivery platform
- Keylogger — Keystroke capture
- Webinject — HTML/JS injection