Entity Relationship Mapping for Cyber Investigations
Master entity relationship mapping for cyber investigations. Learn entity types, relationship types, graph databases, Maltego's approach, and practical mapping techniques.
# Entity Relationship Mapping for Cyber Investigations
Entity relationship mapping is the systematic process of identifying, documenting, and visualizing connections between different entities in an investigation. The sections below present the principles, techniques, and tools for effective entity relationship mapping, with focus on [Maltego](/tools/maltego) as the primary mapping tool.
Entity Intelligence Mapping
Entity relationship mapping is a methodology for extracting intelligence from the connections between investigation targets. Every relationship — between people, domains, IPs, organizations — is a data point that reveals structure and intent. By systematically identifying entities, documenting how they connect, and visualizing the resulting network, investigators transform scattered data into actionable intelligence.
Entity Types
Person Entities
| Entity | Properties | Investigation Use |
|--------|------------|-------------------|
| Person | Name, DOB, aliases | Identity verification |
| Email | Address, domain | Communication mapping |
| Phone | Number, carrier | Identity linkage |
| Username | Platform, handle | Cross-platform mapping |
| Social Profile | Platform, URL | Social network mapping |
| Address | Location, type | Physical location |
Organization Entities
| Entity | Properties | Investigation Use |
|--------|------------|-------------------|
| Company | Name, jurisdiction | Corporate structure |
| Domain | Name, registrar | Digital presence |
| ASN | Number, organization | Network ownership |
| Certificate Authority | Name, trust level | Identity verification |
Infrastructure Entities
| Entity | Properties | Investigation Use |
|--------|------------|-------------------|
| Domain | Name, registrar | Digital presence |
| IP Address | Address, geolocation | Infrastructure mapping |
| Netblock | CIDR, ASN | Network ownership |
| Service | Port, protocol, banner | Capability assessment |
| Certificate | Issuer, SAN | Identity and hosting |
| Website | URL, technology | Web presence |
Content Entities
| Entity | Properties | Investigation Use |
|--------|------------|-------------------|
| Website | URL, technology | Web presence mapping |
| Document | Title, content | Information discovery |
| Image | Source, metadata | Attribution analysis |
| File | Name, hash, type | Malware analysis |
Event Entities
| Entity | Properties | Investigation Use |
|--------|------------|-------------------|
| Event | Date, location, type | Timeline construction |
| Transaction | Amount, date, parties | Financial analysis |
| Communication | Date, parties, medium | Communication mapping |
Relationship Types
Ownership Relationships
| Relationship | Example | Investigation Value |
|-------------|---------|---------------------|
| Owns | Person > owns > Domain | Attribution |
| Operates | Company > operates > Service | Infrastructure mapping |
| Controls | Person > controls > Company | Corporate control |
| Manages | Person > manages > Domain | Administrative control |
Technical Relationships
| Relationship | Example | Investigation Value |
|-------------|---------|---------------------|
| Resolves To | Domain > resolves to > IP | Technical mapping |
| Hosted On | Domain > hosted on > IP | Infrastructure |
| Connects To | IP > connects to > IP | Network topology |
| Uses | Service > uses > Technology | Technology stack |
Social Relationships
| Relationship | Example | Investigation Value |
|-------------|---------|---------------------|
| Works For | Person > works for > Company | Professional mapping |
| Emails | Person > emails > Person | Communication |
| Friends With | Person > friends with > Person | Social network |
| Member Of | Person > member of > Group | Association |
Financial Relationships
| Relationship | Example | Investigation Value |
|-------------|---------|---------------------|
| Pays | Company > pays > Person | Financial flow |
| Receives From | Person > receives from > Company | Income mapping |
| Transacts With | Person > transacts with > Person | Financial network |
Graph Databases
What Are Graph Databases?
Graph databases are specialized databases for storing and querying relationship data.
Key Concepts:
Graph Database Comparison
| Database | Type | Best For | Cost |
|----------|------|----------|------|
| Neo4j | Native graph | Complex queries | Free/Enterprise |
| Amazon Neptune | Cloud graph | Scalability | Pay-per-use |
| JanusGraph | Distributed graph | Large-scale | Free/Open source |
| ArangoDB | Multi-model | Flexibility | Free/Enterprise |
Using Graph Databases for Investigations
- Design entity types and relationships
- Define properties and constraints
- Create indexes for common queries
- Import from CSV files
- Import from Maltego exports
- Import from other databases
- Find shortest paths between entities
- Identify clusters and communities
- Calculate centrality measures
- Analyze network properties
Maltego's Approach
Entity System
[Maltego](/tools/maltego) provides a comprehensive entity system:
Relationship Discovery
Maltego discovers relationships through transforms:
Graph Analysis
Maltego provides graph analysis capabilities:
Practical Mapping Techniques
Investigation Setup
- What entities are in-scope?
- What relationships are relevant?
- What is the investigation objective?
- Set up Maltego workspace
- Configure transform sets
- Establish naming conventions
- Identify starting entities
- Validate entity information
- Create seed entities in Maltego
Entity Discovery
- Run Maltego transforms
- Use command-line tools
- Query data sources
- Research manually
- Create entities manually
- Document findings
- Import from other tools
- Import from databases
- Import from files
Relationship Documentation
- Document direct connections
- Note relationship type
- Record confidence level
- Map through intermediaries
- Document connection chains
- Note indirect influences
- Track relationship changes
- Document timeline
- Note relationship duration
Pattern Analysis
- Identify hubs and bridges
- Detect clusters
- Find chains and loops
- Track activity patterns
- Identify communication patterns
- Note growth patterns
- Identify unusual connections
- Detect outliers
- Flag suspicious patterns
Visualization
- Choose appropriate layout
- Adjust for clarity
- Optimize for analysis
- Define color scheme
- Apply consistently
- Use for categorization
- Add notes to entities
- Document findings
- Record analysis
Mapping Workflow
Phase 1: Preparation
Phase 2: Entity Collection
Phase 3: Relationship Documentation
Phase 4: Analysis
Phase 5: Reporting
Advanced Techniques
Network Analysis
Temporal Analysis
Geospatial Analysis
Common Mapping Mistakes
Conclusion
Entity relationship mapping is a fundamental skill for cyber investigations. By systematically identifying entities, documenting relationships, and analyzing patterns, investigators can build comprehensive intelligence pictures.
[Maltego](/tools/maltego) provides powerful capabilities for entity relationship mapping, combining automated discovery with visual analysis. Combine Maltego's capabilities with graph databases and analytical techniques for comprehensive mapping.
For related topics, explore [Link Analysis Fundamentals](/learn/link-analysis-fundamentals) for theoretical foundations and [Maltego Graph Analysis](/learn/maltego-graph-analysis) for Maltego-specific techniques.