Skip to content

[pull] master from kevoreilly:master#490

Merged
pull[bot] merged 2 commits into
threatcode:masterfrom
kevoreilly:master
Jun 8, 2026
Merged

[pull] master from kevoreilly:master#490
pull[bot] merged 2 commits into
threatcode:masterfrom
kevoreilly:master

Conversation

@pull

@pull pull Bot commented Jun 8, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

doomedraven and others added 2 commits June 8, 2026 08:37
* Add Threat Discovery 'Hunt' feature and UI

Introduce a new Threat Discovery / Hunting feature: add default web.conf settings and HUNT_ENABLED flag in Django settings, register /hunt/ and /hunt/tag/ routes, and implement hunt view that runs MongoDB aggregations, noise whitelisting and facet filtering. Add tag_tasks POST endpoint to apply tags to SQL Task entries. Include a new analysis/hunt.html template and conditional header navigation link. Add tests for hunt views and tagging behavior.

* Make hunt categories toggleable and dynamic facets

Add UI toggles for hunt target categories and make the server-side MongoDB aggregation pipeline build $facet stages dynamically based on the selected categories. The hunt view now detects whether the form was submitted and derives a categories map (domains, ips, mutexes, files, commands, registry keys, and various hash types) that is passed to the template. Facet stages are only appended to the pipeline for enabled categories and aggregation is skipped when no facets are requested to save DB work. The hunt template was updated to render category switches and conditionally display panels. A test was added to verify that category filtering constructs the expected facets and that untoggled panels are not rendered.

* Update views.py

* fixes

* Update settings.py

* Update test_hunt_views.py

* Update test_hunt_views.py

* Update test_hunt_views.py

* Update views.py

* Add imphashes, http_uris, signatures to hunt view

Expose three new hunt facets (PE import hashes, HTTP URIs, and behavioral signatures). Adds category toggles, facet pipeline stages and post-query cleaning/filtering (including a new is_valid_md5 check that rejects empty MD5 and wrong lengths). Updates template to render toggles and three new panels (with layout tweak: text-truncate on toggles container). Tests updated to cover rendering and filtering of valid/invalid imphash, HTTP URI, and signature entries.

* Add dynamic hunting config and validators

Introduce a modular hunting configuration and central validators. Added conf/default/hunt.json as the default category registry, and lib/cuckoo/common/hunting.py which centralizes validation functions (domains, IPs, files, hashes, mutexes, registry keys, commands), noisy denylists, and a load_hunt_map() loader with mtime caching and min_count substitution. Refactored web/analysis/views.py hunt() to hot-load the HUNT_MAP, build aggregation facets dynamically, apply validators from the map, and render clearer error pages when hunt.json is missing or invalid. Updated the hunt template to generate category switches, cards and external pivots from hunt_map. Tests updated to cover missing/invalid hunt.json behavior.

* fixes

* Update test_hunt_views.py

* Add Threat Discovery & Hunting dashboard changelog

Add 08.06.2026 changelog entry for the Threat Discovery & Hunting Workstation Dashboard: documents centralized dynamic multi-faceted DB clustering across 12 categories, a cascading JSON config cacher (conf/hunt.json) with hierarchical lookup (custom/conf → conf → conf/default), mtime-based high-performance caching for instant reloads, integrated OSINT pivot links (VirusTotal, Shodan, Censys, MalwareBazaar, AlienVault OTX) with sanitized AJAX task tagging, and comprehensive unit tests covering views, error handling, and security.

* Update views.py
@pull pull Bot locked and limited conversation to collaborators Jun 8, 2026
@pull pull Bot added the ⤵️ pull label Jun 8, 2026
@pull pull Bot merged commit 7ddaea8 into threatcode:master Jun 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants