OpenCTI Hands-on Handbook繁中

OpenCTI Playbooks, Automation and Intelligence Sharing

Understand inference, decay, workflows, playbook components, feeds, Fintel and AI. Check Enterprise Edition prerequisites and verification boundaries.

Handbook v1.10.1OpenCTI 7.261124.0About 31 minutes

Take one fictional record through the whole process before handing automation to the team.

Start with three verifiable outcomes: an inferred relationship with traceable inputs, an indicator with a clear validity period, and shared data that its recipient is actually authorized to read. Then use a Playbook to turn those same checks into a workflow. You do not need real customers, paid intelligence sources, or outgoing notifications for the first exercise.

This chapter follows official documentation checked on 2026-11-29. CE features are distinguished from EE and AI prerequisites. The EE exercises have not been run with an enabled license in this project. Compare completed Docker operations with the verification record. Tutorial indicators are only for testing models and workflows and must not enter production detection lists. The actual purpose of login.example remains unknown.

Prepare two control samples first

Reuse login.example and mail.example from Chapter 16. Have an administrator create the three labels sectools-playbook-lab, sectools-reviewed-lab, sectools-share-lab. Apply only the first label to login.example and keep mail.example outside the condition. Verification requires both an action on the positive sample and no action on the negative sample.

Reasoning: derive a relationship and retrieve its two original inputs.

Prerequisites: Use a disposable lab. An administrator manages Rules engine while an analyst creates and checks tutorial objects. Activating a rule scans existing knowledge, so do not toggle production rules merely for practice.

  1. Create two explicit tutorial assumptions

    Create Organization SecTools Lab Research Unit with the description “Fictional research unit for inference practice.” Reuse SecTools Lab and Demo Intrusion Set, then create Research Unit part-of SecTools Lab and Demo Intrusion Set targets Research Unit. Describe both as “Tutorial assumption; no real attack evidence.”

  2. Enable only the matching rule

    As administrator, open Settings → Customization → Rules engine and find Targeting propagation via belonging. Read its conditions before enabling it. Record whether it was already active so you do not disable someone else's rule after the exercise.

  3. Wait for background processing, then inspect the graph

    Open Demo Intrusion Set's relationships or graph and find targets toward SecTools Lab. It should be identifiable as an inference. Open its explanation and confirm it depends on this exercise's targets and part-of, not similarly named objects.

  4. Verify deactivation in an isolated environment

    Only if you activated the rule for this exercise and nobody else relies on it, deactivate it and wait for cleanup, then inspect the inferred result. Both manually entered original relationships should remain. Record the behavior; deactivation is not a way to remove original evidence.

Troubleshooting: For no result, first check direction and type: Research Unit belongs to Lab, not vice versa. Then check rule state, background processing, and access. A new graph edge is not a new independent source; it still depends on two assumptions. OpenCTI provides predefined rules, not arbitrary custom inference logic creation in the UI.Official identification of inferred results, Rules engine conditions and lifecycle.

Inference test: trace two inputs without enabling a rule across the database.

The local CE 7.261124.0 Rules manager was running, with all 27 rules inactive. To avoid scanning existing data, we inspected the version's implementation and confirmed that ruleApply(elementId, ruleId) loads only the specified object and passes a single event to the specified rule. We then applied it only to this run's new relationship, without activation or a database-wide rescan. This is a one-time API inference test for a specified relationship, distinct from the earlier UI exercise enabling a continuous rule.

Download the complete script and raw output, then run from the existing lab's project root. The script requires all rules to remain inactive. A different baseline stops this case without changing rules on your behalf.

One-time isolated experiment · uses the Worker's existing environment
docker --context colima-opencti-tutorial compose -f lab/compose.yaml \
  exec -T worker python < lab/inference-check.py
  1. Record the baseline.BASELINE lists rule IDs, names, and activated values. The selected ID was part-of_targets, named Targeting propagation via belonging; the API ID was not guessed from a natural-language label.
  2. Create three distinct objects.A new Intrusion Set Actor, Organization Child, and Organization Parent all include RUN in their names and explicitly fictional descriptions. Actor and Parent initially have no relationship.
  3. Create two direct assumptions.Actor targets Child; Child part-of Parent. Read both back and confirm is_inferred=false, no inference explanation, and still no Actor-to-Parent relationship.
  4. Apply the rule only to the new targets relationship.Use that relationship ID as elementId and part-of_targets as ruleId. The API return alone is not proof of success; query for the new Actor-to-Parent targets relationship.
  5. Check the third edge's provenance.The new relationship must have is_inferred=true, with x_opencti_inferences referring to this rule and explanation containing the exact IDs of both original relationships. Recheck that the originals remain direct assumptions, then verify every rule's activation state is unchanged.
Test relationship structure · A, B, and C are unique fictional objects for this run
A targets B       is_inferred = false
B part-of C       is_inferred = false
A targets C       is_inferred = true
  rule            part-of_targets
  explanation     [原始 targets ID, 原始 part-of ID]

