Skip to content

bulk_extractor

65 commands

Scans disk images and files for email addresses, URLs, credit-card numbers and other features without parsing the file system.

  • DFIR
  • feature extraction

Install bulk_extractor

sudo apt install bulk-extractor

Basic Forensic Scanning4

bulk_extractor -o output_dir image.dd

Performs a default forensic scan on a raw disk image and saves artifacts to the specified directory

Link
bulk_extractor -h

Displays the help menu with a list of available command-line options and flags

bulk_extractor -V

Displays the version information and compilation details of the tool

bulk_extractor -H

Lists all available scanners and their current status (enabled or disabled)

Input Handling and Scanning Scope3

bulk_extractor -R -o output_dir directory_path

Recursively scans a directory of files treating them as inputs for artifact extraction

Link
bulk_extractor -o output_dir -

Accepts input from standard input (stdin) via a pipe for streaming analysis

Link
bulk_extractor -o output_dir -s 512 image.dd

Sets the sampling rate to process only a fraction of the data for rapid triage

Link

Performance and Tuning4

bulk_extractor -j 4 -o output_dir image.dd

Specifies the number of parallel threads to use for faster processing

Link
bulk_extractor -M 50 -o output_dir image.dd

Sets the maximum recursion depth for scanners that explore compressed or encoded data

Link
bulk_extractor -m 100 -o output_dir image.dd

Sets the maximum number of megabytes to process for a single file during recursion

Link
bulk_extractor -P /path/to/plugins -o output_dir image.dd

Specifies a custom directory to load additional shared object scanners or plugins

Link

Feature and Artifact Extraction19

bulk_extractor -x all -E email -o output_dir image.dd

Disables all default scanners and enables only the email scanner for targeted extraction

Link
bulk_extractor -E accts -o output_dir image.dd

Enables the accounts scanner to detect credit card numbers and other financial identifiers

Link
bulk_extractor -E url -o output_dir image.dd

Enables the URL scanner to extract web addresses and domain names from the image

Link
bulk_extractor -E exif -o output_dir image.dd

Extracts EXIF metadata from image files embedded within the disk image

Link
bulk_extractor -E gps -o output_dir image.dd

Scans for GPS coordinates and geolocation data within files and metadata

Link
bulk_extractor -E net -o output_dir image.dd

Parses network packets found in the image to extract IP addresses and packet data

Link
bulk_extractor -E json -o output_dir image.dd

Detects and extracts JSON objects typically found in logs and web applications

Link
bulk_extractor -E aes -o output_dir image.dd

Scans for AES key schedules in memory dumps or disk images to recover encryption keys

Link
bulk_extractor -E base64 -o output_dir image.dd

Decodes Base64 strings found in the image and extracts features from the decoded content

Link
bulk_extractor -E elf -o output_dir image.dd

Identifies and extracts information from ELF executables common in Linux systems

Link
bulk_extractor -E winpe -o output_dir image.dd

Scans for Windows Portable Executable (PE) file headers and imports/exports

Link
bulk_extractor -E windirs -o output_dir image.dd

Extracts Windows directory entries and file metadata from FAT and NTFS artifacts

Link
bulk_extractor -E winprefetch -o output_dir image.dd

Parses Windows Prefetch files to determine application execution history

Link
bulk_extractor -E zip -o output_dir image.dd

Locates ZIP archive headers and extracts metadata about compressed files

Link
bulk_extractor -E gzip -o output_dir image.dd

Detects and processes GZIP compressed streams to extract internal content

Link
bulk_extractor -E pdf -o output_dir image.dd

Extracts text and metadata from PDF document structures found in the image

Link
bulk_extractor -E hiber -o output_dir image.dd

Scans Windows hibernation files for decompressed pages and artifacts

Link
bulk_extractor -E ether -o output_dir image.dd

Scans specifically for Ethernet MAC addresses in the raw data

Link
bulk_extractor -E sqlite -o output_dir image.dd

Scans for SQLite database pages and recovers deleted records from free space

Link

Scanning Controls3

bulk_extractor -Y 1000 -o output_dir image.dd

Starts the forensic scan at a specific byte offset into the image file

Link
bulk_extractor -L 1G -o output_dir image.dd

Limits the scan to a specific size (e.g., 1 gigabyte) from the start point

Link
bulk_extractor -1 -o output_dir image.dd

Forces the tool to run on a single thread, useful for debugging or limited resources

Link

Output and Logging3

bulk_extractor -b banner.txt -o output_dir image.dd

Adds the contents of a banner file to the top of every output feature file

Link
bulk_extractor -q -o output_dir image.dd

Runs the tool in quiet mode, suppressing status messages to stdout for cleaner logs

