lookup-opencti

lookup-opencti is a skill for Claude Code, Codex from Liberty91LTD/cti-skills. It costs 123 tokens per session (2,674 once invoked), scanned A, original, MIT.

A two-way connection to OpenCTI, a threat-intelligence knowledge base for indicators, malware, attackers, reports, and campaigns linked through relationships. It can both retrieve information and add intelligence to the system.

In plain words
What is it for?
It helps search or list threat entities and reports, check platform health, add indicators or observables, apply labels and handling markings, link related entities, and import STIX 2.1 data.
Why use it?
It lets investigators check whether an indicator or threat is already known and keep finished findings organized in one connected knowledge base.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 tools/clis/opencti.py version.

Good fit It helps search or list threat entities and reports, check platform health, add indicators or observables, apply labels and handling markings, link related entities, and import STIX 2.1 data.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Liberty91LTD/cti-skills
agentmods
npx agentmods add skills/liberty91ltd/cti-skills/lookup-opencti

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lookup-opencti

README.md
[![agentmods](https://agentmods.dev/badge/skills/liberty91ltd/cti-skills/lookup-opencti/github.svg)](https://agentmods.dev/skills/liberty91ltd/cti-skills/lookup-opencti)
Your own site
<a href="https://agentmods.dev/skills/liberty91ltd/cti-skills/lookup-opencti"><img src="https://agentmods.dev/badge/skills/liberty91ltd/cti-skills/lookup-opencti/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lookup-opencti

Your own site · 80×15
<a href="https://agentmods.dev/skills/liberty91ltd/cti-skills/lookup-opencti"><img src="https://agentmods.dev/badge/skills/liberty91ltd/cti-skills/lookup-opencti.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,674 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00123 $0.02674
Opus 5 $0.00062 $0.01337
Sonnet 5 $0.00025 $0.00535
Haiku 4.5 $0.00012 $0.00267

Measured 12d ago against content hash 70b2c9920f45, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

lookup-opencti scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/lookup-opencti/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

lookup-opencti

Two-way bridge to an OpenCTI threat-intelligence platform. OpenCTI is a STIX 2.1-native knowledge base: everything in it — indicators, observables, intrusion sets, malware, reports, campaigns — is a STIX entity connected by relationships. Like /lookup-misp, this skill also writes: it can create indicators and observables, label and TLP-mark entities, relate them, and import STIX 2.1 bundles. Treat write commands as deliberate actions; don't use them in autonomous enrichment loops. The delete command is destructive — always confirm with the user before invoking it.

When to invoke

Read:

  • An indicator was found by another lookup (VT, OTX, …) — check whether your OpenCTI instance already knows it (lookup)
  • An analyst wants the entities, reports, or campaigns your platform holds on an actor, malware family, or CVE (search, list, get)
  • You need recent high-score indicators, this quarter's incidents, or everything carrying a given label (list with filters)
  • You want to verify connector health or instance version (connectors, version)

Write:

  • A finished investigation produced indicators that belong in your knowledge base
  • A STIX 2.1 bundle written via /stix-bundle should be imported as entities
  • An existing entity needs labels, a TLP marking, a score update, or a relationship to another entity

Do NOT invoke for:

  • Bulk reputation enrichment (use VT/OTX/RL first; only push the vetted subset into OpenCTI)
  • Scanning or pivoting on raw internet infrastructure — OpenCTI is a curated dataset, not a scanning service. Use Shodan/Censys for that.
  • Community sharing — that's MISP's job (/lookup-misp). OpenCTI is your internal knowledge graph; MISP is the exchange layer. Many teams run both, synced by a connector.

How to invoke

Single Python CLI (stdlib only — no install). Single endpoint: everything is GraphQL against $OPENCTI_URL/graphql with Authorization: Bearer $OPENCTI_TOKEN.

Read the full file on GitHub · 184 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 184 lines · 123 tokens per session scan A 70b2c9920f45

Subscribe to this mod's changes

lookup-opencti is a skill published in the GitHub repository Liberty91LTD/cti-skills (18 stars, last pushed 1mo ago), licensed MIT. It adds 123 tokens to every session and 2,674 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.