The final complete RUN was 2b8b12d2a366. Actor's ID was eb448071-7e21-436d-811e-804f9ab5f217 and the derived targets ID was 6bc900cb-3081-45a5-9816-c0deed9b15bf. EVIDENCE retains all IDs and both inputs. Verify your own RUN rather than treating a previous run's existing edge as current success.

This inference adds no independent evidence.It connects two explicit assumptions and does not prove a real organization was attacked. This run did not test continuous event listening, database-wide activation/deactivation creation and cleanup, multiple markings, or cross-organization access. Do not deactivate another person's rule to clear one test edge. The official guide explains the platform-wide effects of rule activation and deactivation; for interpretation, read the distinction between inferred and original relationships.

Inference Explanation shows Targeting propagation via belonging, three objects, two blue original relationships, and one orange dashed inferred targets relationship.Enlarge image
Read the inference explanation in the UI after API creationThis shows RUN 2b8b12d2a366 and derived relationship 6bc900cb-3081-45a5-9816-c0deed9b15bf. Inference Explanation (1), the rule name, and three nodes/three edges are visible. Orange dashed targets is inferred; blue targets and part-of are original. Names are abbreviated in the graph; use inference.txt for complete object and relationship IDs. This is UI reading after one-time API application, not a UI rule-application test.Actual local screenshot · OpenCTI 7.261124.0 · 2026-11-29

Troubleshooting: read the object back before declaring creation successful

The first script assumed Python-client create results always contained name or observable_value and raised KeyError. The correction retrieves the actual object using its returned ID. Both the failure and later full success remain in the same record. If ruleApply has no GraphQL error but no derived relationship appears, inspect direction, types, rule ID, and Rules manager errors. Do not repeatedly activate database-wide rules just to experiment.

Indicator lifecycle: distinguish score, confidence, and expiry with a new indicator.

Prerequisites: Use an account able to create Indicators and manage tutorial labels. A settings administrator creates custom decay rules. First create the dedicated label sectools-decay-lab. Lifecycle score is not confidence: the former manages validity, while the latter describes information confidence and writing restrictions.

  1. As administrator, in Settings → Customization → Decay rule create SecTools Lab 30-day decay. Filter Main observable type = Domain-Name, Pattern type = stix, and Label = sectools-decay-lab. Do not leave the filter empty.
  2. Set Order above other matching rules, for example 100 after confirming no higher-priority rule. Use Lifetime 30 days, Decay factor 1, Reaction points 60 and 40, and Revoke score 20. Save and enable, then inspect the curve and accepted values. These are exercise parameters, not universal operational recommendations.
  3. In the Indicator list, create SecTools Lab lifecycle exercise with Pattern type STIX, the pattern below, and Main observable type Domain-Name. Set Score 80, label sectools-decay-lab, and Valid from to now. Describe it as a fictional technical exercise that must not support a malicious verdict.
  4. After creation, open Lifecycle beside Score and record selected rule, initial score, valid_from, calculated valid_until, and reaction points. Only this newly created dedicated sample should match the custom rule.
  5. Create a control control-lifecycle.example indicator without the label and compare its Lifecycle. It must not use SecTools Lab 30-day decay. Keep both records and test scores after time actually crosses a reaction point; a newly displayed curve does not mean 30 days have elapsed.
Tutorial pattern · paste only into the Pattern field
[domain-name:value = 'lifecycle-lab.example']

Expected: Rule selection, curve, and validity period agree. Decay may recalculate valid_until; recipients must also handle revoked and detection state after expiry. Editing score recalculates lifecycle, so repeatedly increasing it does not create new evidence.Troubleshooting: For incorrect rule selection on a new indicator, check exclusions, enabled status, Order, and filters. Existing indicators may retain the rule selected at creation and are unsuitable for testing newly changed selection filters.Official indicator lifecycle, Decay rule fields and priority.

Practice two exclusions: one prevents decay, the other prevents creation.

Decay exclusion: exempt only a dedicated test indicator

Prerequisites: Use a disposable environment and first create the label sectools-no-decay-lab. Deleting an exclusion rule does not automatically undo an already applied exclusion; it is not a rollback strategy.

  1. In the Decay rule exclusion tab, create SecTools Lab no-decay, restricted to that dedicated label and Domain-Name. Confirm a nonempty filter before enabling.
  2. Create a tutorial Indicator with pattern [domain-name:value = 'perpetual-lab.example'] and the dedicated label.
  3. Inspect its excluded Lifecycle, then create a control without the label and confirm normal decay. Record the rule ID and both object IDs.
  4. Stop using the tutorial label and record affected objects. Clean up only clearly disposable samples. Do not apply exclusions to production in bulk and only afterward test reversibility.

If all new indicators are excluded, check whether an empty filter was enabled. If a normal decay rule seems to match but decay does not apply, inspect exclusion precedence first.Official decay exclusion and nonautomatic reversal limits

Exclusion list: prevent a value from becoming a STIX Indicator

  1. Open Settings → Customization → Exclusion lists and create SecTools Lab indicator exclusion with Indicator observable types set to Domain-Name.
  2. In text-mode Content, enter one line: never-indicator.example. Save and enable, then wait for processing to become Synchronized.
  3. Attempt to create a STIX Indicator for [domain-name:value = 'never-indicator.example']. Creation should be denied with an error identifying the exclusion-list match.
  4. Use allowed-indicator.example for a control indicator, then directly create a Domain-Name Observable valued never-indicator.example and verify it can exist. This demonstrates an Indicator-creation restriction, not a ban on all data.

Troubleshooting: If not blocked, inspect synchronization, activation, type, and pattern. Existing indicators remaining is not failure: this tests new creation. IP lists support CIDR, but this domain exercise uses an exact value, not a DNS or firewall rule.Official exclusion-list format and scope

Exclusion-list test: block one Indicator while retaining an Observable with the same value.

The same inference-check.py also tests Exclusion list separately from decay exclusion. Each run includes only the exact value blocked-RUN.example, restricted to Domain-Name, with no wildcards, real domains, or networks. After creating the list, wait for refreshVersion to match cacheVersion and rebuilding to finish before positive/negative tests.

  1. Confirm the list contains only this run's value.The text file has one domain line and no trailing blank line. Read back enabled = true, Domain-Name, and values_count = 1. This version counts a trailing blank line; the first attempt therefore failed the assertion. A line count is not automatically a valid-indicator count.
  2. Test denial.Create STIX pattern [domain-name:value = 'blocked-RUN.example'] and require an explicit exclusion-list error. Network failure, insufficient permission, or an arbitrary GraphQL error does not satisfy the test.
  3. Test that blocking is not excessive.An Indicator for another value, allowed-RUN.example, should be created. Then directly create the blocked-RUN.example Domain-Name Observable and retrieve the same value by ID. Finally, search to confirm the blocked Indicator was not left behind.
  4. Disable your own list.In finally, the program sets enabled false for this run's list and waits for cache synchronization. It retains the fictional control Indicator and Observable for inspection, without deleting existing lists or changing other data.
Actual result excerpt · final full run
PASS exact blocked STIX Indicator rejected by exclusion list: blocked-2b8b12d2a366.example
PASS control Indicator created; excluded value still allowed as standalone Observable; no blocked Indicator found

This proves value filtering for newly created STIX Indicators. It does not test other pattern languages, existing-Indicator handling, CIDR, cross-node synchronization, or every connector import path. Under the official Exclusion lists scope, an Observable is not also prohibited simply because its value is listed. State that distinction explicitly in acceptance records.

How far can enrichment be checked without external keys?

This run queried enrichmentConnectors(type: "Domain-Name") and received an empty array. This is a reproducible availability boundary: no connector currently offers enrichment for domains. It does not mean an external source was queried and returned no match. The script deployed no connector, made no external query, and did not relabel local inference as external enrichment. Real enrichment still requires selecting and deploying a specific source implementation and verifying scope, execution account, and added content; that work was not tested here. For manual entry, auto, and Trigger filters, continue with Chapter 16's enrichment exercise and official Enrichment connectors.

Lifecycle test: verify initial rule selection without pretending time has elapsed.

On 2026-11-29, analysis-check.py created three randomly identified tutorial Indicators in Docker CE 7.261124.0 and read back their initial rules and fields.The complete output has RUN 202b001aa69e. Creation and inspection used the API; individual UI buttons were not all exercised.

  1. First create a 30-day decay rule matching only this run's dedicated label and a decay exclusion using another dedicated label. Inspect existing Order values and prioritize the new rule only for matching data. Filters must not be empty.
  2. The first indicator has the decay label and selects this run's 30-day rule. The second has both decay and exclusion labels, and exclusion wins. The third has neither and retains the platform's built-in 300-day rule.
  3. Read initial score, valid_from, valid_until, and selected rule ID. This run used score 80, reaction points 60/40, and revocation threshold 20. The 30-day-Lifetime sample calculated valid_until as 2026-12-12, not simply creation date plus 30 days.
  4. Finally deactivate the two rules created by this run and retain the three fictional indicators. Deactivation does not automatically reverse applied exclusions; this cleanup is not a production rollback guarantee.
Actual output excerpt · initial rule selection
PASS indicator initial rule selection: scoped 30-day rule; exclusion takes priority; unlabelled control unaffected

The excluded sample returned an expiry in year 5138. Interpret that as this version's representation of no ordinary decay expiry, not intelligence valid for millennia. We did not wait 30 days or observe score changes and automatic revocation after crossing reaction points. Verified behavior is initial rule selection, exclusion precedence, and an unaffected control. The earlier Exclusion list preventing Indicator creation is separate: analysis-check.py did not test it; inference-check.py subsequently completed its exact-value positive/negative test. Compare rule purpose and settings with official Decay rules and Decay exclusion rules.

