How OpenCTI Shodan enrichment shows exposed infrastructure behind an indicator
An IPv4 indicator arrives in OpenCTI, and the team needs to know what is exposed on that address before deciding how much weight to give it. The Filigran Verified Shodan connector enriches IPv4 observables and Shodan pattern indicators with device and network intelligence, so the observable can carry open ports, services, banners and hosting context gathered from Shodan's scanning data. The connector runs as an internal enrichment connector, which means it attaches results to the observable already in the platform rather than importing a separate feed. The OpenCTI connectors repository also contains a shodan-internetdb connector, a lighter variant that reads from Shodan's free InternetDB data. You can review the full Shodan connector source and its configuration options in the OpenCTI Shodan connector repository path.
Before you enable either connector, decide what the enrichment is for. Exposure data answers questions such as whether a command-and-control address serves a remote administration panel, whether a suspicious host runs an outdated service, or whether a hosting range is shared with unrelated sites. Those answers help triage and scoping, but they describe a moment in time, and the same address can change owners or services quickly. Plan to record the enrichment date alongside the results so analysts reading the observable later can judge its age. Confirm with your Shodan account terms which data fields and query volumes your plan includes, because the full connector depends on a paid Shodan API key and the InternetDB variant does not need one. Check the connector's configuration keys in your deployment before the first run, and test on a small set of known observables so you can see exactly which fields land in OpenCTI and how they map to the STIX objects your team already uses.
What you need before enabling Shodan enrichment
The Shodan connector is one piece of a working OpenCTI deployment, and it reaches out to a third-party API from your network. Confirm the platform, the account, the network path and the people responsible before you configure anything, so the connector does not stall on a missing dependency or an exhausted key.
OpenCTI platform and workers
The connector writes its results through the OpenCTI platform, which needs its own dependencies running and healthy. OpenCTI relies on RabbitMQ for asynchronous writes through Python workers, so enrichment jobs queue behind that path. Confirm the platform, its workers and the message broker are running before you register the connector, and check that the platform node count matches your worker count against the documented sizing.
Deployment overviewConnector version match
Connector releases are tied to OpenCTI versions, so a connector that works on one platform release may not on another. Confirm the supported connector version against the OpenCTI release you run, and record both versions in your change notes. Because OpenCTI LTS lines receive only critical and security fixes after stabilization, the matching step matters most on LTS deployments.
Connector requirements in the repository
Read the Shodan connector folder in the connectors repository before you deploy it. The folder documents the environment variables, the Python dependencies and the connector configuration the code expects. The repository also contains a separate InternetDB connector, so confirm which of the two you are deploying and do not mix their settings.
Shodan connector folderShodan account and API key
The full Shodan connector needs an API key tied to a Shodan account. Confirm which plan the account is on, because plan limits on query volume and result access determine how many IPv4 observables you can enrich before quota runs out. Ask Shodan for the current limits on your plan and record them, since they change independently of OpenCTI releases.
Outbound access from the connector host
The connector host must reach the Shodan API over the network path your organization allows. Check outbound rules, proxy settings and any egress filtering on the container or VM that runs the connector. In air-gapped or tightly restricted networks, the connector cannot reach Shodan at all, so plan for that before you promise enrichment to analysts.
Ownership of the API key
Assign one named owner for the Shodan key, along with a backup who can rotate it. Store the key in your secrets tooling rather than in a shared configuration file, and limit who can read connector settings in OpenCTI. Decide who watches quota consumption and who answers when enrichment starts failing, because a single expired or throttled key stops every analyst's Shodan results at once.
How an IPv4 observable flows through the Shodan connector
The flow starts when an analyst or an automated rule requests enrichment on an IPv4 observable. The OpenCTI platform places an enrichment job on RabbitMQ, and the Shodan connector inside your network picks it up. Only the connector crosses the trust boundary: it holds the Shodan API key and sends the lookup to Shodan or the free InternetDB variant. Returned device, port and service data comes back through the queue, and Python workers write it onto the observable. Check that the key stays in the connector configuration and that outbound access is limited to the Shodan endpoints.
Enrichment requests leave the internal network only through the Shodan connector.
Choosing the full Shodan connector or the free InternetDB variant
The full Shodan connector enriches IPv4 observables and Shodan pattern indicators in OpenCTI with device and network intelligence. It is the option to consider when analysts need to see which services, ports and devices sit behind an address, and when your organization already holds a Shodan account whose plan covers the lookups you expect to run. Its value depends on how much detail your investigations require, not on the connector alone.
- Device and service detail: Teams investigating a suspicious address often need to know what is listening on it and what software it runs. Confirm in the connector documentation which fields are returned for your plan.
- Paid account dependency: Lookups consume the quota attached to your Shodan account. Confirm the access level, rate limits and credit model your plan provides before you schedule bulk enrichment.
- Pattern indicators: The connector also handles Shodan pattern indicators, which can matter if your intelligence already uses Shodan queries as a source.
- Filigran Verified status: The connector is listed as Filigran Verified, which describes its relationship to the OpenCTI project. It does not replace your own testing against your data.
- Query volume: Each enrichment that reaches the Shodan API is a billable or quota-bound request, so decide which observables qualify before automatic enrichment runs.
Before choosing this variant, check the exact fields, rate limits and plan requirements in the connector documentation and in your Shodan account terms.
The repository also contains a shodan-internetdb connector, which is the lighter option for teams that want exposure context without a paid Shodan account. It suits high-volume enrichment, first-pass triage and environments where budget or procurement rules keep a paid Shodan subscription out of scope. Expect it to return less detail than the full connector, so treat it as a context layer rather than a complete device profile.
- Lighter exposure context: Use it to learn whether an address has known open ports or services, which is often enough to prioritize an indicator for deeper review.
- No paid account required: Confirm whether the InternetDB service still requires registration, key handling or rate limits before you deploy it at scale.
- Scale-friendly triage: Because it is lighter, it fits automatic enrichment of large IPv4 sets better than full lookups, provided its limits allow the volume.
- Different data source: Its results may differ from the full connector, so do not assume the two return the same fields or update at the same rate.
- Limited depth: Analysts may still need the full connector or a manual lookup for device fingerprints and service banners.
Confirm the exact returned fields and access limits for InternetDB in the connector documentation before you rely on it for decisions.
Both variants can coexist in one OpenCTI platform, and many teams run the lighter one broadly while reserving the full connector for observables that pass a relevance check. The main design question is which observables each connector may process, since that decides how much of your paid quota is used. Running both without clear rules can produce duplicate context and unnecessary calls.
- Tiered design: Send all IPv4 observables to the lighter variant, then route only high-priority or confirmed-malicious addresses to the full connector.
- Quota planning: Estimate calls per day from observable volume and enrichment triggers, then compare that against your plan limits. Ask the vendor or check the documentation for how rate limits are enforced.
- Duplicate context: Decide which connector's results should be treated as authoritative when both return data for the same address.
- Trigger control: Automatic enrichment on every import drives quota use fastest. Manual or playbook-driven enrichment gives you control, though playbooks require the Enterprise Edition.
- Auditability: Record which connector enriched each observable so analysts can explain where a score or label came from.
Before you enable both, confirm which connector is set to run automatically and what each one does to your quota.
The right choice depends on who uses the output and what decisions it supports. Security operations teams triaging alerts often need quick exposure context, while threat intelligence analysts investigating an actor's infrastructure usually need detail. Platform teams care more about quota, reliability and how enrichment affects worker load. Writing these needs down before installation keeps the connector configuration tied to real questions.
- Triage analysts: Usually benefit from the lighter variant for fast context on incoming indicators.
- Investigators and analysts: Usually need the full connector when they must identify services, devices or infrastructure patterns.
- Platform engineers: Should size enrichment volume against worker capacity and the quota limits of each account.
- Budget owners: Should ask how the paid plan's limits, renewal terms and overage rules change with usage growth.
- Compliance or audit reviewers: May ask which source produced each enrichment result and how long it is retained.
Ask each stakeholder group which questions they need answered, then map those questions to a variant.
A short checklist helps teams make the choice without guessing. Work through it before you install either connector, and revisit it when your observable volume or Shodan plan changes. The checklist turns vendor documentation into concrete settings in your OpenCTI configuration.
- Required detail: Write down the fields your analysts actually use, such as ports, services or device attributes.
- Account status: Confirm whether you hold a paid Shodan account and what its access level covers.
- Volume forecast: Estimate how many IPv4 observables your platform will receive and how many will trigger enrichment.
- Limits and terms: Check the rate limits, credit rules and terms for each variant in the connector documentation.
- Coexistence rules: Define which observables each connector processes and which result wins when both return data.
Before choosing, confirm the exact fields and access limits for each variant in the Shodan connector documentation and in your own Shodan account.
Configuring the Shodan connector step by step
This sequence takes you from a Shodan API key to a connector that is registered, running and enriching test observables in OpenCTI. Each step ends with a check you can run before moving on.
Obtain the Shodan API key from the account owner
Ask the owner of the Shodan account your organization uses to create or provide an API key, and record where it will be stored, such as your secrets manager. Confirm the key belongs to an account whose plan and terms allow the lookups you expect to run, because API usage limits are set by the Shodan account, not by OpenCTI. Done when the key is stored in a location only the people who operate the connector can read, and the account owner has confirmed which plan it sits on.
Register the connector identity and scope in OpenCTI
In the OpenCTI platform, create the connector entry for the Shodan enrichment connector with a unique connector identity (UUID) and a name your team will recognize. Set the scope so it covers IPv4 observables and Shodan pattern indicators, matching the connector's stated behavior. Generate the connector's token in the same step and store it with the API key. Done when the connector appears in the platform's connector list as registered but not yet connected.
Set the API key and connector settings from the README
Prepare the connector's environment or configuration file using the configuration keys documented in the Shodan connector README in the OpenCTI connectors repository. Set the platform URL, the connector identity, the token, the Shodan API key and any scope or behavior options the README lists. Do not copy key names from older examples or blog posts, because configuration keys change between connector versions. Done when every required key is present and the file or environment contains no placeholder values.
Start the connector container or process
Start the Shodan connector as a container or Python process on a host that can reach your OpenCTI platform and the Shodan API over the network paths your firewall policy allows. Use the same connector version your platform release supports, and check the connector's logs at startup for configuration errors such as a rejected token or a missing key. Done when the process stays running after startup and the logs show no authentication or configuration errors.
Confirm the connector shows as connected
Return to the connector list in OpenCTI and check that the Shodan connector now shows as connected, with a recent activity timestamp. If it stays disconnected, compare the platform URL and token against the values in the connector's configuration, and confirm the host can reach the platform's messaging and API endpoints. Done when the connector status is connected and the platform logs no repeated registration failures for that connector identity.
Test enrichment on a known IPv4 observable
Create a test IPv4 observable in a sandbox or non-production container, using a public address you are authorized to look up, and trigger enrichment on it from the observable's enrichment action. Check that the enrichment completes and that the resulting data (such as open ports, services or network details) appears on the observable with the expected relationships. Record the observable, the time and the result in your change log. Done when the test observable shows Shodan-sourced data and the connector log records a successful job.
Check quota use and document the settings
Review the Shodan account's usage after the test, and confirm that a single enrichment consumed what you expected before enabling wider automatic enrichment. Document the connector version, the configuration keys you set (without the secret values), the scope and the test result so the next person can repeat the setup. Done when your team has a written record of the working configuration and a usage baseline from the test run.
Mapping IPv4 observables and Shodan results in OpenCTI
This table maps the objects the Shodan connector reads to the enrichment results your team should expect to see, and who should review each one. Use it to plan triage before turning on automatic enrichment. The main takeaway is that the Shodan output adds exposure context to an indicator, so analysts still decide whether the exposure matters.
| Object or output | What it means for the team | Who reviews it | Confirm in your version |
|---|---|---|---|
| IPv4 observable (input) | The main input. Each IPv4 address is a candidate for enrichment, and the result is written back to that observable. | Threat intelligence analyst who owns the indicator | Confirm which observable types the connector accepts in your release |
| Shodan pattern indicator (input) | Indicators built on Shodan query patterns are also accepted, so results can come from a search rather than a single address. | Detection engineer or intel lead who wrote the pattern | Confirm how the connector handles pattern indicators in your release |
| Device and network context | Describes the host behind an address, such as its network location and general device type, to help judge whether it is infrastructure or a victim. | Threat intel analyst, with the network team for internal ranges | Confirm which context objects are created and how they are linked |
| Open services and ports | Shows which services are visible from the internet on the address, which can reveal exposed management or database interfaces. | Vulnerability management or asset owner | Confirm how service data is represented and whether it is kept on the observable |
| Related infrastructure | Links to other hosts, domains or certificates that Shodan associates with the address, useful for pivoting. | Threat intel analyst and incident responder | Confirm which related objects are written and whether they are created automatically |
| Vulnerability references | Where returned, these point to known weaknesses on exposed services and feed prioritization. | Vulnerability management team | Confirm whether vulnerability objects are created and how they are scored |
| Stale or missing data | Shodan results reflect past scans. Absence of data does not prove a host is clean, and old results can mislead. | Analyst who records the decision | Confirm how the connector refreshes results and handles repeated enrichment |
What exposed-service data changes in an investigation
Exposed-service data changes an investigation by showing what an IP address is running, not just whether it appears in a feed. Analysts should use the Shodan results on an IPv4 observable to answer three questions: does this address host one exposed service that belongs to the actor's infrastructure, or does it sit on shared hosting where many unrelated sites share the same address; are remote access, database or management services visible that match behavior described in a reported campaign; and is the exposure significant enough to escalate the indicator or only to keep it as context. A single address running an unusual service on an uncommon port is a different case from a cloud load balancer or a content delivery address that serves thousands of tenants. Before deciding, check the organization of the address, its hosting provider and whether the same services appear on neighboring addresses in the same range.
Scan data is a snapshot taken at a particular moment. Banners, open ports and service versions may have changed since the scan, and a host may have been moved, patched or taken offline after an attacker used it. A service that is absent from the results does not prove the address was clean at the time of an incident, and a service that is present does not prove the actor controlled it. Confirm the time of the last scan against the time of the activity you are investigating, and record that timing in the indicator's context so later readers do not treat an old result as current.
Read exposed-service results alongside other sources before you escalate an indicator. Corroborate with sightings from your own logs, passive DNS, certificate records and the other enrichment connectors you run, and with the reporting that named the campaign. Agreement across independent sources supports a stronger judgment than any one lookup. Your team should agree in advance which combinations justify escalation, such as a match on a campaign-linked service plus your own sighting, so that analysts apply the same standard across cases.
Security settings for the Shodan connector
The Shodan connector sends observable values to an external service and uses an API key that can consume paid quota. The cards below cover the controls that protect that key, decide who can trigger lookups, limit outbound traffic, govern which addresses leave your network, and keep a record of activity. Confirm with Filigran which of these features your license includes before you plan the rollout.
Protect the Shodan API key
The connector authenticates to Shodan with an API key set in its configuration, so anyone who can read the connector environment or container definition can read the key. Store it in your secrets manager or orchestrator secret store, not in a compose file or a shared repository. Plan rotation: when a key is replaced, update the connector configuration, restart the connector, and confirm that enrichment still succeeds. Ask Shodan which key types and plan limits apply to your account before issuing one.
Use a dedicated least-privilege key
Issue a key used only by the OpenCTI Shodan connector, so revoking it does not affect other tools that query Shodan. Keep one key per environment, such as development and production, so test runs do not spend production quota or expose production credentials. Check the key's plan and any query or credit limits in your Shodan account, since those limits define how far a compromised key can be abused.
Restrict who can trigger lookups
Enrichment is usually started by users or by automatic rules, and each trigger spends quota. Review which OpenCTI roles can request enrichment and which rules can enqueue the Shodan connector for every new IPv4 observable. Limit the connector to observables from approved sources or marking levels where your data governance requires it. Confirm in your edition which role and access controls apply to enrichment actions and playbooks.
Constrain connector outbound traffic
The connector needs outbound HTTPS access to the Shodan API and nothing else. Place it on a network segment with an egress allow list, block general internet access, and route traffic through an approved proxy if your policy requires one. Verify the destination after each connector update, because a new image or dependency change can add outbound calls. Test by confirming that blocked destinations fail and the Shodan lookup still works.
Decide which addresses leave your network
An IPv4 observable sent to Shodan is an external lookup, which discloses that your organization is investigating that address. For incident response on internal hosts, customer ranges or unannounced infrastructure, exclude those addresses by source, marking or rule before the connector runs. Document the decision for sensitive cases and agree who approves exceptions. Filtering in the connector or in rules should be tested with known internal addresses before go-live.
Log enrichment activity
Record which observables were sent, who or what triggered the request, when it ran, and whether it succeeded. Use OpenCTI activity logs where your edition provides them, and keep connector logs in your central logging platform with the API key redacted. Review the record for unexpected volume, repeated lookups of sensitive addresses and failed calls that may indicate a revoked or misused key.
Common Shodan enrichment failures and fixes
This table lists the failures most often seen when the Shodan connector does not enrich observables, with the likely cause and the first check for each. Work down the rows in order, since several symptoms share one root cause, such as a connector that is stopped or unregistered. Check the connector logs and platform worker status before changing configuration.
| Failure | Likely cause | First check |
|---|---|---|
| Connector shows no enrichment activity | Shodan connector container is stopped or was never registered with the platform | Confirm the connector appears as active in the OpenCTI connector list, then read its container logs for startup errors |
| Requests fail with authentication errors | Shodan API key is missing, mistyped, expired or revoked | Check the connector configuration key in the deployment file, then test the key against Shodan directly from the connector host |
| Requests time out or fail to connect | Outbound access from the connector host to Shodan is blocked by a firewall or proxy | Run a connectivity test from inside the connector container to the Shodan API hostname, and review proxy settings |
| Requests rejected with quota or plan errors | Account plan does not cover the query type or the request volume | Review the connector log for limit responses, then check the Shodan account plan and usage in the vendor dashboard |
| Observables are never enriched | Observable is not IPv4, so the connector skips it by design | Confirm the observable type is IPv4 Address, and check that domains and IPv6 addresses are not expected to be enriched by this connector |
| Enrichment runs but results are missing | Platform worker is not consuming the queue, so the enrichment message is never processed | Check worker status and the message queue in the platform, then look for backlog growth before retrying |
| Results appear in the wrong scope or are invisible to some users | Enriched data is created under a default marking or organization that does not match the analyst group | Inspect the markings and creator on the new objects, and confirm the connector's configured scope and the viewer's access |
How to test the integration before the team relies on it
Test the Shodan connector against a small, fixed set of IPv4 addresses before any analyst or automation depends on its output. Choose addresses whose exposure you already know, such as a host you own that runs a known service, plus one address with no open services. Use the same addresses for every retest, so a change in results points to the connector or platform rather than to a change in the internet. Confirm that the connector appears as a registered internal enrichment connector in the OpenCTI connector list and that its status is healthy before you start.
Run each test case in both trigger modes. For a manual trigger, open an IPv4 observable, request enrichment, and check that the Shodan data appears as expected. For an automatic trigger, create a new test observable and confirm the enrichment runs without any action. Then verify that results land on the correct observable: compare the IP value on the observable with the address reported in the enrichment output, and check that no result is attached to a neighboring or duplicate observable. Also confirm the connector does not enrich observables it should skip, such as non-IPv4 values, if your scope excludes them. Review the connector's logs for each run so failures are visible even when the UI shows nothing.
Check that repeated lookups do not run unnecessarily. Request enrichment for the same observable twice and confirm from the logs and the queue whether a second query to Shodan was made. Record the number of Shodan calls each test run makes, so the baseline is known before the team starts using the connector at volume. Then restart the connector process or its container, submit a new test observable, and confirm it resumes and writes results. Document the outcome in a sign-off record that lists the test addresses, the connector and platform versions, the results, the person who approved it, and the date. Repeat the same test after each connector or platform upgrade, because the OpenCTI releases page lists changes that can affect connector behavior. Confirm with the vendor which connector version your Shodan plan and your OpenCTI version support.
Questions buyers ask about Shodan enrichment in OpenCTI
What does Shodan enrichment in OpenCTI cost to run?
Expect two cost lines: a one-time setup effort and recurring Shodan plan spend. The setup covers the connector deployment, configuration, a test run and handover. The recurring cost depends on your Shodan plan and how many IPv4 observables the connector looks up, because each lookup draws on your API credits. Operating time is the other recurring cost, covering connector updates and reviewing results. Ask any quote to separate the setup fee from ongoing support, to state which Shodan plan it assumes, and to explain how it limits lookups so credits are not exhausted. DeployOpen does not publish a price list, so a quote follows from the written scope.
How long does a Shodan enrichment deployment take?
The duration depends on how many OpenCTI instances are involved, whether a working OpenCTI platform already exists, how quickly API access and network approvals arrive, and how much tuning the enrichment rules need. A single connector on a platform that is already running is a much smaller job than a first OpenCTI installation with its dependencies. Ask for a timeline in the written scope with milestones for access approval, deployment, test enrichment and handover, and confirm which of those steps depend on your own teams.
What does the client need to provide for this work?
The work needs several inputs before it starts:
- An owner for the Shodan account and API key, who can approve plan purchases and rotate the key
- A host where the connector runs, with outbound access to the Shodan API and a route to your OpenCTI platform
- Network approvals for that egress path, plus any proxy rules your security team requires
- A test set of IPv4 observables, including known benign and known suspicious addresses, so results can be checked
Identify these owners early, because approval queues often set the pace more than the configuration itself.
Can a team deploy Shodan enrichment without outside help?
Yes, a team with OpenCTI administration experience and someone who can manage containers or services can deploy the Shodan connector using the Filigran-verified connector in the OpenCTI connectors repository. The harder parts are usually outside the connector: setting a lookup budget that protects your Shodan credits, deciding which observables should be enriched automatically, testing results against your data, and keeping the connector current as OpenCTI releases change. Decide which of those your team will own before you choose between building it in-house and engaging a partner.
When is the free InternetDB connector enough?
InternetDB is enough when you need to know which ports and services are open on an address and which known vulnerabilities are associated with it, without the device and banner detail of a full Shodan lookup. The OpenCTI connectors repository includes a shodan-internetdb connector alongside the main Shodan connector. Choose the full Shodan connector when analysts need richer service data, historical banners or fields that InternetDB does not return. Confirm the current InternetDB terms and coverage with Shodan before you rely on them, because data scope and access rules can change.
How do Enterprise Edition features relate to Shodan enrichment?
The Shodan connector is an enrichment connector and does not depend on the Enterprise Edition. Enterprise features matter for how enrichment is governed around it. Playbooks, which can trigger enrichment on selected observables, require Enterprise Edition. Organization-based data segregation and audit logs can control who sees enriched results and record who requested lookups. SSO configuration is also an Enterprise feature from OpenCTI 7.260224.0 onward. Confirm which of these your organization needs before the quote, because they change the licensing and the design.
What should a quote for this work include?
Ask for a written scope that names the OpenCTI version and deployment method, the connectors in scope (the full Shodan connector, InternetDB or both), the observables that will be enriched and the lookup limit, the Shodan plan assumed, and the test cases used for acceptance. Also ask who pays for Shodan credits, what handover documentation is delivered, and what ongoing support or upgrade work is included or billed separately. A quote that leaves any of these open makes the cost and timeline hard to compare.
How DeployOpen scopes and delivers Shodan enrichment
DeployOpen plans, implements, documents and supports OpenCTI deployments inside your own infrastructure, including the enrichment connectors that add Shodan data to IPv4 observables. Engagements start with a written scope that decides which connector runs, where it runs, and how its results reach your analysts.
How we scope
- We confirm which IPv4 observables and Shodan pattern indicators should be enriched, and which ones should stay out of scope.
- We decide between the Shodan connector and the shodan-internetdb variant based on the API access your organization holds.
- We agree the enrichment trigger, whether automatic or on request, and the connector hosting target in writing before work starts.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work begins.
How we build
- We deploy the Shodan connector against your OpenCTI platform and configure its API key handling and worker placement.
- We test enrichment on representative observables and confirm the device, port and service data lands on the expected objects.
- We check connector behavior against your API quota limits and adjust trigger rules so lookups stay within the agreed budget.
- We review access settings so enriched data follows the data segregation and sharing rules your team already uses.
How we hand over
- You receive configuration documentation covering connector settings, secrets locations, trigger rules and worker dependencies.
- We provide a runbook describing how analysts request enrichment, how failures appear, and who to contact for each.
- We walk your platform and operations staff through the deployment and the verification steps used during testing.
How we support
- Ongoing support, connector upgrades and continuous testing are available as retainers after handover.
- We can review connector updates against your OpenCTI release line before they reach production.
- We can retest enrichment after changes to the platform, the connector, or your Shodan plan.

