# NIS2 & DORA Supplier KYB Risk Audit (VIES, LEI) | VendorPulse (`liebreich-software/vendorpulse-nis2-dora-supplier-kyb-audit`) Actor

Automated EU NIS2 (§ 30 BSIG) & DORA supplier KYB risk auditor & checker: DNS/SPF/DMARC/TLS cyber hygiene, German/DACH Impressum extraction, official EU VIES VAT validator, GLEIF LEI lookup & SHA-256 sealed APPROVE/HOLD dossier ($0.15/supplier).

- **URL**: https://apify.com/liebreich-software/vendorpulse-nis2-dora-supplier-kyb-audit.md
- **Developed by:** [Seyithan Akay](https://apify.com/liebreich-software) (community)
- **Categories:** Lead generation, Business, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$150.00 / 1,000 supplier dossier generateds

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

## VendorPulse — Automated NIS2, EU DORA & § 6a UStG Supplier KYB & Cyber Risk Dossier

**VendorPulse by Liebreich Software** generates a complete, audit-defensible, **SHA-256-sealed Supplier KYB & Cyber Risk Dossier** from any corporate domain (or domain + VAT/LEI list) in a single pass — built for **NIS2 (§ 30 BSIG)** supply-chain security, **EU DORA Register of Information**, **ISO 27001 A.5.19** supplier relationships, and **§ 6a UStG** B2B VAT verification.

Zero API keys required. Zero paid third-party subscriptions. Zero browser overhead.

### Four Coupled Audit Layers in One Run

| Layer | Engine Modules | Evidence Collected |
|---|---|---|
| **1. Cyber & Email-Spoofing Hygiene** | `dns_probe.py`, `tls_probe.py`, `http_probe.py` | Cloudflare DoH (`A`/`AAAA`/`NS`/`MX`/`CAA`), `SPF` + `_dmarc` spoofing posture, live TLS-443 handshake (validity, days remaining, TLS version), HTTP security headers (`HSTS`, `CSP`, `X-Frame-Options`), `/.well-known/security.txt`, Trust Center detection |
| **2. Legal Entity & Impressum KYB** | `discovery.py`, `fetcher.py`, `extractor.py` | SSRF-hardened, IP-pinned legal-notice / Impressum crawl: legal company name, legal form (`GmbH`, `AG`, `UG`, `Ltd`, `SAS`, `B.V.`), managing directors / CEO, commercial register court & number (`HRB`/`HRA`/`FN`/`CHE`), VAT ID, postal address, D\&B / LEI hints |
| **3. Sovereign EU Authority Verification** | `vies.py`, `gleif.py` | Live **EU VIES REST API** (`checkVatNumber` consultation timestamp, registered name/address, graceful `MS_UNAVAILABLE` partial handling) + **Official GLEIF LEI API v1** (`ISSUED`/`LAPSED` status, legal jurisdiction, headquarters address for DORA RoI) |
| **4. Deterministic Onboarding Decision** | `decisionEngine.py`, `reports.py`, `csv_export.py` | Transparent `cyberHygieneScore` (0–100), `kybIdentityScore` (0–100), `overallRiskScore` (0–100), deterministic verdict (`APPROVE` / `CONDITIONAL_REVIEW` / `HIGH_RISK_HOLD`), `nis2SupplyChainReady`, `doraRoiReady`, `criticalGaps`, tailored `recommendedContractClauses`, and `dossierSha256` seal |

### Pricing (Pay-Per-Event — Strictly Budget-Safe)

| Event | Price | When Charged |
|---|---|---|
| `vendor-dossier-generated` | **$0.15 / supplier dossier** ($150 / 1,000 suppliers) | Charged **only** when `status` is `ok` or `partial` (at least one audit layer returned authoritative cyber or KYB intelligence) |

- **Zero-Charge Guarantee ($0.00):** Non-existent domains (`unreachable` / authoritative `NXDOMAIN`), `ssrf_blocked`, `invalid_input`, and `error` records are written to the dataset for full audit transparency at **$0.00**.
- **Pre-Push Budget Protection:** `charge_and_push_item()` charges via deterministic `idempotency_key` **before** `Actor.push_data()` and halts cleanly on `event_charge_limit_reached`, so runs never exceed your Apify `maxTotalChargeUsd` ceiling.
- **1-Click Tryout Cost:** Default prefill (`["liebreichsoftware.com"]`) costs exactly **$0.15**.

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `vendors` | `string[]` | `["liebreichsoftware.com"]` | Supplier domains, URLs, or emails. Optional inline hints: `"stripe.com\|VAT:IE3206488LH"` or `"deutsche-boerse.com\|LEI:529900G3SW56SHYNPR95"`. Automatically normalized and deduplicated per registrable domain. |
| `verifyEuVatVies` | `boolean` | `true` | Verify extracted or hinted EU VAT IDs live against the official European Commission VIES API. |
| `lookupGleifLei` | `boolean` | `true` | Resolve 20-character LEI codes via the official GLEIF v1 API for EU DORA Register of Information readiness. |
| `maxConcurrency` | `integer` | `3` | Concurrent supplier dossiers (`1–6`). |
| `timeoutSeconds` | `number` | `8.0` | Per-network-probe timeout (`3.0–20.0` seconds). |
| `exportAuditArtifacts` | `boolean` | `true` | Writes OWASP-safe `NIS2_SUPPLIER_DOSSIERS_CSV` (+ SHA-256) and printable `SUPPLIER_AUDIT_REPORT_MD` / `SUPPLIER_AUDIT_REPORT_HTML` certificates to the Apify Key-Value Store. |

### Key-Value Store Audit Artifacts

When `exportAuditArtifacts: true` (default), every run produces auditor-ready compliance evidence in the run's Key-Value Store:

1. `NIS2_SUPPLIER_DOSSIERS_CSV` — OWASP formula-injection-sanitized CSV table + `NIS2_SUPPLIER_DOSSIERS_CSV_SHA256`
2. `SUPPLIER_AUDIT_REPORT_MD` — Markdown executive compliance summary
3. `SUPPLIER_AUDIT_REPORT_HTML` — Self-contained printable HTML certificate ready for PDF archiving in Jira, Confluence, Personio, or GRC tools

### Automation & Integration Use Cases

- **NIS2 (§ 30 BSIG) & ISO 27001 A.5.19 Annual Supplier Re-Certification:** Batch-audit 50–500 ICT & SaaS vendors quarterly via n8n, Make, Zapier, or Python API and archive the SHA-256-sealed CSV + HTML certificates directly in Jira (`RiskVault ISO`) or Confluence.
- **EU DORA Register of Information Onboarding:** Verify legal entity names, VAT numbers, GLEIF LEI status, and TLS/DMARC posture before signing new ICT third-party contracts.
- **Procurement Gatekeeping:** Automatically flag suppliers without DMARC, valid TLS, or verifiable Impressum/VAT identity as `CONDITIONAL_REVIEW` or `HIGH_RISK_HOLD` with ready-to-paste contract remediation clauses.

# Actor input Schema

## `vendors` (type: `array`):

Supplier domains to audit into full NIS2/DORA KYB dossiers. Accepts domains or URLs (sap.com, https://acme.de/impressum, security@firm.io) and optional hints: 'stripe.com|VAT:IE3206488LH' pre-verifies an EU VAT ID via VIES, 'acme.de|LEI:...' pins a GLEIF LEI. Identical domains are deduplicated before probing.

## `verifyEuVatVies` (type: `boolean`):

Live-verify extracted or prefetched EU VAT IDs against the official EU VIES REST API (isValid, legal name, address, consultation timestamp). MS_UNAVAILABLE degrades to a partial status, never a crash.

## `lookupGleifLei` (type: `boolean`):

Resolve the official 20-char GLEIF LEI (ISSUED/LAPSED, registeredAs, headquartersAddress) — the DORA Register of Information anchor — via the key-less Official LEI API v1.

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

Number of vendor dossiers processed concurrently (1-6). Keep low to stay gentle on VIES/GLEIF upstreams.

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

Network timeout per probe in seconds (3.0 to 20.0).

## `exportAuditArtifacts` (type: `boolean`):

Write OWASP formula-injection-safe NIS2_SUPPLIER_DOSSIERS_CSV (+ SHA-256) and printable SUPPLIER_AUDIT_REPORT_MD / SUPPLIER_AUDIT_REPORT_HTML certificates to the Apify Key-Value Store.

## Actor input object example

```json
{
  "vendors": [
    "liebreichsoftware.com"
  ],
  "verifyEuVatVies": true,
  "lookupGleifLei": true,
  "maxConcurrency": 3,
  "timeoutSeconds": 8,
  "exportAuditArtifacts": true
}
```

# Actor output Schema

## `dossiers` (type: `string`):

Dataset containing one sealed supplier risk dossier per vendor: APPROVE / CONDITIONAL_REVIEW / HIGH_RISK_HOLD decision, 0-100 cyber & KYB scores, NIS2/DORA readiness flags, critical gaps, contract clauses and dossierSha256.

# 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 = {
    "vendors": [
        "liebreichsoftware.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("liebreich-software/vendorpulse-nis2-dora-supplier-kyb-audit").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 = { "vendors": ["liebreichsoftware.com"] }

# Run the Actor and wait for it to finish
run = client.actor("liebreich-software/vendorpulse-nis2-dora-supplier-kyb-audit").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 '{
  "vendors": [
    "liebreichsoftware.com"
  ]
}' |
apify call liebreich-software/vendorpulse-nis2-dora-supplier-kyb-audit --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,liebreich-software/vendorpulse-nis2-dora-supplier-kyb-audit"
        }
    }
}
```

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/L5BdAs2uBXRGEkodZ/builds/cSeeEuhEBDvvDME4E/openapi.json