Workflow: define three statuses, then prove review cannot be skipped.

Processing status for ordinary objects

  1. As administrator, select Report in Entity types and check whether Processing status is enabled. Reuse existing organizational statuses instead of duplicating vocabulary in production.
  2. Define completion criteria for “Awaiting analysis,” “Checked,” and “Ready to deliver.” Open the tutorial report, set an actual reviewer as Assignee and collaborator as Participant, then change status.
  3. Find the report by Assignee or status filters. Confirm that status changed while content and judgments remain. A status does not itself check whether evidence is complete.

For a missing status field, check entity-type settings. For missing people, check account visibility and applicable fields. Ordinary status lists and Draft transition restrictions are distinct mechanisms.Official entity workflow

Draft workflow: CE supports basic sequence and approval

Prerequisites: An administrator should use an isolated environment: one workflow definition affects all platform drafts. Reviewers need actual draft-approval capabilities, including the main-area Delete knowledge requirement in the official guide. Reaching an approval state does not automatically grant writing rights.

  1. In Settings → Taxonomies → Status templates, prepare Lab New, Lab Review, Lab Published without modifying operational statuses.
  2. Open Settings → Customization → Entity types → Draft → Workflow. Add Lab New as the only starting state, followed by Lab Review and Lab Published.
  3. Name the two transitions Lab submit, Lab approve and enable Validate Draft on the latter. Connect every state and provide no shortcut from New directly to Published.
  4. Click Publish. If rejected, check isolated states, duplicate transition names, missing validation actions, and omitted states used by existing drafts. Migrate those drafts before removing their nodes.
  5. Create a new draft using Chapter 16 and confirm it can move only from New to Review. Inspect content before Lab approve, wait for writing, and then query the main knowledge base.

EE extension: only designated reviewers may approve

Not tested here; requires EE.On Lab approve, set condition User is to the reviewer, or choose an organization/group condition. Require a comment and publish. Test separately as ordinary submitter and reviewer: the former must lack an available approval transition; the latter should proceed only after entering a comment such as “Sources and unknowns checked.” Authorized members controls draft entry; transition conditions control advancement. Test both. CE does not support these advanced conditions/comment actions; three named statuses alone do not enforce permissions.Official Draft workflow creation, publication, and CE/EE boundary

Your first Playbook: add one label only to selected tutorial domains.

Prerequisites and verification status: Requires a valid EE license, Manage Playbooks capability, and an environment permitted to process tutorial data. This is a documentation-checked walkthrough, not a workflow executed in this project. Prepare the two opening samples and two Playbook labels first. No external source or paid connector is needed for this flow.

The OpenCTI Automation entry displays an Enterprise Edition license agreement dialog with license input, Cancel, and Enable.Enlarge image
The Automation EE license gate was actually checkedClicking Automation EE in CE opened the license dialog. We clicked Cancel, entered no license, and did not enable EE. This screenshot verifies only the license gate. The Playbook instructions and 23 components below remain documentation-based exercises; enterprise workflows were not executed.Actual local screenshot · OpenCTI 7.261124.0 · 2026-11-29
  1. Create a restricted manual entry

    Open Data → Processing → Automation and create SecTools Lab review tag, with description “Add a review label only to manually submitted tutorial Domain-Name objects.” Click Add an entry point and choose Available for manual enrollment, with filters Entity type = Domain-Name and Label = sectools-playbook-lab.

  2. Add the smallest modification

    Use the entry output's plus button to add Manipulate knowledge. Set Scope to Main element in the bundle, Operation Add, Attribute Labels, and Value to existing sectools-reviewed-lab. Do not choose Replace, which would replace the original label set.

  3. Connect an ending that actually writes

    Connect the modification node's Out to Send for ingestion. Leave Unmodified without further changes and record it as a normal possible rerun path. Select Start from the menu beside the Playbook name.

  4. Submit the positive sample and retain the negative control

    Open login.example's object actions and select the manual Playbook action and this flow. If absent, confirm Start and matching entry filters. Because mail.example lacks the entry label, this Playbook should not be selectable for it.

  5. Follow the execution record

    Inspect the execution trace for entry object, modified bundle, and completed Send for ingestion. Reopen login.example: its original labels should remain alongside reviewed. Run again and confirm no duplicate labels; mail.example remains unchanged.

Troubleshooting: If trace contains a label but the object does not, check Send for ingestion, work completion, and write errors. If nothing triggers, check Start and filters. Stop after completion, then duplicate for an event-based exercise. Edits to a running Playbook may apply immediately; its canvas is not automatically an unpublished draft.Official Playbook concepts, Creation, startup, and execution traces.

23 Playbook components: understand each through input, action, and verification.

These are extension exercise cards. All require EE and Manage Playbooks and were not individually tested in this project. Duplicate and stop the previous flow, then replace one node at a time. Samples, combinations, and acceptance criteria are this handbook's exercises. For external sources, email, sharing, or AI, prepare the listed prerequisites first instead of wiring the entire table into one long flow.

Component/purposeTutorial input and prerequisitesMinimum operationAcceptance criteria
1. Available for manual enrollment
Choose a sample manually
login.example with the playbook-lab labelRestrict entry to Domain-Name and the dedicated label; connect the earlier label flowPositive sample can run manually; mail.example is not suggested
2. Listen knowledge events
Respond to creation or modification
Dedicated tutorial label and one new ObservableListen only for Create initially with type/label filters; later test Update and a specific field's has changed conditionMatching creation has a trace; description-only edits do not trigger a flow restricted to changes in another field
3. Listen PIR events
Respond to requirement-set changes
The practice PIR from Chapter 14Explicitly select that PIR, initially enable only newly added objects, and connect the label flowA new matching sample triggers; another PIR's sample does not. Do not leave selection empty to include every PIR
4. Query knowledge on a regular basis
Requery on a schedule
A practice filter matching only two recordsChoose hourly and initially avoid bundling all results; on a second run test Only last modified entities after the last runScheduled traces appear; unchanged samples are not processed again in incremental mode
5. Apply predefined rule
Resolve existing context
A practice Report containing a domainChoose Resolve container references and inspect a low-volume log or traceOutput includes existing container members without adding a malicious verdict to an unknown domain
6. Container wrapper
Wrap samples in a container
login.example and an environment able to create ReportsChoose Report, wrap main only, name it SecTools Lab wrapper, and connect ingestion; initially avoid creating a new container each timeThe stored container includes the domain; reruns do not create a new report solely because of the exercise settings
7. Create security coverage
Create a coverage record
A compatible test object from Chapter 15Scope main, choose a type supported by the component, and connect ingestionMatching coverage appears in output and the main area; a record's existence does not prove a defense is deployed
8. Enrich through connector
Request source enrichment
A deployed enrichment connector with matching scopeSend only a compatible type, explicitly choose the connector, and use an authorized sampleTrace matches source results; retain no-record or incompatibility failures rather than inventing answers
9. Extract observables from indicator
Extract observable values
This chapter's simple lifecycle-lab.example STIX patternScope main, connect Out to ingestion, and retain Unmodified as a no-addition checkpointThe new Observable value matches the pattern; the entire pattern is not treated as a domain
10. Log data in standard output
Observe a bundle
A bundle containing only fictional dataChoose a log level retained by the environment and insert before modification; compare platform logsThis node leaves input/output unchanged, and logs contain only this run's fictional data
11. Manipulate knowledge
Modify a selected attribute
login.example with existing labelsAdd one reviewed label, scope main, then ingestOld and new labels coexist; separately test that Remove removes only the specified value
12. Match knowledge
Branch on a match
One positive and one negative bundleFilter on reviewed label; Out runs the tutorial action and No-match makes no changeMatching data follows Out, other data follows No-match; this routes bundles rather than deleting other elements
13. Promote observable to indicator
Create a technical indicator
A new promote-lab.example explicitly described as a technical exerciseScope main, connect Out to ingestion, and keep it outside production-sharing listsPattern value and based-on relationship match the sample while retaining the no-malicious-verdict explanation
14. Reduce knowledge
Narrow the processing set
A main Report with members of two typesResolve container members, then filter Domain-Name; record both outputs separatelyOut retains main and matching elements. Treat Unmatched as the original bundle, not an empty set
15. Manage access restrictions
Restrict authorized container members
An ingested test Report and two test accountsScope main, set only designated test members, and retain an administrator recovery pathAllowed users can view; unlisted users cannot. Verify with nonadministrator accounts
16. Remove access restrictions
Remove member restrictions
The previous row's test ReportSelect main only, execute, then recheck Authorized membersThat restriction is removed, but marking and organization controls still apply; visibility to everyone does not follow
17. Share with organizations
Share with a selected organization
Configured main organization, ingested sample, and test recipient organizationScope main; select only the test organizationThe recipient can retrieve the data; unrelated organizations gain no access
18. Transform with AI
Transform and continue processing
Available XTM One and quota; fictional data onlyChoose a transformer agent, Run as yourself or a dedicated service account, and request description cleanup without new factsA bundle is returned for further processing; compare original IDs and facts individually
19. Unshare with organizations
Revoke organization sharing
A previously explicitly shared test objectUse a separate flow to revoke only the test organization; do not create and immediately revoke as a substituteThe recipient no longer receives data through this share; the original author retains visibility
20. Send email from template
Send template email
Configured template and test mailbox; actual email will be sentChoose a template and one explicit test recipient, not an entire organization; keep stopped until readyThe test mailbox receives one email with correct subject, object link, and content
21. Send for ingestion
Persist bundle modifications
Output from the preceding reviewed-label modificationPlace last on the branch, with no following componentThe change is visible on the stored object after rereading, not only in trace
22. Send to AI
Hand work to AI
XTM One, an agent, and a restricted execution accountChoose a consumer agent and request only a draft summary for human review, without publishingInspect the separate agent result and draft; Playbook completion alone does not prove AI completion
23. Send to notifier
Notify designated recipients
A tested notifier and test account from Chapter 15Choose one static target; add a parallel Send for ingestion branch if modifications must also persistThe notification links to the correct object; verify stored changes separately rather than treating notification as proof of writing

