Setting OpenCTI retention policies so the platform stays fast without losing data you need
A running OpenCTI instance keeps accumulating knowledge, files and workbenches, and eventually the volume slows searches and inflates storage. Retention policies let you set a maximum age for each kind of data so OpenCTI deletes it automatically once it has been kept long enough. OpenCTI defines three retention scopes: Knowledge, which covers STIX objects such as indicators, observables and reports; File, which covers uploaded files and exported documents; and Workbench, which covers the imported files waiting to be processed. Each rule sets a maximum number of days an item may remain before deletion, and the Knowledge scope also accepts filters so you can target specific object types, sources or markings rather than everything at once. Teams usually need retention when an enrichment or feed connector creates high volumes of low-value indicators, when workbenches pile up after failed imports, or when a policy requires data to be removed after a defined period.
Treat retention as an irreversible decision. Retention deletes are permanent and cannot be restored from the Trash, which is a different mechanism from a manual deletion. Since OpenCTI 6.1, objects you delete by hand are kept for a period and can be recovered from the Trash, but a retention deletion does not go through that path. Before you enable a rule, confirm with your platform owner which object types the filter will match, how long reports and their relationships must remain available for investigations, and whether a backup exists for anything you may need later. Test filters on a non-production instance first, and check the OpenCTI retention policies documentation for the exact behavior of each scope in the version you run.
The Trash, by contrast, gives you a recovery window for mistakes. Deleted objects remain there for a retention period that you should confirm for your version, and restoring them brings back the object with its recorded relationships. The OpenCTI delete and restore documentation explains the steps and what a restore covers. A practical approach is to use manual deletes and the Trash for everyday cleanup, reserve retention rules for data that has a documented lifetime, and review the rules after each upgrade. Record who approved each rule, the scope and filters used, and the first run date, so the audit trail explains why a missing object is missing.
Retention scopes and settings, and when each fits
This table compares the three retention scopes (Knowledge, File and Workbench) and the maximum days setting and Knowledge filters that shape them. Read each row as a decision: what the rule removes, what to confirm before enabling it, and which team usually owns that call. Deletions made by retention cannot be restored from the Trash, so confirm each rule against your own records obligations before it runs.
| Setting | What it removes | What to confirm before enabling | Usually owned by |
|---|---|---|---|
| Knowledge scope | Knowledge objects (such as reports, indicators, and relationships) older than the maximum days setting, unless excluded by filters | Which object types and markings fall in scope, and whether any of them feed active detections or sharing agreements | Threat intelligence lead with input from detection engineering |
| Knowledge filters | Narrows the Knowledge scope to matching objects only, for example by source, label, or marking | Filter logic is exact: test it on a non-production instance and confirm the matched count before saving | Platform administrator with the threat intelligence lead |
| File scope | Uploaded files (reports, attachments, exports) older than the maximum days setting | Whether files are the only copy of evidence, and whether any sharing partner expects them to stay available | Records or compliance owner, with the team that uploads files |
| Workbench scope | Saved workbenches (investigation views and draft work) older than the maximum days setting | Whether analysts rely on old workbenches as case records, and whether they need an export first | Analyst team lead |
| Maximum days setting | Sets the age threshold for each scope; objects past the threshold are deleted at the next run | Retention periods required by your policies, regulations, or information-sharing agreements, and the date your team starts counting | Records or compliance owner, approved by the CISO or information security lead |
| Trash (7-day window) | Nothing is removed permanently at first; manually deleted objects stay in the Trash and can be restored | Whether the Trash window is long enough for your review cycle, and that retention deletes skip this recovery path | Platform administrator |
| Deletion in the stream | Deletions still reach stream consumers, even when an object can later be restored | Which downstream systems consume the stream, and whether they can handle a deletion that is later reversed | Platform engineering with owners of connected tools |
How the 7-day trash changes what a deletion means
Since OpenCTI 6.1, a deleted object is not always gone at once. It is kept for a period in the Trash and can be restored from there, but the deletion itself is still published to the stream. That combination is what changes the meaning of a delete: the platform may be able to bring the object back, while downstream consumers may already have acted on the removal. The Trash duration is 7 days, but confirm the exact behavior, including what happens to relationships and files, in the OpenCTI delete and restore documentation for the version you run, because your team will plan recovery windows around it.
A user deleting an object and a retention rule removing it are two different events with different owners. A user delete is a deliberate action by an analyst or administrator, and it lands in the Trash where it can be reviewed. A retention rule is a scheduled policy that removes knowledge, files or workbenches after the maximum number of days you set. Ask whether retention-driven removals also pass through the Trash in your version, because if they do not, a retention rule may not be recoverable at all. Record which path applies to each scope before you rely on either one.
Downstream consumers and synchronized platforms see the deletion event even while the object sits in the Trash. A stream consumer, a backup connector or a synchronizer that copies data to another OpenCTI instance may remove its own copy as soon as it receives the event. If you restore the object from the Trash later, confirm whether those consumers receive a matching create or update event, since a restore that the other side never sees leaves the two platforms out of step. Test this with a non-production object before you set retention on data that other systems depend on.
Configuring retention rules in a safe sequence
This sequence turns retention from a risky bulk deletion into a staged change, so each scope is agreed with its owners, proven on a copy of the platform, and confirmed in production before it removes anything permanently.
Confirm the version and Trash behavior
Record the exact OpenCTI version running in production and in the test copy, then confirm that deleted objects go to the Trash and can be restored in that version. Since OpenCTI 6.1, deleted objects are kept for a period and can be restored from the Trash, but the deletion is still sent to the stream, so downstream consumers will see it. Write down the version and this stream behavior in the change record. The step is done when your team can state, for that version, what a deletion does and what a retention delete does differently.
Agree retention periods with data owners
For each scope (Knowledge, File and Workbench), meet the people who own that data and agree a maximum number of days before deletion, plus any filters for Knowledge objects such as which entity types or sources are in scope. Ask owners which intelligence must be kept for investigations, reporting or sharing agreements, and record who approved each value. Make clear that retention deletes cannot be restored, unlike items sent to the Trash. The output is a signed table of scope, filter, days and approver.
Rehearse the rules on a non-production instance
Load a copy of production data or a representative sample into a non-production OpenCTI, then configure the agreed rules there. Use an illustrative example such as a Knowledge filter limited to one source to confirm the filter matches only the intended objects. Check the platform logs and the object counts before and after the rule runs. The step is done when the counts match the signed table and no object outside the agreed filter has been removed.
Back up production before enabling rules
Before you enable any retention rule on production, take a verified backup of the platform data and file storage, and test that you can restore it in a separate environment. Because retention deletes cannot be restored from the Trash, the backup is the only route back to objects removed by a mistaken rule. Confirm the backup covers Elasticsearch or OpenSearch indices, the database and S3-compatible file storage, and record the time and location of the restore test. Do not proceed until the restore has been demonstrated.
Enable rules one scope at a time
On production, enable the rule for a single scope, starting with the scope that carries the least risk to investigations, then wait and observe the platform before enabling the next. Watch queue depth, error messages in the logs and user reports during this period. Do not enable Knowledge, File and Workbench rules together, so any unexpected deletion can be traced to one change. The step is done when the first scope has run through its cycle without unplanned deletions or errors.
Sample objects near the cutoff
After each scope runs, pick a sample of objects that are close to the retention cutoff and check whether they were kept or removed as the agreed days and filters predict. Include objects just inside and just outside the boundary, and objects that match the filter as well as ones that do not. Record the results against the signed table, and investigate any mismatch before enabling the next scope. The check is complete when every sampled object behaves as expected.
Confirm Trash recovery for ordinary deletions
Separately from retention, delete a test object in a non-production or designated test area and confirm it appears in the Trash and can be restored. Then confirm the restored object returns with its relationships as expected. Also note that a retention deletion is not restorable from the Trash, so the restore check verifies only the ordinary deletion path and must not be read as a safety net for retention. Document the result and the person who ran the check, and schedule the next review of the rules with the data owners.
How a deletion moves from the platform to the Trash, the stream and permanent removal
A deletion starts either when a user deletes an object or when a retention rule reaches its maximum number of days. Since OpenCTI 6.1, the deleted object is kept for a period and can be restored from the Trash before it is removed. The deletion is still sent to the stream at the moment it happens, so downstream consumers see it even though the data can be restored. Check the retention documentation for the exact holding period and confirm how your version handles deletes that do not come from the Trash.
Deletions from users or retention rules pass through the Trash before permanent removal.
Security and operational risks of automatic deletion
Retention rules delete knowledge, files and workbenches on a schedule, and those deletes cannot be restored by a rule. The cards below cover who controls the rules, what records the deletions, what protects you if something goes wrong, and which other systems feel the effect.
Restrict who can change rules
A retention rule is a standing instruction to delete data, so changing one can remove intelligence across the platform on the next run. Limit rule administration to a small named group of platform administrators, and keep analysts and connector service accounts out of that permission. Before go-live, confirm in your own environment which roles can open the retention settings and review that list whenever roles change. Treat any change to a scope, filter or day count as a change request with a second reviewer.
Confirm deletions reach the audit trail
Deleting through a retention rule should leave a record of who or what removed each object and when, and you need that record to answer questions after an incident. Test the behavior in a non-production instance by letting a rule remove a known test object, then search the activity and audit records for it. If your edition does not give you that record, plan an alternative such as log collection from the platform. Document the result so the audit evidence is known before real data is affected.
Back up before enabling rules
The Trash keeps deleted objects for a period and allows restore, but retention deletes are not restored by that path, so a backup is your only recovery route for data a rule removed. Before enabling any rule, confirm that a backup of the knowledge data exists, that it has been restored successfully in a test environment, and that someone owns the restore procedure. Set the rule to run only after the first backup completes, and record the backup time for each rule change.
Delete and restore docsPlan for synchronized platforms
Deletions are still sent to the stream even when the Trash can restore an object, so downstream platforms that consume the stream may remove their copies too. This matters for synchronized instances, for example a classified and an unclassified platform, or two regions. Before enabling a rule on a source platform, list every consumer of its live stream, decide whether each should delete, and test one rule end to end on a copy. Confirm the behavior of each synchronizer you use.
Resolve file retention and legal hold
File retention applies to uploaded documents and extracted artifacts, which may be evidence in an investigation or subject to a legal hold that overrides normal disposal. A file deleted by a rule can conflict with a hold issued after the rule was set, so the rule and the hold process must be reviewed together. Ask your legal and records team which file types must be kept and for how long, then compare that list with each file scope. Record the approved exceptions and who approved them.
Monitor the effect on index size
Retention exists to keep the search index small and fast, so the expected result is a measurable drop in stored objects after each run. Track object counts and index size before and after each scheduled run, and alert when a run removes far more than the change you planned. Confirm with your Elasticsearch or OpenSearch administrator which indices shrink and whether deleted documents are reclaimed on their own schedule, since disk use may not fall right away.
Why retention keeps OpenCTI fast and where it does not help
Retention keeps OpenCTI fast by limiting how much knowledge accumulates over time. Every Knowledge object that stays in the platform is indexed for search, linked to other entities, and carried along in queries, so a platform that never removes stale indicators, observables and reports slowly gets heavier to search and to browse. Files attached to those objects, such as reports, PDFs and extracted documents, add to object storage, and the metadata that describes them adds to the index. Retention rules are the control that keeps this growth tied to the value of the data. Before you set a number of days, list which object types your teams actually query, which feeds produce the bulk of new records, and which sources your analysts treat as authoritative. Those answers decide which scopes need a limit at all.
Retention does not fix everything that looks like a performance problem. A growing ingestion backlog is usually a throughput problem between the Python workers, RabbitMQ and Elasticsearch or OpenSearch, so deleting older knowledge will not clear a queue that is blocked on write capacity or on resolving too many references. Disk pressure has a similar split: retention can reduce file and index volume over time, but it will not free space that a search cluster needs right now, and it does not replace capacity planning or disk watermark management. Treat retention as one lever for long-term growth, and work the short-term symptoms through the sibling topics on ingestion errors, worker and RabbitMQ backlogs, and Elasticsearch indices and disk space. Confirm in your own environment which index and queue metrics are climbing before you change any retention setting.
Limits to confirm in your environment before enabling retention
Retention deletes are permanent, while the Trash can hold recently deleted objects for a limited period. Before you turn on any rule, confirm how the installed version behaves across knowledge, files, Enterprise features and connectors, because each of these changes what a deletion actually removes.
Exact Trash retention period
The Trash keeps deleted objects for a period that you must confirm for your installed version rather than assume. Since OpenCTI 6.1, deleted objects can be restored from the Trash, but the deletion is still sent to the stream. Ask whether the period is configurable in your deployment, and test it on a non-production instance by deleting a sample object and timing when it disappears. Record the answer, because it sets how long your team has to notice and recover a mistaken deletion.
Delete and restore docsWhether restore covers files
Knowledge objects and uploaded files are stored in different places, so restore behavior for each may differ. Confirm whether a file removed by a File-scope retention rule can be recovered from the Trash, or whether it is gone at once. Also check whether files linked to a restored knowledge object come back with it. If files cannot be restored, a File rule carries more risk than a Knowledge rule and needs a separate backup plan before it runs.
Behavior with organization segregation
Enterprise features such as organization-based data segregation change who can see and restore deleted objects. Confirm whether a user in one organization can recover an object created by another, and whether retention rules apply across organizations or only to the scope you select. Test with two accounts in separate organizations before you rely on segregation to contain a deletion. Document which roles hold restore rights, because a retention rule and a segregation boundary can interact in ways that surprise administrators.
Connectors that re-import deleted data
A connector that polls a feed can re-create an object you have just deleted or expired. Identify every import and enrichment connector that writes to the platform, and check whether its next run restores the same entities. Compare the connector's update behavior with your retention window. If a feed keeps re-creating records, the rule will delete them again, which adds churn to the search indices and the queue without reducing storage. Adjust the feed filter or the rule before enabling deletions at scale.
Feature availability in your release line
Retention rules and the Trash depend on the release you run, so check that your line includes the feature before you plan around it. OpenCTI uses date-based versions, and LTS releases receive only critical bug and security fixes after the first month of stabilization. Confirm the exact release and hotfix you run, then check its release notes for retention and Trash behavior. A feature that is absent or changed in your LTS line means your rollout plan must wait for an upgrade.
Product life cycle docsRetention policy documentation
Confirm how the retention feature itself is documented for your version, including the three scopes (Knowledge, File and Workbench), the maximum number of days before deletion, and the filters available for the Knowledge scope. Ask your vendor or Filigran which filter fields are supported and whether a rule's effect is shown before it runs. Keep the reviewed configuration in change control, so an administrator can explain later why an object was removed.
Retention policies docsQuestions teams ask before setting OpenCTI retention
How much effort does OpenCTI retention setup take, and what drives it?
The effort depends less on configuring the rules themselves and more on deciding what each rule should delete. Setting a maximum number of days for each scope takes little time once the rules are agreed. The work grows with the number of knowledge types you need to filter, how many teams share the platform, how much historical data already sits in the instance, and how many approval steps your data owners require before anything is removed. Ask any partner to break the quote into scoping, rule design, testing on a non-production copy and handover, and to state which parts are one-time and which recur when retention needs change.
Do we need a partner to set up OpenCTI retention?
No. Retention rules are configured in the platform by an administrator, so a capable internal team can do it. A partner adds value when the rules must be mapped to legal holds, sharing agreements or multiple business units, or when the team has no one who can test deletions safely. Whichever route you take, agree the rule design in writing before changing production, because deletions are permanent once the Trash window has passed.
What does the internal team need to provide for retention work?
Your team needs an administrator who understands the platform, a data owner who can say which objects are still needed, and someone from legal or compliance who can state retention periods for regulated data. Engineers should be able to check the stream and the connectors that write to the platform, since deletions are still sent to the stream. Without these roles, rules tend to be set on guesswork and revised after data is already gone.
Can OpenCTI retention deletes be undone?
Retention deletes cannot be restored. Retention rules remove data after the maximum number of days you set, and that removal is not reversed. Deletions made by hand are different: since OpenCTI 6.1, deleted objects are kept for a period and can be restored from the Trash, so teams should not assume a retention rule behaves the same way. Test rules on a copy of the data first, and confirm with the vendor documentation how each scope behaves in your release.
How does the Trash differ from retention rules?
The Trash holds objects that a user deleted, and lets them be restored for a period, while retention rules remove objects automatically once they reach an age you define. A user deletion goes to the Trash first, whereas a retention deletion is the end of the object's life in the platform. Keep these separate in your runbook so that people do not expect the Trash to recover data removed by a rule. The exact Trash period and restore behavior should be confirmed in the delete and restore documentation for your version.
What backups should exist before we set retention?
Take a full backup before enabling any rule that deletes data, and confirm that you can restore it. Because retention deletes cannot be restored, the backup is the only way back if a rule is set too broadly. Backups should cover the database and search indices together with stored files, and a restore should be tested on a separate environment so that the team knows the process works. Check the backup connector's documented limits, since it does not cover every component.
Does OpenCTI Community Edition support retention policies?
Confirm this against the current documentation before you plan around it. OpenCTI Community Edition is licensed under Apache License 2.0, while the Enterprise Edition has its own license and adds features such as audit logs and organization-based data segregation. Retention is documented in the retention policies guide, and you should check whether the feature and any scope you need are available in the edition you run. Ask the vendor or check the Enterprise Edition documentation before you assume a feature is included.
How do we keep data that regulation requires us to retain?
Start by listing which data types carry a legal or contractual retention period, then exclude them from automatic deletion or set their maximum age to match the requirement. Retention rules delete on age alone, so a rule that is too short can remove evidence your organization must keep. Document each decision with the owner and the reason, and review the rules whenever a regulator, sharing community or contract changes. Compliance teams should confirm the requirement, and an independent auditor will assess whether the controls work.
What to ask the vendor and your own team before going live
Before any retention rule is enabled, the decision that matters most is who signs off on each period, and that person needs answers to three questions from Filigran's documentation and from your own data owners. The first is which objects each scope really covers. OpenCTI's retention rules run in three scopes, Knowledge, File and Workbench, and it is easy to assume a Knowledge rule touches everything an analyst thinks of as intelligence. Ask Filigran's documentation, or test on a non-production instance, exactly which entity types, relationships and files a rule removes, and whether anything linked to a deleted object is affected. Record the answer in writing, because the scope wording is what your auditors and incident responders will read later.
The second question is how the filters match real data. Knowledge rules accept filters, and a filter that looks precise on paper can match far more than intended once labels, markings or creator fields are populated inconsistently across connectors and teams. Have your data owners pick a sample of records that must survive and a sample that must expire, run the filter against both, and confirm the result before the period is set. Ask whether the matching logic is applied at deletion time or evaluated continuously, since that changes what a later correction can recover.
The third question concerns shared intelligence. An object imported from a partner, a sharing community or a feed may still be needed by your analysts after its original source has stopped publishing it, and deletion removes it for every user of the platform. Confirm with data owners which sources they are contractually or operationally obliged to keep, and whether any downstream stream or synchronization will also receive the deletion event. Remember that the 7-day trash, described in the restore section, is a short safety net, not an archive, and that a retention delete cannot be restored. The sign-off should name one accountable owner per scope, with a stated review date.
How DeployOpen scopes and delivers OpenCTI retention work
Retention changes delete data permanently, so the work starts with a written scope and ends with documented, tested rules. The cards below follow one path: agree the scope, measure what is stored and who owns it, configure the rules in your own instance, prove restores work, hand over the documentation, and decide how ongoing support runs.
Written scope before any change
Each engagement starts with a written scope that names the retention scopes in play: Knowledge, File and Workbench. It records which rules are in and out, who approves each deletion window, and what the deliverables are. Because most engagements are fixed-scope, the scope document is the reference for both sides. Ask for the exact list of retention rules the quote covers before work begins.
Retention docsReview of volumes and owners
Before setting any maximum age, DeployOpen reviews which object types, files and workbenches are growing and who owns each data set. Retention rules are not reversible in the way a trash is, so owners must confirm that data is no longer needed for investigations, sharing agreements or audit obligations. Ask for a named owner per data set and a record of their sign-off.
Configuration in your instance
Rules are configured inside your own OpenCTI deployment, in your cloud account, data center or air-gapped network, so the retention settings follow your change control. The work covers Knowledge filters, file limits and workbench limits, with each change recorded. Confirm where configuration is stored and who holds administrator rights during the change.
Testing with restore checks
Testing confirms that rules delete what was intended and nothing else. For objects that are deleted, the test checks whether the Trash still holds them and whether a restore brings back the expected relationships. Restore checks run in a non-production copy first. Ask how the test plan covers both the Trash window and the point after it closes.
Delete and restore docsHandover documentation
The handover describes each rule, its owner, the reason for its maximum age, the filters used, and the steps to review it on a schedule. It also records what the Trash does and does not protect. Teams who inherit the platform can then change rules without repeating the analysis. Ask for the document format and whether it covers the operator runbook.
Ongoing support as a retainer
After handover, rule reviews, growth checks and upgrade testing can continue under a retainer. Retainer scope should state how often volumes are reviewed, who approves rule changes, and how urgent deletion questions are handled. Ask for the retainer terms in writing so they can be compared with running the reviews in-house.

