# EntityStack: Corporate LEI, Tech Stack & SEC Intelligence (`syncforgecloud/entitystack-lei-tech-intel`) Actor

Resolves verified ISO-17442 LEI corporate hierarchies (GLEIF), 0-100 Email & DNS Security Posture scores, categorized enterprise infrastructure stacks, and 2025-2026 SEC EDGAR triggers with native MCP Server support.

- **URL**: https://apify.com/syncforgecloud/entitystack-lei-tech-intel.md
- **Developed by:** [Arjun Ghose](https://apify.com/syncforgecloud) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $90.00 / 1,000 domain enricheds

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

## EntityStack v2.0: Corporate LEI, Security Posture, Enterprise Stack & SEC Intelligence

**EntityStack (`entitystack-lei-tech-intel`)** resolves verified ISO-17442 legal entity hierarchies, 0-100 email and DNS security posture scores, 5-category enterprise software stacks, and 2025-2026 SEC EDGAR strategic triggers from company domains for **up to $0.14 per account** ($0.09 for stack and SEC enrichment, plus $0.05 when a GLEIF LEI parent tree resolves, plus $0.005 per Actor run), with zero third-party API keys required.

Built for **B2B RevOps**, **KYB/AML onboarding**, **cyber-insurance underwriting**, and **AI agents via Model Context Protocol (MCP)**.

***

### What EntityStack v2.0 Solves

Standard firmographic scrapers guess company names from marketing copy, miss parent-subsidiary structures, and cannot see back-office platforms behind login walls. EntityStack queries authoritative registries and passive infrastructure records in one async pass:

1. **GLEIF Legal Entity & UBO Hierarchy (`ISO-17442`)**
   - Resolves 20-character Legal Entity Identifiers (`LEIs`) directly from the Global Legal Entity Identifier Foundation (`api.gleif.org`).
   - Validates **ISO/IEC 7064 Modulo 97-10** check digits mathematically on every record.
   - Walks `direct-parent` and `ultimate-parent` links to return the consolidated headquarters entity alongside operating subsidiaries, registered addresses, LOU issuers, and active registration status.

2. **0-100 Email & Domain Security Posture Score**
   - Grades every domain from `0` to `100` (`A+` through `F`) using passive DNS-over-HTTPS (`DMARC` enforcement `p=reject/quarantine/none` + `rua` reporting, `SPF` `-all/~all` strictness and RFC-7208 lookup limits, `DNSSEC` cryptographic signing, `CAA` certificate issuance restrictions, and enterprise email security gateways).
   - Gives cyber-insurance underwriters, security SDRs, and vendor-risk teams an immediate, reproducible risk signal at zero extra API cost.

3. **5-Bucket Enterprise Technographic Stack (DNS + Certificate Transparency)**
   - Inspects `MX`, `SPF` (including nested `include:` hops), `_dmarc`, `NS`, `CAA`, and verification `TXT` tokens plus **RFC-6962 Certificate Transparency** (`crt.sh` + `CertSpotter`) and active gateway `CNAME` probes (`sso`, `okta`, `edi`, `as2`, `sap`, `fiori`, `snowflake`, `netsuite`, `jira`, `servicenow`).
   - Groups 40+ enterprise platforms cleanly into five executive categories:
     - **ERP & Finance:** SAP, SAP Cloud, Oracle NetSuite, Workday, Stripe, DocuSign
     - **CRM & GTM:** Salesforce, HubSpot, Adobe Marketo, Klaviyo, Intercom, Zendesk, Freshworks, Shopify Commerce, Twilio SendGrid, Mailgun, Postmark
     - **Cloud & Data:** AWS / Amazon SES, Snowflake, Cloudflare, Fastly, Akamai
     - **Identity & Security:** Okta, Microsoft Entra, Proofpoint, Mimecast, Valimail, Red Sift OnDMARC, dmarcian, Fortra Agari, Cisco Secure Email, Wiz, OneTrust, GitHub Enterprise
     - **Productivity:** Microsoft 365, Google Workspace, Slack, Zoom, Miro, Atlassian Cloud, ServiceNow, OpenAI Enterprise, Anthropic Enterprise

4. **SEC EDGAR 2025-2026 Strategic Trigger Scanner (`10-K` / `10-Q` / `20-F` / `40-F`)**
   - Maps legal entities to official SEC `CIK` numbers and scans full-text 2025-2026 filings on `efts.sec.gov` for **ERP Transformation**, **Cloud Migration**, **M\&A Integration**, and **Supply-Chain Restructuring** disclosures.

5. **SSRF & IDN Homograph Input Hardening**
   - Rejects private/loopback/link-local IPv4 and IPv6 literals, internal cloud metadata hostnames (`169.254.169.254`, `.internal`, `.local`), credentialed URLs, oversized batches (`> 500` per run), and mixed-script Unicode homograph spoofs before any network packet is sent.

***

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

EntityStack runs on Apify's Pay-Per-Event model with no monthly minimums or proxy surcharges:

| Event Name | Price (USD) | Per 1,000 Units | Trigger Condition |
| :--- | :---: | :---: | :--- |
| `actor-start` | `$0.005` | n/a | Charged once per Actor container run |
| `domain-enriched` | `$0.090` | `$90.00` | Charged per enriched corporate domain or entity |
| `lei-hierarchy-resolved` | `$0.050` | `$50.00` | Charged only when an active GLEIF LEI and parent corporate tree resolve |

Enriching 250 enterprise domains with full LEI parent trees, 0-100 security scores, categorized tech stacks, and SEC 10-K/20-F links costs **`$35.005` total**.

***

### How EntityStack Compares (As of November 2026)

| Evaluation Criteria | EntityStack v2.0 | ZoomInfo | BuiltWith | HubSpot Breeze (Clearbit) |
| :--- | :--- | :--- | :--- | :--- |
| **Entry Cost** | **$0.04 to $0.06 / domain** (PPE, $0/mo floor) | Annual seat & credit contract | Recurring monthly subscription plans | Bundled HubSpot credit tiers |
| **GLEIF ISO-17442 LEI & UBO Tree** | **Native** (MOD 97-10 verified) | Not listed in standard export | Not available | Legal name string only |
| **0-100 Email & DNS Security Score** | **Included** (DMARC, SPF, DNSSEC, CAA) | Not included | Raw DNS add-on; un-scored | Not included |
| **Back-Office Stack Detection** | **DNS + CT + Gateway CNAMEs** | Survey & crawl inference | Best for frontend JS/HTML tags | High-level firmographic tags |
| **Best Fit** | KYB/UBO, RevOps stack + SEC signals, AI agents | Direct-dial sales phone outreach | Ecommerce & frontend web tech | Native HubSpot form shortening |

***

### Sample v2.0 Output Record

```json
{
  "domain": "asml.com",
  "enrichedAt": "2026-11-17T10:45:00+00:00",
  "summary": {
    "legalName": "ASML Holding N.V.",
    "lei": "724500Y6DUVHQD6OXN27",
    "leiChecksumValid": true,
    "jurisdiction": "NL",
    "entityStatus": "ACTIVE",
    "ultimateParentName": "ASML Holding N.V.",
    "ultimateParentLei": "724500Y6DUVHQD6OXN27",
    "securityPostureScore": 92,
    "securityPostureGrade": "A+",
    "vendorCount": 5,
    "detectedVendors": [
      "Adobe Marketo / Experience Cloud",
      "Atlassian Cloud",
      "Microsoft 365",
      "Microsoft Entra / Azure Front Door",
      "Red Sift OnDMARC"
    ],
    "technographicGroups": {
      "CRM & GTM": ["Adobe Marketo / Experience Cloud"],
      "Identity & Security": ["Microsoft Entra / Azure Front Door", "Red Sift OnDMARC"],
      "Productivity": ["Atlassian Cloud", "Microsoft 365"]
    },
    "secFilingCount": 2,
    "secStrategicThemes": [
      "Cloud Migration & Modernization",
      "ERP Transformation",
      "M&A & Corporate Integration",
      "Supply-Chain & Restructuring"
    ]
  },
  "ppeBilling": {
    "eventsCharged": ["domain-enriched", "lei-hierarchy-resolved"],
    "recordCostUsd": 0.06
  }
}
```

***

### Native MCP Server (Apify Gateway, Official MCP Registry, Smithery & Glama)

EntityStack includes `server.json` and `mcp.json` manifests plus a zero-dependency JSON-RPC 2.0 stdio server (`src.mcp_server`) exposing two tools:

- `enrich_company_domain`: Full GLEIF LEI parent hierarchy, 0-100 DNS/email security posture score, 5-category technographic stack, and SEC EDGAR 10-K/20-F scan.
- `verify_lei_checksum`: Mathematical ISO-17442 MOD 97-10 verification and expected check-digit calculation.

```json
{
  "mcpServers": {
    "entitystack": {
      "command": "python",
      "args": ["-m", "src.mcp_server"],
      "cwd": "/path/to/01_apify_corp_stack_mcp"
    }
  }
}
```

***

### Standalone CLI Usage

```bash
pip install -r requirements.txt
python -m src.main --domains asml.com diageo.com shopify.com --output enriched_accounts.json
```

# Actor input Schema

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

List of corporate root domains to enrich (for example: asml.com, diageo.com, shopify.com).

## `companyNames` (type: `array`):

Optional legal entity names aligned by index with domains, or standalone legal names when domain is unknown.

## `includeTechStack` (type: `boolean`):

Fingerprint MX, SPF, DMARC, verification TXT records, Certificate Transparency logs (crt.sh + CertSpotter), and enterprise gateway hostnames.

## `includeSecFilings` (type: `boolean`):

Scan 2025-2026 SEC EDGAR filings for ERP transformation, cloud migration, M\&A integration, and supply-chain restructuring triggers.

## `includeLeiHierarchy` (type: `boolean`):

Resolve ISO-17442 LEI registration, checksum validation, direct parent, and ultimate beneficial corporate parent via GLEIF.

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

Maximum number of corporate domains enriched concurrently (1 to 16).

## Actor input object example

```json
{
  "domains": [
    "asml.com",
    "diageo.com",
    "shopify.com"
  ],
  "companyNames": [],
  "includeTechStack": true,
  "includeSecFilings": true,
  "includeLeiHierarchy": true,
  "maxConcurrency": 4
}
```

# Actor output Schema

## `enrichedAccounts` (type: `string`):

No description

## `runSummary` (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": [
        "asml.com",
        "diageo.com",
        "shopify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("syncforgecloud/entitystack-lei-tech-intel").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": [
        "asml.com",
        "diageo.com",
        "shopify.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("syncforgecloud/entitystack-lei-tech-intel").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": [
    "asml.com",
    "diageo.com",
    "shopify.com"
  ]
}' |
apify call syncforgecloud/entitystack-lei-tech-intel --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,syncforgecloud/entitystack-lei-tech-intel"
        }
    }
}
```

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/w01x5sCVxmQfzucPD/builds/c8wBcGfWpx9HuptpM/openapi.json
