Repository navigation
Add NVIDIA OpenShell pack - #46497
MosheEichler merged 11 commits into
Conversation
|
Thank you for your contribution. Your generosity and caring are unrivaled! Make sure to register your contribution by filling the Contribution Registration form, so our content wizard @kamalq97 will know the proposed changes are ready to be reviewed. |
🤖 AI-Powered Code Review AvailableHi @kamalq97, @Benimanela, you can leverage AI-powered code review to assist with this PR! Available Commands:
|
…penshell-response
Consolidate NVIDIA OpenShell into one pack: integration and containment playbook, plus parsing rule, modeling rule (0.1.8 sandbox attribution, plain OCSF JSON input) and dashboard. Fixes ST110 structure errors in the playbook, integration and dashboard.
Remove the parsing rule, modeling rule and dashboard; the content team will add data normalization content to this pack separately.
|
🤖 Analysis started. Please wait for results... |
|
For the Reviewer: Trigger build request has been accepted for this contribution PR. |
|
For the Reviewer: Successfully created a pipeline in GitLab with url: https://gitlab.xdr.pan.local/xdr/cortex-content/content/-/pipelines/14599740 |
|
Hey @nkanon ReviewThe code is clean and small, the integration README matches the YAML, and the unit tests build real protobuf messages from the SDK. Comments below. Blocking
Should fix
Playbook
Nits
|
🤖 AI Review DisclaimerThis review was generated by an AI-powered tool and may contain inaccuracies. Please be advised, and we extend our sincere apologies for any inconvenience this may cause. |
marketplace-ai-reviewer
left a comment
There was a problem hiding this comment.
Hi there! Thanks for contributing the NVIDIA OpenShell integration.
Overall, the integration is well-structured, but there are a few key areas that need attention before we can merge:
- Documentation & Command Examples: The
README.mdis missing required command examples, context data, and human-readable outputs across most commands; please updatecommand_examples.txtwith all missing commands and re-rundemisto-sdk generate-docs. Also, ensure command-specific guidance in the description file is relocated to theREADME.md. - Configuration & Metadata: Adjust the configuration parameters in the integration YAML to follow standard ordering, update credential display keys, and add the missing
supportlevelheaderfield. - Code Adjustments & Asset Quality: Include proper error traceback logging in
main(), add the missing type hint, and re-align or fix the contrast on the integration logo image.
Please take a look at the suggested updates, and let us know if you have any questions!
Additionally, please address the following file-level notes:
Packs/NVIDIA_OpenShell/Integrations/NVIDIAOpenShell/command_examples.txt: Thecommand_examples.txtfile does not cover all commands defined inNVIDIAOpenShell.yml. Please include examples for the following missing commands, ensuring all required parameters are provided:!openshell-sandbox-suspend name=agent-1!openshell-sandbox-resume name=agent-1!openshell-sandbox-delete name=agent-1 confirm=yes!openshell-policy-rule-remove name=agent-1 rule_name=allow-web!openshell-policy-endpoint-remove name=agent-1 rule_name=allow-web host=files.example.com!openshell-policy-binary-remove name=agent-1 rule_name=allow-web binary_path=/usr/bin/curl!openshell-provider-detach name=agent-1 provider=vault confirm=yesPacks/NVIDIA_OpenShell/Integrations/NVIDIAOpenShell/NVIDIAOpenShell_image.png: The logo image appears visually unbalanced and may have contrast/visibility issues. The NVIDIA icon is positioned on the far left, while the right two-thirds of the image is completely dark/empty. If the NVIDIA wordmark is present to the right of the icon, it is rendered in black and is invisible against the dark background. Please ensure the full logo has adequate contrast, or if only the icon is intended, center it within the canvas.
@github-advanced-security[bot], @Benimanela, @MosheEichler please review and approve the results generated by the AI Reviewer by responding 👍 on this comment.
| } | ||
|
|
||
|
|
||
| def workspace_scope(workspace: str): |
There was a problem hiding this comment.
Add a return type annotation to workspace_scope.
| def workspace_scope(workspace: str): | |
| def workspace_scope(workspace: str) -> datamodel_pb2.WorkspaceSelector: |
| return_results(COMMANDS[command](client, args)) | ||
| else: | ||
| raise NotImplementedError(f"Command {command} is not implemented.") | ||
| except Exception as e: |
There was a problem hiding this comment.
Log the exception traceback with demisto.debug(traceback.format_exc()) before calling return_error(), and pass error=e into return_error().
| except Exception as e: | |
| except Exception as e: | |
| demisto.debug(traceback.format_exc()) | |
| return_error(f"Failed to execute {command} command.\nError:\n{format_error(e)}", error=e) |
| required: true | ||
| section: Connect | ||
| additionalinfo: The OpenShell gateway gRPC endpoint. The gateway is usually private, so run this integration on an engine that can reach it. | ||
| - display: Workspace |
There was a problem hiding this comment.
The workspace parameter is placed above the credential parameters (ca_cert, client_cert, client_key, bearer_token). Configuration parameters should follow standard ordering:
- Server URL / Endpoint
- Credentials / API Key
- Proxy settings
- Certificate / SSL settings
- Fetch configuration
- Incident type mapping
- Other functional parameters
Please move workspace below the credentials and TLS configuration parameters.
| required: false | ||
| section: Connect | ||
| additionalinfo: The default OpenShell workspace for commands that do not specify one. | ||
| - display: Gateway CA certificate |
There was a problem hiding this comment.
For type: 9 credential parameters with hiddenusername: true, displaypassword should be used instead of display. Please remove display: Gateway CA certificate. This also applies to client_cert (line 33), client_key (line 41), and bearer_token (line 49).
| description: The sandbox name. | ||
| type: String | ||
| - contextPath: OpenShell.Log.Time | ||
| description: The event time. |
There was a problem hiding this comment.
| description: The event time. | |
| description: The event time in ISO 8601 format (e.g., 2024-01-15T12:34:56Z). |
| | OpenShell.PolicyChange.PolicyHash | String | The hash of the new policy. | | ||
| | OpenShell.PolicyChange.Change | String | A summary of the change. | | ||
|
|
||
| ### openshell-policy-rule-remove |
There was a problem hiding this comment.
The ### openshell-policy-rule-remove command section is missing the required #### Command example, #### Context Example, and #### Human Readable Output sections. Please add an example execution (such as !openshell-policy-rule-remove name="sandbox-1" rule_name="rule1") to command_examples.txt and regenerate the documentation using demisto-sdk generate-docs. Refer to Command Examples - Integration Documentation for details.
| | OpenShell.PolicyChange.PolicyHash | String | The hash of the new policy. | | ||
| | OpenShell.PolicyChange.Change | String | A summary of the change. | | ||
|
|
||
| ### openshell-policy-endpoint-remove |
There was a problem hiding this comment.
The ### openshell-policy-endpoint-remove command section is missing the required #### Command example, #### Context Example, and #### Human Readable Output sections. Please add an example execution (such as !openshell-policy-endpoint-remove name="sandbox-1" rule_name="rule1" host="files.example.com") to command_examples.txt and regenerate the documentation using demisto-sdk generate-docs. Refer to Command Examples - Integration Documentation for details.
| | OpenShell.PolicyChange.PolicyHash | String | The hash of the new policy. | | ||
| | OpenShell.PolicyChange.Change | String | A summary of the change. | | ||
|
|
||
| ### openshell-policy-binary-remove |
There was a problem hiding this comment.
The ### openshell-policy-binary-remove command section is missing the required #### Command example, #### Context Example, and #### Human Readable Output sections. Please add an example execution (such as !openshell-policy-binary-remove name="sandbox-1" rule_name="rule1" binary_path="/usr/bin/curl") to command_examples.txt and regenerate the documentation using demisto-sdk generate-docs. Refer to Command Examples - Integration Documentation for details.
| | OpenShell.PolicyChange.PolicyHash | String | The hash of the new policy. | | ||
| | OpenShell.PolicyChange.Change | String | A summary of the change. | | ||
|
|
||
| ### openshell-provider-list |
There was a problem hiding this comment.
The ### openshell-provider-list command section is missing the required #### Command example, #### Context Example, and #### Human Readable Output sections. Please add an example execution (such as !openshell-provider-list name="sandbox-1") to command_examples.txt and regenerate the documentation using demisto-sdk generate-docs. Refer to Command Examples - Integration Documentation for details.
| | OpenShell.Provider.Type | String | The provider type. | | ||
| | OpenShell.Provider.Workspace | String | The provider profile workspace. | | ||
|
|
||
| ### openshell-provider-detach |
There was a problem hiding this comment.
The ### openshell-provider-detach command section is missing the required #### Command example, #### Context Example, and #### Human Readable Output sections. Please add an example execution (such as !openshell-provider-detach name="sandbox-1" provider="vault" confirm=yes) to command_examples.txt and regenerate the documentation using demisto-sdk generate-docs. Refer to Command Examples - Integration Documentation for details.
- openshell-egress-block-host: one atomic UpdateConfig for all removals (port 0 per rule), and report wildcard entries that still allow the host - Create TLS files with mode 0600 at creation; log traceback in main - Remove localhost default endpoint; document long-lived OIDC token and system trust store - Reorder and fix credential params; move safety notes to README; add command examples - Playbook: approval message, error path from stop to manual task, drop Action output, String type - Tests for atomic update, wildcard reporting and TLS without certificates
|
Thanks for the detailed review. All points are addressed in e0cbf95. Blocking
Should fix
Playbook
Other
|
…penshell-response
- New pack README: why, how it connects, response ladder, playbook flow, war room examples, setup - Add banner, architecture and response ladder images
|
Added a full pack README in 81c16a7, and merged your base update in dde41a3 (no conflicts). The README now covers:
New images are in |
|
Hi @nkanon, I moved the NVIDIA OpenShell - Contain AI Agent Sandbox playbook out of this PR and into #46625. The playbook needs a security review, and splitting it out lets the integration move forward without waiting for that review. The playbook itself is unchanged and will be merged after this PR. I pushed the change to your branch, so please pull before you push again, so the playbook files don't come back here. |
3751296
into
demisto:contrib/nkanon_nvidia-openshell-response
|
Thank you for your contribution. Your external PR has been merged and the changes are now included in one or more internal PRs for further review. Note Contributions containing XSIAM content (Modeling Rules, Parsing Rules, Correlation Rules, or Dashboards) are subject to an additional review process and may take longer to be merged to master. |
* Add NVIDIA OpenShell Response pack * Apply content team review conventions to NVIDIA OpenShell Response * Add playbook image for NVIDIA OpenShell - Contain AI Agent Sandbox * Merge OpenShell Response into the NVIDIA OpenShell pack Consolidate NVIDIA OpenShell into one pack: integration and containment playbook, plus parsing rule, modeling rule (0.1.8 sandbox attribution, plain OCSF JSON input) and dashboard. Fixes ST110 structure errors in the playbook, integration and dashboard. * Keep only response content in the NVIDIA OpenShell pack Remove the parsing rule, modeling rule and dashboard; the content team will add data normalization content to this pack separately. * Address review comments on NVIDIA OpenShell - openshell-egress-block-host: one atomic UpdateConfig for all removals (port 0 per rule), and report wildcard entries that still allow the host - Create TLS files with mode 0600 at creation; log traceback in main - Remove localhost default endpoint; document long-lived OIDC token and system trust store - Reorder and fix credential params; move safety notes to README; add command examples - Playbook: approval message, error path from stop to manual task, drop Action output, String type - Tests for atomic update, wildcard reporting and TLS without certificates * Add NVIDIA OpenShell pack README with diagrams - New pack README: why, how it connects, response ladder, playbook flow, war room examples, setup - Add banner, architecture and response ladder images * Move the NVIDIA OpenShell playbook to a separate PR --------- Co-authored-by: Nadav Kanon <109467661+nkanon@users.noreply.github.com> Co-authored-by: Moshe Eichler <78307768+MosheEichler@users.noreply.github.com> Co-authored-by: MosheEichler <meichler@paloaltonetworks.com>
Summary
New
NVIDIA OpenShellpack. NVIDIA OpenShell runs AI agents in isolated sandboxes and enforces anetwork and credential policy for each agent. This pack lets a playbook or an analyst contain an
agent through the OpenShell gateway.
The pack is named for OpenShell as a whole so more content can be added to it later
(for example data normalization content from the content team).
Content items
remove policy rules, endpoints and binaries; detach credential providers; get sandbox logs, policy and policy history.
analyst approval, stops the sandbox and verifies that it stopped.
Requirements
Notes
NVIDIA_OpenShell_ResponsetoNVIDIA_OpenShell.nexttasks) and integration (autoUpdateDockerImageplacement,supportlevelheader).Related
relates: https://jira-dc.paloaltonetworks.com/browse/CIAC-19158