Skip to main content

Solomon Python SDK

The Solomon Python SDK provides a secure, easy-to-use Python interface for integrating with the Solomon Sovereign AI Security Platform. It allows external SOC applications to analyze threats, access raw telemetry logs, and trigger autonomous remediation via the platform's Intelligence Service.

Installation

Install the solomon-sdk package from PyPI (import package: sdkpy):

pip install solomon-sdk

With optional AI-agent framework adapters:

pip install "solomon-sdk[langgraph]"
pip install "solomon-sdk[openai-agents]"
pip install "solomon-sdk[all]"

For local development from a repository checkout:

pip install -e ".[dev]"

Configuration

The SDK authenticates with ZITADEL and reaches the platform through the Envoy API gateway. Configure it with environment variables or by passing parameters directly to the client.

The SDK speaks REST only. The gRPC service bindings it once carried were removed when those endpoints migrated to REST; there is no proto/ directory and nothing to regenerate.

Environment Variables

Variable Description Default
GATEWAY_URL Base URL of the Envoy gateway (e.g., https://api.vintercept.ai). (Required)
TENANT_ID Tenant to scope every request to. default
API_TIMEOUT Request timeout in seconds. 120
TOKEN_URL URL to fetch OAuth2 tokens. (Required)
CLIENT_ID OAuth2 Client ID (ZITADEL). (Required)
PRIVATE_KEY RSA Private Key PEM string or JSON key file. (Required)
SOLOMON_ACTOR_SECRET HMAC secret used to sign investigation actor assertions. Only needed for the Investigation API. (Optional)
MODEL_PROXY_ACTOR_SECRET Dedicated HMAC secret (>= 32 bytes) used to sign per-request x-solomon-actor tenant assertions on hosted chat calls (CyberCore.chat_completion, CyberCore.stream_chat, mint_model_actor). Must match MODEL_PROXY_ACTOR_SECRET on Solomon_Platform and must never reuse SOLOMON_ACTOR_SECRET. (Required on strict model-proxy)
SOLOMON_HITL_GRANT_PUBKEY Pinned S-202 Ed25519 public key (64-char hex, base64url raw 32 bytes, or PEM) that Agentless Mode HITL (core.approvals / client.approvals) uses to verify kind="grant" envelopes. Required for approvals.require(): without it require() raises HitlGrantVerificationError before submitting the action. (Required for require())
SOLOMON_HITL_GRANT_KEY_ID The Platform key_id that SOLOMON_HITL_GRANT_PUBKEY belongs to. A grant whose envelope names any other key_id is rejected. (Required for require())

Usage Example

from sdkpy import CyberCore, CyberCoreError

# Initialize the client (picks up env vars automatically)
client = CyberCore()

try:
    # Analyze an IP address
    response = client.get_threat_intelligence(ip="192.168.1.50")

    print(f"Risk Score: {response.risk_score}")
    print(f"Verdict: {response.ai_analysis}")
    print(f"Remediation: {response.remediation_status}")

except CyberCoreError as e:
    print(f"Error: {e}")

Threat Intelligence

The SDK provides access to the MITRE ATT&CK knowledge base.

core = CyberCore()

# Search for techniques
techniques = core.get_mitre_attacks(
    search="Phishing",
    phase="Initial Access",
    limit=5
)

for t in techniques.get("items", []):
    print(f"{t['id']}: {t['name']} - {t['description']}")

Copilot Feedback and Approved Actions

SolomonSOC uses the SDK as the backend boundary for analyst feedback and approved actions:

core = CyberCore()

core.submit_copilot_feedback(
    session_id="session-123",
    message_id="ai-456",
    is_positive=True,
    comment="Useful triage summary",
)

result = core.execute_copilot_action(
    session_id="session-123",
    action_id="isolate-host-1",
    user_id="analyst-42",
    action_name="ISOLATE_HOST",
    target="WS-EXEC-PC001",
)
print(result.operation_id)

Identity-Provider Actions (approval-gated)

SolomonClient can ask the Platform to suspend a user, lift that suspension, or revoke all of a user's sessions at the tenant's identity provider (okta, entra_id, auth0, pingone). A request only queues an approval; the Platform calls the identity provider when a second analyst approves it. The tenant comes from the caller's token, so call these with the analyst's own token.

from sdkpy import ConflictError, ForbiddenError, SolomonClient

client = SolomonClient(tenant_id=tenant_id, token=analyst_token)

queued = await client.request_identity_action(
    "idp_suspend_user", "okta", "00u1abcd",
    user_display="Jane Doe", reason="Impossible travel", alert_id="alert-7",
)
print(queued.approval_id, queued.status)  # "awaiting_approval"

# Pending identity actions appear in the normal approval queue.
for approval in (await client.list_approvals()).items:
    if approval.is_identity_action:
        print(approval.parameters["vendor"], approval.parameters["user_id"], approval.proposed_by)

try:
    decision = await client.approve_identity_action(queued.approval_id, note="confirmed")
except ForbiddenError as exc:
    print(exc.detail)  # e.g. the requester may not approve their own identity action
except ConflictError:
    print("already decided or expired")

# The vendor's answer is stored on the approval.
result = (await client.get_approval(queued.approval_id)).identity_result
print(result.vendor_confirmed, result.status_code)

reject_identity_action(approval_id, reason=...) rejects without contacting the vendor. Approval.requester_subject is the verified token subject of the analyst who asked, and Approval.is_requested_by(subject) mirrors the Platform's four-eyes check: it uses requester_subject, or the legacy analyst:<subject> label on older rows. Use it to tell an analyst up front that they cannot approve their own request. The Platform's 403 still decides. get_integration_health(vendor) tells whether the tenant has that identity provider connected (connected, status), so a UI can offer only connected vendors. A vendor that does not confirm the change raises APIError with status_code == 502; exc.detail carries {"approval_id", "status", "message"} and the approval is recorded as failed. Every APIError keeps the Platform's detail on exc.detail; 403 raises ForbiddenError and 409 ConflictError.

Typed Read-Only Diagnostic Verbs (S-406)

SolomonClient and CyberCore expose the Platform's S-406 typed read-only ExecuteCommand verbs (ps, ss, lsof_net, uname, df, free, who, last, findmnt, journalctl, osqueryi, velociraptor). Free-form shell strings are rejected locally before any HTTP call. Callers holding capability forensics can read the endpoint-redacted stdout via get_remediation_command.

from sdkpy import SolomonClient

client = SolomonClient(tenant_id=tenant_id, token=analyst_token)
catalog = await client.list_exec_verbs()
dispatched = await client.execute_command(
    agent_id,
    verb="journalctl",
    arguments=["unit=sshd.service", "lines=50"],
    reason="Triage SSH lateral movement",
)
result = await client.get_remediation_command(dispatched.command_id)
print(result.status, result.exit_code, result.stdout)

Mobile approver devices (administrators)

A person's first mobile approver device stays pending_approval until a tenant administrator (capability manage_approver_devices) approves it, in the Solomon XGuard app or through these methods. The Platform refuses service principals here: pass the administrator's own token.

from sdkpy import ConflictError, ForbiddenError, SolomonClient

client = SolomonClient(tenant_id=tenant_id, token=admin_token)

devices = (await client.list_approver_devices()).devices  # newest first, max 500
for device in devices:
    if device.is_pending:
        print(device.id, device.subject, device.platform, device.approval_requires)

try:
    approved = await client.admin_approve_approver_device(device_id)
    print(approved.status, approved.active_from)  # "cooling_off" until active_from
except ForbiddenError as exc:
    print(exc.detail)  # own device, identities not linked, or a second admin must approve
except ConflictError:
    print("not pending any more")

await client.revoke_approver_device(device_id, reason="lost phone")  # immediate and final

Number matching (E23)

The number-matching number exists only after a SOC console user sends an approval to a phone (owner decision 2026-10-17). Approvals started on the phone need no number.

from sdkpy import LockedError

sent = await client.send_approval_to_phone(approval_id)  # idempotent: same number again
if sent.number_match:
    print("Number to enter on the phone:", sent.number_match.number)
else:
    print("Sent; the phone asks only for biometrics")  # tenant switched number matching off

Approval.number_match (NumberMatch) is None until someone sent the approval to a phone, then carries required, number (two digits), attempts_left and locked. After three wrong numbers the approval is locked: send_approval_to_phone raises LockedError (HTTP 423, exc.code == "number_match_locked") and the approval can only be rejected and requested again. 403 (no approve_remediation, or the caller requested the action), 404 and 409 (not awaiting approval) raise the usual errors.

Roles and capabilities

sdkpy.roles is the Platform's role catalogue for SDK callers: every SOC and portal role key, the deprecated aliases (admin/soc_admin → soc-admins, forensic-investigator → forensics-analysts, remediation_executor → incident-responders, integration-admin → integration-admins), what each role may do, and who may grant it. It reads sdkpy/role_catalog.json, a byte-identical copy of Solomon_Platform/src/auth/role_catalog.json, and gives the same answers as the Platform's src/auth/roles.py. Check a capability, not a list of role names:

from sdkpy import roles

token_roles = ["soc_admin", "tier-1-analysts"]       # as the token carries them

roles.normalize(token_roles)              # frozenset({'soc-admins', 'tier-1-analysts'})
roles.has_capability(token_roles, "approve_remediation")   # True
roles.capabilities(["compliance-auditors"])                # read-only set
roles.roles_with("deploy_detections")     # canonical keys and their aliases
roles.expand(["soc-admins"])              # {'soc-admins', 'admin', 'soc_admin'}
roles.grantable_by("tier-2-analysts")     # ('soc-admins', 'soc-managers')
roles.sod_conflicts(["compliance-auditors", "tier-1-analysts"])  # ['compliance-auditors is read-only ...']
roles.zitadel_project_roles()             # (key, display name): canonical, then deprecated

Unknown keys grant nothing, and an unknown capability name raises KeyError. Transitional capabilities (rights the new matrix removes later) still count, as on the Platform. roles.ORG_OWNER is the pseudo role used in grantable_by for the tenant org's Zitadel owner.

Never edit role_catalog.json here: change the Platform file, copy it over byte for byte, and update ROLE_CATALOG_SHA256 in tests/test_roles.py. With a Platform checkout, SOLOMON_PLATFORM_ROOT=/path/to/Solomon_Platform pytest tests/test_roles.py also compares both implementations key by key.

Agentic Investigation (Solomon Security)

core.investigation is the external REST surface of the agentic Investigation feature that powers the Investigation tab in SolomonSOC. It covers sessions, evidence upload, live streaming, agent state, the bring-your-own-key provider catalogue and the standalone analysis tools.

Requests route SolomonPy → Envoy (/v1/security) → solomon_security_api.

Identity is mandatory

The agent scopes every session, file and dashboard figure to a signed actor assertion, and applies RBAC per tool. Bind an analyst before doing anything:

from sdkpy import CyberCore

core = CyberCore(gateway_url="https://api.vintercept.ai", tenant_id="382530872617730061")

inv = core.investigation.as_actor(
    "analyst@example.com",
    roles=["tier-3-analysts"],          # drives which agent tools are permitted (keys: sdkpy.roles)
)

as_actor returns a copy. A long-lived CyberCore is routinely shared, and mutating it in place would give one analyst another's workspace with no other symptom.

Signing needs SOLOMON_ACTOR_SECRET. That secret grants the ability to impersonate any analyst in any tenant, so it belongs to server-side callers only — never a notebook a customer can read, never a browser, never a CI log.

Check what the agent concluded before trusting a run:

me = inv.me()
print(me.tenant_id, me.roles, me.privileges, me.rbac_enforced)

Running an investigation

Collect the answer:

session = inv.create_session(skills=["threat-hunting"])
inv.upload_file(session.id, "auth.log", open("auth.log", "rb").read(), content_type="text/plain")

result = inv.investigate("Triage the SSH brute force on host web-03.", session_id=session.id)

print(result.content)                                  # the answer
print(result.reasoning)                                # the thinking channel
print([(t.title, t.status) for t in result.tasks])     # the agent's plan
print([a.title for a in result.artifacts])             # code / diagrams / canvases
if not result.ok:
    print("failed:", result.error)

Or render it live:

for event in inv.stream_investigation(session.id, "What changed on web-03 overnight?"):
    if event.kind == "content":
        print(event.content, end="", flush=True)
    elif event.kind == "tool_call":
        print(f"\n[{event.raw['tool']}]")
    elif event.kind == "error":
        print(f"\nfailed: {event.error}")

Inspect event.kind, not event.type. Answer and reasoning deltas carry no type field at all, and a code frame carries both type and content.

stream_investigation has no read timeout by default. An investigation runs up to 24 tool calls; a read deadline truncates the answer in progress rather than reporting a failure.

An agent failure that happens after the stream opens arrives as an error frame, not an exception — by then there is usually a partial answer and a full tool trace worth keeping. investigate() records it on result.error and leaves result.content intact. Check result.ok.

Bring your own model key

byok = inv.with_provider_key("anthropic", "sk-ant-...")

Set both together, which is what with_provider_key enforces. Sending the key without naming the provider does not fail: the agent cannot find the model in its registry, quietly falls back to a built-in, and answers — so the analyst gets a confident answer from a model they did not choose.

Discover what a key unlocks (the key is verified by the provider, and travels in the request body rather than as an agent credential):

for provider in inv.providers():
    print(provider.id, provider.api_key_url)

models = inv.provider_models("anthropic", "sk-ant-...")

Recovering after a dropped stream

Everything the stream emitted is also durable:

state = inv.agent_state(session.id)
print(state.status, len(state.tasks), len(state.memory), len(state.tools))

transcript = inv.get_session(session.id).messages

Fleet Health Roll-Up (Phase C Item C4)

summarize_fleet_health(agents) and client.get_fleet_health_summary() compute fleet-wide sensor health counts across version distribution, rollout rings (the Solomon Client's canary, pct10, all, plus other for any value the Client does not define; a host that reports no ring is in the Client default all), policy enforcement modes (enforce, monitor, unknown; enforce only with positive evidence from the agent's enforcement.mode / policy.kill_switch), configuration states (default, customized, weakened, not_reported), configuration/version drift (rollout settings alone are not drift), and stale heartbeats. Decommissioned hosts are not counted; a host with an open containment (containment_badge="contained") is counted as isolated. get_fleet_health_summary() uses the Platform's GET /v1/agents/fleet-health and falls back to summarize_fleet_health over GET /v1/agents (at most 500 hosts, truncated=True when the page is full) only when that route returns 404. tests/test_fleet_health_parity.py checks that both give the same counts for a shared fixture.

by_policy_mode["enforce"] means enforcement-capable (owner decision O12): the host can block and has no kill switch, even if every rule is in monitor. by_enforcement (capable, enforcing, monitor_only, unknown; one per host, ENFORCEMENT_STATES) and enforcing_count count hosts with a policy rule really in force: a Client policy.rules[] entry with effective == "enforce" and no degraded reason. A kill switch is always monitor_only. Both fields are None when the Platform's fleet-health route predates them; treat that as "not reported", not zero.

from sdkpy import SolomonClient, summarize_fleet_health

client = SolomonClient(tenant_id=tenant_id, token=token)
summary = await client.get_fleet_health_summary(target_version="0.1.0")
print(summary.by_version, summary.by_rollout_ring, summary.by_policy_mode)
print(summary.by_enforcement, summary.enforcing_count)
print(summary.by_config_state, summary.drift_count, summary.stale_count)

Agentless Mode HITL Approvals (client.approvals)

Cloud-only / agentless AI agents (LangGraph, CrewAI, Bedrock, OpenAI Agents SDK) can gate tool calls on Solomon HITL approvals (POST /access/v1/evaluation or Mode 2 POST /hitl/v1/approvals), poll approvals (GET /hitl/v1/approvals/{approval_id}) and fetch signed grants (GET /hitl/v1/grants/{grant_id}), and cryptographically verify both the Platform's S-202 kind="grant" Ed25519 signature and the embedded D6 (SOLOMON-MOBILE-SIG-V1) human approver hardware-key or FIDO2 passkey signature (H-SC-1) locally before executing the action:

from sdkpy import (
    HitlApprovalDeniedError,
    HitlApprovalExpiredError,
    HitlApprovalsClient,
)

hitl = HitlApprovalsClient(
    tenant_id=tenant_id,
    gateway_url="https://api.vintercept.ai",
    token=workload_token,
    agent_id="langgraph-secops-agent",
    host_id="eks-node-01",
    grant_verify_pubkey=s202_pubkey_hex,
    grant_key_id=s202_key_id,
    trusted_approver_keys={"cred_secops_lead": approver_pubkey_b64},
)

try:
    grant = hitl.hold_for_grant(
        {"tool": "aws.ec2.terminate_instances", "target": "i-0123456789abcdef0", "blast_radius": "high"},
        justification="Contain compromised bastion host",
        scope_mode="unattended",
        timeout_s=300,
    )
    print("Approved by:", grant.approver_id, "jti:", grant.jti)
except HitlApprovalDeniedError as exc:
    print("Denied by policy/approver:", exc.denial_id, exc.reason)
except HitlApprovalExpiredError as exc:
    print("Timed out / expired:", exc.denial_id, exc.reason)

Grant verification fails closed. require() and hold_for_grant() raise HitlGrantVerificationError before submitting anything when no key_id and public key are pinned (constructor arguments grant_verify_pubkey + grant_key_id, grant_trusted_keys={key_id: key} during a rotation, or the SOLOMON_HITL_GRANT_PUBKEY / SOLOMON_HITL_GRANT_KEY_ID environment variables), or when trusted_approver_keys is provided (or require_human_signature=True) and the embedded D6 human approval signature does not verify (H-SC-1). insecure_skip_verify=True exists for unit tests only; it cannot be set from the environment and logs a warning on every use. gateway_url (or GATEWAY_URL) is required: there is no localhost default.

Only a plain policy permit reads as status="ALLOWED". A grant redemption answer (context.reason_code="grant_valid", or any answer carrying a grant token) reads as status="GRANT_ISSUED" even though the Platform sends no status, so the LangGraph and OpenAI Agents adapters require and verify its S-202 envelope and raise HitlGrantVerificationError when it is missing, and solomon approve without --wait exits 4, not 0.

get_fleet_health_summary() is computed from one GET /v1/agents page, which holds at most 500 agents and has no pagination. When the page is full the summary has truncated=True, so the counts may not cover the whole fleet.

HITL governance calls, SOC queue & Cedar policies (AG-005, AG-116, AG-154)

These methods (on SolomonClient, CyberCore and the HitlApprovalsClients) call the Platform routes defined in api/agent-approvals.openapi.yaml (AG-003) and the Platform HiTL routers. tests/test_hitl_route_contract.py checks every HiTL call in src/sdkpy against pinned copies of both OpenAPI specs (tests/fixtures/platform_hitl_openapi.json and tests/fixtures/agent_approvals_openapi.json, SHA-256 pinned in the test):

Method Platform route Notes
evaluate(...), require(...) POST /access/v1/evaluation AuthZEN 1.0 PDP evaluation (HitlOptions in context.hitl; sends Idempotency-Key when auto_create=True; supports C6 Zitadel service-accounts Bearer tokens when c6_mode=True)
evaluate_batch(...) POST /access/v1/evaluations AuthZEN 1.0 boxcar evaluation (HitlBatchEvaluationResponse, read-only: auto_create=False, request_grant=False; a mapping item may carry its own agent_id; each result carries its item's action_hash; same shape as SolomonJS evaluateBatch)
submit_hold_request(...), hold_for_grant(...) POST /hitl/v1/approvals Mode 2 SDK-instrumented / C6 Bearer hold creation
list_hitl_integrations(...), create_hitl_integration(...), get_hitl_integration(...), revoke_hitl_integration(...) GET/POST /v1/hitl/integrations, GET/DELETE /v1/hitl/integrations/{integration_id} Tenant C6 Zitadel M2M integration registry (AG-108, HitlC6Integration, HitlC6IntegrationCreateRequest, HITL_C6_ALLOWED_SCOPES)
list_hitl_integration_agent_bindings(...), bind_hitl_integration_agent(...), unbind_hitl_integration_agent(...) GET/POST /v1/hitl/integrations/{integration_id}/bindings, DELETE /v1/hitl/integrations/{integration_id}/bindings/{agent_id} Explicit agt_<ULID> agent bindings for C6 integrations (AG-108, HitlC6AgentBinding)
list_hitl_approvals(...), get_hitl_approval(...) GET /hitl/v1/approvals, GET /hitl/v1/approvals/{approval_id} SOC agent-request queue (AG-116): returns HitlApprovalItem with "run by <agent> as <owner>" attribution, shadow risk score/reasons, and min_approval_assurance (A1/A2/A3)
decide_hitl_approval(...), decide_hitl_request(...) POST /hitl/v1/approvals/{approval_id}:decide Web/SOC decision (SocApprovalDecisionRequest with WebAuthn step_up assertion, capped at A2 per R-11/HI-D34; Idempotency-Key header)
fetch_grant(grant_id) GET /hitl/v1/grants/{grant_id} Fetch Grant metadata by grt_... ID (signed GrantToken lives on Approval.grant / DecisionContext.grant)
exchange_workload_token(...) POST /v1/hitl/ais/wif/exchange Workload Identity Federation OIDC/JWT exchange for short-lived Solomon agent token
list_hitl_action_classes(...) GET /v1/admin/hitl/action-classes Action-class registry with baseline risk and approval assurance (AG-154)
list_hitl_policies(...), get_hitl_policy(...) GET /v1/admin/hitl/policies, GET /v1/admin/hitl/policies/{policy_id} List/fetch baseline and tenant Cedar HITL policies (AG-154)
create_hitl_policy(...), update_hitl_policy(..., if_match=...) POST /v1/admin/hitl/policies, PUT /v1/admin/hitl/policies/{policy_id} Author/update tenant Cedar policies (required If-Match ETag + R-15 X-Solomon-StepUp-Assertion on enforce)
validate_hitl_policy(...), promote_hitl_policy(..., if_match=..., step_up=...) POST /v1/admin/hitl/policies:validate, POST /v1/admin/hitl/policies/{policy_id}:promote Dry-run Cedar validation against pinned schema and monitor ↔ enforce promotion (R-15 step-up)
get_hitl_tenant_policy(...), update_hitl_tenant_policy(...) GET/PUT /v1/admin/hitl/tenant-policy Tenant-wide HITL mode, quorum, timeout, and escalation settings
scan_jvs_egress(...) POST /v1/hitl/jvs/validate content is folded into justification and is not sent
mint_grant_credentials(...), fetch_brokered_credentials(...) none (retired) Deprecated. POST /v1/hitl/broker/credentials was retired by Platform #1123 (HI-D49, 410). Both now emit DeprecationWarning and raise EndpointRetiredError (status 410) without sending anything. Its successor POST /hitl/v1/credentials:exchange authenticates the enrolled hook (DPoP), so credential leases come from solomon-hook on the endpoint
trigger_scim_offboarding(...) POST /v1/hitl/scim/v2/Users/{user_id}/offboard authenticated with the tenant's SCIM bearer token, not a user token
export_compliance_bundle(denial_id=...) GET /v1/hitl/compliance/evidence/{denial_id} denial_id is required (evidence is per request)
verify_compliance_bundle(...) none: verified locally the signature only counts against a pinned key (public_key=, or SOLOMON_HITL_GRANT_PUBKEY / SOLOMON_HITL_GRANT_KEY_ID; the Platform signs evidence with the HITL grant signer). Without a pin valid is False
create_mobile_invite(ttl_seconds=..., domain=...) POST /v1/admin/hitl/mobile-invites single-use only (max_uses must be 1), lifetime 60 s..24 h (expires_in_hours still accepted)

SOC console HiTL administration (SolomonClient only, sdkpy.hitl_admin)

The SOC BFF's HiTL admin screens use these async methods (HitlSocAdminMixin, mixed into SolomonClient; the sync and agent clients do not carry them). Pass the analyst's token as actor_token= when calling as the BFF service principal. Bodies that carry a passkey step-up are sent unchanged, because the Platform binds the step-up digest to exactly those bytes.

Method Platform route Notes
get_hitl_grant(grant_id), revoke_hitl_grant(grant_id, reason=...) GET /hitl/v1/grants/{grant_id}, POST /hitl/v1/grants/{grant_id}:revoke AG-103 ledger record (HitlGrantRecord); revoke sends Idempotency-Key and pushes revoke_hitl_grant to the endpoint
upsert_hitl_action_class(name, body, step_up=...), delete_hitl_action_class(name, step_up=...) PUT/DELETE /v1/admin/hitl/action-classes/{action_class} AG-006; step-up purpose hitl.action_class.manage in X-Solomon-StepUp-Assertion (scope {tenant_id, action_class}, plus action: "delete" on delete)
delete_hitl_policy(policy_id, if_match=..., step_up=...) DELETE /v1/admin/hitl/policies/{policy_id} If-Match required; step-up hitl.policy.enforce when the policy enforces
list_hitl_policy_versions(policy_id), get_hitl_policy_version(policy_id, version), get_hitl_cedar_schema() GET /v1/admin/hitl/policies/{policy_id}/versions[/{version}], GET /v1/admin/hitl/schema Cedar version history and the tenant schema (HitlCedarSchema.cedar_schema)
get_hitl_retention(), update_hitl_retention(body, step_up=...) GET/PUT /v1/admin/hitl/retention AG-143; step-up hitl_retention_change travels in the body and is needed only when shortening
get_hitl_evidence_bundle(approval_id) GET /v1/admin/hitl/evidence/{approval_id} AG-106 bundle for appr_… ids (tenant_admin actor); use export_compliance_bundle for dn_…
list_hitl_mandates(), create_hitl_mandate(body), get_hitl_mandate(id), revoke_hitl_mandate(id) GET/POST /hitl/v1/mandates, GET/DELETE /hitl/v1/mandates/{mandate_id} AG-104 standing mandates
list_hitl_webhook_dlq(), replay_hitl_webhook_delivery(delivery_id) GET /v1/hitl/webhooks/dlq, POST /v1/hitl/webhooks/deliveries/{delivery_id}:replay AG-105; replays are queued for hitl-worker
list/create/get/update/delete_hitl_notify_connector(s), list_hitl_notify_connector_deliveries(), enqueue_hitl_notify_connector(id) /v1/hitl/notify/connectors* AG-208 notify-only connectors; auth_secret is write-only (responses carry secret_configured)
list_approver_passkeys(), revoke_approver_passkey(credential_id, reason=...) GET/DELETE /v1/admin/hitl/approver-passkeys[/{credential_id}] SOC-D1 / A4 approver passkeys; revoke writes audit chain and republishes trusted keys
list_hitl_push_outbox(status=..., before_event_id=..., limit=...), replay_hitl_push_outbox_event(event_id) GET /v1/admin/hitl/outbox, POST /v1/admin/hitl/outbox/{event_id}:replay SOC-D2 failed/DLQ phone-push deliveries; replay pushes only unreached devices
list_hitl_grants(status=..., limit=...) GET /hitl/v1/grants SOC-D3 ledger grant list with scope and remaining uses
list_hitl_audit(limit=..., before_seq=...) GET /v1/admin/hitl/audit SOC-D4 tenant HiTL audit chain pages (verified against anchor/genesis)

Cross-Host Swarm Correlator & E-D1 swarm_response (G1 / E-D1)

SolomonClient / AsyncCyberCore (async) and CyberCore (sync) expose methods for querying cross-host SwarmIncidents (source="swarm_correlator") and ingesting detection events into the Platform's 60-second Cross-Host Swarm Correlator (POST /v1/swarm/correlate and GET /v1/swarm/incidents):

from sdkpy import AsyncCyberCore, CyberCore

client = AsyncCyberCore(tenant_id=tenant_id, token=token, gateway_url="https://api.vintercept.ai")

# List recent cross-host swarm incidents
swarm_list = await client.list_swarm_incidents(limit=20, severity="critical", status="open")
for inc in swarm_list.incidents:
    print(inc.incident_id, inc.title, inc.host_ids, inc.sha256_iocs, inc.ip_iocs)

# Correlate events across hosts and run the Owner Decision E-D1 swarm_response playbook
correlate_res = await client.correlate_swarm_events(events, execute_response=True)
for outcome in correlate_res.outcomes:
    print(outcome.auto_contained_hosts, outcome.queued_hitl_hosts, outcome.approval_id)

Pending fleet_contain (FLEET_CONTAIN) approvals for audit-mode workloads appear in list_approvals() with approval.is_fleet_contain == True, approval.fleet_contain_targets, and approval.fleet_contain_host_ids.

PID-Reuse-Safe KillProcess from Detections (KILL-D1)

Both SolomonClient (async) and CyberCore (sync) enrich detections from GET /v1/detections with normalized pid and tick-floored start_time_ns (CLOCK_MONOTONIC ns since boot, < MAX_BOOT_NS = 10**17, floored to TICK_NS = 10_000_000 via normalize_start_time_ns / truncate_start_time_ns), expose typed DetectionRecord / DetectionListResponse via list_detections_typed(), and provide kill_process_for_detection() and get_kill_start_time_metrics():

from sdkpy import DetectionRecord, SolomonClient

client = SolomonClient(tenant_id=tenant_id, token=token)
detections = await client.list_detections_typed(limit=20, agent_id=agent_id)
for det in detections.items:
    if det.pid and det.start_time_ns > 0:
        await client.kill_process_for_detection(det, reason="Terminate malicious process")

Cloud Assets and Kubernetes Security Posture

SolomonClient exposes async methods for querying OmniMesh-discovered Kubernetes clusters and their sub-resource posture views through /v1/cloud/kubernetes-*:

from sdkpy import SolomonClient

client = SolomonClient(tenant_id=tenant_id, token=token)

clusters = await client.list_kubernetes_clusters(provider="aws", region="us-east-1")
nodes = await client.list_kubernetes_nodes(cluster_name="solomon-platform-eks-cluster")
workloads = await client.list_kubernetes_workloads(cluster_name="solomon-platform-eks-cluster")
networking = await client.list_kubernetes_networking(cluster_name="solomon-platform-eks-cluster")
access_controls = await client.list_kubernetes_access_controls(cluster_name="solomon-platform-eks-cluster")
configurations = await client.list_kubernetes_configurations(cluster_name="solomon-platform-eks-cluster")

Sensor Feature Flags, Add-on Entitlements & Passkey Step-Up (S-208)

Both SolomonClient (async) and CyberCore (sync) expose the Platform's S-208 feature catalog, tenant feature policy, fleet drift, add-on entitlements (hitl, agent_guard), and WebAuthn passkey step-up routes (FF-D1..FF-D9):

from sdkpy import FeatureRule, FeatureTargeting, SolomonClient, StepUpBlock

client = SolomonClient(tenant_id=tenant_id, token=user_token)

catalog = await client.get_feature_catalog()
policy = await client.get_feature_policy()
drift = await client.get_feature_drift()
entitlements = await client.get_tenant_entitlements()

# Request a single-use WebAuthn challenge bound to the exact mutation body
rules = [
    FeatureRule(
        feature_id="prevent.cred_access",
        mode="enforce",
        targeting={"rings": ["canary"]},
    )
]
challenge = await client.create_step_up_challenge(
    "feature_policy_change",
    scope={"tenant_id": tenant_id},
    body={
        "base_version": policy.policy_version,
        "rules": [r.model_dump(mode="json", exclude_none=True) for r in rules],
        "reason": "Promote credential access prevention on canary",
    },
)

step_up = StepUpBlock(
    challenge_id=challenge.challenge_id,
    passkey_assertion=webauthn_assertion,
)
updated = await client.put_feature_policy(
    policy.policy_version,
    rules,
    reason="Promote credential access prevention on canary",
    step_up=step_up,
)

When a principal already holds a passkey on one relying party (for example solomonsoc.com) and needs to enroll their first passkey on another RP (for example vintercept.ai), get_passkey_registration_options() reports cross_rp_required=True, step_up_rp_id, and available_step_up_rps. The source RP proves possession with purpose stepup_credential_add_rp and calls create_cross_rp_passkey_grant(target_rp_id, step_up, scope="admin"|"vendor") (POST /v1/{admin,vendor}/step-up/passkeys/cross-rp-grant, returning CrossRpPasskeyGrantResponse), and the target RP finishes enrollment via register_passkey(..., cross_rp_grant=grant.grant_token) (mutually exclusive with step_up).

Preflight Exception Advisor, Host Allowlists & 1-Click Emergency Downgrade (OCI-D1)

FeatureRule carries typed optional allowlists (oci_hook_binaries, runtime_binaries, preload_libs) and auto-expiry timestamps (expires_at), FeatureHealthEntry reports restart_required, and get_effective_features() / get_feature_fleet() surface bootstrap_loop_alerts (BootstrapLoopAlert). Both SolomonClient (async) and CyberCore (sync) expose the OCI-D1 preflight and emergency override routes:

# Inspect monitor-mode would-have-blocked callers and suggested allowlist diffs
preflight = await client.get_preflight_exceptions(window_hours=72, agent_id=agent_id)
if preflight.enforce_flip_warning:
    print(preflight.warnings, preflight.suggested_policy_diff.oci_hook_binaries)

# 1-click TTL-bounded emergency downgrade (non-selfprotect.* features, passkey step-up)
downgraded = await client.emergency_downgrade_feature(
    "prevent.container_escape",
    agent_id=agent_id,
    target_mode="monitor",
    ttl_hours=4,
    reason="Allow NVIDIA CDI container bootstrap while adding hook allowlist",
    trigger_event_id="sig-123",
    step_up=step_up,
)

# Restore enforce early (idempotent) or prune expired overrides on demand
restored = await client.restore_emergency_downgrade(
    "prevent.container_escape", agent_id=agent_id, reason="OCI hook allowlist deployed"
)
expired = await client.expire_emergency_downgrades()

Dynamic Subscription Packages, Tenant Entitlements & EDR Metrics

Both async SolomonClient and synchronous CyberCore expose typed access to the Platform's dynamic subscription catalog, per-tenant feature entitlements, and Postgres-backed EDR metrics through Envoy (/api/v1/internal/vintercept/*):

from sdkpy import (
    SolomonClient,
    SubscriptionPackage,
    SubscriptionPackageListResponse,
    TenantEntitlements,
    PackageFeatures,
    EdrMetricsSummary,
)

client = SolomonClient(tenant_id="org-123", gateway_url="https://api.vintercept.ai", token=jwt)

# List active packages (or pass include_deprecated=True for grandfathered plans)
catalog: SubscriptionPackageListResponse = await client.list_packages()
pkg: SubscriptionPackage = await client.get_package("solomon_go")

# Resolve tenant subscription entitlements (fail-closed feature checks)
ent: TenantEntitlements = await client.get_subscription_entitlements()
if not ent.has_soc_access:
    raise PermissionError("Upgrade to Solomon Pro for SOC console access")

# Fetch per-workstation EDR metrics, detections, and automated remediations
metrics: EdrMetricsSummary = await client.get_edr_metrics(days=30, detections_limit=50)

Note: get_subscription_entitlements() queries package/plan entitlements at GET /api/v1/internal/vintercept/tenants/{tenant_id}/entitlements and is distinct from get_tenant_entitlements(), which queries S-208 paid add-on SKU seat caps at GET /v1/admin/entitlements.

Async SOC Operations, Hosted LLM Streaming & Async Investigation (SolomonClient)

SolomonClient provides native async methods for SOC operational endpoints (reviews, triage coverage/context/verdicts, metrics/stage-events, remediation autonomy, alert webhooks, vendor-lane health, Cartograph auto-resolve, detections/incidents/hosts/intel), hosted LLM streaming (/api/v1/models and /api/v1/chat/completions), and agentic investigations via client.investigation (AsyncInvestigationAPI):

from sdkpy import AsyncInvestigationAPI, SolomonClient

client = SolomonClient(tenant_id=tenant_id, token=analyst_token)

# Hosted LLM async SSE streaming (preserves reasoning_content & content deltas)
llm = client.with_model_proxy_actor(model_proxy_secret, caller="soc-backend")
async for line in llm.stream_chat(messages=[{"role": "user", "content": "Triage alert 123"}], model="glm-5.2"):
    print(line)

# Async Agentic Investigation (raw SSE passthrough + typed methods)
inv: AsyncInvestigationAPI = client.investigation.as_actor(
    "analyst@example.com", roles=["tier-2-analysts"], secret=actor_secret
)
async for raw_chunk in inv.stream_chat_raw(b'{"sessionId":"s1","message":"Investigate host-1"}'):
    # Forward raw bytes directly to FastAPI StreamingResponse
    ...

SOC Dashboard Example

A reference implementation of a SOC Dashboard is provided in examples/soc_dashboard.py using Streamlit.

Running the Dashboard

  1. Install SDK & Dependencies:

    Ensure the solomon-sdk package (import module sdkpy) is installed in your environment before running the example.

    # Install the SDK from PyPI
    pip install solomon-sdk
    
    # Install Dashboard dependencies
    cd examples
    pip install -r requirements.txt
    
  2. Set Credentials:

    You can export environment variables directly:

    export GATEWAY_URL="https://api.vintercept.ai"
    export TENANT_ID="your-tenant-id"
    export TOKEN_URL="https://auth.vintercept.ai/oauth/v2/token"
    export CLIENT_ID="your-client-id"
    export PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----..."
    

    Or copy the example environment file to .env_sdk (automatically loaded by the dashboard):

    cp .env.example .env_sdk
    # Edit .env_sdk with your credentials
    
  3. Launch the App:

    streamlit run soc_dashboard.py
    
  4. Access: Open your browser at http://localhost:8501.

Features

  • Incident Analysis: Input suspicious IP addresses to trigger the Unified Intelligence Service.
  • AI Verdicts: View the Risk Score and natural language analysis from the Triage Agent.
  • Evidence: Inspect raw Wazuh logs fetched directly from the endpoint context.
  • Remediation Status: See real-time status of autonomous containment actions.

Remote Deployment

To host this dashboard on a remote server (e.g., Streamlit Cloud, AWS, or a VM):

  1. Install the SDK: Ensure the solomon-sdk package is listed in your deployment requirements (or install it directly from PyPI):
    pip install solomon-sdk
    
  2. Install Dependencies: Run pip install -r requirements.txt.
  3. Environment Variables: Configure the necessary Zitadel and Gateway secrets in your hosting provider's secrets manager.

Metadata

Release files for solomon-sdk 0.8.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solomon-sdk 0.8.4
File Size Uploaded Provenance Actions
solomon_sdk-0.8.4.tar.gz 392.8 kB With provenance Details for solomon_sdk-0.8.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for solomon-sdk 0.8.4
File Interpreter ABI Platform Actions
solomon_sdk-0.8.4-py3-none-any.whl Python 3 none any Details for solomon_sdk-0.8.4-py3-none-any.whl

Total release size: 636.5 kB

Release files / solomon_sdk-0.8.4.tar.gz

Download URL solomon_sdk-0.8.4.tar.gz
Size 392.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a6a77940551b4c7e762df661656df708db6c792c83122f92f3a7cd4ded03fd87
BLAKE2b-256 checksum
How to use checksums
726905b5edd83808de4a54426ebd50fb21d5aa00730aff73125bc0c8c2d76578
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Release files / solomon_sdk-0.8.4-py3-none-any.whl

Download URL solomon_sdk-0.8.4-py3-none-any.whl
Size 243.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12d39f9a8d1bb1710724c69ffe0e3e7e3d554232cf6937a190b5897b2a365cc1
BLAKE2b-256 checksum
How to use checksums
940288b6ac1a1360d6eac74ecd9c8e63b433ffc3bdb113982695c52c8ae72623
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Security for solomon-sdk 0.8.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for solomon_sdk-0.8.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.4 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page