Why the OpenCTI GraphQL API needs an access decision
If your team has deployed or is planning OpenCTI, you need to decide who can reach the GraphQL API that sits beside the web application. The API is the same surface analysts, connectors, scripts and automations use, so any exposure decision affects every one of those consumers, not only the people who open the browser. A setting that closes the playground can also change what a script or a connector experiences, and a rate or depth limit set for one caller lands on all of them.
The OpenCTI documentation describes the platform as serving both a web application and a GraphQL API, and the two share the same backend, data model and access rules. Treat the API as a production interface in its own right, with its own list of consumers, owners and network paths. This page covers four decisions: which networks and identities may reach the API, whether the interactive playground is available, whether schema introspection is exposed, and what query limits protect the platform from expensive or abusive requests.
Several of these controls are version-specific. Settings for the playground, introspection and query limits can change between releases, and the names and defaults should be confirmed in the documentation for the exact release you run, including LTS lines, before you write them into a configuration baseline. Ask your vendor or Filigran's documentation for the current list of relevant keys rather than relying on older blog posts or forum answers.
Before changing anything, inventory who calls the API today. Note which connectors, service accounts, reverse proxies, monitoring probes and internal tools send GraphQL requests, and from which hosts. That inventory tells you which exposure choices are safe, which ones need a proxy rule, and which ones will break a feed. Plan the change in a test environment first, then confirm that every legitimate consumer still works before the setting reaches production.
Exposure options and when each fits
This table compares four ways to reach the OpenCTI GraphQL API and web application, from an internal-only path to direct public exposure with SSO. Read each row for the team it suits, what it costs analysts and connectors in convenience, and what to confirm for your release. None of these options turns off the playground or introspection by itself, so verify those settings in the docs for your version.
| Option | Best fit | Trade-off for analysts and connectors | What to confirm for your release |
|---|---|---|---|
| Internal-only network path | Teams with on-site analysts and connectors that run in the same network segment | Remote analysts and cloud-hosted connectors need another route, which adds setup work | Which hostnames and ports the UI, API and workers use, and whether any internal service calls the API from outside the segment |
| VPN or zero-trust access for remote analysts | Distributed analyst teams that need the web application but not open internet access | Each analyst depends on client software and enrollment, and automated connectors need a separate service path | Whether connectors can authenticate through the same access layer, and how service accounts are kept off interactive login |
| Reverse proxy or gateway that allowlists paths and sources | Organizations that must expose the UI to some users while limiting which API paths and client networks reach the platform | Allowlists need upkeep as the UI and connectors change, and a misconfigured rule can break ingestion or the UI silently | The GraphQL endpoint path, the playground and introspection routes in your version, and any WebSocket or streaming paths the UI uses |
| Direct public exposure with SSO | Rare cases where external partners must sign in directly and the platform team accepts a larger attack surface | Partners get convenient access, but every public path must be defended, and SSO is needed for the platform settings you rely on | Whether the authentication strategy you plan to use requires the Enterprise Edition for your release, and whether the playground and introspection can be disabled for your version |
Which paths reach the OpenCTI API, and where the trust boundary sits
The diagram starts with analysts in browsers and scripts, plus connectors and service accounts, all arriving at a reverse proxy or gateway that marks the trust boundary. Behind it, the OpenCTI platform serves the web UI and the GraphQL API. Writes go asynchronously through RabbitMQ to Python workers, which then reach Elasticsearch or OpenSearch, Redis and S3-compatible storage. Check which inbound paths the proxy exposes, and confirm that worker traffic never needs the public API route.
User and connector paths through the proxy into OpenCTI and its stores.
How to restrict the GraphQL API before go-live
This sequence gives you a documented list of every system and person that calls the OpenCTI GraphQL API, a chosen network path for each, and evidence that unauthenticated and unapproved requests are refused before the platform takes production data. Each step ends with a check you can record for your go-live review.
Inventory every API consumer
List every party that calls the OpenCTI GraphQL API: analysts using the web application, scripts and notebooks, connectors and feed importers, stream consumers, administrators, and any tools that push or pull data. For each, record the owner, the source network or address range, the authentication method and the operations it needs. Do not skip consumers that run on a schedule or sit outside your identity provider. The output is a reviewed table that the platform owner and the security team both sign off. You know this step is complete when every row has an owner and no consumer is described only as "other".
Choose the network path for each consumer
Decide, per consumer, whether it reaches the API through the public internet, a corporate VPN, a private network segment, or an internal service address. Consumers that run inside your infrastructure, such as connectors, should not need a route from outside it. Note where a connector runs in a different cloud account or site, because that route needs an explicit decision. The output is a path map that matches each row in the inventory. You know this step is complete when the security reviewer can trace every consumer to exactly one approved path.
Confirm playground and introspection settings in your release
Read the release documentation for the exact OpenCTI version you will deploy. Identify which settings control the GraphQL playground and schema introspection, what each one does when enabled or disabled, and whether the version provides any query depth, complexity or rate limiting. Take exact names and defaults from that documentation, not from older guides or this page. Record the findings in your configuration notes and flag anything the version does not support so you can compensate at the proxy. You know this step is complete when each control has a documented setting, a tested value and a stated owner.
Enforce the chosen path at the gateway
Implement the path map at your reverse proxy, API gateway or load balancer. Block the playground and introspection at that layer for all consumers that do not need them, restrict source networks for each route, and apply any request size or rate limits your version does not provide natively. Keep the platform itself reachable only from the proxy where your design allows it. Record every rule in version control so changes go through review. You know this step is complete when the rules deploy from code and match the path map line by line.
Test unauthenticated requests from outside
From a host outside the approved networks, send unauthenticated requests to the API endpoint, the playground path and introspection queries. Confirm that each one is refused and that no schema details or platform data come back in the response. Repeat the same tests from an approved network without a token. Save request and response evidence with timestamps. You know this step is complete when every blocked request returns a refusal and the evidence file lists each test with its result.
Test authenticated requests from each consumer location
Run each consumer's real workload from its approved location using its own credentials. Confirm that analysts, scripts, connectors and administrators can perform the operations in their inventory row and that they are refused operations outside it. Also confirm that a valid token presented from an unapproved network is rejected by the gateway. Use test data or a non-production instance where possible. You know this step is complete when every row in the inventory has a passing allowed case and a passing denied case.
Record the exceptions and schedule a re-test
Document any consumer that needs a path or setting outside the standard map, the compensating control protecting it, and the person who approves it. Add the GraphQL endpoint and playground checks to your change process so that every upgrade or proxy edit reruns the tests from step five. Note that new LTS or regular releases may change setting names or defaults, so repeat step three before each upgrade. You know this step is complete when the exception register is approved and the test suite is linked from the runbook.
Which consumers need API access and what to restrict for each
Analysts use the OpenCTI web application, and the web application calls the GraphQL API on their behalf. They need the API to browse, search and edit intelligence within the groups and markings they hold, but they rarely need direct API calls of their own. Restrict analysts through roles, groups and markings rather than by blocking the API, because the interface depends on the same endpoint.
- Session-scoped access: Analysts reach the API through their logged-in session, so their visibility follows their group and marking settings.
- No playground for daily work: Analysts do not need the interactive GraphQL playground. Keep it off for their network path unless a reviewer explicitly requests it.
- Rate and size limits: Expensive broad searches from the interface can slow the platform for everyone, so review query limits with the platform team.
- Too-tight restrictions: Blocking the endpoint, or restricting introspection in a way the web application relies on, makes the interface fail with errors that look like broken data.
Before go-live, log in as a representative analyst and confirm that the main search, graph and report screens load without errors.
Connectors and feeds call the API continuously to import, enrich and export data. They need write access to the entity types they handle, which is far more than an analyst needs, but a narrow set of groups and markings. Their access is best defined through dedicated service accounts, and the detailed rules belong in the service account topic.
- Dedicated identities: Each connector should authenticate as its own account, so logs and revocations stay traceable.
- Network placement: Connectors usually run on the same internal network as the platform, so a restriction on the public endpoint should not affect them if the internal path is kept open.
- Bulk traffic: Imports generate high request volumes, so query limits that suit interactive users may throttle connectors.
- Too-tight restrictions: Lowering limits or removing a needed capability causes queues to back up and enrichment to stall without an obvious error in the user interface.
For detail on account design, see the service account topic. Check queue health after each change to confirm that connectors still drain their work.
Analysts and engineers who automate OpenCTI with scripts or the Python client send direct API requests. Their needs vary: some run occasional reports, others run scheduled jobs that page through large result sets. Give each script its own token and the narrowest role that works, instead of sharing an administrator token.
- Personal or per-script tokens: Issue tokens per user or per script so revocation does not break unrelated work.
- Schema queries: Introspection helps developers discover fields, so decide whether to allow it for developer environments and disable it for production exposure.
- Pagination limits: Scripts that request large pages can hit size or complexity limits. Agree on page sizes with the client users.
- Too-tight restrictions: Blocking introspection or setting limits too low causes client libraries and scripts to fail, often after they have partially written data.
Confirm the exact introspection and limit settings in the version you run, since the defaults and option names can change between releases.
Platform administrators manage users, settings, connectors and the platform itself, and they hold the broadest API rights. Their access should be the most controlled, because a compromised administrator session or token can change configuration and data across the platform. Keep administrative API use separate from daily work.
- Separate admin accounts: Administrators should use a named admin account for configuration and a standard account for everyday analysis.
- Limited admin paths: Restrict administrative endpoints and the playground to a management network or bastion, not the general user network.
- Token handling: Store administrative tokens in a secrets manager and rotate them on a schedule your security team sets.
- Too-tight restrictions: Cutting admin access to the platform without a tested break-glass path can leave no one able to recover from a misconfiguration or failed upgrade.
Agree the break-glass procedure with the security team and test it in a non-production environment before relying on it.
Security risks an open GraphQL endpoint creates
The OpenCTI GraphQL API is the same interface the web application uses, so anything the UI can do is reachable by anyone who can send it a request. The cards below pair each exposure with the control that limits it and a check your team can run to confirm the control works. Test each one against your own deployment, because the exact settings and their names depend on your OpenCTI version and how you front the platform.
Schema exposure through introspection
Introspection lets any caller ask the API to list its types, fields and arguments. That map shows an attacker which entity types, filters and mutations exist before they send a single meaningful query. Disable introspection for anonymous and non-admin callers where your version allows it, and confirm the schema is not returned to an unauthenticated request. Then repeat the test with a standard analyst account to see what it reveals.
Authentication docsInteractive playground as an attack surface
The GraphQL playground is a browser tool that lets anyone write and run queries against the API from the address bar. In production it is convenience for developers and a ready-made console for an attacker who gets past a login page. Confirm the playground route returns nothing to unauthenticated users, and that it is turned off or restricted to a named admin network in production builds. Record the check in your change log so a later upgrade cannot quietly re-enable it.
Unauthenticated paths to data and operations
Every route that answers without a session is a path around your access model. Check the API, the health endpoint, file download URLs and any reverse proxy rules that pass traffic straight to the platform. A request without credentials should be refused for entity reads, writes and operational queries. Run the same requests with no token, an expired token and a token from a disabled account, and confirm each returns an authorization error.
Long-lived tokens in scripts and notebooks
Connectors, scripts and shared notebooks often carry an administrator API token pasted into a file. Such a token keeps working after the person who created it leaves, and it is easy to copy into a repository or a chat thread. Create one service account per integration with the narrowest group it needs, store the token in a secrets manager, and rotate it on a schedule you set. Verify by revoking one token and confirming only that integration stops.
Expensive queries that degrade service
A broad query that walks relationships across millions of objects can hold up Elasticsearch or OpenSearch and slow the platform for every analyst. Such queries often come from a dashboard, a bulk export or an automation that never had a limit set. Decide which callers need deep traversal, set query depth and result size limits where your version provides them, and set timeouts at the reverse proxy. Test by running a deliberately deep query from a standard account and watching whether the platform stays responsive.
Controls that exist only in the UI
A group or marking that hides an entity type in the web application may not stop the same entity from being read through the API. Analysts who never open the restricted view can still reach it with a query. Compare what a user sees in the interface with what the same account returns from a direct query for each sensitive type. Any gap means access control is enforced in one place only, and the fix belongs at the platform or proxy layer.
What query limits protect and what they cannot
A query limit caps how much work a single GraphQL request can force the server to do. Depth limits stop deeply nested selections, complexity limits price expensive fields and list sizes, and rate limits cap how many requests a client can send in a window. Each control reduces the chance that one careless or hostile client exhausts the OpenCTI web application, the API workers or the search backend behind them. A limit placed at the gateway in front of the platform can still protect it when the application's own options are unclear, because the gateway sees every request regardless of how the application is configured. The gateway does not understand STIX objects or access markings, though, so it can only limit volume and shape, not what a permitted user is allowed to read.
The supplied facts do not confirm which query limit controls each OpenCTI release offers, so do not assume any of them exist in your version. Check the configuration reference for your exact release, then test each control on a non-production instance. Confirm whether a limit returns a clear error, how it is logged, and whether it applies to the UI as well as to API tokens. Also confirm that a limit on the gateway does not block the platform's own front-end calls, which use the same endpoint. Keep the test results with the change record so the configuration can be reproduced after an upgrade.
Strict limits carry a real cost. Dashboards, bulk exports, large entity listings and connector queries can all produce deep or wide requests that look expensive but are legitimate. A limit that is too tight will fail these jobs silently or in the middle of a run, and the first symptom is often a stalled connector rather than a clear alert. Set limits from observed query patterns: log normal traffic for a representative period, identify the heaviest operations by user and service account, then set thresholds with headroom and exemptions for known batch jobs. Review the thresholds after each upgrade, because the query shapes the UI generates can change between releases.
Limits to confirm in your environment
The GraphQL API is the main route into an OpenCTI platform, so the settings that govern it are easy to assume rather than verify. The cards below cover the items to confirm for your release, your proxy and your license before you lock down the playground, introspection and query limits.
Playground and introspection settings
Confirm the exact configuration keys that enable or disable the GraphQL playground and schema introspection for the release you run, because these settings have moved between versions. Test both from an unauthenticated client and from an authenticated analyst account, and record the result. Treat an answer from a forum post or an older guide as unverified until you have checked it against your own running instance.
Deployment overviewNative query limits or proxy only
Find out whether your OpenCTI release enforces query depth, complexity or rate limits natively, or whether you must enforce them at a reverse proxy or API gateway. If the limits live only at the proxy, a request that bypasses the proxy, such as direct access to the platform port inside the network, is unlimited. Confirm this with Filigran or your own tests before you rely on either layer.
SSO and API authentication
Defining authentication strategies, including SSO, is an Enterprise Edition feature from 7.260224.0. On a Community deployment, confirm how API tokens are issued and revoked for each user and service account, and who can create them. Decide whether machine clients authenticate with a dedicated token instead of an analyst's personal session, and confirm that disabling a user in the identity provider also invalidates their API access.
Authentication docsLTS configuration changes
LTS releases require a specific LTS license key, and after a one-month stabilization they receive only critical bug and security fixes. Confirm whether a change to playground, introspection or limit settings needs a new release, a hotfix, or only a configuration edit, and whether that change is available on your LTS line. Plan the change window with this in mind, since a setting you need may not be backported.
Product life cycleProxy effect on subscriptions
Confirm whether any client you use relies on GraphQL subscriptions or streaming, and whether your reverse proxy passes the required connection upgrade headers and keeps long-lived connections open. A proxy that buffers responses or times out idle connections can break a client without any visible error on the server. Test the exact client, including any custom connector or notifier, through the same proxy you will run in production.
Default changes between upgrades
Ask whether the defaults for playground, introspection and any limit settings changed in the release you are moving to, and whether an upgrade resets values you have overridden. Regular releases ship on a date-based cadence, so check each version's notes before you upgrade. Repeat the playground, introspection and limit tests after every upgrade, because an upgrade can reopen an exposure you closed earlier.
OpenCTI releasesQuestions buyers ask about restricting the OpenCTI API
What drives the cost of restricting the OpenCTI GraphQL API?
The main cost drivers are the number of consumers that call the API, how the network is designed, who owns the reverse proxy or gateway in front of the platform, and how many releases the setup must be tested against. Each consumer needs its access path confirmed, so a platform with a few known service accounts costs less to review than one with many connectors, scripts and internal portals. Ownership matters because changes to a proxy you already run are scoped differently from building a new gateway. One-time work covers the design, the configuration and the first round of testing. Recurring work covers retesting after upgrades. Ask any quote to itemize these components and to state which ones are fixed in the written scope.
How long does it take to lock down the OpenCTI API?
Duration depends on how many consumers need access, how complex the network path is, and whether the team must wait for change windows on production systems. Teams that already have an inventory of API callers and a documented reverse proxy usually move faster than teams that must discover which tools call the API first. Testing across each OpenCTI release line in use also adds time, especially when a platform runs an LTS line with a fixed upgrade schedule. DeployOpen states timelines in the written scope agreed before work starts, so ask for the schedule to list each dependency on the client side.
What should our team provide before an API hardening engagement starts?
Prepare the inputs that let the work be scoped accurately:
- Architecture diagrams showing the OpenCTI platform, its dependencies and every path that reaches the platform
- A list of API consumers, including connectors, scripts, dashboards and partner tools, with their owners
- Identity setup details, such as how local and SSO users sign in and which groups map to which access
- Test accounts for each role that needs to keep working
- Agreed change windows and a named contact who can approve production changes
Missing consumer records are the most common reason a scope grows during delivery, so start that list early.
Can our own team restrict the OpenCTI API without outside help?
Yes, a team with experience running OpenCTI behind a reverse proxy, managing its authentication settings and testing HTTP access controls can do this internally. The work involves restricting the endpoint at the proxy or gateway, turning off the playground and introspection in the platform configuration, applying query limits, and verifying that approved consumers still work. The difficult part is usually the verification, because each connector and integration must be checked after every change. Compare the effort of building that test set and keeping it current against the cost of an outside review, and decide based on the staff and time available.
Does SSO for OpenCTI require the Enterprise Edition?
Yes. Since OpenCTI 7.260224.0, defining and using authentication strategies, including SSO, is an Enterprise Edition feature, according to the OpenCTI authentication documentation. Community Edition users can still use local users and other supported authentication options, but SSO-based access control requires the Enterprise license. Confirm the license terms directly with Filigran before planning, because the edition you run affects how identity and API access are designed. The OpenCTI Enterprise Edition documentation lists the features included.
Will restricting the OpenCTI API break our connectors?
It can, if a connector reaches the API through a path that is blocked or uses credentials that no longer have the right permissions. Connectors and feeds that write data through the platform need a reachable API endpoint and a service account with the rights they use. Before changing access rules, list every connector, the address it calls from and the account it uses. Then test each connector in a non-production environment after the change. Treat any connector that fails as a configuration gap to fix, not as a reason to reopen the endpoint to all callers.
How often should we retest the OpenCTI API after upgrades?
Retest after every upgrade that changes the platform version, the reverse proxy, the identity configuration or the list of consumers. OpenCTI non-LTS releases ship from daily to weekly, and LTS releases occur every 6 months according to the OpenCTI product life cycle documentation, so a platform on a regular release line changes more often than one on LTS. A practical pattern is to run the same access and connector test set after each planned upgrade and to keep the results as evidence. Ask for the retest cadence to be written into any retainer or scope so it is not left to chance.
How DeployOpen scopes and delivers API restriction work
DeployOpen approaches GraphQL API restriction for OpenCTI as a written, fixed-scope piece of platform work inside your own infrastructure. We map who and what reaches the API, change the playground and introspection settings, and test the result before handover so your security and platform teams can review every decision.
How we scope
- Inventory every client, connector, worker and integration that calls the GraphQL API today.
- Agree in writing which network paths, identities and roles may reach the API and the playground.
- Confirm the target OpenCTI version and deployment layout, including any reverse proxy or load balancer in front of the platform.
- Engagements are fixed-scope, with deliverables and timelines agreed before work starts. Ongoing support is available as a retainer.
How we build
- Disable the public playground and introspection in the platform configuration and confirm the change from outside the network.
- Restrict API access at the proxy or network layer and document each allowed source and its purpose.
- Set query limits and rate controls sized from measured traffic, then test them against normal connector and analyst workloads.
- Test the configuration for unauthenticated and low-privilege access paths, and record findings with fixes and a retest.
How we hand over
- Deliver a configuration record listing each setting, its value, its owner and the reason it was chosen.
- Provide a runbook for adding a new client or connector without reopening the API to unknown sources.
- Walk your administrators through the test results and the retest evidence your compliance team can review.
- Hand over settings in your own repository or change system so future changes go through your review process.
How we support
- Review the API configuration again when you upgrade OpenCTI, since defaults and endpoints can change between releases.
- Retest after new connectors, proxy changes or identity provider changes to confirm the restrictions still hold.
- Continuous testing and upgrade support are available as retainers, scoped in writing with your team.
- Ask us to confirm version-specific behavior against the release notes for your target OpenCTI line before changes go live.

