# SaaS Vendor Trust, Subprocessor & Security Auditor (`trustlens_labs/vendor-trust-subprocessor-auditor`) Actor

Audit any SaaS vendor domain in seconds: discover Trust Centers, SOC 2 / ISO 27001 / HIPAA / GDPR certifications, public subprocessors, live Statuspage incidents, security.txt, HTTP headers, SPF/DMARC/DKIM/CAA/MX posture, weekly diff tracking, and optional Gemini AI deep policy review.

- **URL**: https://apify.com/trustlens_labs/vendor-trust-subprocessor-auditor.md
- **Developed by:** [TrustLens Labs](https://apify.com/trustlens_labs) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 standard vendor trust & security audits

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/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 & Security Auditor (MCP + Diff Monitoring)

Audit any public SaaS vendor domain in **2–4 seconds** with **zero headless browser overhead** and get clean, LLM-ready structured JSON covering **Trust Centers, compliance certifications, subprocessors, live Statuspage incidents, `security.txt`, HTTP security headers, DNS/email authentication, and weekly change tracking (Diff Mode)**.

Built for **AI procurement & security review agents (MCP / Claude / Cursor / LangGraph / CrewAI)**, **n8n / Make / Zapier compliance automations**, and **third-party risk management (TPRM) teams**.

***

### What It Extracts Per Vendor Domain

| Category | Extracted Signals |
|---|---|
| **Trust Center & Governance** | Auto-discovers `trust.<domain>`, `/security`, `/privacy`, `/dpa`, `/subprocessors`, bug bounty / VDP links, and identifies Trust Center platforms (**Vanta, Drata, SafeBase, Conveyor, TrustPage, Whistic, Secureframe, HyperComply**). |
| **Compliance Certifications** | **SOC 2 Type I/II, SOC 3, ISO 27001/27701/27017/27018, HIPAA, GDPR, CCPA/CPRA, PCI-DSS, FedRAMP, CSA STAR, HITRUST, TX-RAMP, Penetration Testing, Bug Bounty** — with negation guards and exact evidence snippets + source URLs. |
| **Public Subprocessors** | Parses structured HTML subprocessor tables (vendor name, purpose, hosting region) while filtering out privacy glossaries and self-references. |
| **Live Operational Status** | Queries **Atlassian Statuspage**, **Instatus**, **BetterStack**, and custom status JSON feeds for live status (`none`, `minor`, `major`, `critical`, `maintenance`) and active incidents. |
| **RFC 9116 `security.txt`** | Parses `/.well-known/security.txt` contacts, PGP encryption links, disclosure policies, and checks whether the record is expired. |
| **HTTP & Transport Security** | Verifies HTTPS enforcement, **HSTS** (`max-age`, `includeSubDomains`, `preload`), **CSP**, `X-Frame-Options`, `X-Content-Type-Options`, `Referrer-Policy`, `Permissions-Policy`, and `COOP`. |
| **DNS & Email Posture (DoH)** | Checks **SPF** (policy + RFC 7208 10-lookup check), **DMARC** (`reject` / `quarantine` / `none`, `sp`, `pct`, `rua`/`ruf`), common **DKIM** selectors, **MX** enterprise mail providers, and **CAA** certificate restrictions. |
| **0–100 Score & Grade (`A+`–`F`)** | Transparent 5-pillar score (`complianceTransparency`, `trustAndGovernance`, `webTransportSecurity`, `emailAndDnsSecurity`, `operationalReliability`) with plain-English `strengths` and `riskFlags`. |
| **Stateful Diff Mode (Weekly Monitoring)** | Persists snapshots in a named Apify Key-Value Store across scheduled runs and emits structured change alerts: `subprocessor_added`, `cert_removed`, `status_degraded`, `dmarc_changed`, `grade_changed`. |
| **Optional Gemini AI Deep Audit** | Runs structured Gemini (`gemini-4-hydrogen` / `gemini-3.5-flash-lite`) policy review to extract **AI training opt-out posture**, **data residency**, **breach notification SLA**, **encryption claims**, and **follow-up security questionnaire items**. |

***

### Pay-Per-Event Pricing & Fairness Guarantee

- **`vendor-audit` (`$0.02` / successful domain):** Charged **only** when a domain is successfully audited. Unreachable, invalid, or blocked targets are **never charged**.
- **`ai-deep-audit` (`$0.05` / domain — optional):** Charged **only** when `enableAiDeepAudit: true` succeeds using platform-managed Gemini inference. Supplying your own `geminiApiKey` (BYOK) incurs **no AI surcharge**.
- **Ultra-low platform compute:** Pure HTTP + DNS-over-HTTPS architecture (no Chromium/Puppeteer) runs inside **128–256 MB RAM**.

***

### Example Input

```json
{
  "domains": ["stripe.com", "linear.app", "supabase.com"],
  "includeSubprocessors": true,
  "includeStatusPage": true,
  "includeDnsSecurity": true,
  "enableDiffMonitoring": true,
  "diffStoreName": "my-vendor-baselines",
  "enableAiDeepAudit": false
}
```

### Example Output (Abbreviated)

```json
{
  "domain": "supabase.com",
  "auditedAt": "2026-11-29T02:25:00.000Z",
  "durationMs": 2327,
  "success": true,
  "score": {
    "overall": 94,
    "grade": "A+",
    "riskLevel": "low",
    "breakdown": {
      "complianceTransparency": 30,
      "trustAndGovernance": 25,
      "webTransportSecurity": 17,
      "emailAndDnsSecurity": 12,
      "operationalReliability": 10
    },
    "strengths": [
      "Publishes SOC 2 Type II attestation",
      "Publishes ISO/IEC 27001 certification",
      "Dedicated Trust Center hosted on vanta",
      "DMARC enforced at p=reject",
      "Public Statuspage live — All Systems Operational"
    ],
    "riskFlags": []
  },
  "trustCenter": {
    "found": true,
    "url": "https://trust.supabase.io/",
    "provider": "vanta",
    "securityPageUrl": "https://supabase.com/security",
    "subprocessorsUrl": "https://supabase.com/legal/customer-resources/subprocessor-list"
  },
  "certificationsSummary": "SOC 2 Type II, ISO/IEC 27001, HIPAA, GDPR, Third-Party Penetration Testing",
  "statusPage": {
    "found": true,
    "provider": "atlassian_statuspage",
    "indicator": "none",
    "description": "All Systems Operational",
    "activeIncidentsCount": 0
  },
  "dnsSecurity": {
    "dmarc": { "present": true, "policy": "reject", "pct": 100, "hasReporting": true },
    "spf": { "present": true, "policy": "softfail", "estimatedLookups": 2, "exceedsLookupLimit": false },
    "mx": { "present": true, "providers": ["Google Workspace"] }
  }
}
```

***

### Using with AI Agents (MCP) & Automations

- **Apify MCP Server (`mcp.apify.com`):** Add this Actor as a tool in Claude Desktop, Cursor, or any MCP client. Prompt: *"Audit linear.app and supabase.com for SOC 2, DMARC enforcement, and live statuspage health."*
- **Weekly Vendor Monitoring (n8n / Make / Apify Schedule):** Schedule weekly runs with `enableDiffMonitoring: true` and trigger a Slack/Email webhook whenever `diff.hasChanges === true`.

***

### Security & Scope

- Inspects **only publicly accessible pages, public JSON status feeds, and public DNS records**.
- Never bypasses login walls, CAPTCHAs, or private portals.
- Built-in SSRF protection rejects raw IP addresses, `localhost`, and private/internal TLDs.

# Actor input Schema

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

List of public SaaS vendor domains or URLs to audit (e.g. \["stripe.com", "linear.app", "supabase.com"]). Raw IPs and internal/private hostnames are automatically rejected for safety.

## `includeSubprocessors` (type: `boolean`):

Discover and parse public subprocessor tables/lists (vendor name, purpose/category, hosting region).

## `includeStatusPage` (type: `boolean`):

Query discovered public Statuspage JSON feeds (Atlassian Statuspage, Instatus, etc.) for current status and recent incidents.

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

Run DNS-over-HTTPS security checks for SPF, DMARC enforcement policy, common DKIM selectors, CAA certificate restrictions, and enterprise mail provider.

## `enableDiffMonitoring` (type: `boolean`):

Compare each domain's audit snapshot against the previous run stored in a named Apify Key-Value Store and emit structured changes (added/removed certifications, subprocessors, status degradation, grade changes). Ideal for scheduled weekly vendor monitoring.

## `diffStoreName` (type: `string`):

Apify Key-Value Store name used to persist baseline snapshots across scheduled runs when Diff Mode is enabled.

## `enableAiDeepAudit` (type: `boolean`):

Run an additional structured Gemini analysis over discovered security/privacy/DPA pages to extract AI-training opt-out clauses, data residency, breach notification SLA, encryption claims, and executive procurement risk notes.

## `geminiApiKey` (type: `string`):

Optional user-supplied Google Gemini API key for AI Deep Audit. If omitted, falls back to Actor environment GEMINI_API_KEY when available.

## `aiModel` (type: `string`):

Gemini model used when AI Deep Audit is enabled.

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

Number of vendor domains audited concurrently (1–10).

## `timeoutMs` (type: `integer`):

Timeout in milliseconds for each individual HTTP/DNS probe (3000–20000).

## Actor input object example

```json
{
  "domains": [
    "stripe.com",
    "linear.app",
    "supabase.com"
  ],
  "includeSubprocessors": true,
  "includeStatusPage": true,
  "includeDnsSecurity": true,
  "enableDiffMonitoring": false,
  "diffStoreName": "trustlens-vendor-baselines",
  "enableAiDeepAudit": false,
  "aiModel": "gemini-4-hydrogen",
  "concurrency": 4,
  "timeoutMs": 8000
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# 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",
        "supabase.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("trustlens_labs/vendor-trust-subprocessor-auditor").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",
        "supabase.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("trustlens_labs/vendor-trust-subprocessor-auditor").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",
    "supabase.com"
  ]
}' |
apify call trustlens_labs/vendor-trust-subprocessor-auditor --silent --output-dataset

```

## MCP server setup

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

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/wDk2rYeV9kbEahZxd/builds/7SzMAdj2QbINybCGv/openapi.json
