OpenCTI Hands-on Handbook繁中

Secure OpenCTI: Permissions, Service Accounts and Public Access

Plan user permissions, service accounts, TLP, confidence limits and reverse proxies. Keep local experiments distinct from team production deployments.

Handbook v1.10.1OpenCTI 7.261124.0About 8 minutes

Help your colleagues work confidently: start with permission boundaries.

When you are the only person using OpenCTI, using an administrator account for everything may seem convenient. Once a second colleague joins or the first Connector starts importing continuously, those convenient settings can make responsibility difficult to trace. This chapter separates three questions: who can read, who can change, and who can take data out?

Based on the tutorial version, this chapter provides design and acceptance checks before a team goes live. SSO, reverse proxies, EE organization segregation, and production security settings were not fully deployed in the local lab. Validate them in your own test environment; a successful local startup is not production acceptance.

Tested permission boundaries: readable must not mean editable.

A repeatable set of positive and negative tests was completed on local CE 7.261124.0. The test script creates dedicated roles, groups, and a regular user, explicitly preventing automatic membership of the default group. The new role initially has read access to knowledge, Dashboards, and Investigations, with no Bypass or knowledge-writing capability. The group allows TLP:CLEAR and has a maximum confidence level of 50.

All test data has unique names; no real intelligence was used for trial and error. These checks move beyond “the role exists” to “the effective boundary has been tested.”

  1. As an administrator, create two fictional reports marked TLP:CLEAR and TLP:RED, and record their IDs. Confirm that the administrator can read both, establishing that the data exists.
  2. Sign in with the test user's local credentials to obtain a session, then query me to check effective capabilities and groups, rather than relying only on checkboxes in the role form.
  3. Read the CLEAR report directly as that user, then attempt to change its description. Reading succeeds; the update returns FORBIDDEN_ACCESS. Read it again as the administrator and confirm that the description is unchanged.
  4. Query the RED report as the same user. The direct query returns no object, and a search using this run's label does not list it. Invisibility is not mistaken for deletion.
  5. Create a Dashboard and an Investigation and give the test user View access. To rule out a missing editing capability as the explanation, temporarily grant only workspace-editing capability and confirm that View still prevents changes. After removing membership, direct queries cannot read the workspaces either. Finally revoke the added capability while retaining the administrator.
  6. Set the test account to Inactive and try to sign in using a new session. The platform returns an explicit inactive-account rejection. The password is neither printed nor retained, and the original administrator is not modified.
Rerun in the isolated lab · creates uniquely named tutorial objects and accounts
cd lab
docker compose exec -T worker python < admin-check.py

The complete terminal evidence retains each run's IDs, failed attempts and corrections, and the final successful results. The last complete suite run was 20261129T113250Z-056dc1. The inactive-account error check was subsequently tightened, with a targeted Active/Inactive positive and negative recheck at 11:44 UTC. That additional record does not mean the entire suite was rerun.

These are GraphQL and login-session tests, not proof of completed Token authentication, graph/export visibility, SSO, or EE organization-segregation acceptance. For more detail on labels, workflows, and restoration, continue to the administration chapter's CE verification.

Troubleshooting order: read the actual me.capabilities and group membership first. If unexpected capabilities appear, inspect the default group and cumulative permissions from other roles before investigating markings. Workspace View/Edit membership must be considered together with role capabilities.

After changing roles, read the effective capabilities again. A rejected login shortly after another attempt does not by itself prove an incorrect password or justify disabling protection. This script reuses the existing session to check updated capabilities.

Map every place the data passes through.

Sketch the users, ingress proxy, OpenCTI, Elasticsearch, Redis, RabbitMQ, and object storage. For each connection, ask who needs it, which network it comes from, which credentials it uses, and where it is logged. If users do not need direct database access, do not publish database ports merely for convenience.

Read-only checks · run from the repository root
cd lab
docker compose ps
docker compose port opencti 8080
docker compose config --services

These commands identify running services and where OpenCTI's container port is mapped. If the result is 127.0.0.1:18080, the service is bound to the local loopback address. If it is 0.0.0.0:8080, review the host firewall and reachable networks. Actual external reachability still requires verification from another authorized test host. Inside a container, localhost refers only to that container, not another service.

Remember this website's role: octi-zh.sectools.tw publishes tutorials; it is not a public intelligence platform. Configuring Cloudflare for the tutorial site does not automatically protect access to your local OpenCTI instance.

Separate people, roles, and service accounts.

OpenCTI roles grant capabilities; groups bring those capabilities and data-access settings to users. Write down the work requirements before selecting capabilities. Do not start by enabling everything to avoid errors. Current documentation also specifies capabilities required to use API Tokens, while writes are affected by the user's maximum confidence level. Check the official RBAC and service-account documentation.

Suggested identity in this handbookEveryday responsibilitiesSpecific acceptance checks
ReaderRead authorized intelligenceCan view the designated report but cannot change it
AnalystCreate reports, objects, and relationshipsCan complete the tutorial case but cannot administer other accounts
Operations administratorManage accounts, permissions, and system settingsCan administer settings, with actions attributable to an individual
Dedicated Connector accountRun one integration taskHas only the capabilities, marking scope, and credentials the task requires

