ioc search: add --info locations, --limit, --case-sensitive, --wildcards flags#313
Merged
Conversation
…dcards The single-IOC 'ioc search' command always called the API with the default info=summary, so users could only ever see prevalence counts with no way to get the sensor IDs that observed the IOC. The SDK (search_ioc), API gateway and backend all already support info=locations; only the CLI flags were missing. batch-search already exposed --info/--limit. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F2QkWSTn8PEgyKvs7epe7f
lcbill
approved these changes
Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
limacharlie ioc search --type ip --value <IP>only ever returns prevalence counts — there is no way to see which sensors observed the IOC. A user reported this in support.The whole stack below the CLI already supports it: the SDK's
search_ioc()acceptsinfo="locations"(pluslimit,case_sensitive,wildcards), the API gateway routesinfo=locationsto theget_obj_locationsRPC, and the backend returns per-SID entries with first/last seen and hostnames. The CLIsearchcommand just never exposed the flags (batch-searchin the same file already has--info/--limit).Change
ioc searchgains--info summary|locations(defaultsummary, unchanged behavior),--limit,--case-sensitive/--case-insensitiveand--wildcards, passed straight through toInsight.search_ioc().--ai-helpexplain text with the new flags and examples.--info locations --limit.Verification
tests/unit/test_sdk_insight.py(18 tests) passes; the full unit suite shows the same 111 pre-existing failures as master (unrelatedtest_search_*files).ioc search --helprenders the new options correctly.🤖 Generated with Claude Code
https://claude.ai/code/session_01F2QkWSTn8PEgyKvs7epe7f