Skip to main content

anysoar

One interface for AI agents to operate any SOAR platform, with guardrails built in.

Agents talk to anysoar; anysoar translates to whichever SOAR sits underneath through a per-vendor driver. Swapping SOARs means swapping a driver, not rewriting agents. Every action goes through a policy layer: reads run freely, writes wait for a person's approval, destructive actions are blocked, everything is audited, and a kill switch stops it all.

Status: pre-alpha. Expect breaking changes. Source, docs and a one-command demo: https://github.com/ag3ntsc4rn/anysoar

The anysoar console switched to TheHive: an agent's note waiting for approval, and the agent looking indicators up as it works

Install

pip install anysoar                       # models, driver interface, policy layer, mock SOAR
pip install "anysoar[mcp]"                # + the MCP server (anysoar-mcp)
pip install "anysoar[shuffle]"            # + the Shuffle driver
pip install "anysoar[tines]"              # + the Tines driver
pip install "anysoar[thehive]"            # + the TheHive driver
pip install "anysoar[testing]"            # + the contract test suite for driver authors

Python 3.12 or newer.

What's in it

  • Drivers: a mock SOAR with a synthetic phishing scenario, Shuffle, Tines and TheHive (alerts, cases, and enrichment by Cortex analyzers). SwitchableDriver switches between SOARs while agents keep running. Other packages can add drivers through the anysoar.drivers entry point group.
  • OCSF data model: alerts are Detection Findings, cases are Incident Findings, indicators are observables (OCSF 1.9.0), whatever the SOAR.
  • Policy layer: GuardedDriver wraps any driver with approvals (from the MCP client or an approval service over HTTP), an audit log and a kill switch.
  • MCP server: anysoar-mcp offers each SOAR operation as a tool to any MCP client.
  • Driver contract tests: anysoar.testing.DriverContract, which every driver passes.

Use it from Python

The mock driver needs no SOAR:

import asyncio

from anysoar.drivers.mock import MockDriver
from anysoar.interface import CaseQuery
from anysoar.models import IncidentFindingStatusId, Observable, ObservableTypeId
from anysoar.policy import GuardedDriver


async def main() -> None:
    # GuardedDriver applies the policy: reads run, writes would need an approver.
    async with GuardedDriver(MockDriver()) as soar:
        open_cases = await soar.list_cases(
            CaseQuery(status_ids=frozenset({IncidentFindingStatusId.NEW}))
        )
        for case in open_cases.items:
            print(case.metadata.uid, case.message)

        sender = Observable(type_id=ObservableTypeId.EMAIL_ADDRESS, value="it-support@example.net")
        result = await soar.enrich_indicator(sender)
        print(result.observable.reputation)


asyncio.run(main())

Use ShuffleDriver(url, api_key) from anysoar.drivers.shuffle for Shuffle, TinesDriver(url, api_key) from anysoar.drivers.tines for Tines, or TheHiveDriver(url, api_key) from anysoar.drivers.thehive for TheHive; the rest of the code stays the same.

Use it from an MCP client

{
  "mcpServers": {
    "anysoar": {
      "command": "uvx",
      "args": ["--from", "anysoar[mcp]", "anysoar-mcp"]
    }
  }
}

The agent gets one tool per operation the SOAR supports, plus describe_soar. Write actions ask you in your MCP client, or in a web console with anysoar-mcp --approver http. Run anysoar-mcp --help for the options, including --driver mock,shuffle,thehive,tines and --policy.

Learn more

Licensed under Apache 2.0.

Metadata

Release files for anysoar 0.6.0

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

Source distribution (sdist)

Source distribution for anysoar 0.6.0
File Size Uploaded
anysoar-0.6.0.tar.gz 78.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for anysoar 0.6.0
File Interpreter ABI Platform
anysoar-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 175.6 kB

Release files / anysoar-0.6.0.tar.gz

Download URL anysoar-0.6.0.tar.gz
Size 78.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c7e3b4427a238b82845792e759b27c564979fee5bf95b456ad7cf4611e0c7280
BLAKE2b-256 checksum
How to use checksums
daa1a28bcc5e411daba9ce60e2f11ee5a615b3dd77da5eb5adc7d8a964a23c09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 17, 2026.

Transparency log

Release files / anysoar-0.6.0-py3-none-any.whl

Download URL anysoar-0.6.0-py3-none-any.whl
Size 97.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecc64a3672b140c6be0324f5cf51adc833c6261e43171fb7bc7bca82191b1df4
BLAKE2b-256 checksum
How to use checksums
14548f517cad938c7fe0774b2a5b31352e9b128fa053885b6b1a5fb07446a376
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

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