This table is a permission design to implement, not a claim that identically named roles ship by default. Create a non-administrator test user, add it to the intended group, and sign in. Confirm both that permitted tasks succeed and that prohibited tasks fail. Both directions are essential.

Where possible, give each integration a service identity that can be revoked independently. Some official Connectors have special permission requirements, particularly when exporting on a user's behalf. Do not simply reuse an ordinary import account: read the requirements for that Connector version and document any exception. An administrator Token is not a suitable long-term shared team secret.

TLP communicates sharing scope; marking settings enforce it in the platform.

TLP communicates who information may be shared with. Under FIRST's TLP 2.0, TLP:CLEAR may be shared publicly; TLP:GREEN is limited to the relevant community; TLP:AMBER is shared on a need-to-know basis within the recipient's organization and with its clients; TLP:AMBER+STRICT is further restricted to the recipient's organization; and TLP:RED is limited to the individual recipients. Obtain the source's permission before exceeding its allowed scope. TLP itself is not encryption. Read FIRST's original definitions and additional restrictions.

In OpenCTI, an object's markings and the markings permitted to a group jointly affect access. An object with multiple markings requires access to all of them. The platform also has maximum-shareable-marking settings, so “I can see it” and “I can export and share it” need separate checks. Read the official marking-restriction mechanism.

Fictional tutorial data makes these boundaries easier to test. Create one public practice report and one restricted report, each containing test objects. Use accounts from two different groups to compare search, direct object links, graphs, and exports. If an object is absent from a view, check access settings before declaring the data lost.

Validate the entire production connection path.

A production service normally needs HTTPS, a trusted ingress point, authentication, and traceable connection logs. A reverse proxy must do more than display a padlock: the platform must know its external URL and scheme. If using a subpath, also check the platform's path settings. The official installation documentation outlines proxy configuration; adapt it to your proxy product and version. Read the official reverse-proxy guidance.

  1. Configure the intended production URL on a restricted test endpoint first, and check the certificate chain and redirects.
  2. Test login, logout, refreshing a deep link, and uploading and downloading a small file.
  3. Test extended sessions and recovery after connection loss; check proxy timeouts, upload limits, and platform logs.
  4. Close unnecessary direct public endpoints, then confirm from an external test host that no path bypasses the proxy.

Also review session timeouts, rate limits, and log de-identification. The official OpenCTI security-configuration documentation lists relevant settings. Write down your organization's policy before choosing values instead of copying a generic security configuration without understanding its assumptions. Check platform security settings.

A secret's lifecycle is a workflow too.

Record each credential's purpose, owner, storage location, and rotation procedure. Never paste real passwords, Tokens, or an unredacted .env into GitHub Issues, tutorial terminal output, or group conversations. Before reviewing logs, remember that error messages may include request contents and source data.

For rotation, create a new credential, update one test integration, and confirm its task succeeds before updating other consumers. Finally revoke the old credential and verify that it no longer works. The application encryption key serves a different purpose: regenerating it arbitrarily is not ordinary API Token rotation. It needs a protected backup and a recovery procedure appropriate to the version.

Completion criteria

  • You can list every external endpoint and explain who needs it.
  • Regular users and integration accounts pass both allowed-success and prohibited-failure tests.
  • Search, direct links, and exports of restricted reports behave as intended.
  • Every credential has an owner, and none has been committed to version control.
  • The team knows who handles ingress or permission failures and where to find the evidence.

Security configuration is never finished forever. Each new colleague and data source is a reason to ask whether the permissions still fit the task. To bring these questions into everyday practice, explore security perspectives and tools on SecTools.tw.

Before configuring SSO, check licensing and migration requirements.

Older deployment articles often provide LDAP, SAML, or OIDC environment variables directly. That does not mean the current Community Edition can use them unchanged. The official authentication-strategy documentation states that, from 7.260224.0, external authentication strategies belong to EE, while CE uses local authentication. Authentication configuration is also moving toward management in the interface, with environment-variable configuration planned for deprecation.

Before connecting your organization's identity system, confirm the license. Use configuration and migration guidance for the same version to check the base URL, role mapping, and logout behavior. For OIDC/SAML, also check callbacks; for LDAP, check the directory connection, bind, and search criteria. Use isolated test accounts to verify both success and rejection, and retain a tested administrator recovery path. This site's local CE lab is not presented as SSO acceptance evidence. Continue with the platform administration chapter.

Every step is worth recording

Finished this chapter?

Mark it when you are ready. Opening or scrolling through a chapter does not complete it automatically. You can undo your choice.

View my progress

Progress is saved only in this browser. No account or automatic device sync. Clearing site data also removes progress.

KEEP YOUR CURIOSITY ALIVE

Make sense of intelligence.
Keep exploring real security questions.

Explore incidents, perspectives and tools at SecTools.tw, and find your next question worth investigating.

SecTools.tw

Search the handbook