Expire Threat Indicators Without Losing Their History
Keep campaign evidence searchable after gateway blocks expire. Use STIX validity, MISP decay, and scoped approvals to manage indicator enforcement.
In a fictional March intrusion, a proxy capture ties a payload to a hostname that later passes to another operator. Responders still need the hostname to find earlier downloads. The gateway operator needs a reason to deny connections to the service running there today. A campaign dossier should preserve the first observation, and each gateway rule should carry its own authorization and deadline.
Producer validity sets the outer limit
In the OASIS standard STIX Version 2.1, an Indicator's valid_from and optional valid_until delimit the producer's validity window. Observed Data uses first_observed and last_observed for the observation interval. A Sighting can carry its own interval in first_seen and last_seen and reference the supporting Observed Data. The modified timestamp dates an object version. A correction to an Indicator's labels can advance modified while its validity dates and the dates on supporting observations stay fixed.
MISP's attribute-level to_ids flag marks attributes for detection use. Attributes with the flag off can remain as context. The MISP Project's Decaying of Indicators describes a polynomial model that resets the score to its base value on a new sighting. Use the score to prioritize review. Treating a reset as approval lets repeated retries extend the block they triggered.
Key approvals by indicator, action, and scope. A hostname can justify an endpoint hunt after the web team withdraws a block. For a rule that depends on the feed, use the earlier of the approved end and the producer's valid_until as the cutoff. If the producer omits valid_until, the local end still applies. Apply a shorter window as soon as you accept the update. If the cutoff has already passed, expire the term on ingestion and preserve both timestamps. If the producer moves the start into the future or changes the match pattern, retire the current decision and require fresh review before installing a rule. A longer producer window leaves the approved cutoff in place unless the owner approves a successor.
STIX revoked permanently withdraws the object. On acceptance, retire dependent decisions and request rule removal. Keep a revocation marker so a replay of an older version cannot reopen eligibility. Retain the version the analyst cited alongside the withdrawal so a later reviewer can reconstruct the original decision.
A hold exposes two versions of the rule
For the March gateway block, link three entries so a feed replay and a fresh approval produce different audit records.
- Evidence records the observation reference, its interval, and the capture showing which hostname and path served the payload. Preserve the path even if the gateway can enforce only at hostname granularity. The approver then has to justify the wider match.
- Delivery records the producer object and version, the feed publication time when available, and the consumer's ingestion time. A replay makes a new delivery entry and leaves the decision deadline intact.
- Decision records the indicator reference, action
block, scopecorporate web gateway, stateactive, review deadline, enforcement deadline, decision owner, and a revision number. The initial approval links to the capture. A renewal records a new evidence reference, a reason, and the replacement deadlines.
Put the review deadline inside the authorized term so an analyst has time to investigate before cutoff. Missing that deadline opens an overdue review while the existing authorization runs to cutoff. A renewal requires current evidence for the same action and scope, approval before cutoff, and a new term within producer validity.
In the fictional March incident, the owner puts the block on hold at 09:10 UTC. A configuration lock rejects policy writes while reads continue. At 09:12 the controller still finds the block enabled. It sends a removal after the lock clears at 09:19 and confirms absence at 09:20. The chart uses 1 for enabled and 0 for absent. The blank cell at 09:10 marks a missing device reading.
Figure 1 — The block survived the hold at the 09:12 readback. The 09:19 removal request and 09:20 readback bracket the device change. Illustrative gateway records, not measured data.
Record approval time and effective time separately. A preapproved renewal starts at the scheduled boundary only if it still qualifies then. Cancel it if the current term ends early, enters suspension, or loses supporting evidence. This prevents an approval made before a hold from silently resuming enforcement.
Put a block on hold while the team verifies an apparent ownership transfer. Restore it only with evidence that resolves the hold and approval before cutoff. Keep the original deadlines. If the transfer voids the justification, retire the decision. After expiry or retirement, any block needs a fresh decision.
Rule keys outlive individual approvals
Give each deployed match a stable key for the gateway, scope, action, and normalized match. When several feed objects support the same match, cite them in one decision for that key and record which ones the approval requires. Otherwise, independent expiry jobs can remove a rule that another decision still expects to enforce.
Check the current revision and cutoff when committing an approval. Reject a submission from a form opened before suspension if the stored revision has advanced. Have the cutoff task check the revision and apply expiry or promote the eligible successor in one atomic update. A timer for the original term can otherwise remove a rule after its successor takes effect. Resolve authorization against the clock even if the task wakes late.
Export the scoped action, desired state, cutoff, revision, and evidence reference. Where the gateway supports native expiry, track its renewal acknowledgement separately from approval. A missed update can leave the old cutoff in force and interrupt coverage. On other devices, schedule removals by rule key independently of feed delivery. An unreachable gateway can keep blocking after authorization ends. Record the reported removal time or, when the device supplies none, bound removal by the last confirmed presence and first confirmed absence.
An update queued before suspension may arrive after removal. Persist the latest revision for the exported key even when the rule is absent, and discard older commands before dispatch. Advance that key's revision across decisions so a delayed removal from a retired decision cannot undo a new approval. Have the device reject stale revisions where its API supports conditional updates. Otherwise, serialize writes per rule and read back the result. A timeout can hide a write still in flight, and a matching read can precede its late commit. Check operation status if available and keep reconciling against current intent when the API leaves the outcome unknown.
A callback can outlive control of the destination
In a fictional sinkhole operation, a university takes control of a hostname that previously pointed to command-and-control infrastructure and redirects it. Verified implant callbacks identify endpoints to investigate. The transfer removes the basis for a block premised on attacker control. Coordinate any new enforcement with the sinkhole operator to preserve visibility into callbacks.
In a separate fictional case, an unrelated registrant acquires an expired domain and parks it. A parking page shows what a browser received at a particular time and vantage point. Seek corroboration for the transfer from registration history and evidence of who controls the service. A change of nameservers alone can reflect a hosting migration. After re-registration, verified beacons from old implants support endpoint investigation. Assess renewal using evidence of current behavior at the destination. If the domain later serves a malicious payload, use that delivery to assess a fresh block and gather separate evidence for attribution.
On shared infrastructure such as a CDN, cloud storage service, or dynamic DNS provider, default to hunting or alerting on a shared address. If the control can isolate a verified malicious tenant hostname or object path, assess a rule at that granularity. A path-level observation is thin support for a provider-wide block. For renewal, verify that the same scoped resource still exhibits the behavior that justified the action. Counting matches across consumers can amplify stale traffic when their sensors see the same beacon or benign retry.
File hashes age differently from hostnames. A SHA-256 digest still supports a search for the original sample after the operator switches to a repacked build. Keep that digest in the dossier for retrospective matching. If the investigation now needs to find repacked builds, collect their hashes or test a detector for behavior the builds share. Renewing the original hash rule alone leaves that coverage gap.
Week-end counts miss the installation peak
In a fictional six-week rollout, the team requests blocks on 20 IP addresses at the start of each week, with no address repeated across cohorts. Each initial term lasts two weeks. Before cutoff, the owner approves 5 rules per cohort for a single two-week renewal that starts at cutoff. The archive keeps all 20 evidence records per cohort under either policy.
Count demand just before each week ends. Keeping every rule calls for 20, 40, 60, 80, 100, and 120 slots, including requests the gateway cannot admit. With expiry and weekly cleanup, settled demand runs 20, 40, 45, 50, 50, and 50. Week three includes 5 renewals from the first cohort. From week four, each settled count consists of 40 rules in their initial terms and 10 renewals.
Now let the controller admit the new cohort before reclaiming the slots whose terms ended at that week's opening boundary. Assume each address uses one slot and renewal extends the existing entry in place. The weekly admission peaks are 20, 40, 60, 65, 70, and 70. In week five, adding 20 entries to the 50 carried over takes demand to 70. Cleanup then removes 15 unrenewed entries from the third cohort and 5 completed renewals from the first.
Figure 2 — Week five needs 70 slots if admission runs first and 50 once cleanup finishes. The keep-every-rule curve includes requests beyond the 100-slot limit. Illustrative gateway capacity model, not measured data.
The fictional 100-slot gateway fills in week five if it keeps every rule. With no eviction it refuses all 20 new requests in week six. On a device that compiles an address into multiple entries or holds both policy versions during replacement, measure headroom in compiled entries at the busiest point of the change. Installing first gets new coverage in place sooner. If the gateway ties enforcement to slot occupancy, that order also leaves stale blocks enforcing past cutoff. Where the gateway can disable entries independently of reclaiming their slots, disable at cutoff and budget for the entries still occupying space.
Under the expiry policy, 4 first-cohort blocks in the fictional rollout end without renewal at the start of week three. Those addresses change tenants before week six, when each receives 6 legitimate connection attempts. Assume each stale match blocks the connection and raises one alert, each alert takes 8 minutes to triage, and no other rule matches. Keeping the rules produces 24 false-positive blocks and 192 analyst minutes. Weekly cleanup prevents both. Alert deduplication reduces triage work while leaving the connections blocked.
Reconstruct the decision from an old alert
Replay the fictional March delivery after removal. The payload capture, cited producer version, and approval should still resolve while the rule stays absent. For an old alert, join the gateway identity and rule revision to the installation record. If the alert lacks a revision, use the hostname, device, and event time to narrow the candidates. An event inside the removal interval leaves the block's status uncertain unless the alert itself records the enforcement action. Preserve that uncertainty in the dossier. The March capture explains the old block. Blocking the hostname again takes evidence about the service it reaches today.