Command Palette

Search for a command to run...

Wildcard Search Guide

Master wildcard patterns for flexible and powerful search operations on LeakZero. Wildcard searching allows you to perform pattern matching that can match multiple variations of your search criteria, making your investigations more comprehensive and efficient.

Wildcard searches are available across all LeakZero subscription tiers and are particularly effective when combined with our advanced search capabilities.

What is Wildcard Search?

Wildcard search uses special characters as placeholders to represent one or more unknown characters in your search pattern. This technique originated from Unix command-line operations and has become a standard in data searching and pattern matching across various platforms.

On LeakZero, wildcard searches allow you to cast a wider net when investigating potential data breaches, enabling you to discover variations of email addresses, usernames, or other identifiers that might have been compromised across different breaches.

Core Wildcard Characters

Asterisk (*) - Zero or More Characters
The asterisk is the most versatile wildcard character, matching any sequence of zero or more characters.

Examples:

admin*

Matches:

  • admin
  • administrator
  • admin_user
  • admin.backup.2023
Question Mark (?) - Single Character
The question mark matches exactly one character, providing precise control over pattern matching.
Square Brackets ([]) - Character Sets
Square brackets define a set of acceptable characters for a single position, offering granular control over matching criteria.

Advanced Wildcard Patterns

Combining Multiple Wildcards
The true power of wildcard searching emerges when combining different wildcard characters to create sophisticated search patterns.

Complex Pattern Examples:

*admin*@*.company.com

This pattern finds all email addresses containing "admin" anywhere in the local part, from any subdomain of company.com.

user[0-9][0-9]?@test*.org

This matches user accounts with 2-3 digit numbers from test-related domains.

backup*.??.2023@*

This finds backup-related accounts from any 2023-related email across all domains.

Strategic Use Cases

Executive Protection Investigations

When investigating potential executive compromises, wildcard patterns help uncover personal and professional account variations:

john.doe*@*
ceo*@company.com
j.doe*@*
john*doe*@*
Department-Wide Security Audits

Comprehensive departmental investigations benefit from systematic wildcard approaches:

hr*@company.com
*hr*@company.com
human*resources*@company.com
Vendor and Partner Risk Assessment

Wildcard patterns excel at discovering third-party relationship exposures:

*@vendor-name.*
*vendor*@*
partner*@*company.com
Historical Account Discovery

Time-based patterns help uncover legacy account compromises:

*backup*@*
*archive*@*
*old*@*
*legacy*@*

Performance Optimization

Best Practices for Efficient Searches

Leading Character Specificity:

Always begin patterns with specific characters when possible:

admin*@company.com (efficient)
*admin*@* (resource-intensive)

Balanced Pattern Complexity:

Strike a balance between comprehensiveness and performance:

user[0-9]*@domain.com
*[a-z]*[0-9]*@*.*.* (overly complex)

Domain Anchoring:

Anchor searches to specific domains when investigating targeted breaches:

*@target-company.com
*@* (overly broad)

Common Patterns Library

Email Address Investigations
# Standard corporate patterns
firstname.lastname*@company.com
f.lastname*@company.com
firstname*@company.com
# Administrative accounts
admin*@*
administrator*@*
root*@*
sysadmin*@*
# Service accounts
service*@*
no-reply*@*
noreply*@*
support*@*
Username Pattern Discovery
# Numeric variations
username[0-9]*
user[0-9][0-9]*
*[0-9]
# Common suffixes
*admin
*user
*test
*dev
*prod
Domain Investigation Patterns
# Subdomain discovery
*@*.target.com
*@dev*.target.com
*@staging*.target.com
# Related domain investigation
*@target*
*@*target*
*@target.*

Integration with LeakZero Features

Priority Search Enhancement

Subscribers with priority search capabilities experience:

  • Faster wildcard pattern processing
  • Higher result limits for complex patterns
  • Reduced queue times during peak usage

Further Reading and Resources

Industry Standards
  • POSIX Pattern Matching: Official specification for wildcard behavior
  • RFC 3977: Network News Transfer Protocol pattern matching standards
  • IEEE 1003.2: Shell command language pattern matching specifications
Security Research Applications
  • MITRE ATT&CK Framework: Reconnaissance and discovery techniques
  • NIST Cybersecurity Framework: Asset identification and management
  • OWASP Testing Guide: Security testing methodologies using pattern matching
Pro Tip
Bookmark this guide and refer back to the Common Patterns Library section when conducting investigations. The patterns provided have been tested across thousands of real-world breach investigations and represent industry best practices.
Next Steps
Now that you've mastered wildcard patterns, enhance your LeakZero expertise by exploring advanced techniques.
Documentation - LeakZero | LeakZero