For component names, scopes, and routes, use the official component reference. For editing and traces, use the official Playbook creation guide. Prepare PIR, coverage, labels, and permissions using their respective handbook chapters.

Six Apply predefined rule choices: complete one before moving on

ChoiceSmall reproducible exercise
Extend first/last seen from report publication datesDuplicate a tutorial Report with a distinctive date. Apply only to test members supporting the relevant time fields and compare before/after times; do not use real incident data.
Resolve already linked Indicators from an ObservableInput an Observable with the based-on relationship established in this chapter and confirm the existing Indicator enters the bundle. Without a relationship, do not expect one to appear from nothing.
Resolve based-on Observables from an IndicatorQuery the same indicator relationship in reverse and compare returned Observable IDs, not just names.
Resolve container referencesInput the practice Report and inspect included objects and relationships; a lone domain is not a container.
Resolve first-level neighborsInput Demo Malware, list its manually created neighbors as expected results, then compare the bundle.
Find containers containing this objectInput login.example and check whether its existing practice Report is included without introducing unauthorized reports.

Three common wiring mistakes: Do not chain two predefined rules in one flow; use a separate flow for a second resolution. Reduce retains the main object, so Report as main can still fail at domain-only enrichment. Sharing and Authorized members components act on stored data. Ingest a newly generated Container wrapper first, then set access in a second flow.

Move from manual to event-based execution without triggering yourself repeatedly

  1. Stop and duplicate the first Playbook. Change entry to Listen knowledge events, listen only to Create, and retain Domain-Name plus playbook-lab filters.
  2. Create a new event-playbook.example with the label. Verify that one creation event writes reviewed. Initially avoid Update, which could retrigger on the label just written.
  3. For later Update handling, require a specific field has changed and exclude already-completed labels. Test creation, an unrelated-field change, and a matching-field change separately.
  4. Before email or notifications, use Chapter 15's notifier and sample exercise to verify the template, then add a second branch. If executions keep increasing, Stop immediately and inspect repeated object IDs and event origins in trace.

Native feeds: create a restricted source and verify it with another identity.

Prerequisites: The creator needs Manage Data sharing. The recipient needs Access data sharing, compatible marking visibility, and feed access. Apply sectools-share-lab only to login.example, not mail.example, and record both IDs. All feeds below remain restricted and need no public internet exposure.

Live stream and TAXII collection

  1. Go to Data → Data sharing, create a Live stream named SecTools Lab stream, and filter Entity type = Domain-Name and Label = sectools-share-lab.
  2. Keep Access control restricted to the test recipient. Save the stream ID, then follow Chapter 16's destination URL/token verification to confirm the recipient can select it.
  3. Using the same filter, create SecTools Lab TAXII and record its collection ID. Query the objects endpoint below with the recipient token: expect login.example in objects and no unlabelled mail.example.
  4. Verify that an unauthorized test account cannot read the collection; do not test only with an administrator token. For cross-platform use, provide API root, collection ID, and access instructions without putting real tokens in documentation.
Restricted TAXII read · Python sends only local requests
import getpass, json, urllib.error, urllib.request
collection = input("Collection ID: ").strip()
token = getpass.getpass("Receiver token: ")
url = "http://localhost:18080/taxii2/root/collections/" + collection + "/objects/"
request = urllib.request.Request(url, headers={
    "Authorization": "Bearer " + token,
    "Accept": "application/taxii+json;version=2.1"})
try:
    with urllib.request.urlopen(request, timeout=30) as response:
        data = json.load(response)
    print(json.dumps(data, ensure_ascii=False, indent=2))
except urllib.error.HTTPError as error:
    print("HTTP status:", error.code)
except (urllib.error.URLError, TimeoutError, ValueError) as error:
    print("Request or JSON error:", type(error).__name__)

This script reads only the first page. The tutorial set is small; a production consumer must still handle TAXII pagination. Streams may include dependencies and relationships, requiring restricted-account visibility checks. Simple Observable samples do not replace tests of multiple markings and cross-organization segregation.

