Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
"""
Known capability vocabulary for live actions.
This is a deliberate mirror of the ``Capability`` enum defined in
``services/connectors/app/connectors/base.py``. We mirror instead of
importing because:
* Each AiSOC service is independently deployable. A hard import from
``services.actions`` into ``services.connectors`` would couple two
deploy units that today have no dependency.
* The mirror is small (a flat ``frozenset[str]``), trivially diffable
in PRs, and used only for soft validation at registration time.
Adding a capability:
1. Add it to ``Capability`` in ``services/connectors/app/connectors/base.py``.
2. Add the same string here.
3. CI check (``scripts/check_action_contract.py``, ``check_capability_mirror``)
compares the two sets and fails the build if they drift.
Plugins MAY register executors for capabilities outside this set — we
log a warning instead of refusing, because forcing a plugin author to
also patch the core service would defeat the point of having a plugin
SDK. The warning lets us notice drift in production.
"""
from __future__ import annotations
# Mirror of services/connectors/app/connectors/base.py::Capability values.
# Keep alphabetical within each group to make diffs obvious.
KNOWN_CAPABILITIES: frozenset[str] = frozenset(
{
# READ
"pull_alerts",
"pull_audit",
"pull_file",
"pull_logs",
"pull_pcap",
"pull_vulnerabilities",
# Context rather than events: an HR system and an MDM report
# slowly-changing state, which the connector scheduler materialises
# into workforce_members and workforce_devices instead of pushing
# through ingest.
"pull_workforce",
"pull_device_inventory",
# QUERY
"query_logs",
"query_processes",
# PIVOT
"pivot_domain",
"pivot_hash",
"pivot_host",
"pivot_ip",
"pivot_user",
# ENRICH
"enrich_asset",
"enrich_domain",
"enrich_host",
"enrich_ioc",
"enrich_user",
"enrich_vuln",
# CONTAIN / REMEDIATE
"block_domain",
"block_hash",
"block_user_signin",
"disable_user",
"isolate_host",
"kill_process",
"quarantine_file",
"reset_password",
"revoke_session",
"revoke_token",
"unisolate_host",
# Reverse verbs. Added because the action contract names them as
# the rollback for quarantine_file, disable_user, block_domain and
# block_ioc — and a declared reverse that is not in the vocabulary
# is worse than none, because the rollback path believes it has one.
"allow_domain",
"allow_hash",
"allow_ioc",
"enable_user",
"restore_file",
# WS-E live action verbs
"allow_ip",
"block_ioc",
"block_ip",
"create_notable_event",
"force_mfa",
"run_av_scan",
"run_script",
"get_host",
"get_detections",
"get_user_activity",
"search_siem",
# Gap-closure Phase 4.2: a cloud control-plane audit lookup and an
# indicator search over endpoint telemetry. Neither subject is a host
# or a principal, so neither fits the three verbs above.
"lookup_cloud_audit",
"lookup_endpoint_telemetry",
# Depth 5.1. A distributed osquery query across a fleet. Distinct
# from `query_processes`, which names one table; this runs one of a
# closed set of allowlisted templates and the caller never supplies
# SQL. It was a playbook step type that could not run anywhere: the
# engine imported the three clients from this service, which that
# image does not contain.
"osquery_live_query",
"suspend_session",
"sync_detection_rule",
# The return leg of a two-way SIEM integration: AiSOC's verdict
# written back onto the vendor finding that produced the alert.
"update_alert_disposition",
"update_watcher",
# Alert lifecycle. Executors with three vendor arms each existed for
# both of these while neither verb appeared here, in the contracts or
# in the live-action registry, so governed dispatch answered
# executor_not_found for code that worked.
"ack_alert",
"suppress_alert",
# EVIDENCE. An ActionType with no executor anywhere, proposed by name
# on the C2 / exfiltration path — so the most serious incidents got a
# recommendation that answered "No executor found for action type".
"capture_forensics",
# HUMAN-IN-THE-LOOP. A working executor no adapter reached, because
# its honest result ("prompt delivered, nobody has answered") had no
# LiveActionStatus to land in.
"chatops_verify",
# MAILBOX. Reported-phish remediation across the recipients of one
# message. `purge_email` is a soft delete on both vendors and
# `restore_email` is its declared reverse, because the rollback for
# the most disruptive verb in the product must resolve to a real
# executor rather than to nothing.
"block_sender",
"purge_email",
"restore_email",
"search_mailboxes",
"unblock_sender",
# TICKET
"push_case",
"push_status",
"create_ticket",
# NOTIFY
"notify",
# AUDIT
"read_audit_trail",
# CLOUD IDENTITY (wave-2 Phase 6.1 / depth 5.5). The non-human half
# of the directory, plus the instance-level quarantine that works
# without an EDR agent. See the matching block in
# services/connectors/app/connectors/base.py for why each is its
# own verb rather than a flag on an existing one.
"deactivate_access_key",
"reactivate_access_key",
"disable_service_identity",
"enable_service_identity",
"get_cloud_identity",
"get_oauth_grants",
"quarantine_instance",
"release_instance",
"restore_role_sessions",
"restore_token",
"revoke_oauth_grant",
"revoke_role_sessions",
# CODE PLATFORM
"disable_workflow",
"enable_workflow",
"get_secret_scanning_alerts",
"remove_org_member",
"restore_org_member",
"revoke_deploy_key",
# SECURE WEB GATEWAY
"allow_url",
"block_url",
# AI ESTATE (wave-2 Phase 7.5 / depth 6.6)
"demote_role",
"remove_workspace_member",
"restore_spend_cap",
"set_spend_cap",
}
)