Skip to content

fix(gti-mcp): scope GTI response trimming for #327 - #337

Draft
VISHNU0906 wants to merge 1 commit into
google:mainfrom
VISHNU0906:fix/327-gti-response-trimming
Draft

VISHNU0906 wants to merge 1 commit into
google:mainfrom
VISHNU0906:fix/327-gti-response-trimming

Conversation

@VISHNU0906

@VISHNU0906 VISHNU0906 commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Hi @dandye — follow-up to #335 (merged) with the scoped response trimming from #327, split out so we can discuss drop-vs-truncate tradeoffs here without blocking the bug fixes.

Scope

  • search_vulnerabilities: extra vuln metadata exclusions via extra_excluded_attrs (VULNERABILITY_EXCLUDED_ATTRS).
  • get_entities_related_to_a_file: send exclude_attributes only for behaviours when descriptors_only is false (FILE_BEHAVIOUR_EXCLUDED_ATTRS). Drops bulky dumps (memory_dumps, registry/file open-write-delete noise); keeps processes_tree, command_executions, ip_traffic, attack_techniques, etc.
  • get_file_behavior_summary / get_collections_commonalities: client-side strip of low-signal bulk via utils.remove_fields (FILE_BEHAVIOR_SUMMARY_EXCLUDED_ATTRS, COLLECTION_COMMONALITIES_FILES_EXCLUDED_ATTRS). Keeps hunting pivots (imphash, vhash, tlshhash, crowdsourced_*, itw_urls, embedded_domains / embedded_ips, …).

Happy to adjust which fields are dropped vs truncated based on design discussion.

Tests

  • Behaviours exclude_attributes scoping, summary/commonalities keep/drop coverage, remove_fields unit test.
  • Full server/gti unit suite: 65 passed.

Part of #327

@VISHNU0906
VISHNU0906 requested a review from a team November 6, 2026 21:27
@dandye
dandye marked this pull request as draft November 11, 2026 04:39
Drop bulky / low-signal fields from vulnerability search, file
behaviours, behavior summary, and collection commonalities while keeping
core hunting and behavioral pivots. Adds utils.remove_fields for nested
client-side stripping where the API exclude_attributes param is not
enough.

Signed-off-by: KVR Vishnu <46535652+VISHNU0906@users.noreply.github.com>
@VISHNU0906
VISHNU0906 force-pushed the fix/327-gti-response-trimming branch from f2d004d to 0d0c5a7 Compare November 11, 2026 05:21
@VISHNU0906

Copy link
Copy Markdown
Contributor Author

Rebased on main now that #335 and #345 are in, so the diff is only the trimming change. I also switched the new helper to the 3.11 typing style from b230bff. The gti suite passes locally (83 tests). Happy to leave it as a draft while we settle drop vs truncate.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant