# SaaS Vendor Trust, Subprocessor & SLA Dossier (`runglab/saas-vendor-trust-dossier`) Actor

Zero-proxy SOC 2 & TPRM SaaS vendor auditor. Extracts Trust Center certifications, AI subprocessors & data-flow risk, 90-day Statuspage SLA metrics, DoH DMARC/SPF/CAA posture, security.txt, 0-100 risk grades & stateful diff alerts.

- **URL**: https://apify.com/runglab/saas-vendor-trust-dossier.md
- **Developed by:** [RungLab](https://apify.com/runglab) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 vendor dossiers

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SaaS Vendor Trust, Subprocessor & SLA Dossier

> **Automated Third-Party Risk Management (TPRM), SOC 2 / ISO 27001 Vendor Security Review, AI Subprocessor Data-Flow Auditing & 90-Day Statuspage SLA Intelligence — built for Security Teams, Procurement Workflows, and MCP AI Agents.**

Audit any SaaS vendor domain in **seconds** with **zero headless browsers** and **zero residential proxies**. Turn scattered Trust Centers, legal subprocessor lists, Statuspage JSON APIs, DNS records, and `security.txt` files into a single, structured, audit-ready TPRM dossier with a deterministic **0–100 Risk Score (Grade A–F)** and **stateful change alerts**.

***

### Why Use This Actor?

Every SOC 2, ISO 27001, and enterprise security team evaluates **50–300 SaaS vendors** per year — spending `$50–$150` of manual analyst time per vendor checking Trust Centers, subprocessor lists, outage histories, and email authentication records.

This Actor automates the entire public due-diligence checklist in one fast, low-memory (`256 MB`) API / MCP call:

- **Trust Center & Compliance Detection**: Probes `trust.<domain>`, `security.<domain>`, `/security`, `/trust`, `/subprocessors`, `/legal/subprocessors`, `/legal/service-providers`, `/dpa`, `/legal/dpa`, and `/privacy` (plus 2nd-hop link discovery). Automatically identifies **Vanta**, **Drata**, **SafeBase**, **Secureframe**, **Conveyor**, and **Custom** Trust Centers, and extracts **SOC 2 Type I/II, ISO 27001, ISO 27701, ISO 42001, HIPAA, GDPR, PCI DSS, FedRAMP, CSA STAR, and CCPA** badges.
- **AI Subprocessor & LLM Data-Flow Risk Auditing**: Extracts structured subprocessor entities from HTML tables and lists (automatically excluding corporate affiliates and non-vendor tables) and classifies **AI Subprocessors** (`OpenAI`, `Anthropic`, `Google Vertex AI / Gemini`, `AWS Bedrock`, `Azure OpenAI`, `Cohere`, `Mistral AI`, `Groq`, `Fireworks AI`, `Together AI`, `Perplexity`, `ElevenLabs`, `Deepgram`, `Pinecone`, `Weaviate`, `Qdrant`, and more) with a transparent `aiDataFlowRisk` rating (`none` / `low` / `medium` / `high` / `unknown`).
- **90-Day Statuspage SLA Intelligence**: Probes `status.<domain>`, `statuspage.<domain>`, cross-host status redirects (e.g., `status.linear.app` -> `linearstatus.com`), and status links discovered on security pages across **Atlassian Statuspage / incident.io v2 JSON API**, **Instatus**, **BetterStack**, and custom JSON status APIs. Computes **90-day incident count**, **major/critical outages**, **MTTR (minutes)**, current operational status, and component health.
- **Cloudflare DoH DNS Security & RFC 9116 `security.txt`**: Queries Cloudflare DNS-over-HTTPS (`application/dns-json`) for **SPF** validity & hardfail/softfail posture, **DMARC** enforcement (`reject` / `quarantine` / `none` / `missing`), **CAA** certificate authority restrictions, and **MX** mail provider inference (Google Workspace, Microsoft 365, Proton Mail, Proofpoint, etc.), plus validates `/.well-known/security.txt` contacts, PGP signing, and expiration.
- **Deterministic Risk Scoring & Stateful Vendor Diffing**: Assigns a transparent **0–100 score (`A`–`F`)** with itemized deduction codes. Pass `previousSnapshot` (or configure an Apify named Key-Value Store via `snapshotStoreName`) to automatically alert whenever a vendor **silently adds a new AI subprocessor**, **drops a certification**, **downgrades DMARC**, or suffers **new major outages**.
- **MCP & AI Agent Ready (`compactMode`)**: Flip `"compactMode": true` for a token-efficient summary designed for Model Context Protocol (MCP) procurement and security agents.

***

### Pay-Per-Event (PPE) Pricing

Designed for ultra-high efficiency (`256 MB` RAM, pure async Python `httpx`, ~3–5 seconds per vendor):

| Event Name | Recommended Price | Trigger |
| :--- | :--- | :--- |
| `actor-start` | **$0.01** | Charged once per Actor run on startup |
| `vendor-dossier` | **$0.05** | Charged once per successfully audited vendor domain (`$50 / 1,000 vendors`) |

***

### Input Configuration

Hit **Start** immediately with zero configuration — the default input audits `stripe.com` and `linear.app`.

```json
{
  "domains": [
    "stripe.com",
    "linear.app"
  ],
  "includeStatuspage": true,
  "includeDnsSecurity": true,
  "includeSecurityTxt": true,
  "previousSnapshot": null,
  "snapshotStoreName": "",
  "snapshotKey": "VENDOR_TRUST_SNAPSHOT",
  "compactMode": false,
  "concurrency": 5,
  "timeoutSeconds": 12
}
```

#### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `domains` | `string[]` | `["stripe.com", "linear.app"]` | List of SaaS vendor domains (full URLs are normalized automatically). |
| `includeStatuspage` | `boolean` | `true` | Audit public Statuspage APIs for 90-day incidents, major outages, and MTTR. |
| `includeDnsSecurity` | `boolean` | `true` | Audit SPF, DMARC, CAA, and MX via Cloudflare DoH. |
| `includeSecurityTxt` | `boolean` | `true` | Fetch and parse RFC 9116 `/.well-known/security.txt` and `/security.txt`. |
| `previousSnapshot` | `object \| null` | `null` | Optional prior snapshot (or single dossier JSON) for inline diffing. |
| `snapshotStoreName` | `string` | `""` | Optional named Apify Key-Value Store for automatic cross-run stateful diffing. |
| `snapshotKey` | `string` | `"VENDOR_TRUST_SNAPSHOT"` | Record key stored inside `snapshotStoreName`. |
| `compactMode` | `boolean` | `false` | Return concise, token-efficient output optimized for MCP / AI agents. |
| `concurrency` | `integer` | `5` | Number of domains audited concurrently (`1–20`). |
| `timeoutSeconds` | `integer` | `12` | Per-request HTTP timeout in seconds (`3–60`). |

***

### Sample Output (Compact / Summary Fields)

```json
{
  "domain": "linear.app",
  "auditedAt": "2026-11-25T10:15:00Z",
  "riskScore": 91,
  "riskGrade": "A",
  "trustCenterPlatform": "Vanta",
  "trustCenterUrl": "https://trust.linear.app",
  "subprocessorsUrl": "https://linear.app/dpa",
  "certifications": ["SOC 2 Type II", "ISO 27001", "HIPAA", "GDPR"],
  "certificationsCount": 4,
  "subprocessorCount": 24,
  "aiSubprocessorCount": 2,
  "aiSubprocessorNames": ["Google Vertex AI / Gemini", "OpenAI"],
  "aiDataFlowRisk": "medium",
  "statuspageUrl": "https://linearstatus.com",
  "statusIndicator": "none",
  "incidents90d": 4,
  "majorOutages90d": 0,
  "mttrMinutes": 68.5,
  "dmarcPolicy": "reject",
  "spfValid": true,
  "caaConfigured": true,
  "mailProvider": "Google Workspace",
  "hasSecurityTxt": true,
  "deltaAlertCount": 0,
  "compactMode": false
}
```

In full mode (`compactMode: false`), each item also includes nested `trustCenter` (all subprocessors with purpose, location, and AI classification metadata), `statuspage` (components & recent 90-day incidents), `dnsSecurity` (full SPF/DMARC/CAA/MX records), `securityTxt`, `riskAssessment` (all transparent point deductions), and `delta` (change details & alerts).

***

### SDK & MCP Integration Examples

#### Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_API_TOKEN>")

run = client.actor("<YOUR_USERNAME>/saas-vendor-trust-dossier").call(
    run_input={
        "domains": ["stripe.com", "linear.app", "notion.so"],
        "snapshotStoreName": "tprm-quarterly-snapshots",
        "compactMode": False,
    }
)

for dossier in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(
        f"{dossier['domain']} | Grade {dossier['riskGrade']} ({dossier['riskScore']}/100) "
        f"| AI Risk: {dossier['aiDataFlowRisk']} ({dossier['aiSubprocessorNames']}) "
        f"| Diff Alerts: {dossier['deltaAlertCount']}"
    )
```

#### Node.js / TypeScript (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('<YOUR_USERNAME>/saas-vendor-trust-dossier').call({
    domains: ['stripe.com', 'linear.app'],
    includeStatuspage: true,
    includeDnsSecurity: true,
    compactMode: false,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.table(
    items.map(({ domain, riskGrade, riskScore, aiDataFlowRisk, dmarcPolicy, incidents90d }) => ({
        domain,
        riskGrade,
        riskScore,
        aiDataFlowRisk,
        dmarcPolicy,
        incidents90d,
    }))
);
```

#### MCP Server Tool Snippet (Claude Desktop / Cursor / Procurement AI Agents)

Connect this Actor directly to any MCP-compatible AI agent using the official Apify MCP Server (`https://mcp.apify.com`) with `compactMode: true` for low-token vendor triage:

```json
{
  "mcpServers": {
    "apify-vendor-trust-dossier": {
      "url": "https://mcp.apify.com/?actors=<YOUR_USERNAME>/saas-vendor-trust-dossier",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

Example MCP tool invocation payload from an AI Security / Procurement Agent:

```json
{
  "domains": ["linear.app"],
  "compactMode": true,
  "includeStatuspage": true,
  "includeDnsSecurity": true,
  "includeSecurityTxt": true
}
```

***

### Deterministic Risk Scoring Rubric

Every vendor starts at **100 points** (`A: 90–100`, `B: 80–89`, `C: 70–79`, `D: 60–69`, `F: <60`):

| Category | Condition | Deduction |
| :--- | :--- | :--- |
| Trust Surface | No public Trust Center or `/security` page discovered | `-15` |
| Compliance | No core certifications (`SOC 2`, `ISO 27001`, `PCI DSS`, `HIPAA`, `FedRAMP`) detected | `-15` |
| Subprocessors | No machine-readable public subprocessor list discovered | `-10` |
| AI Governance | `aiDataFlowRisk` is `high` (`-8`) or `medium` (`-4`) | `-4` to `-8` |
| DNS / DMARC | Missing DMARC (`-15`), `p=none` (`-8`), or `p=quarantine` (`-2`) | `-2` to `-15` |
| DNS / SPF & CAA | Missing/invalid SPF (`-10`), `~all` softfail (`-2`), missing CAA (`-5`) | `-2` to `-15` |
| Disclosure | Missing RFC 9116 `security.txt` (`-7`) or expired (`-4`) | `-4` to `-7` |
| 90-Day SLA | Missing statuspage (`-5`), active outage (`-4`/`-12`), major outages (`-5` each, max `-15`), `>=10` incidents (`-5`) | `-4` to `-25` |

***

### Local Development & Deployment

```bash
## 1. Run unit tests
pytest -v

## 2. Run a live standalone CLI smoke test
python -m src --cli --domains stripe.com linear.app --out sample_output.json

## 3. Deploy to Apify
apify login
apify push
```

# Actor input Schema

## `domains` (type: `array`):

List of SaaS vendor root domains to audit (e.g., stripe.com, linear.app). Schemes and paths are stripped automatically.

## `includeStatuspage` (type: `boolean`):

Probe public Statuspage.io, incident.io, Instatus, BetterStack, and custom JSON status endpoints for 90-day incident count, major outages, MTTR, and component status.

## `includeDnsSecurity` (type: `boolean`):

Query Cloudflare DNS-over-HTTPS for SPF, DMARC policy enforcement, CAA certificate controls, and MX email provider inference.

## `includeSecurityTxt` (type: `boolean`):

Fetch and validate /.well-known/security.txt (or /security.txt) disclosure contacts, PGP policy, and expiration date.

## `previousSnapshot` (type: `object`):

Optional prior dossier snapshot (keyed by domain, or single dossier object) to detect newly added subprocessors, newly added AI subprocessors, DMARC downgrades, and new major outages.

## `snapshotStoreName` (type: `string`):

Optional named Apify Key-Value Store for persistent cross-run stateful diffing (e.g., 'tprm-vendor-snapshots'). When set, previous state is loaded from and updated in this store automatically.

## `snapshotKey` (type: `string`):

Record key used inside the named Key-Value Store (defaults to 'VENDOR_TRUST_SNAPSHOT').

## `compactMode` (type: `boolean`):

Return a concise, token-efficient summary payload optimized for Model Context Protocol (MCP) tools and AI procurement agents.

## `concurrency` (type: `integer`):

Maximum number of vendor domains audited in parallel.

## `timeoutSeconds` (type: `integer`):

Per-request HTTP timeout in seconds for Trust Center, Statuspage, DoH, and security.txt probes.

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "linear.app"
  ],
  "includeStatuspage": true,
  "includeDnsSecurity": true,
  "includeSecurityTxt": true,
  "snapshotStoreName": "",
  "snapshotKey": "VENDOR_TRUST_SNAPSHOT",
  "compactMode": false,
  "concurrency": 5,
  "timeoutSeconds": 12
}
```

# Actor output Schema

## `overview` (type: `string`):

High-level vendor TPRM scorecard with risk grade, score, Trust Center platform, certifications, AI subprocessor count, SLA status, and DMARC policy.

## `subprocessors` (type: `string`):

Vendor subprocessor counts, detected AI subprocessors, and AI data flow risk assessments.

## `slaAndDns` (type: `string`):

90-day Statuspage outages, MTTR, DMARC/SPF/CAA posture, and RFC 9116 security.txt validation.

## `allDossiers` (type: `string`):

Full structured JSON items for every audited vendor domain.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "domains": [
        "stripe.com",
        "linear.app"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("runglab/saas-vendor-trust-dossier").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "domains": [
        "stripe.com",
        "linear.app",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("runglab/saas-vendor-trust-dossier").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domains": [
    "stripe.com",
    "linear.app"
  ]
}' |
apify call runglab/saas-vendor-trust-dossier --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,runglab/saas-vendor-trust-dossier"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/qisxbkqVpO1EigO4f/builds/IAKFVIcWLDXsYF7jM/openapi.json
