# Domain Security, SPF/DMARC, TLS, RDAP & WHOIS | DomainTrust (`liebreich-software/domaintrust-b2b-security-rdap-mcp`) Actor

Bulk domain security, vendor risk & email deliverability checker: authoritative RDAP registration age, DNS (MX, SPF, DMARC, CAA), live TLS/SSL certificate expiry, HTTP security headers, security.txt/Trust Center & 75+ B2B tech-stack signals ($0.05/domain).

- **URL**: https://apify.com/liebreich-software/domaintrust-b2b-security-rdap-mcp.md
- **Developed by:** [Seyithan Akay](https://apify.com/liebreich-software) (community)
- **Categories:** Developer tools, Lead generation, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$50.00 / 1,000 domain security & intelligence 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

## DomainTrust — B2B Domain Security, RDAP, Email Auth, TLS & Tech Stack

**Built by [Liebreich Software](https://liebreichsoftware.com)**

Stop stitching together 5 brittle WHOIS, MX, SSL, and Wappalyzer scripts just to vet a SaaS vendor or qualify a B2B sales prospect.

**DomainTrust** runs a **100% deterministic, zero-proxy, real-time B2B Domain Intelligence Audit** in seconds — returning structured JSON ready for **Vendor Risk (TPRM) workflows, Outbound Email Deliverability checks, CRM enrichment (Clay / HubSpot / n8n), and AI Agents via Apify MCP**.

***

### What Every Domain Audit Delivers

1. **Authoritative RDAP Registration Intelligence (IANA Bootstrap + `rdap.org`):**
   - Registrar & IANA ID, creation date, expiration date, **exact domain age in days**, EPP lock flags (`clientTransferProhibited`), nameservers, and DNSSEC status.
   - Automatic **IDN/Punycode normalization** (`münchen.de` → `xn--mnchen-3ya.de`) and subdomain-to-apex handling.
2. **Email Deliverability & Spoofing Audit (DNS-over-HTTPS):**
   - **MX Provider Detection:** Google Workspace, Microsoft 365, Proton Mail, ImprovMX, Proofpoint, Mimecast, Cloudflare Email Routing, Amazon SES, Hetzner, IONOS, and Null MX (`0 .`).
   - **Deep SPF Analyzer:** Policy strength (`-all`, `~all`, `?all`, `+all`), duplicate SPF PermError detection, deprecated `ptr` warning, and **recursive RFC 7208 10-DNS-lookup limit counter**.
   - **DMARC & CAA Audit:** `_dmarc` policy (`reject` / `quarantine` / `none`), `pct=`, `rua=` reporting addresses, plus CAA certificate issuance restrictions.
   - **Verified SaaS Tool Mining:** Extracts verified enterprise tools directly from DNS TXT records (Atlassian, Microsoft 365, Google Workspace, Stripe, Slack, OpenAI, Docker, DocuSign, HubSpot, and more).
3. **Live TLS Certificate Inspection (Port 443):**
   - Issuer & organization, subject CN, SAN count, `notBefore`/`notAfter`, **days until expiry**, TLS 1.3 vs 1.2, key type/bits, and full certificate metadata even for expired or self-signed certificates.
4. **HTTP Security Headers, `security.txt`, Trust Center & 75+ Tech-Stack Signals:**
   - HSTS (`max-age`, `includeSubDomains`, `preload`), CSP, `X-Frame-Options`, `X-Content-Type-Options`, `Referrer-Policy`, `Permissions-Policy`.
   - RFC 9116 `/.well-known/security.txt` & **B2B Trust Center / Compliance Detection** (`Vanta`, `Drata`, `SafeBase`, `OneTrust`, `SOC 2`, `ISO 27001`, `GDPR`, `HIPAA`, `PCI DSS`).
   - **75+ deterministic tech-stack fingerprints** (Cloudflare, AWS CloudFront, Vercel, Netlify, Stripe, HubSpot, Intercom, Zendesk, Next.js, React, WordPress, Shopify, Sentry, PostHog, Plausible, and more).
5. **0–100 Scorecard (`A+` to `F`) + CISO & Sales Remediation Findings:**
   - **Overall Security Score**, separate **Vendor Risk Grade** (for TPRM / CISOs), and **Email Deliverability Grade** (for Sales / RevOps), plus prioritized findings (`MISSING_DMARC`, `SPF_LOOKUP_LIMIT_EXCEEDED`, `EXPIRING_CERT`, `MISSING_HSTS`, etc.) with exact remediation steps.
6. **Hardened SSRF Protection & AI Agent / MCP Ready:**
   - Blocks loopback, RFC1918 private IPs, cloud metadata endpoints, DNS-rebinding (validated-IP socket pinning with preserved Host header & TLS SNI), and unsafe redirects. Callable through the official [Apify MCP Server](https://mcp.apify.com) as a batch actor (Claude, Cursor, Windsurf, n8n).

***

### Example Input

```json
{
  "domains": [
    "stripe.com",
    "liebreichsoftware.com",
    "vercel.com"
  ],
  "includeRdap": true,
  "includeDns": true,
  "includeTls": true,
  "includeHttp": true,
  "maxConcurrency": 5,
  "timeoutSeconds": 6
}
```

***

### Example Output Record (Summary Fields)

```json
{
  "domain": "stripe.com",
  "status": "ok",
  "securityScore": 84,
  "grade": "B+",
  "vendorRiskScore": 80,
  "vendorRiskGrade": "B+",
  "emailDeliverabilityScore": 93,
  "emailDeliverabilityGrade": "A",
  "tlsIssuer": "DigiCert, Inc.",
  "tlsVersion": "TLSv1.3",
  "tlsDaysUntilExpiry": 163,
  "hasHsts": true,
  "hasCsp": true,
  "hasSecurityTxt": true,
  "verifiedSaasTools": [
    "Microsoft 365 / Entra ID",
    "Atlassian (Jira / Confluence)",
    "Docker",
    "Google Workspace / Search Console",
    "OpenAI",
    "Stripe"
  ],
  "summary": "stripe.com: Overall B+ (84/100) | Vendor Risk B+ (80/100) | Email Deliverability A (93/100) | 0 critical/high findings, 4 tech signals."
}
```

***

### Pricing & Example 1-Click Run Costs (Pay-Per-Event)

| Event | Price | Example cost (1-click default run) |
|---|---|---|
| `domain-audited` | $0.05 per successfully audited domain (`status` = `ok` or `partial`) | `domains=["stripe.com"]` → **$0.05** |

**Zero-charge guarantees:** `0` events charged on empty runs, invalid/blocked domains, and `unreachable` results (NXDOMAIN / no public DNS delegation) — those records are still pushed to the dataset for transparency.

***

### Support & Security

- **Vendor:** [Liebreich Software](https://liebreichsoftware.com)
- **Support:** <https://liebreichsoftware.com/support.html>
- **Security & Privacy:** <https://liebreichsoftware.com/security.html>

# Actor input Schema

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

List of domains or URLs to audit (e.g. stripe.com, liebreichsoftware.com, https://vercel.com). IDN/punycode is normalized automatically and duplicates are audited only once.

## `includeRdap` (type: `boolean`):

Query authoritative RDAP servers via IANA bootstrap / rdap.org for registrar, domain age, expiry, status flags, and DNSSEC.

## `includeDns` (type: `boolean`):

Audit A/AAAA, NS, MX providers, SPF policy & 10-lookup limit, DMARC enforcement, CAA, and SaaS TXT verifications via Cloudflare DoH.

## `includeTls` (type: `boolean`):

Connect directly to port 443 (with strict public-IP SSRF guard, DNS-rebinding IP pinning & 6s timeout) to inspect issuer, SAN count, expiry, and TLS version.

## `includeHttp` (type: `boolean`):

Inspect security headers (HSTS, CSP, X-Frame-Options, etc.), security.txt, compliance Trust Center links, and 65+ B2B tech-stack fingerprints.

## `maxConcurrency` (type: `integer`):

Number of domains to audit concurrently (1-10).

## `timeoutSeconds` (type: `number`):

Network timeout per probe in seconds (2.0 to 15.0).

## Actor input object example

```json
{
  "domains": [
    "stripe.com"
  ],
  "includeRdap": true,
  "includeDns": true,
  "includeTls": true,
  "includeHttp": true,
  "maxConcurrency": 5,
  "timeoutSeconds": 6
}
```

# Actor output Schema

## `audits` (type: `string`):

Dataset containing 0-100 scorecards, vendor risk & email deliverability grades, findings, RDAP, DNS, TLS, and HTTP details per audited 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("liebreich-software/domaintrust-b2b-security-rdap-mcp").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"] }

# Run the Actor and wait for it to finish
run = client.actor("liebreich-software/domaintrust-b2b-security-rdap-mcp").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"
  ]
}' |
apify call liebreich-software/domaintrust-b2b-security-rdap-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,liebreich-software/domaintrust-b2b-security-rdap-mcp"
        }
    }
}
```

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/Juy7IRQIEBxOpujbH/builds/NrNHJiaDC84ocr0Jv/openapi.json