CSV feed: choose fields explicitly, then test the time window

  1. Create SecTools Lab CSV sharing with the same filters and restricted account. Choose a comma separator.
  2. Create a column domain with Direct Domain-Name mapping to value, without relationship columns initially. Set Rolling Time to 1440 minutes and Base Attribute to updated so the exercise update falls inside the window.
  3. Save and use the provided download URL as the recipient. Expect header domain and login.example, without mail.example. A download authenticated by the current browser session is not anonymous access.
  4. For an advanced exercise, use a tutorial Indicator with an existing indicates relationship. Add a Relationship column selecting indicates → Malware → name. With All neighbors, use a semicolon list separator distinct from the CSV comma.

Troubleshooting: For empty CSV, check rolling window and created/updated basis. For too few rows, check filters, permissions, and limits. Public sharing additionally requires Manage credentials and selecting the identity represented by public access; it is unnecessary here.Official Native feeds, fields, and sharing controls

Sharing tests: verify collection boundaries and anonymous denial, not just downloads.

In local CE 7.261124.0, we created restricted TAXII, CSV, and Stream definitions through the API. Filters selected the exact two Domain-Name IDs created by this run's CSV Feed instead of relying on database-wide totals. New JSON domains and the RSS report were outside sharing scope. The procedure starts with Chapter 16's HTTP experiment; raw output is retained in feed.txt.

  1. Anonymous TAXII denial: The private collection's objects endpoint returned HTTP 401 without a token. With the lab token and limit = 1, we followed each next value until more = false. There were three pages, the final page empty, totaling exactly the two selected domains.
  2. TAXII Pull: A same-platform pull feed targeted that private collection. Its logs recorded two fetched objects, and it was stopped after success. Original IDs remained unchanged on read-back. This tests resend/reuse of known data, not new-data synchronization to another platform.
  3. CSV fields and filters: The private feed mapped Domain-Name value to domain and x_opencti_description to source_note, with headers, comma separator, and a 1440-minute window. This API test used created_at because samples were newly created. It serves the same exercise purpose as updated in the earlier UI walkthrough but is a different configuration.
  4. CSV download: Without a token, the endpoint returned HTTP 403. After an authorized GET /feeds/{feed-id}, a CSV parser read the header and two values, and each source description was compared. No JSON-feed domains or RSS report were present.
  5. Stream: Discovery found this restricted stream; verification stopped after a successful connection test. No synchronizer was created, so there was neither self-synchronization nor a claim of sustained cross-platform synchronization.
Actual output excerpt · 2026-11-29
PASS private TAXII collection denies anonymous read: HTTP 401
PASS private TAXII GET pagination: 3 pages; exactly the two selected CSV domains
PASS TAXII Pull fetched >=2 objects; same-platform replay kept the same observable IDs (upsert scope)
PASS Stream remote discovery and connection test: Connection success; synchronizer NOT created or started, no self-ingestion
PASS private CSV sharing rejects anonymous download: HTTP 403
PASS private CSV sharing: header + exact 2 selected rows, descriptions preserved; JSON/RSS excluded

What do these results establish?In this environment, restricted endpoints reject anonymous readers, and authorized filtering, TAXII pagination, and CSV fields match two samples. This does not replace tests with another unauthorized account, minimum-permission roles, multiple markings, organization segregation, or Stream dependencies; this run used the existing lab administrator. Sharing definitions remain private for inspection and all ingestion from this run is stopped.

If you receive only a header, check whether the one-day window expired, then inspect ID filters. If unexpected objects appear, stop delivery and investigate filters and permissions. After configuring recipients according to the official Native feeds guide, repeat the same positive and negative tests under the actual recipient identity before extending lab results to team delivery.

Manual exports and Fintel: open the deliverable before calling it complete.

Export STIX, then compare simple and full

Prerequisites: Requires a deployed export connector and an account with export permission and data visibility. Reuse Chapter 5's tutorial Report and inventory its objects and relationships first.

  1. Open the report's export panel and choose the appropriate JSON/STIX format. Start with simple and a recognizable filename sectools-lab-simple.
  2. Set both the maximum marking allowed for included objects and the marking of the output file itself. Use a scope compatible with the practice account. A file marking does not replace content filtering.
  3. Create the work, wait, and download. Inspect IDs, types, and references in JSON objects, not merely file size.
  4. Export the same input as full with filename sectools-lab-full. Compare added first-level neighbors and relationships against the delivery purpose. Actual differences depend on object types and connector; verify the result.

For a missing download button, inspect work and connector. For missing content, check simple/full, selection, and markings. Compare the object-verification method in the tested export script.Official manual export and formats

Fintel templates and designs: an untested EE finished-intelligence exercise

