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 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 |
| 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 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 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 for theoretical foundations and Maltego Graph Analysis for Maltego-specific techniques.
Frequently Asked Questions
Continue Learning
Link Analysis Fundamentals: Mapping Relationships in OSINT
Understand the fundamentals of link analysis for OSINT investigations. Learn graph theory basics, node and edge types, pattern recognition, and investigative techniques using Maltego.
OSINT · BeginnerDigital Footprinting Guide: Mapping Someone's Online Presence
Learn how to map someone's complete digital footprint using OSINT techniques. Covers passive vs active footprinting, tools, practical examples, and privacy considerations.
OSINT · IntermediateOSINT Investigation Workflow: From Seed to Complete Profile
A structured methodology for conducting OSINT investigations. Learn how to progress from a single seed entity to a comprehensive intelligence profile using Maltego and complementary tools.
OSINT · BeginnerOSINT Introduction: Open Source Intelligence Gathering Techniques
Learn the fundamentals of OSINT including data sources, essential tools, the intelligence gathering methodology, and ethical considerations for open source investigations.
Related Security Tools
Maltego
Learn how to use Maltego, the graphical OSINT and link analysis tool: install the free Community Edition, add entities to a graph, run transforms and read the relationships between domains, IP addresses, organizations, people, and other entities.
Information GatheringRecon-ng
Recon-ng is a full-featured Web Reconnaissance Framework focused on open source intelligence. It provides a powerful environment to conduct web-based reconnaissance quickly and thoroughly via community modules.
Information GatheringtheHarvester
Learn how to use theHarvester in Kali Linux: gather emails, subdomains, employee names, open ports, and banners from public sources with a step-by-step first scan, API keys, and worked examples for authorized OSINT recon.
Information GatheringAmass
OWASP Amass is the industry-standard in-depth network mapping and attack surface discovery tool. It uses active and passive techniques, scraping 20+ public data feeds, DNS enumeration, and certificate transparency logs to discover subdomains, IP addresses, and ASN data — making it essential for penetration testing, bug bounty hunting, and enterprise security assessments.