Skip to content
Detection & ResponseMarkdown

Detection & Response API

Every endpoint Detection & Response serves on your realm's host, by area, with the page that explains each.

AvailableAPI

Every call here is made on your realm’s own host with a realm administrator’s session, sent as the x-cvyuh-token cookie; Call the API shows how to get one. The session’s user needs RealmOwner or RealmViewer on the realm, or on a realm above it; a session that doesn’t administer the realm is answered 403. Each call sees only your realm’s devices and events.

Terminal window
curl https://foobar.cvyuh.com/api/v0/endpoint/dar/v1/overview \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"
  • Sensor ids. A device’s sensor is named by its sensor id, which the API calls an agent: agent=<sensor id> in a query, "agents": ["<sensor id>"] in a body, {agent} in a path. Find it in the sensors list (POST .../agents, its id), or on the device’s record in Endpoint Management as dar.agentId (see Device records).
  • Ranges. A range is from and to in the query, RFC 3339; left out, it’s the last day.
  • Pages. Every POST that answers a page takes paging, a sort, free text and a filter as its JSON body ({"page": 1, "pageSize": 20} at its simplest; up to 100 a page), and answers data, totalPages and totalCount. The body’s grammar, with an example, is in Security events; each table’s GET .../fields lists the fields it filters on.
  • Errors answer {"code", "message"}: 400 for a request the realm refuses, with the reason; 403 for a session that doesn’t administer the realm; 404 for a sensor that isn’t your realm’s; 412 for a stale revision; 413 for a configuration over 512 KB; 502 when the security log can’t answer, which is worth retrying.
MethodEndpointWhat it doesPage
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/fim/summaryChanges to monitored files over a range: by kind, and the paths and devices that change mostFile integrity
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/fim/files?agent={agent}A page of one device’s monitored filesFile integrity
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/fim/files/scan?agent={agent}When one device’s last file scan ranFile integrity
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/sca/policies?agent={agent}One device’s hardening policies, with counts and scoreConfiguration assessment
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/sca/checks?agent={agent}&policy={policy}A page of one policy’s checksConfiguration assessment
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/mitre/matrixThe realm’s alerts over the ATT&CK matrix; agent for one deviceThreat mapping
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/mitre/techniques/{technique}One ATT&CK technique, such as T1110Threat mapping
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/inventory/summaryThe realm’s inventory totals; agent for one deviceSystem inventory
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/inventory/{kind}A page of one kind of inventory, such as packages or portsSystem inventory
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/inventory/{kind}/fieldsThe fields one kind filters onSystem inventory
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/vulnerabilitiesA page of known vulnerabilities; empty until vulnerability detection arrivesWhat’s next for detection
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/vulnerabilities/summaryVulnerabilities by severity, and the devices, packages and CVEs most affected; empty for nowWhat’s next for detection
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/vulnerabilities/fieldsThe fields vulnerabilities filter onWhat’s next for detection
MethodEndpointWhat it doesPage
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/overviewThe realm’s devices by status, and its alerts over the range by levelSecurity events
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/eventsA page of alerts; preset (fim, sca, vulnerabilities, mitre) for one slice, agent for one deviceSecurity events
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/events/summaryThe range’s alerts by level over time, rule group and ruleSecurity events
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/events/fieldsThe fields alerts filter on; preset for one slice’sSecurity events

An alert carries:

FieldWhat it holds
id, timeThe alert’s id, and when it was raised (RFC 3339)
agentThe device’s sensor: id, name, ip
rule.id, rule.descriptionThe rule that raised it, and what it describes
rule.level0 to 15; see Alert levels
rule.groupsThe rule’s groups, such as authentication_failed, syscheck or sca
rule.firedTimesA running count of how often the rule has fired lately, a rough sign of repetition; for exact counts over a range use POST .../events/summary
rule.mitreATT&CK technique ids, techniques and tactics
rule.complianceControls by framework: pciDss, gdpr, hipaa, nist80053, tsc (SOC 2)
fileFor a file change: path, change, changedAttributes, sizes, owner, group, permissions, checksums, and diff where reported
locationWhere on the device the event came from, such as a log file’s path
decoderThe kind of log the line was read as, such as sshd or json
logThe original log line
dataThe fields read from the event, such as srcip, srcuser and dstuser

Fields that don’t apply to an alert are left out.

MethodEndpointWhat it doesPage
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/respondSend an active response, blockIp, denyHost or disableAccount, for a timeoutActive response

It takes {"agents", "response", "argument", "timeout"}, timeout one of 60, 900, 3600 (the default), 14400, 43200 or 86400 seconds, and answers {"done", "failed"}. Responses run on Linux devices. Cutting a device off is Device revocation, in the Endpoint Management API.

MethodEndpointWhat it doesPage
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agentsA page of the realm’s sensorsSensor actions
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/summaryThe realm’s sensors by status and operating systemSensor actions
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/{agent}One sensor: its host and its last configuration assessmentDevice view
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/{agent}/configuration/{section}One sensor’s running configuration: files, logs or modulesDevice view
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/{agent}/statsOne sensor’s own countersDevice view
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/restartRestart sensorsSensor actions
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/upgradeQueue sensors’ upgrades; not working yet: the device refuses themSensor actions
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/upgrade/progressWhere each sensor’s upgrade stands: queued, upgrading, done, failed or noneSensor actions
POSThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/agents/removeRemove sensors’ registrations; each device must enroll againSensor actions
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/groupThe realm’s group and its filesGroup configuration
GEThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/group/configurationThe shared configuration: xml and its revisionConfiguration reference
PUThttps://foobar.cvyuh.com/api/v0/endpoint/dar/v1/group/configurationWrite the shared configuration back whole, with the revision you readGroup configuration

The actions take {"agents": [...]}, 1 to 100 of them, and answer {"done", "failed"}.