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.
- Open Settings › Data management.
- On the Log stream card, turn on the switch.
- Expand the Enforcement category, and check that its Log stream box is selected. Findings are Enforcement events.
- Expand the Session evaluation category, and check that its Log stream box is selected. Digests and replies are Session evaluation events.
- Click Save changes. The header reads No unsaved changes.
- 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.
| Event | Category | Emitted when | Event severity |
|---|---|---|---|
RISK_FINDING | Enforcement | AgentPass records a finding from an evaluator's reply. One event per finding | Follows the finding's severity. See Severity |
RISK_FINDING_DISMISSED | Enforcement | Someone dismisses a finding | INFO |
DIGEST_SENT | Session evaluation | AgentPass sends a digest to an evaluator | INFO |
DIGEST_REPLIED | Session evaluation | AgentPass reads an evaluator's reply to a digest | INFO |
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.
| Attribute | What it holds | Leaves the gateway as |
|---|---|---|
severity | How severe the evaluator judged the finding: INFO, WARN, ERROR or FATAL | Clear text |
action | The finding's category, such as CREDENTIAL_ACCESS. See Categories | Clear text |
reason | The evaluator's rationale for the finding | Not sent |
decision_id | The watch that reported the finding | Clear text |
agent_fingerprint | Empty on a Session Watch finding | Clear 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 severity | Event severity |
|---|---|
| Critical | FATAL |
| High | ERROR |
| Medium | WARN |
| Low | INFO |
| Info | INFO |
Categories
action holds the name of the category the console shows. For what each category reports, see Severities and Categories.
| Category in the console | action |
|---|---|
| Credential access requested | CREDENTIAL_ACCESS |
| Sensitive file access requested | SENSITIVE_FILE |
| Destructive command requested | DESTRUCTIVE_COMMAND |
| Network fetch requested | NETWORK_EGRESS |
| Activity outside the stated task | SCOPE_DEVIATION |
| Repeated failures | REPEATED_FAILURE |
| Restricted target requested | RESTRICTED_TARGET |
| Security control tampering requested | CONTROL_TAMPERING |
| Session summary | SUMMARY |
| Other | OTHER |
RISK_FINDING_DISMISSED
AgentPass writes a RISK_FINDING_DISMISSED event when someone dismisses a finding on the Session Watch page or on a session.
| Attribute | What it holds | Leaves the gateway as |
|---|---|---|
decision_id | The finding that was dismissed. This identifies the finding itself, not the watch that decision_id names on RISK_FINDING | Clear text |
actor | Who dismissed it | Hashed |
DIGEST_SENT
AgentPass writes a DIGEST_SENT event for each digest it sends an evaluator.
| Attribute | What it holds | Leaves the gateway as |
|---|---|---|
watch_id | The watch that sent the digest | Clear text |
batch_seq | The digest's sequence number within its watch | Clear text |
agent_session_id | The watched session | Clear text |
evaluator_kind | The kind of evaluator agent | Clear text |
evaluator_id | The evaluator agent | Clear text |
evaluator_session_id | The evaluator's own session that received the digest. It matches the session ID in the evaluator's runtime logs | Clear text |
event_count | How many activity events the digest carried | Clear text |
first_event_at | The oldest activity in the digest | Clear text |
last_event_at | The newest activity in the digest | Clear text |
capped | true when the digest reached its size limit, and later activity went to the next digest | Clear 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.
| Attribute | What it holds | Leaves the gateway as |
|---|---|---|
watch_id | The watch whose evaluator replied | Clear text |
batch_seq | The digest the reply answers | Clear text |
agent_session_id | The watched session | Clear text |
evaluator_session_id | The evaluator's own session the reply was read from | Clear text |
reply_seq | The reply's position among this digest's replies, from 1 | Clear text |
reply_state | What the reply produced: OBSERVATIONS, NOTHING_REPORTED or UNPARSEABLE | Clear text |
observation_count | How many findings AgentPass recorded from the reply | Clear text |
reply_chars | The reply's length, in characters | Clear text |
reply_text | The evaluator's reply as written | Not 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:
- Open Settings › Data management.
- Expand the event's category, and click the event, such as
RISK_FINDING. - In the attribute's row, under Leaves the gateway as, choose Clear text.
- Click Save changes.
The change applies to events written from then on. See Leaves the Gateway As.
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.
| Alert | Match | Why |
|---|---|---|
| A serious finding | risk_finding with severity ERROR or FATAL | An evaluator reported a High or Critical finding. Route it to whoever responds to incidents |
| A restricted target | risk_finding with action RESTRICTED_TARGET | The agent asked to reach a host, file or system your organization restricts, whatever severity the evaluator gave it |
| Credentials or controls | risk_finding with action CREDENTIAL_ACCESS or CONTROL_TAMPERING | The agent asked to use credentials, or to get around a security control |
| A broken evaluator prompt | digest_replied with reply_state UNPARSEABLE | The evaluator answered outside the reply format, so nothing it reported was recorded. See Adding the Evaluator Prompt |
| An evaluator that stopped replying | digest_sent events for a watch_id keep arriving, and digest_replied events for it stop | Digests 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
severityandaction. - 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
cappedistrue, to see sessions busier than the digest size limit. See Limits.
Related
- Session Watch: Overview: how Session Watch works, and what an evaluator is
- Session Watch: Findings: what a finding carries and proves
- Data Management: the log stream, export files and every event AgentPass records
- Long-Term Audit and Telemetry: reading the audit trail in your own systems