Repository navigation
[Mapping] Add NVIDIA OpenShell pack - #46184
content-bot wants to merge 6 commits into
Conversation
* Add NVIDIA OpenShell pack Normalizes OCSF telemetry from NVIDIA OpenShell AI agent sandboxes into the Cortex Data Model. OpenShell runs AI coding agents in isolated sandboxes and emits OCSF v1.8.0 events for network, HTTP, SSH, process, config and finding activity. This pack ingests that JSONL and maps it to XDM. Contents: - ParsingRules: sets _time from the OCSF epoch-millisecond "time" field - ModelingRules: maps 8 OCSF classes to xdm.*, with a 50-field schema - XSIAMDashboards: 5 widgets, all querying the data model Notes: - Field names were verified against the openshell-ocsf crate's own serialization tests, including the insert_enum_pair! macro that emits both "<name>_id" and "<name>" for every OCSF enum. - A blocked egress attempt emits two events: activity_id 5 at the policy DNS stage, then activity_id 1 at the TCP stage. Anything counting denials must filter one stage out or every threshold doubles. - No correlation rules ship. OpenShell's default policy denies all egress, so any detection keyed on denial volume fires continuously on normal agent activity. Two draft rules and the reasoning are in future/CorrelationRules/ for operators who have a baseline from their own environment. Signed-off-by: Nadav Kanon <nkanon@paloaltonetworks.com> * Drop hardcoded observer vendor and product Only ~5% of modeling rules in the repository set xdm.observer.vendor or xdm.observer.product. Both were hardcoded string literals here, which adds nothing the pack name does not already convey. xdm.observer.version and xdm.observer.type still carry the real values from metadata.product. Signed-off-by: Nadav Kanon <nkanon@paloaltonetworks.com> * Map device.name to xdm.observer.name xdm.observer.name is set by 37% of modeling rules in the repository and was missing here. The OCSF device object carries the gateway's own name, which is what that field is for. xdm.observer.unique_identifier now prefers device.uid, the stable identifier, falling back to the name. Signed-off-by: Nadav Kanon <nkanon@paloaltonetworks.com> * Remove the future/ directory No pack in the repository ships a future/ subdirectory, and the README it contained was picked up by the mdx-validation pre-commit hook, which only expects READMEs at the pack root or under Integrations, Scripts and Playbooks. The reasoning for not shipping correlation rules stays in the pack README and the PR description. Signed-off-by: Nadav Kanon <nkanon@paloaltonetworks.com> * Rename dashboard to match the required path convention validate-content-paths requires XSIAM dashboards to be named <pack_name>_<dashboard_name>.json. The file used the content item stem (NVIDIAOpenShell) rather than the pack directory name (NVIDIA_OpenShell), which failed the hook. The dashboard global_id now matches the filename. Signed-off-by: Nadav Kanon <nkanon@paloaltonetworks.com> * Correct collection guidance to match upstream docs NVIDIA confirmed the supervisor, one per sandbox, is the aggregation point for sandbox OCSF telemetry, and updated the accessing-logs docs ahead of 0.1.3. - Supervisor logs live in the supervisor's own filesystem, not the sandbox workload. Add the per-driver location and lifetime table. - Remove the 'macOS VM driver' known issue. It was a misreading: the probe ran in the workload via sandbox exec, which cannot reach supervisor files. - Note that the default supervisor image has no shell or tar, so collection needs a mounted or sidecar collector rather than exec/cp. Signed-off-by: Nadav Kanon <nkanon@paloaltonetworks.com> * Rewrite README in the marketplace house style Restructure to the layout used by NVIDIA DOCA Argus and other HTTP Log Collector packs: Overview, This pack includes, Supported log categories, Supported timestamp formats, and Data Collection with Cortex XSIAM and vendor sides. Remove development notes that do not belong in operator documentation. Signed-off-by: Nadav Kanon <nkanon@paloaltonetworks.com> * Use XDM constants for IP protocol and standard severity labels Align with the conventions in the reviewed Docker AI Governance modeling rule and the wider repository: - Map connection_info.protocol_name to XDM_CONST.IP_PROTOCOL_TCP/UDP instead of writing the raw string, so the field matches other network sources. - Map OCSF severity 6 (Fatal) to Critical. Fatal is not a value XDM consumers expect for xdm.alert.severity. Signed-off-by: Nadav Kanon <nkanon@paloaltonetworks.com> --------- Signed-off-by: Nadav Kanon <nkanon@paloaltonetworks.com>
🤖 AI-Powered Code Review AvailableYou can leverage AI-powered code review to assist with this PR! Available Commands:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Hi @OBavly, a follow-up for this PR: #46236 updates the NVIDIA OpenShell modeling rule on this branch ( The changes come from validating the pack against live OpenShell 0.1.3 telemetry (143 events ingested into an XSIAM tenant):
Everything else in the pack is unchanged. Thanks! |
Validated against 143 real OpenShell 0.1.3 events ingested into an XSIAM tenant; the rule saves and maps cleanly there. - Null xdm.target.ipv4 for synthetic 198.18.0.0/15 addresses (incidr) - Map pid 0 to null for xdm.source.process.pid - Map blank or "-" command lines to null for xdm.source.process.command_line - Take xdm.observer.name from device.hostname and set xdm.observer.unique_identifier = coalesce(device.uid, device.name, device.hostname) Signed-off-by: Nadav Kanon <nkanon@paloaltonetworks.com>
This comment has been minimized.
This comment has been minimized.
…6273) OpenShell 0.1.3+ writes full OCSF JSON to the supervisor's container stderr as '<ts> OCSF-JSON <json>' when ocsf_json_enabled is on; NVIDIA documents this as the collection path for Docker, Podman and Kubernetes. - Parsing rule: time extraction only, from the OCSF epoch-ms time field or the leading UTC timestamp of a supervisor log line. - Modeling rule: models OCSF events delivered as JSON objects, Docker json-file records (log column) or JSON-string lines (_raw_log); extracts the OCSF JSON after the OCSF-JSON marker; only real OCSF events receive XDM values. - Schema: declare _raw_log, log, stream. - README: supervisor container logs as the primary collection method; JSONL files as the alternative. Validated in a live XSIAM tenant against real OpenShell 0.1.3 events for all three input shapes; existing JSON-object ingestion unchanged. Signed-off-by: Nadav Kanon <nkanon@paloaltonetworks.com>
This comment has been minimized.
This comment has been minimized.
|
|
|
Validate summary Verdict: PR can be force merged from validate perspective? ❌ |
🔍 AI Triage Report AvailableAn automated triage report has been generated for this pipeline. Status: 📋 Triage Report
|
|
Written by Claude Code, reviewed by @krishicks @nkanon, OpenShell 0.1.8 removes the top-level Sandbox identity now lives here:
Suggested change to the modeling rule. It keeps the old path last, so records from 0.1.7 and earlier still map: A few related points:
The current record layout is documented in |
|
Thanks @krishicks, this is really helpful. I've updated the modeling rule to read sandbox identity from device.container on supervisor records and unmapped.sandbox_id / unmapped.sandbox_name on gateway records, keeping the top-level container last so 0.1.7 and earlier still map. Gateway records no longer fall back to the gateway hostname. I'll also update the schema and README. A few questions so I can test against real data:
|
|
Thanks @krishicks, this is really helpful. I've updated the modeling rule to read sandbox identity from A few questions so I can test against real data:
|
@nkanon, answers in order: 1. Sample 0.1.8 records. The JSON record structure section has a full supervisor Network Activity (4001) egress record in the 0.1.8 shape, with 2. Release and transports. ai-openshell/openshell#5048 shipped in v0.1.8. 0.1.8 is also the first release whose native records pass OCSF 1.8.0 validation with no exceptions. The change applies equally to every transport, because JSONL files, stderr
3. 4. Multi-sandbox supervisors (RFC 0018). Yes. A supervisor that hosts several sandboxes binds an OCSF context to each sandbox session, so each record carries that sandbox's own
|
@nkanon, here are the captured 0.1.8 records I promised. They come from the released 0.1.8 gateway, supervisor and sandbox images on Docker. The gateway authenticated with Keycloak OIDC and exported OCSF over OTLP to a collector. Each record below is the OTLP log body, the same JSON written to the JSONL file and to the stderr Supervisor egress denial: Network Activity (4001). A sandbox opened a TCP connection to Record{
"class_uid": 4001,
"class_name": "Network Activity",
"category_uid": 4,
"category_name": "Network Activity",
"activity_id": 1,
"activity_name": "Open",
"type_uid": 400101,
"type_name": "Network Activity: Open",
"time": 1795049728349,
"severity_id": 3,
"severity": "Medium",
"status_id": 2,
"status": "Failure",
"message": "Transparent TCP denied before relay: network connections not allowed by policy",
"status_detail": "transparent_tcp_policy_denied",
"metadata": {
"version": "1.8.0",
"product": {
"name": "OpenShell Sandbox Supervisor",
"vendor_name": "OpenShell",
"version": "0.1.8"
},
"profiles": [
"security_control",
"network_proxy",
"container",
"host"
],
"uid": "49b2f23f-9ae8-4730-964c-f0890e7f063d"
},
"device": {
"hostname": "3f58e8891efa",
"type_id": 99,
"type": "Sandbox",
"container": {
"name": "egress-demo",
"uid": "6a959378-a8ab-462f-b994-35bb46213a6e",
"image": {
"uid": "sha256:d9461f428eea54e553add3a5158a0f245c6e1ea73efc59fff8e98e3d4a38e378",
"name": "nvcr.io/nvidia/base/ubuntu:24.04"
}
},
"os": {
"name": "Linux",
"type_id": 200,
"type": "Linux"
}
},
"dst_endpoint": {
"domain": "example.com",
"ip": "198.18.0.2",
"port": 443
},
"proxy_endpoint": {
"ip": "127.0.0.1",
"port": 3128
},
"actor": {
"process": {
"name": "/usr/bin/bash",
"pid": 0,
"cmd_line": "",
"parent_process": {
"name": "/usr/bin/timeout",
"pid": 0,
"parent_process": {
"name": "/usr/bin/bash",
"pid": 0
}
}
}
},
"action_id": 2,
"action": "Denied",
"disposition_id": 2,
"disposition": "Blocked",
"is_src_dst_assignment_known": true
}Gateway authorization denial: API Activity (6003). An OIDC user who isn't a member of the Record{
"action": "Denied",
"action_id": 2,
"activity_id": 99,
"activity_name": "Other",
"actor": {
"user": {
"type": "User",
"type_id": 1,
"uid": "940ce25d-8c99-4e90-b9c2-0c1de3ee63c3"
}
},
"api": {
"operation": "GetSandbox",
"service": {
"name": "openshell.v1.OpenShell"
}
},
"category_name": "Application Activity",
"category_uid": 6,
"class_name": "API Activity",
"class_uid": 6003,
"device": {
"hostname": "0f26f67e386d",
"name": "ocsf-capture",
"os": {
"name": "Linux",
"type": "Linux",
"type_id": 200
},
"type": "Server",
"type_id": 1,
"uid": "ocsf-capture"
},
"disposition": "Blocked",
"disposition_id": 2,
"http_request": {
"http_method": "POST",
"url": {
"path": "/openshell.v1.OpenShell/GetSandbox"
}
},
"message": "authorization denied: not_workspace_member",
"metadata": {
"correlation_uid": "3097de1d-5c33-4275-a859-2ced436c9e0a",
"product": {
"name": "OpenShell Gateway",
"vendor_name": "OpenShell",
"version": "0.1.8"
},
"profiles": [
"host",
"security_control",
"trace"
],
"uid": "bb96753a-3130-40c8-ae5b-5020394ba0a1",
"version": "1.8.0"
},
"resources": [
{
"name": "default",
"type": "workspace"
}
],
"severity": "Medium",
"severity_id": 3,
"src_endpoint": {
"ip": "172.24.0.1",
"port": 56100
},
"status": "Failure",
"status_detail": "not_workspace_member",
"status_id": 2,
"time": 1795050497871,
"trace": {
"uid": "18353062f764923d8313e529465ba841"
},
"type_name": "API Activity: Other",
"type_uid": 600399
}Gateway authentication failure: Authentication (3002). A request carried an OIDC token with a corrupted signature. Filter rejected requests on Record{
"action": "Denied",
"action_id": 2,
"activity_id": 1,
"activity_name": "Logon",
"auth_protocol": "OpenID",
"auth_protocol_id": 4,
"category_name": "Identity & Access Management",
"category_uid": 3,
"class_name": "Authentication",
"class_uid": 3002,
"device": {
"hostname": "0f26f67e386d",
"name": "ocsf-capture",
"os": {
"name": "Linux",
"type": "Linux",
"type_id": 200
},
"type": "Server",
"type_id": 1,
"uid": "ocsf-capture"
},
"disposition": "Blocked",
"disposition_id": 2,
"http_request": {
"http_method": "POST",
"url": {
"path": "/openshell.v1.OpenShell/GetSandbox"
}
},
"message": "authentication failed: invalid_credential",
"metadata": {
"correlation_uid": "7d2e9b14-0c3a-4f5e-8a6b-1c2d3e4f5a6b",
"product": {
"name": "OpenShell Gateway",
"vendor_name": "OpenShell",
"version": "0.1.8"
},
"profiles": [
"security_control",
"host"
],
"uid": "7de2bc4d-6034-4e31-abcb-7662d52575be",
"version": "1.8.0"
},
"service": {
"name": "openshell-gateway"
},
"severity": "Medium",
"severity_id": 3,
"src_endpoint": {
"ip": "172.24.0.1",
"port": 56102
},
"status": "Failure",
"status_detail": "invalid_credential",
"status_id": 2,
"time": 1795050497944,
"type_name": "Authentication: Logon",
"type_uid": 300201,
"user": {
"name": "unknown",
"type": "Unknown",
"type_id": 0
}
}Gateway sandbox-attributed record: Device Config State Change (5019). An admin added a network rule to the sandbox's policy. This is what a gateway record attributed to a sandbox looks like: Record{
"activity_id": 1,
"activity_name": "Log",
"category_name": "Discovery",
"category_uid": 5,
"class_name": "Device Config State Change",
"class_uid": 5019,
"device": {
"hostname": "0f26f67e386d",
"name": "ocsf-capture",
"os": {
"name": "Linux",
"type": "Linux",
"type_id": 200
},
"type": "Server",
"type_id": 1,
"uid": "ocsf-capture"
},
"message": "gateway merged incremental policy op: add-endpoint example endpoints=[example.com:443] binaries=[/usr/bin/bash]",
"metadata": {
"product": {
"name": "OpenShell Gateway",
"vendor_name": "OpenShell",
"version": "0.1.8"
},
"profiles": [
"security_control",
"host"
],
"uid": "6cf06a2c-d201-450d-af56-58d35a464c4f",
"version": "1.8.0"
},
"severity": "Informational",
"severity_id": 1,
"state": "merged",
"state_id": 99,
"status": "Success",
"status_id": 1,
"time": 1795050535529,
"type_name": "Device Config State Change: Log",
"type_uid": 501901,
"unmapped": {
"policy_hash": "5e017124f53495983a3bf4ef3c7c15fc23b52a0137da6c625ec74578183e35ec",
"policy_version": "v2",
"sandbox_id": "6a959378-a8ab-462f-b994-35bb46213a6e",
"sandbox_name": "egress-demo"
}
} |
Related PRs
Original External PR: #46162
Main Internal PR: #46183
Contributor
@nkanon
Contributing to Cortex XSOAR Content
Make sure to register your contribution by filling the contribution registration form
The Pull Request will be reviewed only after the contribution registration form is filled.
Status
Related Issues
N/A - new community-supported content pack.
Description
Adds NVIDIA OpenShell, a new community-supported XSIAM pack that normalizes
OCSF telemetry from OpenShell AI agent
sandboxes into XDM.
OpenShell runs AI coding agents in isolated sandboxes with policy-enforced
egress. Each sandbox supervisor emits OCSF v1.8.0 events covering network,
HTTP, SSH, process, config-change and detection-finding activity.
Dataset:
nvidia_openshell_rawContents
NVIDIAOpenShell— targetsnvidia_openshell_raw, sets_timefrom the OCSF epoch-millisecondtimefieldNVIDIAOpenShell— XDM normalisation across 8 OCSF classesModeling notes
openshell-ocsfcrate emits both<name>_id(integer)and
<name>(string label) for every OCSF enum, so the schema declares bothkeys for all seven enums.
activity_id5 (Refuse), then the TCP stage emitsactivity_id1(
Open). Queries counting denials should filter one stage out.container.uididentifies the sandbox.metadata.uidis unique per event and is not used for attribution. OCSFdowngrades below v1.8.0 strip the
containerobject, so the README adviseskeeping the native version.
Why no correlation rules
OpenShell's default sandbox policy denies all egress, so denial volume is high
on normal agent activity until an operator applies a policy. Detection
thresholds need a baseline from the target environment, so none ship in this
pack. They will follow in a separate PR.
Validation
demisto-sdk validate -i Packs/NVIDIA_OpenShell— all validations passedxdm.*fieldspopulate and
_timematches the sourcetimeopenshell-ocsfcrate's serialization testsMust have