IMVEEDev Portal

Domain Model

All entities in SOCSuite, their relationships, and the database schema. Reference guide for developers implementing new endpoints or services.

Entity-Relationship Diagram

erDiagram
    Tenant ||--o{ User : "has"
    Tenant ||--o{ Asset : "owns"
    Tenant ||--o{ Case : "belongs to"
    Tenant ||--o{ DetectionRule : "defines"

    User ||--o{ Case : "handles"
    User ||--o{ Task : "assigned to"

    Asset ||--o{ Vulnerability : "has"
    Asset ||--o{ Alert : "generates"
    Asset ||--o| AgentDetails : "has_one"
    Asset ||--o{ AgentApiKey : "has_many"
    Asset ||--o{ AgentMetrics : "has_many"
    Asset ||--o{ Mission : "receives"

    Case ||--o{ Alert : "aggregates"
    Case ||--o{ Task : "contains"
    Case ||--o| Incident : "escalates to"

    DetectionRule ||--o{ Alert : "generates"
    Playbook ||--o{ Case : "automates"
    Workflow ||--o{ Playbook : "orchestrates"

    Asset {
        uuid id PK
        string type "agent | device | server"
        string hostname
        string ip_address
        string os_name
        string status
        timestamp last_seen
    }

    Case {
        uuid id PK
        string title
        string severity "low | medium | high | critical"
        string mitre_tactic
        string status
    }

    Alert {
        uuid id PK
        string rule_name
        string severity
        jsonb raw_event
    }

Entities

EntityMeaning
AlertSIEM notification from OpenSearch after rule evaluation
CaseAggregation of alerts + attack path (MITRE ATT&CK). Work unit for analysts
IncidentITIL ticket (types: incident, approval, manual_task). approval tickets = approval request with approved/rejected workflow + audit fields (approved_by/at/comment). Description required (min. 10 chars, Dev_o-357). Every ticket action is recorded in an append-only audit timeline; comments enable discussion (→ Ticket Audit)
TaskTask within a case
Detection RuleSIGMA detection rule (synced to OpenSearch, creatable via UI)
PlaybookAutomated response script
WorkflowAutomation sequence
MissionTask pushed to agents
AssetIT asset — agents are assets (see below)
VulnerabilityVulnerability on an asset, including CVE enrichment

Ticket Audit (Timeline + Comments)

Every ticket carries two audit dimensions (analogous to the case domain, Dev_o-358):

Audit Timeline (ticket_timeline)

Append-only — events are only added, never modified or deleted. Every write operation on a ticket produces exactly one event including the actor (user ID + username, ON DELETE SET NULL).

Event typeTriggered by
createdTicket creation
status_changedStatus change (incl. close/reopen)
assignedAssignment to an analyst (assignee in metadata) or unassignment (DEV-161, assignee_id NULL)
priority_changedEscalation / priority change (old/new in metadata)
approved / rejectedApproval decision (comment in metadata)
comment_addedNew discussion entry (comment ID in metadata)

Timeline write points are best-effort: a failed audit write never breaks the main operation.

Comments (ticket_comments)

Discussion on the ticket: CRUD with author (ID + name, denormalized), edited_at on modification. Delete-cascade with the ticket.

Endpoints & Permissions

EndpointPermission
POST /api/v1/tickets/{id}/assignticketing.tickets.assign (DEV-161)
POST /api/v1/tickets/{id}/unassignticketing.tickets.assign (DEV-161)
GET /api/v1/tickets/{id}/timelineticketing.tickets.view (ticket group)
GET /api/v1/tickets/{id}/commentsticketing.tickets.view (ticket group)
POST /api/v1/tickets/{id}/commentsticketing.tickets.create
PUT /api/v1/tickets/{id}/comments/{commentId}ticketing.tickets.edit
DELETE /api/v1/tickets/{id}/comments/{commentId}ticketing.tickets.edit

The UI (ticket detail) renders both sources as one merged, time-sorted feed (events + comments).


Critical Pattern: Agents = Assets

:::error [No separate agents table] There is no dedicated agents table. Agents are assets with type = 'agent'. Any direct access to a hypothetical agents table is incorrect. :::

-- Correct query for all agents:
SELECT * FROM assets WHERE type = 'agent';

Fields of an Agent Asset

FieldDescription
hostnameSystem hostname
ip_addressIP address
os_nameOperating system name
os_versionOperating system version
agent_versionVersion of the Satellite agent
statusCurrent agent status
last_seenLast contact timestamp

Relations

RelationTypeDescription
agent_api_keyshas_manyAPI keys belonging to the agent
agent_detailshas_oneExtended agent metadata
agent_metricshas_manyMetrics and telemetry data

Data Flow: From Satellite to Analyst

flowchart TD
    SAT["Satellite / K8s Collector"] -->|"Logs, events, telemetry"| OS["OpenSearch<br/>Live rule evaluation"]
    OS -->|Rule match| ALERT["Alert<br/>SIEM notification"]
    ALERT -->|"Aggregation + MITRE ATT&CK"| CASE["Case<br/>Work unit"]
    CASE -->|"~90% automated"| PB["Playbook"]
    CASE -->|"~10% manual"| AN["Analyst"]

Pagination

:::warn [Mandatory above 100 items] All list endpoints with potentially more than 100 entries must be paginated. :::

ParameterValue
Default50
Maximum1000

See Also

On this page