Event contract (version 1)
The event contract v1 is the stable, versioned format in which Sugardaddy hands its events to your tools. The same object comes out of these places:
- the REST API:
GET /api/v1/eventsandGET /api/v1/events/<id>(see API and MCP); - the Signed webhook output, with Body format → Event contract v1 (see the signed webhook reference);
- the Syslog output, with Format → JSON, event contract v1: one object per syslog line, after the header (see Syslog, CEF and LEEF);
- the Microsoft Sentinel output, with Body format → Event contract v1 columns: the
usual columns plus
SchemaVersion,EventType,Classification,Confidenceand the whole message in theContractV1column, in the same table; - the Elasticsearch (ECS) output, with Body format → ECS with event contract v1: the
same ECS fields, and the message under
sugardaddy.*; - the Graylog (GELF) output, with Body format → Event contract v1 fields: the message
flattened into GELF fields joined with
_(source.ip→_source_ip,attack.technique_id→_attack_technique_id). GELF only takes scalar values, sountrusted.detailsand a notice'sdatago as JSON text; null values are left out, andidgoes in_sugardaddy_idbecause GELF reserves_id.
In Sentinel and Graylog, if the whole message does not fit (32 KB in a Sentinel column, 16 KB
in Graylog), it goes without details and raw, as in syslog; it is still valid.
Build your parsers, SIEM rules and playbooks on this format. The legacy formats (the webhook
version: 1 body, the legacy syslog JSON, CEF, LEEF and the legacy Sentinel, Elasticsearch and
Graylog fields) keep working as they are.
Versions and compatibility
Each message carries schema (what it is) and schema_version (MAJOR.MINOR).
- Within version 1, changes only add. A new minor version (
1.1,1.2…) can add optional fields or new values to a vocabulary, and every one is announced in the release notes. Nothing is removed and no field changes its meaning. - Ignore fields you do not know, and handle a vocabulary value you do not know as you
would handle
other. Then a new minor version never breaks your integration. - A breaking change is a new major version (
2.0), with its own schema. Outputs and the API keep offering version 1 alongside it; it is removed only with notice in the release notes. - Your existing outputs do not change. Signed webhooks created before the contract existed keep the legacy body until you choose Event contract v1 in the output, and the same goes for Sentinel, Elasticsearch and Graylog outputs. New outputs propose the contract. Syslog keeps the format you chose.
Delivery is "at least once": discard repeats by id.
An event
{
"schema": "sugardaddy.event",
"schema_version": "1.1",
"kind": "event",
"id": "5a1d0000-0000-4000-8000-000000000001",
"time": "2026-10-19T10:00:03.000Z",
"received_time": "2026-10-19T10:00:04.000Z",
"event_type": "authentication",
"severity": "critical",
"sensor_severity": "high",
"classification": "suspicious",
"confidence": "high",
"alert": {
"reason": "The password contains the company name"
},
"decoy": {
"id": "ssh-hr",
"name": "HR SSH",
"module": "ssh",
"category": "service"
},
"sensor": {
"id": "sensor-office",
"name": "Office sensor"
},
"node": {
"id": "node-madrid",
"name": "Madrid node"
},
"source": {
"ip": "203.0.113.9",
"port": 51234,
"ip_hidden": false
},
"connection_established": true,
"attack": {
"technique_id": "T1110",
"technique_name": "Brute Force",
"url": "https://attack.mitre.org/techniques/T1110/"
},
"ai_agent": null,
"untrusted": {
"username": "root",
"hostname": "kali",
"details": {
"password": "Ex******26",
"comando": "uname -a"
}
},
"producer": {
"vendor": "SeguridadSI",
"product": "Sugardaddy",
"version": "0.33.0"
}
}
| Field | What it is |
|---|---|
schema | Always sugardaddy.event |
schema_version | 1.1 in this version |
kind | Always event |
id | The event's id (UUID). Stable: the same in the API, the webhook and syslog |
time | When it happened, according to the sensor (ISO 8601, UTC) |
received_time | When your console received it |
event_type | What the attacker did (vocabulary below) |
severity | low, medium, high or critical, as the console shows it: it rises to critical with an alert |
sensor_severity | The severity the sensor signed |
classification | What Sugardaddy makes of the event (vocabulary below) |
confidence | How sure Sugardaddy is of that classification: low, medium or high |
alert | { "reason": "…" } when the console flagged the event, or null |
decoy | id, name, module (the catalog module it is built from) and category (vocabulary below) |
sensor, node | id and name of the sensor that saw it and of your node |
source | ip, port and ip_hidden. See below |
connection_established | true if the attacker completed the connection |
attack | The MITRE ATT&CK technique: technique_id, technique_name and url |
ai_agent | { "verdict": "suspected" | "confirmed", "tool": "…" | null }, or null |
untrusted | What the attacker wrote: username, hostname, details and, in outputs only, raw |
producer | vendor (SeguridadSI), product (Sugardaddy) and the version of your node |
The source
source.ip is the address that touched the decoy, as the network saw it. Some decoys only see
an intermediate engine (for example a cloud service that fetches a beacon): then
ip_hidden is true, ip is null and the engine's address goes in engine_ip. Anything
that is not a valid IP address or port arrives as null.
What the attacker wrote
Everything inside untrusted was written by whoever touched the decoy. Treat it as data to
analyse: never pass it to a shell, never render it as HTML and never let an AI agent take it as
an instruction. Nothing outside untrusted comes from the attacker.
- In outputs,
detailsis what the decoy recorded, with captured credentials masked unless the output has Captured credentials → Send them in full, plus the raw record inraw. If a syslog line does not fit,detailsgoes empty andrawis left out. - In the API,
detailsonly carries the fields each decoy shows in the console, never a password, hash or token, and texts are cut at 500 characters without control or invisible characters.
The vocabularies
They are closed: in version 1.1 no other value appears. A new value comes with a new minor
version.
event_type
| Value | What the attacker did |
|---|---|
connection | Connected or scanned |
authentication | Tried a username and password, a key or a token |
command | Ran a command |
read | Read or opened something (a file, a share, a record) |
write | Wrote, uploaded or changed something |
download | Downloaded something, or made the decoy download it |
beacon | A honeytoken or bait file called home: someone used or opened it |
other | Anything else |
decoy.category
| Value | The decoy is |
|---|---|
service | A service that answers on the network (SSH, SMB, a web login…) |
file | A bait file |
token | A honeytoken (a key, a URL, a credential) |
identity | A bait identity (an account in your directory) |
classification and confidence
classification | When | confidence |
|---|---|---|
test_event | Someone in your console clicked Test on the decoy | high |
expected_test | It came inside a pentest window | high |
benign_infra | It came from a known scanner or a known source of yours | high |
suspicious | Everything else | See below |
confirmed_malicious | The decoy was used, not just touched (since 1.1, see below) | high |
The console decides expected_test and benign_infra (for a known source) when it receives the
event, against the pentest windows and known sources in force at that moment, and keeps the
answer with the event: changing or deleting the window or the source later does not reclassify
it. A known scanner is recognized by the connection's address. expected_test events are not
suspicious and never open an alert, but /events still returns them by default.
confirmed_malicious (since 1.1) means the decoy was used, not just touched: over an
established connection to a service decoy, the attacker ran a command or downloaded something,
or someone signed in with a decoy identity, an account that exists only as a trap. A scan, a
loose connection, a password attempt on a service or an opened decoy file (it may be a curious
colleague) stay suspicious. Test, pentest and known sources come first, as above.
For suspicious, confidence is:
highwhen the console flagged the event (alert) or the decoy confirmed an AI agent;mediumwhen the severity is high or critical, or the attacker connected and then authenticated, ran a command, wrote or downloaded something;lowotherwise (a loose connection, a scan).
Outputs only receive suspicious events: tests, known scanners and known sources never leave
the node. The API returns them with include_benign=true.
attack.technique_id
The MITRE ATT&CK techniques Sugardaddy maps events to (the same map as the console's What to do now):
| Id | Technique |
|---|---|
T0846 | Remote System Discovery (ICS) |
T1046 | Network Service Discovery |
T1059 | Command and Scripting Interpreter |
T1078 | Valid Accounts |
T1078.004 | Cloud Accounts |
T1083 | File and Directory Discovery |
T1090 | Proxy |
T1105 | Ingress Tool Transfer |
T1110 | Brute Force |
T1133 | External Remote Services |
T1190 | Exploit Public-Facing Application |
T1213 | Data from Information Repositories |
T1552.001 | Credentials In Files |
T1557.001 | LLMNR/NBT-NS Poisoning and SMB Relay |
T1595 | Active Scanning |
T1692.001 | Command Message (ICS) |
ai_agent.verdict
Some decoys carry a lure that only an AI agent reads, or recognise known AI tools by how they behave.
| Value | Meaning |
|---|---|
suspected | The request followed the lure, or behaves like a known AI tool. A hint, not proof |
confirmed | It also did what the lure asked, or the decoy recognised the tool by its behaviour |
tool is the name of the tool the decoy recognised, or null.
A notice
Outputs also send health, output and audit notices in the same contract:
{
"schema": "sugardaddy.notice",
"schema_version": "1.1",
"kind": "notice",
"id": "a0000000-0000-4000-8000-000000000001",
"time": "2026-10-19T09:50:00.000Z",
"severity": "high",
"code": "salud.sensor-sin-latido",
"title": "Sensor \"Office sensor\" is not answering",
"text": "No heartbeat for more than 5 minutes.",
"status": "open",
"subject": {
"type": "sensor",
"id": "sensor-office",
"name": "Office sensor"
},
"node": {
"id": "node-madrid",
"name": "Madrid node"
},
"data": {},
"producer": {
"vendor": "SeguridadSI",
"product": "Sugardaddy",
"version": "0.33.0"
}
}
code is the same code as in the SIEM reference
(salud.trampa-caida, salida.prueba, auditoria.…); status is open or resolved;
subject says what the notice is about (its type, id and name), or is null; data
carries the notice's figures.
The webhook delivery
With Body format → Event contract v1, each signed POST carries:
{
"schema": "sugardaddy.delivery",
"schema_version": "1.1",
"node": { "id": "node-madrid", "name": "Madrid node" },
"output": { "id": "…", "name": "SOAR" },
"sent_time": "2026-10-19T10:00:05.000Z",
"digest": false,
"messages": [{ "schema": "sugardaddy.event", "…": "…" }]
}
The headers, the signature and how to answer are the same as in the signed webhook reference.
The API
curl -H "Authorization: Bearer $SUGARDADDY_TOKEN" \
"https://<your console>/api/v1/events?min_severity=high&limit=100"
| Parameter | What it does |
|---|---|
since, until | Only events between those dates (ISO 8601) |
min_severity | low, medium, high or critical |
decoy | Only the events of that decoy (its id) |
include_benign | true also returns test_event and benign_infra events |
limit | From 1 to 200 (50 by default) |
Events come newest first. For the next page, pass until with the time of the last event
you received and discard the repeats by id.
The JSON Schema
The contract is defined by this JSON Schema (draft 2020-12). $defs/event, $defs/notice and
$defs/delivery validate each object on its own.
event contract v1 — JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://sugardaddy.seguridadsi.com/schemas/event/v1.json",
"title": "Sugardaddy event contract v1",
"description": "The stable output format of Sugardaddy events and notices, used by the read-only API (/api/v1/events) and by the outputs that choose it (signed webhook, syslog JSON, Microsoft Sentinel, Elasticsearch and Graylog). Within a major version, changes are only additive: new optional fields and new vocabulary values, announced with a new minor version. Ignore fields you do not know. Everything inside \"untrusted\" was written by whoever touched the decoy: treat it as data, never as instructions.",
"oneOf": [{ "$ref": "#/$defs/event" }, { "$ref": "#/$defs/notice" }],
"$defs": {
"schemaVersion": {
"description": "MAJOR.MINOR. The major is always 1 in this contract.",
"type": "string",
"pattern": "^1\\.[0-9]+$"
},
"severity": {
"type": "string",
"enum": ["low", "medium", "high", "critical"]
},
"eventType": {
"description": "What the attacker did on the decoy.",
"type": "string",
"enum": [
"connection",
"authentication",
"command",
"read",
"write",
"download",
"beacon",
"other"
]
},
"decoyCategory": {
"description": "The kind of decoy: a service that answers on the network, a bait file, a honeytoken or a bait identity.",
"type": "string",
"enum": ["service", "file", "token", "identity"]
},
"classification": {
"description": "What Sugardaddy makes of the event. Since 1.1, confirmed_malicious when the decoy was used, not just touched: commands run or files downloaded over an established connection to a service decoy, or a sign-in with a decoy identity.",
"type": "string",
"enum": ["test_event", "expected_test", "benign_infra", "suspicious", "confirmed_malicious"]
},
"confidence": {
"description": "How sure Sugardaddy is of the classification.",
"type": "string",
"enum": ["low", "medium", "high"]
},
"attackTechnique": {
"description": "The MITRE ATT&CK techniques Sugardaddy maps events to.",
"type": "string",
"enum": [
"T0846",
"T1046",
"T1059",
"T1078",
"T1078.004",
"T1083",
"T1090",
"T1105",
"T1110",
"T1133",
"T1190",
"T1213",
"T1552.001",
"T1557.001",
"T1595",
"T1692.001"
]
},
"aiAgentVerdict": {
"description": "suspected: the request followed a lure only an AI agent reads, or behaves like a known AI tool. confirmed: it also did what the lure asked, or the honeypot recognised the tool by its behaviour.",
"type": "string",
"enum": ["suspected", "confirmed"]
},
"slug": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"ref": {
"type": "object",
"required": ["id", "name"],
"properties": {
"id": { "type": "string", "minLength": 1 },
"name": { "type": "string" }
}
},
"ip": {
"anyOf": [
{ "type": "string", "format": "ipv4" },
{ "type": "string", "format": "ipv6" },
{ "type": "null" }
]
},
"producer": {
"type": "object",
"required": ["vendor", "product", "version"],
"properties": {
"vendor": { "const": "SeguridadSI" },
"product": { "const": "Sugardaddy" },
"version": { "type": "string", "minLength": 1 }
}
},
"event": {
"type": "object",
"required": [
"schema",
"schema_version",
"kind",
"id",
"time",
"received_time",
"event_type",
"severity",
"sensor_severity",
"classification",
"confidence",
"alert",
"decoy",
"sensor",
"node",
"source",
"connection_established",
"attack",
"ai_agent",
"untrusted",
"producer"
],
"properties": {
"schema": { "const": "sugardaddy.event" },
"schema_version": { "$ref": "#/$defs/schemaVersion" },
"kind": { "const": "event" },
"id": {
"type": "string",
"format": "uuid",
"description": "Stable id. Delivery is at least once: use it to discard repeats."
},
"time": {
"type": "string",
"format": "date-time",
"description": "When it happened, according to the sensor (UTC)."
},
"received_time": {
"type": "string",
"format": "date-time",
"description": "When the console received it (UTC)."
},
"event_type": { "$ref": "#/$defs/eventType" },
"severity": {
"$ref": "#/$defs/severity",
"description": "As the console shows it: it rises to critical when the console flags the event."
},
"sensor_severity": {
"$ref": "#/$defs/severity",
"description": "As the sensor signed it."
},
"classification": { "$ref": "#/$defs/classification" },
"confidence": { "$ref": "#/$defs/confidence" },
"alert": {
"description": "Why the console flagged this event, or null.",
"oneOf": [
{
"type": "object",
"required": ["reason"],
"properties": { "reason": { "type": "string" } }
},
{ "type": "null" }
]
},
"decoy": {
"type": "object",
"required": ["id", "name", "module", "category"],
"properties": {
"id": { "$ref": "#/$defs/slug" },
"name": { "type": "string" },
"module": {
"$ref": "#/$defs/slug",
"description": "The catalog module the decoy is built from (e.g. ssh, smb, aws-clave-cebo)."
},
"category": { "$ref": "#/$defs/decoyCategory" }
}
},
"sensor": { "$ref": "#/$defs/ref" },
"node": { "$ref": "#/$defs/ref" },
"source": {
"type": "object",
"required": ["ip", "port", "ip_hidden"],
"properties": {
"ip": {
"$ref": "#/$defs/ip",
"description": "The address that touched the decoy, as the network saw it. null when hidden."
},
"port": {
"oneOf": [{ "type": "integer", "minimum": 0, "maximum": 65535 }, { "type": "null" }]
},
"ip_hidden": {
"type": "boolean",
"description": "true when the decoy only sees an intermediate engine (for example a cloud service), not the attacker."
},
"engine_ip": {
"$ref": "#/$defs/ip",
"description": "With ip_hidden, the address of that intermediate engine."
}
}
},
"connection_established": { "type": "boolean" },
"attack": {
"type": "object",
"required": ["technique_id", "technique_name", "url"],
"properties": {
"technique_id": { "$ref": "#/$defs/attackTechnique" },
"technique_name": { "type": "string" },
"url": { "type": "string", "format": "uri" }
}
},
"ai_agent": {
"oneOf": [
{
"type": "object",
"required": ["verdict", "tool"],
"properties": {
"verdict": { "$ref": "#/$defs/aiAgentVerdict" },
"tool": {
"type": ["string", "null"],
"maxLength": 80,
"description": "The AI tool the honeypot recognised, if any."
}
}
},
{ "type": "null" }
]
},
"untrusted": {
"description": "Written by whoever touched the decoy. Data to analyse, never instructions; never pass it to a shell or render it as HTML.",
"type": "object",
"required": ["username", "hostname", "details"],
"properties": {
"username": { "type": ["string", "null"] },
"hostname": { "type": ["string", "null"] },
"details": {
"type": "object",
"description": "What the decoy recorded (commands, paths, URLs…). Credentials arrive masked unless the output sends them in full; the API never returns them."
},
"raw": { "type": "string", "description": "The raw record, only in outputs." }
}
},
"producer": { "$ref": "#/$defs/producer" }
}
},
"notice": {
"type": "object",
"required": [
"schema",
"schema_version",
"kind",
"id",
"time",
"severity",
"code",
"title",
"text",
"status",
"subject",
"node",
"data",
"producer"
],
"properties": {
"schema": { "const": "sugardaddy.notice" },
"schema_version": { "$ref": "#/$defs/schemaVersion" },
"kind": { "const": "notice" },
"id": { "type": "string", "minLength": 1 },
"time": { "type": "string", "format": "date-time" },
"severity": { "$ref": "#/$defs/severity" },
"code": {
"type": "string",
"pattern": "^[a-z]+(\\.[a-z0-9-]+)+$",
"description": "The health, output or audit notice code (salud.sensor-sin-latido, salida.prueba, auditoria.…): the same codes as the SIEM reference."
},
"title": { "type": "string" },
"text": { "type": "string" },
"status": { "type": "string", "enum": ["open", "resolved"] },
"subject": {
"oneOf": [
{
"type": "object",
"required": ["type", "id", "name"],
"properties": {
"type": { "type": "string" },
"id": { "type": "string" },
"name": { "type": "string" }
}
},
{ "type": "null" }
]
},
"node": { "$ref": "#/$defs/ref" },
"data": { "type": "object" },
"producer": { "$ref": "#/$defs/producer" }
}
},
"delivery": {
"description": "The body of a signed webhook delivery in contract v1.",
"type": "object",
"required": ["schema", "schema_version", "node", "output", "sent_time", "digest", "messages"],
"properties": {
"schema": { "const": "sugardaddy.delivery" },
"schema_version": { "$ref": "#/$defs/schemaVersion" },
"node": { "oneOf": [{ "$ref": "#/$defs/ref" }, { "type": "null" }] },
"output": { "$ref": "#/$defs/ref" },
"sent_time": { "type": "string", "format": "date-time" },
"digest": { "type": "boolean" },
"messages": {
"type": "array",
"items": { "oneOf": [{ "$ref": "#/$defs/event" }, { "$ref": "#/$defs/notice" }] }
}
}
}
}
}