This hypothesis posits that adversaries are utilizing Formbook to establish persistent, fileless execution channels within Azure workloads by injecting code directly into memory. The SOC team should proactively hunt for this behavior because its in-memory nature often bypasses traditional disk-based endpoint protections, requiring specialized telemetry analysis to identify early-stage lateral movement or command-and-control activities before they escalate.
rule Formbook {
meta:
description = "detect Formbook in memory"
author = "JPCERT/CC Incident Response Group"
rule_usage = "memory scan"
reference = "internal research"
strings:
$sqlite3step = { 68 34 1c 7b e1 }
$sqlite3text = { 68 38 2a 90 c5 }
$sqlite3blob = { 68 53 d8 7f 8c }
condition: all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 3 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the “detect Formbook in memory” rule, including suggested filters or exclusions tailored for an enterprise environment:
Scheduled Backup of User Profiles via Veeam Agent
VeeamAgent.exe) loads the Formbook.dll library into its process memory to parse and compress specific user profile configurations before archiving them. This is a standard administrative task that occurs daily at 02:00 AM.VeeamAgent.exe (or vbragent.exe) running under the system account (NT AUTHORITY\SYSTEM). Additionally, restrict the alert to only trigger outside of business hours if the backup window is known.Deployment of Custom HR Modules via SCCM/MECM
ccmexec.exe) installs or updates a custom HR module that relies on the Formbook library for form rendering. The installation service explicitly loads Formbook into memory to validate configuration files before writing them to disk.ccmexec.exe and the command line arguments contain keywords such as /install, /update, or specific package IDs associated with HR software deployments.Automated Compliance Reporting by Splunk Universal Forwarder
splunkd.exe) aggregates data from legacy applications. To generate a compliance report, the script invokes a .NET helper application that dynamically loads Formbook to extract and format structured data fields for transmission to the central SIEM.