Skip to main content
Version: 11.5.0

Session Watch: Events

Session Watch emits an event each time it sends a digest, reads a reply, records a finding, or has one dismissed. Send these events to your security information and event management (SIEM) system, and monitor Session Watch there, with the alerts and dashboards your security team already uses.

The Session Watch page shows the same findings. The events carry them to the tools your team already watches, and tell you when an evaluator stops working.

Send the Events to Your SIEM​

The log stream writes one line per event in the gateway's logs, for the system that collects them to forward. You need Data retention: Manage, which only Admin holds.

  1. Open Settings › Data management.
  2. On the Log stream card, turn on the switch.
  3. Expand the Enforcement category, and check that its Log stream box is selected. Findings are Enforcement events.
  4. Expand the Session evaluation category, and check that its Log stream box is selected. Digests and replies are Session evaluation events.
  5. Click Save changes. The header reads No unsaved changes.
  6. In the system that collects your gateway's container logs, forward the event lines to your SIEM. The gateway writes them under the log category hypr.events, apart from its other log lines.

Each line is one complete event in JSON, in the same format as the export files. To collect files from each gateway node instead, see Export Files. For the log stream itself, see Log Stream.

The Events​

Session Watch emits these four events. In an exported line, event_type holds the event's name in lowercase, such as risk_finding.

EventCategoryEmitted whenEvent severity
RISK_FINDINGEnforcementAgentPass records a finding from an evaluator's reply. One event per findingFollows the finding's severity. See Severity
RISK_FINDING_DISMISSEDEnforcementSomeone dismisses a findingINFO
DIGEST_SENTSession evaluationAgentPass sends a digest to an evaluatorINFO
DIGEST_REPLIEDSession evaluationAgentPass reads an evaluator's reply to a digestINFO

Every event also carries the values in What an Exported Event Carries. Its own attributes are under payload. The following sections list them, with how each leaves the gateway by default. See Choosing What Leaves the Gateway.

RISK_FINDING​

AgentPass writes one RISK_FINDING event for each finding it records. Dismissing the finding later does not change or remove the event. The event's sub_id is the watched session's identifier, the same value as agent_session_id on the digest events and in the Request Log.

AttributeWhat it holdsLeaves the gateway as
severityHow severe the evaluator judged the finding: INFO, WARN, ERROR or FATALClear text
actionThe finding's category, such as CREDENTIAL_ACCESS. See CategoriesClear text
reasonThe evaluator's rationale for the findingNot sent
decision_idThe watch that reported the findingClear text
agent_fingerprintEmpty on a Session Watch findingClear text

Severity​

A finding's severity maps to the event scale as follows. The result is both the severity attribute and the event's own severity.

Finding severityEvent severity
CriticalFATAL
HighERROR
MediumWARN
LowINFO
InfoINFO

Categories​

action holds the name of the category the console shows. For what each category reports, see Severities and Categories.

Category in the consoleaction
Credential access requestedCREDENTIAL_ACCESS
Sensitive file access requestedSENSITIVE_FILE
Destructive command requestedDESTRUCTIVE_COMMAND
Network fetch requestedNETWORK_EGRESS
Activity outside the stated taskSCOPE_DEVIATION
Repeated failuresREPEATED_FAILURE
Restricted target requestedRESTRICTED_TARGET
Security control tampering requestedCONTROL_TAMPERING
Session summarySUMMARY
OtherOTHER

RISK_FINDING_DISMISSED​

AgentPass writes a RISK_FINDING_DISMISSED event when someone dismisses a finding on the Session Watch page or on a session.

AttributeWhat it holdsLeaves the gateway as
decision_idThe finding that was dismissed. This identifies the finding itself, not the watch that decision_id names on RISK_FINDINGClear text
actorWho dismissed itHashed

DIGEST_SENT​

AgentPass writes a DIGEST_SENT event for each digest it sends an evaluator.

AttributeWhat it holdsLeaves the gateway as
watch_idThe watch that sent the digestClear text
batch_seqThe digest's sequence number within its watchClear text
agent_session_idThe watched sessionClear text
evaluator_kindThe kind of evaluator agentClear text
evaluator_idThe evaluator agentClear text
evaluator_session_idThe evaluator's own session that received the digest. It matches the session ID in the evaluator's runtime logsClear text
event_countHow many activity events the digest carriedClear text
first_event_atThe oldest activity in the digestClear text
last_event_atThe newest activity in the digestClear text
cappedtrue when the digest reached its size limit, and later activity went to the next digestClear text

DIGEST_REPLIED​

AgentPass writes a DIGEST_REPLIED event for each evaluator reply it reads. Its watch_id and batch_seq match the DIGEST_SENT event of the digest it answers.

AttributeWhat it holdsLeaves the gateway as
watch_idThe watch whose evaluator repliedClear text
batch_seqThe digest the reply answersClear text
agent_session_idThe watched sessionClear text
evaluator_session_idThe evaluator's own session the reply was read fromClear text
reply_seqThe reply's position among this digest's replies, from 1Clear text
reply_stateWhat the reply produced: OBSERVATIONS, NOTHING_REPORTED or UNPARSEABLEClear text
observation_countHow many findings AgentPass recorded from the replyClear text
reply_charsThe reply's length, in charactersClear text
reply_textThe evaluator's reply as writtenNot sent

UNPARSEABLE means AgentPass could record nothing from the reply: it held no findings list, or every finding in it was dropped. See If No Findings Arrive.

Choosing What Leaves the Gateway​

reason and reply_text are Not sent by default, because both can quote the session's activity: the commands, file paths and content the agent requested. Without them, your SIEM still receives each finding's severity, category, watch and session.

To send either one, you need Data retention: Manage:

  1. Open Settings › Data management.
  2. Expand the event's category, and click the event, such as RISK_FINDING.
  3. In the attribute's row, under Leaves the gateway as, choose Clear text.
  4. Click Save changes.

The change applies to events written from then on. See Leaves the Gateway As.

Session content in your SIEM

A rationale or a reply in clear text can carry file contents, commands or credentials an agent asked for. Send them only to a SIEM approved to hold that content.

What to Alert On​

Start with these alerts. Each one matches on values that are sent by default.

AlertMatchWhy
A serious findingrisk_finding with severity ERROR or FATALAn evaluator reported a High or Critical finding. Route it to whoever responds to incidents
A restricted targetrisk_finding with action RESTRICTED_TARGETThe agent asked to reach a host, file or system your organization restricts, whatever severity the evaluator gave it
Credentials or controlsrisk_finding with action CREDENTIAL_ACCESS or CONTROL_TAMPERINGThe agent asked to use credentials, or to get around a security control
A broken evaluator promptdigest_replied with reply_state UNPARSEABLEThe evaluator answered outside the reply format, so nothing it reported was recorded. See Adding the Evaluator Prompt
An evaluator that stopped replyingdigest_sent events for a watch_id keep arriving, and digest_replied events for it stopDigests are going out, and nothing is coming back. Check the watch's status. See Watch Statuses

Some views suit a dashboard better than an alert:

  • Findings over time, by severity and action.
  • Findings by session, using sub_id, to see which sessions draw the most attention.
  • Dismissals against findings, using risk_finding_dismissed, to see whether findings are being triaged.
  • Capped digests, where capped is true, to see sessions busier than the digest size limit. See Limits.