Link
bulk_extractor -o output_dir -S report_context_width=64 image.dd

Increases the amount of context data saved around a feature in the report file

Link

Filtering and Stoplists2

bulk_extractor -w stoplist.txt -o output_dir image.dd

Uses a stoplist file to exclude specific terms or features from the final output

Link
bulk_extractor -F filter_terms.txt -o output_dir image.dd

Uses a filter file to only include features that match specific terms

Link

Advanced Configuration6

bulk_extractor -S word_min=6 -o output_dir image.dd

Sets the minimum length of extracted words for the wordlist scanner to 6 characters

Link
bulk_extractor -S word_max=20 -o output_dir image.dd

Sets the maximum length of extracted words to reduce noise in wordlist generation

Link
bulk_extractor -S ssn_mode=1 -o output_dir image.dd

Adjusts the sensitivity or validation mode of the SSN scanner via configuration variables

Link
bulk_extractor -z 0 -o output_dir image.dd

Start the page numbering at zero instead of one for the output histogram

Link
bulk_extractor -G 20 -o output_dir image.dd

Sets the page size for analysis in megabytes, affecting memory usage and granularity

Link
bulk_extractor -S opt_context=1 -o output_dir image.dd

Enables or disables the saving of context data alongside extracted features

Link

Incident Response Investigations4

bulk_extractor -E kml -o output_dir ram_dump.mem

Scans a RAM dump for KML (Keyhole Markup Language) data to find geolocation artifacts

Link
bulk_extractor -x all -E facebook -o output_dir image.dd

Specifically targets Facebook-related artifacts like IDs and chat fragments

Link
bulk_extractor -E httplogs -o output_dir image.dd

Parses common HTTP server log formats from unallocated space or log files

Link
bulk_extractor -E utmp -o output_dir image.dd

Extracts login records from Unix utmp/wtmp structures found in the image

Link

Advanced Feature Extraction5

bulk_extractor -E ssn -o output_dir image.dd

Enables the Social Security Number scanner to identify PII within the target

Link
bulk_extractor -E vcard -o output_dir image.dd

Extracts vCard contact information often found in mobile backups and emails

Link
bulk_extractor -E outlook -o output_dir image.dd

Scans for Outlook PST and OST file structures and email artifacts

Link
bulk_extractor -E fe80 -o output_dir image.dd

Scans specifically for IPv6 Link-Local addresses in the data

Link
bulk_extractor -E lightgrep -S lightgrep_keywords=keywords.txt -o output_dir image.dd

Uses the Lightgrep engine (if compiled) for extremely fast keyword searching

Link

Blue Team Defensive Validation2

bulk_extractor -E wordlist -o output_dir image.dd

Generates a wordlist of all strings in the image for password cracking audits

Link
bulk_extractor -E find -S find_regex=regex.txt -o output_dir image.dd

Uses the 'find' scanner with a user-provided file of regex patterns for custom data detection

Link

Threat Hunting3

bulk_extractor -r alert_list.txt -o output_dir image.dd

Uses an alert list (globally) to flag specific indicators of compromise (IOCs) found in the image

Link
bulk_extractor -E xor -o output_dir image.dd

Attempts to detect XOR-encoded strings often used by malware to hide configuration data

Link
bulk_extractor -E rar -o output_dir image.dd

Scans for RAR archive headers which are often used for exfiltrating stolen data

Link

Automation and Pipeline Workflows2

bulk_extractor -o output_dir -C 100 image.dd

Creates a crash checkpoint file every specified number of megabytes to allow resuming

Link
bulk_extractor -o output_dir -S fmt=json image.dd

Configures the output format to JSON for easier ingestion into other analysis tools (if supported by build)

Link

Advanced Combined Workflow4

bulk_extractor -x all -E email -E url -E ip -w whitelist.txt -o output_dir image.dd

Runs a targeted triage scan for communication artifacts while excluding known safe domains

Link
bulk_extractor -R -j 16 -M 20 -o output_dir /evidence/files

High-performance recursive directory scan with deep recursion limits and high thread count

Link
bulk_extractor -Y 1000 -L 500M -x all -E aes -E base64 -o output_dir image.dd

Performs a focused cryptographic artifact scan on a specific slice of the disk image

Link
bulk_extractor -j 8 -q -w stop.txt -r alert.txt -o output_dir image.dd

High-performance, quiet automated scan using both stoplists for noise reduction and alert lists for IOC detection

Link

Digital Forensics Reporting1

bulk_extractor -S banner_file=header.txt -S report_file=report.xml -o output_dir image.dd

Customizes the banner and report filename generation for automated reporting pipelines

Link