Integration guide
Deploying the team
Every deployment gets two keys from the owner. A public key for the browser agent — locked to the client’s registered domains — and a secret server key for sensitive events like logins, transfers and data exports. Events are rejected until the owner activates the deployment.
1 · Websites: add the browser agent
Paste before </body>. It reports page views and scans form submissions for injection attacks and exposed card/ID numbers. Form contents are inspected on our side and immediately discarded.
<script src="https://your-team.netlify.app/agent.js" data-key="ast_pub_…" defer></script>Report login outcomes from the page too, if your login happens client-side:
AISecurityTeam.track('auth.login_failed', { actorId: 'user@example.com' })2 · Servers: send events to the API
Call from your backend whenever something security-relevant happens. Batch up to 100 events per request. Keep the secret key on the server only.
curl -X POST https://your-team.netlify.app/api/v1/events \
-H "Authorization: Bearer ast_sec_…" \
-H "Content-Type: application/json" \
-d '{"type":"payment.transfer","actorId":"user_42","amount":2500,"target":"payee_981","ip":"203.0.113.7"}'await fetch('https://your-team.netlify.app/api/v1/events', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.AI_SECURITY_TEAM_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
events: [
{ type: 'auth.login_failed', actorId: user.id, ip: req.ip },
{ type: 'http.request', ip: req.ip, path: req.originalUrl, userAgent: req.get('user-agent') },
],
}),
})Event reference
| type | useful fields | who watches |
|---|---|---|
| auth.login_failed | actorId, ip | Sentinel: brute force, credential stuffing |
| auth.login_success | actorId, ip, country, deviceId | Watchtower: new-country and new-device logins |
| auth.password_reset | actorId, ip | Sentinel + Ledger: account-takeover signals |
| account.security_change | actorId, change | Sentinel: MFA, email, phone, recovery changes |
| account.privilege_change | actorId, newRole | Sentinel: privilege escalation |
| payment.payee_added | actorId, target | Ledger: fresh-payee fraud |
| payment.transfer | actorId, amount, target | Ledger: thresholds, velocity, anomalies |
| data.export | actorId, records, target | Vault: bulk exports |
| data.access | actorId, target | Vault: scraping |
| ehr.record_access | actorId, patientRef, careRelationship, breakGlass, vip | Vault: patient-chart snooping, break-the-glass, chart sweeps |
| http.request | ip, path, userAgent | Watchtower: floods, probes, attack tools |
| api.request | ip|actorId|clientId, method, path, statusCode, records, bytes | Watchtower + Turing + Vault: API enumeration, machine-speed clients, large transfers |
| auth.token_used | actorId, tokenId, ip, country | Sentinel: token used from many places (token is hashed on arrival) |
| admin.action | actorId, action | Sentinel + Compass: logging off, audit log cleared, MFA policy disabled… |
| ai.prompt | actorId, sessionId, payload, aiTokens | Turing: prompt injection, bulk-PHI extraction requests, token abuse |
| ai.retrieval | actorId, sessionId, target, payload | Turing: indirect prompt injection in documents fed to a model |
| ai.tool_call | actorId, clientId, toolName, authorized, careRelationship, records, statusCode | Turing: AI agents outside authorization, repeated refusals, privilege tools, first-time risky tools, bulk retrieval, outbound tools after sensitive reads |
| security.alert | actorId|deviceId, category, alertSeverity, verdict, target (alert name), rawRef | Sentinel: detections from your EDR, email security, WAF or SIEM, correlated with everything else |
| dns.query | deviceId|ip, target (domain), category, verdict | Watchtower: malicious-domain lookups and DNS tunnelling |
| input.submitted | payload, path | Sentinel + Vault: injection & PII (payload is never stored) |
| page_view | path | Watchtower: request floods (browser agent) |
All fields are optional except type. Common fields: actorId, ip, country (ISO code), userAgent, amount, target, records, path, payload. Send sessionId and deviceId so the Investigator can link one person's activity across agents. change is one of mfa_disabled, mfa_enabled, email_changed, phone_changed, password_changed, recovery_changed, api_key_created. Server events may set occurredAt (ISO time, up to 30 days old) to backfill history.
Intrusion-detection fields (all optional): sourceSystem (patient_portal, ehr, telehealth, scheduling, billing, auth, idp, api_gateway, reverse_proxy, waf, cloud, app_server, audit_log, ai_app), actorType (user, patient, clinician, admin, service, api_client, ai_agent), method, statusCode, bytes, clientId, tokenId (hashed, never stored raw), aiTokens, toolName, authorized. Tagging sourceSystem is what makes the threat dashboard show which systems are actually covered. Additional source systems: sso, vpn, dns, edr, email_security, database, workload, ai_agent, mcp, phi_log; additional actor type: workload.
Envelope fields: sensitivity (public, internal, confidential, restricted, pii, pci, phi) — derived from the source, endpoint and payload scan when you do not send it; only the label is stored. rawRef — the id of the original record in your system (CloudTrail eventID, FHIR AuditEvent id, EDR detection id) so analysts can find the raw log. Tenant is always taken from the key, never the payload.
Source adapters
Forward records in their native format and name the adapter with the X-AST-Source header (or "adapter" next to "events"). Each adapter maps the record to a normalized security event — timestamp, source system, event type, user / account, device, IP, user agent, endpoint, method, authentication result, resource, records, data volume, action — and copies identifiers and metadata only; clinical content such as names or notes is never mapped. Server key only.
normalized— already in the normalized snake_case shape (event_type,user_id,ip_address,endpoint,data_volume…)reverse_proxy,waf,api_gateway— JSON access logs (nginx, Envoy, ALB, Cloudflare, Kong-style fields)identity_provider— Okta / Entra ID / Auth0-style sign-in, MFA, role and token eventsehr_audit— FHIR AuditEvent-style chart access and exportsai_gateway— prompts, retrieved context and tool calls from LLM applicationscloud_audit— CloudTrail-style console sign-ins, logging changes, IAM changes and downloadssso— SAML / OIDC sign-in logs (identity-provider field names), tagged as SSOvpn_ztna— VPN and zero-trust access sign-ins (GlobalProtect, Zscaler ZPA, Cloudflare Access-style fields)dns_gateway— DNS resolver / secure web gateway lookups with category and verdictedr— endpoint detections (CrowdStrike, Defender, SentinelOne-style fields) assecurity.alertemail_security— phishing / malware verdicts and clicks; subjects and bodies are never mappeddatabase_audit— pgaudit / SQL Server audit-style reads, exports, grants and destructive statements; SQL text is never copiedmcp— MCPtools/callrecords from tool servers or agent runtimes; tool arguments are never copiedphi_access_log— generic PHI access logs (user, patient reference, purpose)
Adapters require you to forward the logs; AI Security Team does not pull from these systems and cannot see systems that do not send telemetry.
curl -X POST https://your-team.netlify.app/api/v1/events \
-H "Authorization: Bearer ast_sec_…" -H "X-AST-Source: api_gateway" \
-H "Content-Type: application/json" \
-d '{"events":[{"time":"2026-10-01T12:00:00Z","client_ip":"203.0.113.4","method":"GET",
"uri":"/fhir/Patient/1234","status":403,"consumer":"partner-app","bytes_sent":512}]}'Universal security events
Endpoint sensors, network sensors, identity providers, cloud audit trails, applications and AI runtimes all send the same format: ast.security_event.v1. Only event_type and source_type are required; every other field is optional, type-checked and bounded, and unknown fields are refused (put extras in metadata). The organization always comes from the credential — an event naming another tenant is rejected. Universal events need a server key or a sensor key; the browser key cannot send them.
POST /api/v1/events— one event, or up to 100 inevents.POST /api/v1/events/batch— up to 500 events. Bodies are limited to 1 MB, each event to 32 KB (itsraw_eventhas its own 32 KB budget).- Valid events are accepted and invalid ones are returned by index with field-level errors (
rejected).event_idplus theIdempotency-Keyheader make resends safe; duplicates are skipped and counted. - Timestamps older than 30 days or more than 5 minutes in the future are refused. URLs keep scheme, host and path only; query strings and credentials are dropped. Secrets, card, SSN and medical-record numbers are masked; bodies, prompts, command lines and notes are never stored.
- Vendor formats: set
X-AST-Normalizertoendpoint(Sysmon, osquery, ECS),network(Suricata EVE, Zeek, firewall JSON),identity(Okta, Entra ID, Google Workspace),cloud(CloudTrail, GCP audit),application(access logs) orai-agent(OpenTelemetry GenAI). - Errors are JSON:
{"error": "…", "code": "invalid_request | unauthorized | forbidden | payload_too_large | batch_too_large | no_valid_events | rate_limited | backpressure"}.
curl -X POST https://your-team.netlify.app/api/v1/events/batch -H "Authorization: Bearer ast_sen_…" -H "Content-Type: application/json" -d '{"events":[{"event_id":"ws01-4711","timestamp":"2026-10-02T14:04:00Z","source_type":"endpoint","source_name":"osquery",
"event_category":"process","event_type":"process.start","event_action":"start","hostname":"ws-01.corp.example",
"asset_type":"workstation","os_name":"Windows","os_version":"11 23H2","user_id":"jdoe","process_name":"rclone.exe",
"process_id":4711,"parent_process":"powershell.exe","executable_path":"C:\Users\jdoe\AppData\rclone.exe",
"file_hash":"sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"}]}'{"event_id":"zeek-CsWk1","source_type":"network","source_name":"zeek","event_category":"network","event_type":"network.connection",
"direction":"outbound","hostname":"ws-01.corp.example","source_ip":"10.0.4.21","source_port":51544,
"destination_ip":"203.0.113.50","destination_port":8443,"protocol":"tcp","bytes":7340032}{"event_id":"okta-8f2c","source_type":"identity","source_name":"okta","event_category":"authentication",
"event_type":"authentication.failure","event_outcome":"failure","user_id":"jdoe@corp.example","identity_provider":"okta",
"source_ip":"198.51.100.7","session_id":"idx-41"}{"event_id":"req-77a1","source_type":"application","source_name":"billing-api","event_category":"api","event_type":"api.request",
"http_method":"GET","api_endpoint":"/v1/invoices/export","http_status":200,"user_id":"jdoe","source_ip":"198.51.100.7","records":5400}{"event_id":"span-3c9","source_type":"ai_agent","source_name":"support-agent","event_category":"ai","event_type":"ai.tool_call",
"ai_provider":"anthropic","ai_model":"claude-sonnet-5-5","ai_agent":"support-bot","ai_action":"export_records",
"identity_type":"ai_agent","session_id":"conv-12","records":800,"metadata":{"authorized":false}}Sensors. Register a sensor under Security operations → Sensors to get a single-use enrollment token (24 hours). The sensor exchanges it at POST /api/v1/sensors/enroll for its own key, sends POST /api/v1/sensors/heartbeat and rotates with POST /api/v1/sensors/rotate (the old key keeps working for 24 hours). Revoking a sensor stops its key immediately. There is no shared sensor key.
The AI Security Systems sensor
A read-only Node.js collector (no dependencies) shipped in the product’s sensor/ package (version 0.3). On Linux it reads /proc, the SSH auth log and systemd unit directories, and switches to event-driven eBPF process and connection telemetry when bpftrace is installed, the kernel has BTF and it runs as root. On Windows it reads the Security and System event logs; macOS support is partial. Enroll once, then run it under systemd as root for full visibility:
node ast-sensor.mjs enroll --server https://your-team.netlify.app --token ast_enr_…
node ast-sensor.mjs once # print one snapshot, send nothing
systemctl enable --now ast-sensorTerminal installation — preview
For test-purchased licenses, first register an endpoint sensor and bind its ID under Organization → Annual terminal licensing. Payment confirmation comes from Stripe, never the return page. Download the actual Node.js sensor source package and check its SHA-256 manifest. This is a manual-install source archive, not a native or signed Mac installer. Install Node.js 22 LTS. Keep the package in a persistent, administrator-controlled directory. Enrollment requires the preview site address and the one-use token from Sensors.
tar -xzf ast-sensor-0.5.0.tar.gz
cd ast-sensorinstall -d /opt/ast-sensor
cp -R . /opt/ast-sensor/
node /opt/ast-sensor/ast-sensor.mjs enroll --server https://your-team.netlify.app --token <one-use-token>
cp /opt/ast-sensor/ast-sensor.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable --now ast-sensornode .\ast-sensor.mjs enroll --server https://your-team.netlify.app --token <one-use-token>
node .\ast-sensor.mjs runOn Windows, keep that PowerShell process open for this preview test. Confirm the sensor appears and reports capabilities in Security operations. Background startup/service packaging remains unverified; do not treat this foreground test as an installed Windows service. Enable process-creation auditing for the relevant Windows collector. Stop with Ctrl+C.
sudo node ./ast-sensor.mjs enroll --server https://your-team.netlify.app --token <one-use-token>
sudo node ./ast-sensor.mjs runmacOS also runs in the foreground for this preview; stop with Ctrl+C. No signed/notarized installer or verified launchd startup is supplied. Windows and macOS collection are partial. After enrollment, verify heartbeat, device identity and actual collector status. Linux removal: stop/disable ast-sensor, remove its systemd unit, reload systemd and revoke the sensor in SI before removing local files. For all operating systems, revoke in SI before deleting the package and its stored credentials. Reinstallation on another terminal requires support review; a purchased license cannot be self-reassigned.
- Collects: host inventory (hostname, machine id, OS, interfaces with MAC and addresses, serial if readable), process starts and stops with parent, two further ancestors, executable path, SHA-256 of the executable (first run, up to 64 MB) and user, processes running from deleted executables, listening ports, new network connections with their owning process, SSH sign-ins and sessions (Linux) or sign-ins, process creation and service changes from the Event Log (Windows), service and launchd changes, basic posture and its own health.
- Only when your collection policy turns it on: file-integrity monitoring of the paths you list (hashes, size, owner and mode — never contents), DNS lookups from a local dnsmasq / unbound query log, and command-pattern indicators — the sensor reads a new process’s command line in memory, matches fixed risky patterns and sends only the pattern names. Policies are set under Security operations → Endpoints and delivered with each heartbeat.
- Never sends: command lines or arguments, environment variables, file contents, messages, browser data, keystrokes, screenshots, passwords or tokens, packet payloads, medical records or any patient data.
- Capability states: each heartbeat reports every capability as live, partial or not available, with the method (ebpf, poll, eventlog…) and the reason. The Endpoints page shows LIVE only for what the sensor reported working while it is reporting; inventory status is LIVE SENSOR, DEGRADED, OFFLINE, UPDATE REQUIRED (older than 0.3.0) or UNENROLLED.
- Overhead: batches of up to 500 events, gzip-compressed above 4 KB (the gateway caps the inflated size), a per-minute event budget from the policy (excess dropped and counted), a bounded local spool, per-cycle caps on hashing and events.
POST /api/v1/sensors/events(sensor keys only, same limits as the batch endpoint) andPOST /api/v1/sensors/inventory. Every request carriesX-AST-Sent-At(refused if more than 5 minutes off — replay protection) andX-AST-Installation(a key copied to another installation is refused and audited). An endpoint sensor can only report on the device it enrolled on, andsensor_idin an event must be its own.- The console shows each sensor as LIVE SENSOR, SIMULATED SENSOR or EXTERNAL INTEGRATION and as Online, Degraded, Offline or Never connected; hosts with no sensor say NO SENSOR INSTALLED.
- Without eBPF it polls (processes every 10 s, connections every 15 s), so very short-lived activity can be missed — the capability states say so. A native Windows ETW consumer and a macOS Endpoint Security Framework client are not shipped. The sensor itself never blocks, isolates or terminates anything.
Endpoint and network rules
Bastion runs deterministic rules on process, sign-in and connection metadata: suspicious parent/child chains, execution from temporary folders, unexpected privileged execution, persistence changes, sign-in after repeated failures, repeated failures against a host, new privileged accounts, unexpected remote access, known processes making their first outbound connection, port scans, rapid and failed connection bursts, new listening services, new internal admin connections, destination ports no other host uses, connection-volume spikes and possible beaconing. Phase 3 adds process-tree chains (through the grandparent), command-pattern indicators, security tools being stopped, protected-file changes, processes running from deleted executables, new processes connecting out within two minutes, contact with destinations on your blocked-destinations list (Response center → settings), and a cluster finding when three different rules fire on one host within 30 minutes. Each finding carries the rule, confidence, an assurance label (anomaly, suspicious activity, investigation recommended or high-confidence detection), ATT&CK techniques, affected assets and identities, timestamps and recommended investigation steps. History-based rules wait for 3 days of a host’s telemetry and compare with its own 30 days. Most are correlation evidence that never alerts alone. Admins can switch rules off under Security operations → Detection rules.
Controlled response
Findings recommend responses; nothing runs from a recommendation. The path is: request (analyst, with a reason) → approval by someone with response approval rights who is not the requester (always for high-impact actions — isolation, process termination, account suspension, API-key disabling, file quarantine — and for every action while separation of duties is on; the Government profile keeps it on) → execution by a provider your organization connected and tested → verification, querying that provider until it confirms the resulting state (30 minutes at most, otherwise FAILED) → optional rollback / release, verified the same way. Every step is in the audit log. States: REQUESTED, AWAITING APPROVAL, APPROVED, EXECUTING, VERIFIED, FAILED, REJECTED, CANCELLED, ROLLED BACK.
- Providers: Microsoft Defender for Endpoint (isolate / release, IP and domain block indicators, file block-and-remediate) and Okta (suspend / unsuspend, close a session), each with your own credentials and supported through integration — not validated against live tenants. Without an enabled provider, approved requests are recorded as not executed and can be marked done manually by a second person. Process termination runs only on the SIMULATED provider today.
- Safety: an emergency stop per organization (anyone who can approve may engage it; provider administrators release it), a maximum number of executed actions per hour, a maximum number of endpoint actions in effect at once, an attempt limit with backoff for transient provider errors, a circuit breaker after repeated provider failures, and protected targets (endpoints marked protected or critical, or names on your list) that only an organization admin can approve, typing the target to confirm. Limits hold approved requests; they never drop them silently. There is no automatic endpoint isolation or account suspension.
- Roles: viewers see incidents; analysts request; security leads and admins approve (
response:approve); only admins administer providers and safety limits (providers:manage); auditors read the audit log. - Isolation: requests, providers, settings and targets are all scoped to one organization; a request can never reach another tenant’s endpoints or providers. Simulated requests reach only the built-in SIMULATED provider and simulated hosts.
Identity and asset reconciliation
The same person can appear as jsmith on a laptop, CORP\jsmith on a domain controller and john.smith@corp.com in Okta; the same machine as an EDR device, a DHCP lease and a cloud instance. Suggestions are scored high confidence or possible match with the reasons shown (same email, account matching an email in your domain, name pattern; same serial, burned-in MAC, cloud instance id, short host name, shared address). Nothing merges automatically: an administrator confirms or rejects on the Reconciliation page, every decision is audited, merged assets keep every alias and identifier, and confirmed identity links let the Investigator correlate across providers.
SIMULATED demonstration
Security operations → Simulation sends synthetic endpoint, network, credential, automation and multi-signal scenarios through the real gateway as drills from a simulated sensor that has no credential. Everything is labelled SIMULATED, stored as drill traffic, kept out of live metrics and baselines, and builds a separate simulated inventory (*.sim.example.test, documentation IP ranges) that can never merge with real assets.
What happens next. Events that name a host, device, cloud workload or asset id create or update an asset; events that name a user, service account or AI agent update an identity. Where a native equivalent exists (failed sign-in, privilege change, API call, AI tool call, DNS lookup, vendor detection) the event also runs through the specialists above. Bastion runs the endpoint and network rules below, and the Investigator links signals that share an account, identity (including administrator-confirmed cross-provider links), session, device, address, asset or destination into one incident with an event-by-event timeline — several weak signals of different kinds (identity, endpoint, network) become one incident even when one agent reported them.
| Implemented now | Not implemented (future phases) |
|---|---|
| Ingestion gateway, schema validation, normalizers, asset inventory and merge, identity context, sensor enrollment and rotation, the AI Security Systems sensor (Linux; Windows Event Log and macOS partial) with policy-driven file integrity, DNS and command indicators, endpoint inventory with capability states, endpoint and network rules, identity and asset reconciliation, multi-signal correlation, automation / AI-signal classification, AI Analyst verified against stored events, incident timeline and investigation view, event explorer, telemetry coverage and health, the controlled response workflow with verification, rollback and safety limits, SIMULATED demonstration of the full response lifecycle. Through your credentials (not validated against live tenants): Defender for Endpoint and Okta response providers, eBPF collection where bpftrace is installed. | Native Windows ETW consumer, macOS Endpoint Security Framework client, packet capture, a full EDR / NDR agent, process termination through a live EDR, CrowdStrike and Entra ID providers, automatic response, ransomware prevention |
Intrusion & AI-threat detection
The pipeline is detect → identify → correlate → score → alert → audit, with optional enforcement. Turing (AI & automation) separates two questions: is it automated, and is there evidence it is AI-driven? Automation alone is never labelled AI. AI confidence is low, moderate, high or critical, and every incident lists the reasons. Compass learns a baseline for each account, service account, API client, device, address, application and organization (hours, places, devices, endpoints, volumes) and only flags deviations once it has 30+ events over 3+ days. Each incident gets a 0–100 risk score with the factors that produced it — an estimate of concern, not proof of an attack. All of this is rule-based and statistical; no telemetry is sent to an AI provider.
Enforcement has three modes, chosen under Organization → Enforcement: Monitor (default — detect and alert only), Approval required (actions are recommended; an admin or security lead approves or rejects each) and Automatic protection (allowed actions run on their own above your risk threshold). Actions need a connected response integration: the built-in decision API, Okta (suspend user, clear sessions), Cloudflare (block or challenge an IP) or a signed webhook to your own SOAR / WAF / EDR automation. Disruptive actions against clinicians and clinical systems wait for approval unless an admin explicitly turns that protection off; the Government profile makes every disruptive action wait and enforces separation of duties. Every action records who or what initiated it, why, the policy, the evidence, the target, the time, the result, any error, verification and rollback status, and is written to the audit log. An integration that fails five times in a row is paused for five minutes and administrators are alerted to every automatic action and every failure.
Decision API
With the built-in decision API connected, actions become controls that your application checks before serving a request — for example before an export. Send any identifiers you have; the response is allow, deny, reauth, challenge or rate_limit, with the matching controls. Controls expire on their own and are lifted on rollback. You decide what your application does if this call fails (fail open or closed).
curl -X POST https://your-team.netlify.app/api/v1/decisions -H "Authorization: Bearer ast_sec_…" -H "Content-Type: application/json" -d '{"operation":"export","actorId":"user-123","sessionId":"s-9","ip":"203.0.113.4"}'
{"decision":"deny","operation":"export","matched":[{"id":42,"effect":"deny_export","targetKind":"account","decision":"deny","expiresAt":"…"}]}AI cost runaway protection
Send metered AI usage — one record per model call, tool call, MCP call, paid API call or billing line — and every agent is compared with its own 14-day history: spend per hour and per day, tokens, calls, tools, models, retries and call depth. Loops (repeated identical calls), recursion, retry and failed-call storms, sudden token spikes, expensive-model switches, long autonomous sessions and accelerating spend raise a runaway risk (NORMAL, ELEVATED, HIGH, CRITICAL) with the current cost velocity and the projected 24-hour cost — before that money is spent. Your daily, hourly, per-agent and per-workflow budgets, token, call and cost-velocity limits add thresholds (50 / 75 / 90 / 100% by default). Send identifiers and meters only: prompts, messages, outputs and tool arguments are ignored and never stored. Costs you do not report are estimated from the model’s price tier and labelled as estimates.
curl -X POST https://your-team.netlify.app/api/v1/ai-usage -H "Authorization: Bearer ast_sec_…" -H "Content-Type: application/json" -d '{"adapter":"generic","records":[{"agentId":"support-agent","provider":"anthropic","model":"claude-sonnet-4-5",
"kind":"llm","inputTokens":1800,"outputTokens":420,"costUsd":0.012,"sessionId":"s-91","workflowId":"triage",
"depth":1,"fingerprint":"<hash of the request shape>","eventId":"req_123"}]}'Containment needs an integration you connect and, for automatic use, an organization admin’s expiring authorization. The built-in AI spend gate answers allow, deny or rate_limit for an agent, workflow, session, credential, tool or MCP tool; your runtime asks before each call and enforces the answer, and each control records when your runtime first received it. A signed webhook lets your own automation pause agents, disable workflows or revoke credentials. Without either, the console shows DETECTION ACTIVE · AUTOMATIC SHUTOFF NOT AVAILABLE FOR THIS INTEGRATION and alerts you — nothing claims to have stopped a service it cannot reach. STOP AI SPENDING runs every available containment action after typed confirmation and is written to the audit log.
curl -X POST https://your-team.netlify.app/api/v1/ai-usage/gate -H "Authorization: Bearer ast_sec_…" -d '{"agentId":"support-agent","sessionId":"s-91","tool":"web_search"}'
{"decision":"deny","matched":[{"id":12,"action":"block_ai_requests","target":{"kind":"agent","value":"support-agent"},"mode":"deny"}]}Healthcare & HIPAA
Hospitals, clinics, chiropractic, dental, physical-therapy and behavioural-health practices can use the team to watch their patient-facing and staff web systems: patient portals, online booking and intake, telehealth, billing, and EHR or practice-management software that can report events. Set the organization’s Industry profile to Healthcare (HIPAA) under Console → Organization. That turns on:
- Patient-chart monitoring — charts opened with no care relationship, restricted/VIP charts, every break-the-glass override, and one account sweeping through 30+ patients in 10 minutes.
- PHI detection — medical record numbers and Medicare IDs in submitted data are flagged and masked, alongside card and Social Security numbers.
- A breach-assessment clock on incidents that may involve PHI, counting down the 60 days the Breach Notification Rule allows.
- Six-year minimum incident retention, matching HIPAA’s documentation rule. The audit log is tamper-evident and never purged.
- Healthcare threat dashboard — active threats ranked by risk, AI-driven activity, suspicious access, patient-data anomalies, authentication attacks, API abuse, exfiltration indicators and which systems are actually connected.
- The AI Analyst switched off until an admin confirms a business associate agreement (BAA) covers the AI provider. Detection, correlation, alerts and the rule-based “Why was this flagged?” work without it.
Report chart opens from your EHR or practice-management server (secret key only):
{ "type": "ehr.record_access", "actorId": "staff_2291", "patientRef": "p_7f3a91",
"careRelationship": false, "vip": false, "breakGlass": false,
"ip": "203.0.113.7", "sessionId": "…" }- Send an opaque patient reference (an internal key or a hash) — never a name, date of birth or MRN. It is stored to count distinct charts, and replaced with a placeholder before anything goes to the Analyst.
careRelationshipis your system’s own answer to “is this person on the patient’s care team, scheduled with them, or billing them?”. Leave it out if you don’t know; don’t guess.- On pages where patients type clinical details, add
data-ast-ignoreto the form (or field), ordata-scan-forms="false"to the script tag, so that text is never sent for scanning. - Alerts, Slack/Teams messages and connectors carry the incident title and summary, never patient references. Still route them only to channels your workforce is authorised to use.
- Run the Stolen clinician login & patient-chart snooping drill from a deployment page to see the whole chain end to end.
What this does not replace
Detection coverage depends on the systems and telemetry connected to AI Security Team. Network, endpoint, email, ransomware, and medical-device threats require appropriate telemetry or integrations — the team is not a network IDS, EDR/anti-ransomware agent, email filter or medical-device monitor, and it blocks nothing unless your admin has enabled enforcement through your own endpoint. Use it alongside those, your EHR vendor’s own access auditing, and your HIPAA risk analysis. Before sending production data, sign a BAA covering this service and its hosting. Using the team does not by itself make an organization HIPAA compliant.
3 · Alerts
New incidents are posted to the deployment’s alert webhook the moment they’re detected. The message format works with Slack and Discord incoming webhooks directly, and includes structured JSON for Zapier, Make or n8n — use those to forward alerts to email or SMS. The owner also receives every high and critical alert across all deployments.
Responses
202accepted — includes how many incidents were opened401unknown or missing key ·403deployment not active or origin not registered423the owner has engaged the kill switch429your organization or source IP exceeded its rate limit (seeRetry-After) ·503your organization’s queue is full, retry later200duplicate— theIdempotency-Keyheader was already processed; per-eventeventIdvalues are also de-duplicated
4 · Enterprise APIs
Create a service account under Console → Organization. Keys (ast_svc_…) are scoped to one organization and shown once. Scopes: incidents:read, incidents:write, reports:read, audit:read, scim.
- GET /api/v1/incidents?status=&severity=&since=&before=&limit=
- GET /api/v1/incidents/:id (includes the attack story and enforcement records) · PATCH { status?, assigneeEmail?, note?, legalHold? }
- GET /api/v1/incident-exports/:id — signed JSON export (
incidents:read): story, findings, enforcement, audit history, SHA-256 digest and HMAC signature - GET /api/v1/reports/summary?days=30 · GET /api/v1/audit
- SCIM 2.0 Users: /scim/v2/Users (Groups not supported)
- SAML 2.0: /sso/saml/{org-slug}/metadata · /acs · /login
Signed webhook connectors send the ast.incident.v1 envelope with this header:
X-AST-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256(secret, t + "." + rawBody)>
// Node.js verification
const [t, v1] = header.split(',').map((p) => p.split('=')[1])
const expected = crypto.createHmac('sha256', WHSEC).update(`${t}.${rawBody}`).digest('hex')
const ok = v1?.length === expected.length && crypto.timingSafeEqual(Buffer.from(v1), Buffer.from(expected)) && Date.now() / 1000 - Number(t) < 300