Skip to content

ERDiagram

Mohammad AbuDayeh edited this page May 13, 2026 · 2 revisions

ER Diagram – WISETrap Honeypot System

The ER Diagram (Entity Relationship Diagram) represents the database structure of the WISETrap honeypot system and illustrates the relationships between entities used for logging, monitoring, and alert management.

This diagram defines how attack information is stored and linked within the system database.


System Overview

WISETrap is a deception-based credential honeypot designed to detect unauthorized access attempts through exposed trap resources such as:

https://honeypot.wise.local/login.txt

When suspicious activity occurs, the system stores request information, generates alerts, and allows administrators to monitor attacker behavior in real time.

The ER Diagram describes the database entities responsible for managing:

  • Attack logs
  • Trap endpoints
  • Alerts
  • Administrators
  • Attacker information

Database Entities

1. Attackers

Stores information about detected attackers or bots interacting with the honeypot system.

Attributes

  • attacker_id (Primary Key)
  • ip_address
  • user_agent
  • first_seen
  • last_seen
  • country
  • is_bot

Purpose

Tracks attacker identity and repeated interactions with the system.


2. AttackLogs

Stores detailed request and attack information generated during suspicious activity.

Attributes

  • log_id (Primary Key)
  • attacker_id (Foreign Key)
  • endpoint_id (Foreign Key)
  • requested_url
  • timestamp
  • http_method
  • status_code
  • request_data
  • response_data

Purpose

Records all suspicious requests and connects them to attackers and trap endpoints.


3. TrapEndpoints

Stores information about honeypot trap files and monitored endpoints.

Attributes

  • endpoint_id (Primary Key)
  • endpoint_name
  • endpoint_url
  • description
  • is_active
  • created_at

Example Endpoint

/login.txt

Purpose

Defines trap resources monitored by the honeypot system.


4. Alerts

Stores alert information generated after suspicious activity is detected.

Attributes

  • alert_id (Primary Key)
  • log_id (Foreign Key)
  • alert_type
  • email_sent
  • sent_at
  • read_at
  • status

Purpose

Tracks alert notifications sent to administrators.


5. Administrators

Stores administrator account information.

Attributes

  • admin_id (Primary Key)
  • name
  • email
  • password_hash
  • created_at
  • is_active

Purpose

Allows administrators to monitor and manage the honeypot system.


Entity Relationships

Attackers → AttackLogs

Relationship:

  • One attacker can generate multiple attack logs.
  • Each attack log belongs to one attacker.

Relationship Type: One-to-Many (1:N)


TrapEndpoints → AttackLogs

Relationship:

  • One trap endpoint can appear in multiple attack logs.
  • Each attack log references one trap endpoint.

Relationship Type: One-to-Many (1:N)


AttackLogs → Alerts

Relationship:

  • One attack log can generate one alert.
  • Each alert belongs to one attack log.

Relationship Type: One-to-One (1:1)


Administrators ← Alerts

Relationship:

  • Administrators receive generated alerts.
  • Alerts are associated with administrator monitoring activities.

Relationship Type: Monitoring / Notification Relationship


Database Workflow

  1. Attacker accesses a trap endpoint
  2. The system records request information
  3. Attack data is stored inside AttackLogs
  4. Alert records are generated
  5. Administrators receive notifications and monitor activity

ER Diagram

ER Diagram


Purpose

The purpose of the ER Diagram is to define the database structure used by the WISETrap honeypot system and demonstrate how attacker activity, trap endpoints, alerts, and administrators are connected through relational database design.


Notes

  • Each attacker may generate multiple attack records.
  • Each suspicious request is linked to a monitored trap endpoint.
  • Alerts are automatically generated after suspicious activity.
  • The database is designed for monitoring and analysis purposes.
  • All entities are directly aligned with the WISETrap system workflow and diagrams.

Clone this wiki locally