Skip to content

ti_abusech: failed API requests leave streams degraded until the next poll #22736

Todo

Description

@efd6

We run ti_abusech 5.4.0 on a 9.7.0 stack with the default 24h interval. On some days the ThreatFox request fails and the input reports:

Recoverable: ti_abusech.threatfox: single event error object returned by evaluation: {"error":{"message":"failed eval: ERROR: <input>:160:25: unexpected EOF\n |           req.do_request().as(resp, resp.StatusCode == 200 ?\n | ........................^"}}

Line 160 of the program is the req.do_request() call:

req.do_request().as(resp, resp.StatusCode == 200 ?

unexpected EOF is what Go's HTTP client returns when the server closes the connection before the response is complete, so this looks like a transient failure at abuse.ch rather than a problem in the program.

The program handles non-200 responses, but not a request that fails outright, so the error escapes the evaluation. The stream then stays degraded until the next poll succeeds, which with the default interval is 24h later. We saw this on 2026-11-22 and 2026-11-25, recovering at the next daily poll each time. It probably also loses data: after a successful poll the cursor sets days to 1, so the poll after a failure only asks for the most recent day.

None of the ti_abusech streams protect their requests: malware, malwarebazaar, threatfox, url and yaraify use do_request(), and ja3_fingerprints and sslblacklist use get(). We have only seen the failure on threatfox.

Binding the request result with as and checking it with is_error would let the program return an error event and decide how far back the next request should go, for example:

req.do_request().as(resp, is_error(resp) ?
  { /* error event, keep the cursor so the next poll covers the missed period */ }
: resp.StatusCode == 200 ?
  ...

Wrapping the request in try() would also work. Retrying sooner than the full interval after a failure would help too.

Activity

  1. added
    Team:Security-Service Integrations
    Team:SDE-Crest
    on Nov 26, 2026
  2. infra-vault-gh-plugin-prod commented on Nov 26, 2026

    @infra-vault-gh-plugin-prod

    Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Integration:ti_abusechTeam:SDE-CrestTeam:Security-Service Integrations

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions