> ## Documentation Index
> Fetch the complete documentation index at: https://docs.specterops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Usage Guide

> Practical usage examples and operational workflows for Ghost Scout

## Getting Started

After [installing Ghost Scout](https://docs.specterops.io/ghost_scout-mdx/installation), you can begin your reconnaissance workflow. The application provides a web interface accessible at `http://localhost:3000`.

## Typical Workflow

Ghost Scout follows a sequential workflow for building phishing campaigns:

**1. Add Target Domain**

Navigate to the Domains page and add your target company's domain

* Enter the domain (e.g., `example.com`)
* Ghost Scout will store the domain and prepare for reconnaissance
* DNS records will be queued for lookup

**2. Start Reconnaissance**

Initiate Hunter.io search to find employees and email formats

* Click "Start Reconnaissance" for the target domain
* Hunter.io API will search for email addresses
* Email format patterns will be identified
* Discovered contacts will be stored in the database
* Real-time updates will show progress

**3. Scrape Sources**

Enrich contact information by scraping discovered URLs

* Review discovered sources for each contact
* Select sources to scrape for additional information
* HTML content will be converted to Markdown
* Source data will be associated with contacts
* Enriched profiles will include scraped content

**4. Generate Profiles**

Use AI to generate detailed profiles for discovered contacts

* Select contacts for profile generation
* Anthropic API will analyze scraped data
* AI will generate structured profiles
* Profiles include key information and context
* Review generated profiles for accuracy

**5. Create Pretexts**

Generate personalized phishing emails for each target

* Select targets for pretext generation
* Choose prompt template from library
* AI generates personalized pretexts
* Review generated emails for quality
* Edit pretexts as needed

**6. Review & Export**

Review, approve, and export pretexts for your campaign

* Review all generated pretexts
* Make final edits and approvals
* Export for use in phishing infrastructure
* Track which pretexts have been used

## Feature Usage

### Domain Management

> [tab] Add Domain
>
> **Adding a Target Domain:**
>
> 1. Navigate to the Domains page
> 2. Click "Add Domain"
> 3. Enter the target domain (without `http://` or `www`)
> 4. Click "Submit"
>
> **Example:**
>
> ```
> Domain: targetcompany.com
> ```
>
> Ghost Scout will:
>
> * Store the domain in the database
> * Queue DNS lookups (MX, SPF, DMARC records)
> * Prepare for reconnaissance activities

> [tab] View DNS Records
>
> **Viewing DNS Information:**
>
> After adding a domain, view DNS records:
>
> * **MX Records**: Mail server information
> * **SPF Records**: Email authentication policies
> * **DMARC Records**: Email security policies
>
> This information helps understand email infrastructure and security posture.

> [tab] Related Domains
>
> **Autodiscovery:**
>
> Ghost Scout can discover related domains:
>
> * Autodiscover records
> * Mail server domains
> * Related organizational domains
>
> Use this to expand your reconnaissance scope.

### Reconnaissance

> [tab] Start Reconnaissance
>
> **Initiating Hunter.io Search:**
>
> 1. Select a domain from your list
> 2. Click "Start Reconnaissance"
> 3. Monitor real-time progress updates
>
> **What Happens:**
>
> * Hunter.io API searches for email addresses at the domain
> * Email format patterns are identified (e.g., `{first}.{last}@domain.com`)
> * Discovered contacts are stored with available information
> * Sources (LinkedIn, company websites, etc.) are recorded
> * Real-time updates show discovered contacts

> [tab] Monitor Progress
>
> **Real-time Updates:**
>
> Watch Socket.io updates for:
>
> * Number of contacts discovered
> * Email format patterns identified
> * Sources found for each contact
> * Job queue progress
> * Completion status
>
> Progress is shown in real-time without page refreshes.

> [tab] Review Contacts
>
> **Analyzing Discovered Contacts:**
>
> For each contact, view:
>
> * Name and email address
> * Position/role (if available)
> * Sources where information was found
> * Confidence score
> * Associated domain
>
> Use this information to prioritize targets.

### Source Scraping

> [tab] Select Sources
>
> **Choosing Sources to Scrape:**
>
> 1. Navigate to a contact's detail page
> 2. Review discovered sources (URLs)
> 3. Select sources likely to contain useful information
> 4. Click "Scrape Selected"
>
> **Source Types:**
>
> * LinkedIn profiles
> * Company bios
> * Blog posts
> * Social media profiles
> * Company directories

> [tab] Scraping Process
>
> **How Scraping Works:**
>
> 1. Ghost Scout fetches the HTML content
> 2. Content is sent to MarkItDown-API
> 3. HTML is converted to clean Markdown
> 4. Markdown is stored and associated with the contact
> 5. Real-time updates show scraping progress
>
> **Benefits of Markdown:**
>
> * Better formatting for LLM processing
> * Cleaner data extraction
> * Improved profile generation quality

> [tab] Review Scraped Data
>
> **Analyzing Source Data:**
>
> View scraped content for each source:
>
> * Original URL
> * Scraped date
> * Markdown content
> * Associated targets
>
> Use this to verify information quality before profile generation.

### Profile Generation

> [tab] Generate Profiles
>
> **Creating AI Profiles:**
>
> 1. Select contacts with scraped data
> 2. Click "Generate Profiles"
> 3. Monitor queue processing
> 4. Review generated profiles
>
> **Profile Contents:**
>
> * Professional background
> * Role and responsibilities
> * Interests and activities
> * Public information summary
> * Context for personalization

> [tab] Profile Quality
>
> **Factors Affecting Quality:**
>
> * **Source Data**: More scraped sources = better profiles
> * **Source Quality**: Professional profiles better than brief mentions
> * **Prompt Templates**: Customize prompts in `prompt_library/`
> * **LLM Model**: Anthropic Claude quality affects output
>
> **Best Practices:**
>
> * Scrape multiple sources per target
> * Use high-quality sources (LinkedIn, company bios)
> * Review and edit profiles as needed

> [tab] Edit Profiles
>
> **Manual Profile Refinement:**
>
> Profiles can be edited:
>
> * Add additional information manually
> * Correct inaccuracies
> * Emphasize relevant details
> * Remove irrelevant information
>
> Edited profiles improve pretext generation.

### Pretext Generation

> [tab] Choose Template
>
> **Selecting Prompt Templates:**
>
> Ghost Scout includes templates in `prompt_library/`:
>
> * IT support pretexts
> * HR/benefits pretexts
> * Executive communication pretexts
> * Vendor/partner pretexts
> * Security awareness pretexts
>
> Choose templates that match your campaign goals.

> [tab] Generate Pretexts
>
> **Creating Personalized Emails:**
>
> 1. Select targets with generated profiles
> 2. Choose pretext template
> 3. Click "Generate Pretexts"
> 4. Wait for AI generation
> 5. Review generated emails
>
> **Personalization Elements:**
>
> * Target's name and role
> * Company information
> * Professional interests
> * Recent activities (from profile)
> * Contextual details

> [tab] Review & Edit
>
> **Refining Pretexts:**
>
> Before using pretexts, review for:
>
> * **Accuracy**: Verify personalized details are correct
> * **Believability**: Ensure scenario is plausible
> * **Grammar**: Check for AI artifacts
> * **Tone**: Match organizational communication style
> * **Call to Action**: Ensure objective is clear
>
> Edit as needed to improve effectiveness.

### Export & Campaign Management

> [tab] Export Pretexts
>
> **Exporting for Campaigns:**
>
> Export pretexts for use in phishing tools:
>
> * CSV format with target information
> * Individual email templates
> * Bulk export functionality
>
> Use exported data in your phishing infrastructure.

> [tab] Track Usage
>
> **Campaign Tracking:**
>
> Mark pretexts as:
>
> * **Pending**: Not yet used
> * **Sent**: Used in campaign
> * **Successful**: Target interacted
> * **Failed**: Target did not interact
>
> Track effectiveness across campaigns.

> [tab] Data Management
>
> **Managing Campaign Data:**
>
> * Archive completed campaigns
> * Delete outdated reconnaissance data
> * Backup database regularly
> * Secure sensitive information
> * Clean up between engagements

## Operational Scenarios

### Scenario 1: Broad Company Reconnaissance

**Goal:** Discover as many employees as possible at a target organization

**1. Add Primary Domain**

```
Domain: targetcompany.com
```

**2. Start Reconnaissance**

Let Hunter.io discover all available contacts at the domain

**3. Identify Related Domains**

Check for:

* Subsidiary domains
* Regional domains
* Acquired company domains

**4. Expand Reconnaissance**

Add and search related domains for additional contacts

**5. Prioritize Targets**

Review all discovered contacts and select high-value targets:

* Executive leadership
* IT administrators
* Finance personnel
* HR staff

### Scenario 2: Targeted Spear Phishing

**Goal:** Create highly personalized pretexts for specific individuals

**1. Identify Targets**

Use Hunter.io to find specific individuals:

* C-level executives
* Department heads
* Project managers

**2. Comprehensive Source Scraping**

Scrape multiple sources per target:

* LinkedIn profiles
* Company bios
* Conference presentations
* Blog posts
* Social media

**3. Generate Detailed Profiles**

Create rich profiles with extensive information

**4. Custom Pretexts**

Generate pretexts referencing:

* Recent activities
* Professional interests
* Current projects
* Industry trends relevant to target

**5. Manual Refinement**

Carefully edit pretexts for maximum believability

### Scenario 3: Campaign Template Development

**Goal:** Develop reusable pretext templates for multiple campaigns

**1. Research Multiple Organizations**

Conduct reconnaissance on several similar organizations

**2. Identify Common Patterns**

Find patterns across organizations:

* Similar roles
* Common workflows
* Industry-specific language
* Shared pain points

**3. Create Template Pretexts**

Develop pretext templates that work across targets:

* Generic IT support scenarios
* Common HR/benefits topics
* Industry-standard processes

**4. Customize Per Campaign**

For each engagement, personalize templates with:

* Organization-specific details
* Target-specific information
* Current events/context

## OPSEC Best Practices

> [!WARNING]
>
> Follow operational security best practices to avoid detection

### Hunter.io Usage

> [accordion] API Key Management
>
> * Use dedicated API keys for operations
> * Avoid personal/company accounts
> * Consider disposable accounts for sensitive engagements
> * Rotate keys between campaigns
> * Monitor API usage and rate limits

> [accordion] Search Patterns
>
> * Be aware Hunter.io may notify target organizations
> * Space out searches over time
> * Avoid rapid sequential searches
> * Consider search volume limits
> * Document search timestamps

> [accordion] Attribution
>
> * Hunter.io searches can be attributed to your account
> * Target organizations may receive alerts
> * Consider using separate accounts per client
> * Be prepared to explain reconnaissance activities
> * Maintain engagement documentation

### Infrastructure Security

> [accordion] Network Isolation
>
> * Deploy Ghost Scout on isolated infrastructure
> * Use VPN or dedicated network for operations
> * Separate infrastructure per engagement
> * Avoid using organizational networks
> * Consider cloud-based deployments

> [accordion] Data Security
>
> * Encrypt SQLite database files
> * Secure Redis instance with passwords
> * Limit access to Ghost Scout interface
> * Implement authentication and access control
> * Backup data securely

> [accordion] Operational Hygiene
>
> * Clean up data between engagements
> * Delete reconnaissance data after campaigns
> * Maintain separate instances per client
> * Document data retention policies
> * Secure API keys and credentials

### Content Generation

> [accordion] AI-Generated Content
>
> * Review all AI-generated content carefully
> * Watch for AI artifacts and inconsistencies
> * Verify personalized details are accurate
> * Ensure realistic tone and style
> * Edit for natural language

> [accordion] Personalization Accuracy
>
> * Verify scraped information is current
> * Check that details match target's reality
> * Avoid outdated or incorrect information
> * Cross-reference multiple sources
> * Update profiles as needed

> [accordion] Template Management
>
> * Customize prompt templates for each engagement
> * Test templates with sample data
> * Iterate based on campaign results
> * Document effective templates
> * Maintain template library

## Automation Examples

### Bulk Profile Generation

```bash theme={null}
# Example: Generate profiles for all contacts without profiles
# This would be done through the web interface, but can be scripted

# 1. Query database for contacts without profiles
# 2. Ensure sources are scraped
# 3. Queue profile generation jobs
# 4. Monitor queue progress
# 5. Review generated profiles
```

### Scheduled Reconnaissance

```bash theme={null}
# Example: Scheduled reconnaissance for ongoing monitoring
# Use cron or scheduled task to periodically update reconnaissance

# Crontab entry (daily reconnaissance at 2 AM)
0 2 * * * cd /path/to/ghost_scout && node scripts/scheduled-recon.js
```

### Export Automation

```bash theme={null}
# Example: Automated export of completed pretexts
# Export pretexts as they're approved for campaign use

# Script to export approved pretexts to campaign infrastructure
node scripts/export-pretexts.js --status=approved --format=csv --output=/path/to/campaign/
```

## Troubleshooting

> [accordion] No Contacts Found
>
> **Possible Causes:**
>
> * Hunter.io has no data for the domain
> * Domain spelling error
> * Private/small organization
> * API key issues
>
> **Solutions:**
>
> * Verify domain spelling
> * Check Hunter.io directly for domain data
> * Try related domains
> * Verify API key is valid
> * Check Hunter.io account status

> [accordion] Scraping Failures
>
> **Possible Causes:**
>
> * Source URL is behind authentication
> * Source has anti-scraping protections
> * MarkItDown-API connection issues
> * Rate limiting by source site
>
> **Solutions:**
>
> * Verify MarkItDown-API is running
> * Check source URL is accessible
> * Space out scraping requests
> * Skip protected sources
> * Manual data collection for important sources

> [accordion] Profile Generation Errors
>
> **Possible Causes:**
>
> * Insufficient scraped data
> * Anthropic API key issues
> * API rate limits
> * Prompt template errors
>
> **Solutions:**
>
> * Scrape more sources for the target
> * Verify Anthropic API key
> * Check API usage and limits
> * Review prompt template syntax
> * Monitor job queue for errors

> [accordion] Pretext Quality Issues
>
> **Possible Causes:**
>
> * Low-quality profile data
> * Inappropriate template selection
> * Prompt needs customization
> * LLM hallucination
>
> **Solutions:**
>
> * Improve profile quality with better sources
> * Choose more appropriate template
> * Customize prompt templates
> * Manually edit generated pretexts
> * Provide more context in prompts

> [accordion] Real-time Updates Not Working
>
> **Possible Causes:**
>
> * Socket.io connection issues
> * Redis connection problems
> * Job queue not processing
> * Client-side JavaScript errors
>
> **Solutions:**
>
> * Check browser console for errors
> * Verify Redis is running
> * Check Socket.io connection status
> * Restart Ghost Scout application
> * Clear browser cache and reload

## Best Practices

### Reconnaissance

> [card] Start Broad
>
> Begin with company-wide reconnaissance to identify all potential targets

> [card] Then Focus
>
> Narrow down to high-value targets for detailed profiling

> [card] Multiple Sources
>
> Scrape multiple sources per target for comprehensive profiles

> [card] Verify Information
>
> Cross-reference information across sources for accuracy

### Profile & Pretext Generation

> [card] Quality Over Quantity
>
> Better to have fewer high-quality pretexts than many poor ones

> [card] Manual Review
>
> Always review AI-generated content before use

> [card] Iterate Templates
>
> Improve prompt templates based on campaign results

> [card] Test Pretexts
>
> Test pretexts on internal team before deploying

### Campaign Management

> [card] Document Everything
>
> Keep detailed records of reconnaissance and campaigns

> [card] Track Results
>
> Monitor campaign effectiveness and iterate

> [card] Secure Data
>
> Protect reconnaissance data and pretexts

> [card] Clean Up
>
> Delete data after engagement completion

## Next Steps

> [card] [Overview](https://docs.specterops.io/ghostscout-docs/overview.md)
>
> Learn about Ghost Scout features

> [card] [Installation](https://docs.specterops.io/ghostscout-docs/installation.md)
>
> Setup and installation guide

> [card] [Hunter.io API](https://hunter.io/api-documentation)
>
> Hunter.io API documentation


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.