HarfangLab EDR
| Version | 0.1.0
|
| Subscription level What's this? |
Basic |
| Developed by What's this? |
Partner |
| Ingestion method(s) | API, Webhook |
| Minimum Kibana version(s) | 9.1.0 8.19.0 |
To use pre-release integrations, go to the Integrations page in Kibana, scroll down, and toggle on the Display beta integrations option.
This integration collects security telemetry from the HarfangLab EDR agent and ingests it into Elasticsearch.
The HarfangLab agent emits events already formatted against the Elastic Common Schema (ECS) version 9.0.0. The integration supports two collection modes, and a lightweight ingest pipeline restores and cleans up each event before indexing regardless of the mode:
- Push mode — the integration exposes an HTTP endpoint that the HarfangLab solution posts events to.
- Pull mode — the integration periodically polls the HarfangLab API and retrieves queued events.
Enable whichever input matches how your HarfangLab solution is configured. Both write to
the same harfanglab.generic data stream and produce identical documents.
- An Elastic Agent. The stack versions this package supports are declared in its manifest and
enforced by Fleet, which will not offer the integration on an unsupported stack.
- For push mode, the HarfangLab solution must be able to reach the Elastic Agent's HTTP endpoint over the network.
- For pull mode, the Elastic Agent must be able to reach the HarfangLab API over the network.
The integration configures the Elastic Agent http_endpoint input. The HarfangLab
solution sends events as JSON in the body of an HTTP request. Enable Preserve original
event to keep the raw request body on event.original.
The integration configures the Elastic Agent cel input to poll
<base URL>/api/data/connectors/elastic/pull/ on a fixed interval. Each request returns
the oldest queued chunk and removes it server-side; an empty response means the queue is
drained. A single poll keeps requesting until the queue is empty, so a backlog clears
within one interval. Enable Preserve original event to keep the raw JSON of each event
on event.original.
Requests authenticate with a HarfangLab API token sent as Authorization: Token <value>.
The token must belong to a user granted the elastic pull permission.
When adding the integration to an Agent policy, enable the input for your chosen mode.
| Setting | Type | Default | Description |
|---|---|---|---|
| Listen address | text | localhost |
Bind address the HTTP endpoint listens on. Defaults to loopback, so the endpoint is not reachable from the network until it is deliberately exposed. When HarfangLab agents push from other hosts, bind to a reachable address and authenticate the senders with the secret header, TLS client authentication, or both. |
| Listen port | integer | 8080 |
Port the HTTP endpoint listens on. |
| Secret header name | text | Authorization |
Name of the HTTP request header used to authenticate incoming requests. |
| Secret header value | password | (none) | Expected value of the secret header. When set, requests without a matching header value are rejected. Leave empty to disable header authentication. |
| TLS configuration | yaml | (none) | Optional TLS settings. When a server certificate and key are provided, the endpoint serves HTTPS instead of HTTP. Supports client-certificate authentication (mTLS). |
| Preserve original event | bool | false |
Keep a raw copy of the received event in event.original. |
| Setting | Type | Default | Description |
|---|---|---|---|
| HarfangLab base URL | text | (none) | Base URL of the HarfangLab instance (for example https://edr.example.com). A trailing slash is stripped automatically. The fixed pull endpoint path is appended. |
| API token | password | (none) | API token of a HarfangLab user granted the elastic pull permission. Provide the token value on its own, without the Token prefix. |
| Polling interval | text | 1m |
How often to poll for new events. Supports duration units such as 30s, 1m, 5m. |
| TLS configuration | yaml | (none) | Optional TLS settings for the connection to the HarfangLab API. Use it to trust a private CA or to relax verification in test environments. Leave empty for full verification against the system trust store. |
| Preserve original event | bool | false |
Keep a raw copy of the polled event in event.original. |
By default the endpoint serves plain HTTP. To serve HTTPS, fill in the TLS configuration setting with at least a server certificate and key:
certificate: "/etc/elastic-agent/certs/server.crt"
key: "/etc/elastic-agent/certs/server.key"
To additionally require clients to present a certificate (mutual TLS), add
certificate_authorities and set client_authentication to required. Leaving the setting
empty (or fully commented out) keeps the endpoint on plain HTTP.
Events are split into two data streams at ingest:
harfanglab.detection— detection alerts (events withevent.kind: alert), indexed aslogs-harfanglab.detection-<namespace>.harfanglab.generic— all other telemetry, indexed aslogs-harfanglab.generic-<namespace>.
Both inputs (push and pull) ingest into harfanglab.generic. The routing rule declared in
data_stream/generic/routing_rules.yml reroutes detection alerts into harfanglab.detection.
Example
{
"@timestamp": "2026-05-17T19:12:14.985586Z",
"agent": {
"id": "801945e1-4037-4327-b285-f1ede5fdbaa8",
"name": "DESKTOP-EXAMPLE1",
"type": "winlogbeat",
"version": "9.11.0+363b134d36d5"
},
"data_stream": {
"dataset": "harfanglab.generic",
"namespace": "28225",
"type": "logs"
},
"ecs": {
"version": "9.0.0"
},
"elastic_agent": {
"id": "29f3d62d-0b67-49b3-84a3-27efd9920fcf",
"snapshot": false,
"version": "8.19.0"
},
"event": {
"agent_id_status": "mismatch",
"category": [
"process"
],
"ingested": "2026-11-24T08:21:17Z",
"kind": "event",
"module": "sysmon",
"type": [
"start"
]
},
"host": {
"domain": "WORKGROUP",
"hostname": "DESKTOP-EXAMPLE1",
"id": "801945e1-4037-4327-b285-f1ede5fdbaa8",
"ip": [
"192.0.2.10"
],
"name": "DESKTOP-EXAMPLE1",
"os": {
"full": "Windows 11 Enterprise",
"type": "windows",
"version": "10.0.26100"
}
},
"input": {
"type": "http_endpoint"
},
"labels": {
"agent_type": "hurukai"
},
"organization": {
"id": "example"
},
"process": {
"code_signature": {
"subject_name": "Microsoft Windows",
"valid": true
},
"command_line": "C:\\WINDOWS\\system32\\sppsvc.exe",
"entity_id": "0a24e600-4037-4327-ec20-006e7a2d15e7",
"executable": "C:\\Windows\\System32\\sppsvc.exe",
"hash": {
"md5": "1f0dee3de1cdfb47773a618016999bb5",
"sha1": "e26093f1c32bb4e74126f85f7c4130bf8a2b1cfc",
"sha256": "91323f2c80e9e49d2a63fe5c9e4cad0635174e485cc6e54529027dafdf7466f5"
},
"name": "sppsvc.exe",
"pid": 8428,
"user": {
"id": "S-1-5-20",
"name": "NT AUTHORITY\\NETWORK SERVICE"
}
},
"tags": [
"forwarded",
"harfanglab-generic"
],
"user": {
"name": "NT AUTHORITY\\NETWORK SERVICE"
}
}
Exported fields
| Field | Description | Type |
|---|---|---|
| @timestamp | Event timestamp. | date |
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_keyword |
| harfanglab.detection.confidence | Confidence level the HarfangLab EDR assigns to a detection (for example "strong", "moderate", "weak"). | keyword |
| harfanglab.detection.engine.name | Name of the HarfangLab detection engine that produced the alert (for example "ioc", "yara", "sigma"). | keyword |
| harfanglab.detection.level | Severity level the HarfangLab EDR assigns to the detection (for example "low", "medium", "high", "critical"). | keyword |
| harfanglab.detection.title | Human-readable title (name) of the HarfangLab detection. | keyword |
| harfanglab.process.parent.parent.command_line | Full command line that started the grandparent process. | keyword |
| harfanglab.process.parent.parent.entity_id | Unique identifier for the grandparent process. | keyword |
| harfanglab.process.parent.parent.executable | Absolute path to the grandparent process executable. | keyword |
| input.type | Type of filebeat input. | keyword |
Example
{
"@timestamp": "2026-05-17T19:12:22.431077Z",
"agent": {
"id": "801945e1-4037-4327-b285-f1ede5fdbaa8",
"name": "DESKTOP-EXAMPLE1",
"type": "winlogbeat",
"version": "9.11.0+363b134d36d5"
},
"data_stream": {
"dataset": "harfanglab.detection",
"namespace": "42178",
"type": "logs"
},
"ecs": {
"version": "9.0.0"
},
"elastic_agent": {
"id": "0c997881-66bb-4c0f-8f95-cbd6f1447354",
"snapshot": false,
"version": "8.19.0"
},
"event": {
"agent_id_status": "mismatch",
"category": [
"malware"
],
"ingested": "2026-11-24T08:23:15Z",
"kind": "alert",
"module": "sysmon",
"type": [
"info"
]
},
"harfanglab": {
"detection": {
"confidence": "strong",
"engine": {
"name": "sigma"
},
"level": "high",
"title": "Suspicious service host behaviour"
}
},
"host": {
"domain": "WORKGROUP",
"hostname": "DESKTOP-EXAMPLE1",
"id": "801945e1-4037-4327-b285-f1ede5fdbaa8",
"ip": [
"192.0.2.10"
],
"name": "DESKTOP-EXAMPLE1",
"os": {
"full": "Windows 11 Enterprise",
"type": "windows",
"version": "10.0.26100"
}
},
"input": {
"type": "cel"
},
"labels": {
"agent_type": "hurukai"
},
"organization": {
"id": "example"
},
"process": {
"command_line": "C:\\WINDOWS\\system32\\notepad.exe",
"entity_id": "0a24e600-4037-4327-ec20-006e7a2d15e8",
"executable": "C:\\Windows\\System32\\notepad.exe",
"name": "notepad.exe",
"pid": 9112,
"user": {
"id": "S-1-5-21-1111111111-2222222222-3333333333-1001",
"name": "DESKTOP-EXAMPLE1\\analyst"
}
},
"tags": [
"forwarded",
"harfanglab-generic"
],
"user": {
"name": "DESKTOP-EXAMPLE1\\analyst"
}
}
Exported fields
| Field | Description | Type |
|---|---|---|
| @timestamp | Event timestamp. | date |
| data_stream.dataset | Data stream dataset. | constant_keyword |
| data_stream.namespace | Data stream namespace. | constant_keyword |
| data_stream.type | Data stream type. | constant_keyword |
| harfanglab.detection.confidence | Confidence level the HarfangLab EDR assigns to a detection (for example "strong", "moderate", "weak"). | keyword |
| harfanglab.detection.engine.name | Name of the HarfangLab detection engine that produced the alert (for example "ioc", "yara", "sigma"). | keyword |
| harfanglab.detection.level | Severity level the HarfangLab EDR assigns to the detection (for example "low", "medium", "high", "critical"). | keyword |
| harfanglab.detection.title | Human-readable title (name) of the HarfangLab detection. | keyword |
| harfanglab.process.parent.parent.command_line | Full command line that started the grandparent process. | keyword |
| harfanglab.process.parent.parent.entity_id | Unique identifier for the grandparent process. | keyword |
| harfanglab.process.parent.parent.executable | Absolute path to the grandparent process executable. | keyword |
| input.type | Type of filebeat input. | keyword |
The ingest pipeline:
- Parses the JSON request body and merges it to the document root.
- Derives the canonical ECS fields
host.name(fromhost.hostname) anduser.name(fromprocess.user.name) when the event does not already set them. Elastic Security relies onhost.nameanduser.namefor its host/user pivots, detail pages and alert columns. - Relabels events that carry a
process.entity_idas Sysmon-via-Winlogbeat, and defaults theirevent.kindtoeventwhen the agent did not set one, so Elastic Security can draw a process tree from them. See Process tree below. - Maps
event.type: creationon process events to the ECS valuestart. The agent reports process creation ascreation, which ECS does not allow for the process category. - Moves the fields the agent emits that ECS does not define into the
harfanglab.*vendor namespace:harfanglab.detection.*andharfanglab.process.parent.parent.*. - Removes intermediate fields created while parsing.
- Drops empty
{}payloads, which the agent sends to test connectivity.
Two things happen outside this pipeline. event.original is collected on every event and removed
again by Fleet's final pipeline, unless Preserve original event is enabled, which sets the
preserve_original_event tag. Detection alerts are moved to the harfanglab.detection data
stream by the routing rule in data_stream/generic/routing_rules.yml, which matches on
event.kind: alert.
The integration ships a detection rule, HarfangLab EDR: strong-confidence detection, which
raises a high-severity alert whenever the HarfangLab EDR reports a detection with
harfanglab.detection.confidence: "strong". It is a simple custom query rule
(harfanglab.detection.confidence : "strong") over logs-harfanglab.*, running every 5 minutes.
(Detections are rerouted to logs-harfanglab.detection-*; the rule's index pattern covers both
data streams.)
The rule installs automatically with the integration (it requires the security capability,
i.e. an Elastic deployment with Security enabled). After installing the integration:
- Go to Security → Rules → Detection rules (SIEM).
- Find HarfangLab EDR: strong-confidence detection — it installs disabled, so toggle it on to start generating alerts.
- Optionally add an action (email, Slack, etc.) to be notified outside the Alerts table, and tune the severity, schedule, or query to fit your environment.
The harfanglab.detection.confidence field is mapped as a keyword by this integration so the query
matches exact values.
Elastic Security can draw a process tree (the Analyze event button → Visual Event Analyzer)
from process events. Kibana only offers that button for an allowlist of sources, which does not
include custom integrations, so this integration relabels process-bearing events as
Sysmon-via-Winlogbeat (agent.type: winlogbeat, event.module: sysmon). With that in place,
Analyze event appears on process events and HarfangLab detection alerts that carry a
process.entity_id, and the tree is built from your process telemetry.
Notes and trade-offs:
- Only events that carry
process.entity_idare relabeled; the original value is preserved inlabels.agent_type(e.g.hurukai). - Those events also get
event.kind: eventwhen the agent did not set a kind, because the process tree only queries documents that have one. Detections keepevent.kind: alert, so they still reach theharfanglab.detectiondata stream but are not drawn as tree nodes. - The Sysmon schema resolves ancestors by walking
process.parent.entity_idacross documents, so the tree goes back as far as the matching process events exist in the index. - This source is treated as ingested logs (not a managed agent), so it does not appear as an endpoint with an agent status — there is no misleading "offline" badge.
- HarfangLab EDR - Detections — an overview of detection alerts (
logs-harfanglab.detection-*): total count and trend over time, with breakdowns by severity (harfanglab.detection.level), confidence (harfanglab.detection.confidence), engine (harfanglab.detection.engine.name), rule (harfanglab.detection.title), host (host.name) and user (user.name), plus a table listing the individual detections. - HarfangLab EDR - Process activity — process telemetry from
logs-harfanglab.generic-*(event.category: process): volume over time byevent.type, top hosts, users, executables and parent executables, an OS breakdown, and a process details table. - HarfangLab EDR - Telemetry overview — all generic telemetry from
logs-harfanglab.generic-*: volume over time byevent.category, breakdowns by category/type/OS, top hosts and users, and an events table.
Find them under Analytics → Dashboards after installing the integration.
Changelog
| Version | Details | Minimum Kibana version |
|---|---|---|
| 0.1.0 | Enhancement (View pull request) Initial release of the HarfangLab EDR integration. |
9.1.0 8.19.0 |