Prerequisites: Requires valid EE, an account able to manage templates for the relevant Entity type, an exporting account, and working Fintel generation and HTML-to-PDF services. Have the administrator confirm capabilities and licensing rather than assuming a Content button means everything is enabled.

  1. As administrator, open Settings → Customization → Entity types → Report → Templates and start with an existing previewable template. If none exists, use that version's editor to create only title, summary, known/unknown items, and an object list first. The official export page does not fully document template syntax, so this chapter does not invent a paste-ready schema.
  2. Open Settings → Customization → Fintel design and create SecTools Lab report design. Use a logo you are licensed to use or keep the default. Choose dark primary/secondary background colors and sufficiently contrasting light text.
  3. Return to the Report template preview and select the new design and tutorial report. Check long titles, empty values, and multipage lists rather than only short defaults.
  4. In the tutorial Report's Content, generate HTML or PDF from a template. Enter filename, file marking, maximum content marking, and design, then create.
  5. When work completes, download the PDF and inspect every page's summary, relationship explanations, sources, and footer. Correct data or templates and generate a new version rather than only editing a screenshot.

Troubleshooting: If preview works but PDF fails, inspect template-generation and PDF-conversion works separately. For a missing logo, check whether the generation service can read it. Styling cannot add missing analysis; ensure unknowns were not silently turned into conclusions.Official Fintel design and PDF application.

Refine, Copilot, and Insights: verifiable input is the basis for an acceptable answer.

AI was not tested in this section.Ask AI requires EE and a configured AI endpoint. Playbook agents separately require XTM One and quota. First check EE feature scope and the official AI overview, then have an administrator provide available features and accounts. These instructions require no paid-service signup and do not present a fake API key as a functioning environment.

Refine/Ask AI: start with nonconfidential Traditional Chinese text

  1. An administrator first configures AI__ENABLED=true, the correct AI__TYPE, AI__MODEL, AI__TOKEN, and required AI__ENDPOINT. Configure additional Azure parameters according to the actual service documentation. Keep tokens in controlled environment settings, not reports, terminal screenshots, or Git.
  2. Paste the original text below into a tutorial Report editor and save an unchanged copy. Find the field's Ask AI icon and initially choose only Fix spelling & grammar. If absent, inspect license and configuration; do not assume every text field supports it.
  3. Compare each returned sentence for names, dates, negation, and unknowns. Accept only a version preserving “purpose unknown.” Then separately try Shorter, Summarize, or Strategic/Tactical/Operational tone.
  4. Restart from the original each time so a previous error does not become the next source. If Explain adds background, require sources and check them before including it in a report.
Original text for AI rewriting · fictional example
SecTools Lab 在教學資料中記錄 login.example。
目前沒有足夠資訊判定其用途,也沒有證據可稱為 C2。
Demo Intrusion Set 使用 Demo Malware 是本課程設定的教學假設。
下一步是核對原始紀錄與來源時間,不建立新的歸因。

Expected: Wording improves without adding facts or increasing certainty.Troubleshooting: For no response, inspect model, endpoint, credentials, and quota. Reject invented attackers, dates, or C2 claims and narrow the task. Compare document summaries and STIX extraction in review areas too; valid JSON alone is not a reason to ingest immediately.Official Ask AI settings, text improvement, and result panel

Copilot: begin with a read-only summary and inspect tool approvals

Documentation limitation: At review time, the official Copilot page did not fully specify activation, entry points, or all account capabilities. The steps therefore begin with an administrator-provided working Copilot interface instead of inventing button locations.

  1. In the enabled conversation interface, identify the tutorial Report by name or ID and ask: “Read only this report. List known facts, unknowns, and next steps with supporting evidence for each. Do not modify data.”
  2. Compare every response point with the report and relationships. For missing objects, inspect the execution identity's visibility rather than pasting an administrator token into the conversation.
  3. If a tool approval appears, read its name, target, and parameters. Approve only the required read for this exercise. Reject writing, sharing, or sending actions and correct the task.
  4. Do not choose Yes, always merely to avoid prompts: it can affect later unattended operations of that type. Have administrators configure persistent tool allowances in XTM One under organizational policy.

Acceptance includes no unrequested changes. Confident wording is not evidence. Unattended flows may stop at tools still requiring approval; a started schedule is not enough.Official Copilot and tool-approval behavior

Insights: define a testable question while acknowledging missing instructions

The official Insights page still states it is under construction and lacks complete reproducible setup and entry-point instructions. Accordingly, this handbook does not invent click steps or claim completed operational verification. If Insights is available in your licensed environment, choose the tutorial Report or Demo Malware and compare every output with existing sources, checking time range, references, and unknowns. If absent, ask the administrator about version and availability. These are acceptance criteria, not a complete substitute for missing instructions.

Finally, have someone else repeat it.

Keep an operation card for every workflow: entry point, identity, positive sample, negative sample, expected changes, result location, and stop method. Ask a colleague to repeat it and explain both successful results and why nonmatching data was untouched. A schedule, notification, or AI response is only an intermediate signal; completion requires matching data and delivery outcomes.

To find another security task worth automating, explore tool applications and practical security at SecTools.tw. Bring a clear question and use this handbook's methods to establish what the tool saves the team and what it preserves.

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