Skip to content

v7.6.0 "Europa"

Choose a tag to compare

@github-actions github-actions released this 11 Jul 05:01
· 491 commits to main since this release
Immutable release. Only release title and notes can be modified.

Fixed

  • Enterprise SSO flagged as beta (2026-07-09): setup.sh/config.sh sso and deploy/sso/README.md now state up front that only login has been verified across all three providers (GitHub/Google/Entra) -- IdP group-to-role mapping has been validated with only one provider, and Google groups (service account + domain-wide delegation) and Entra groups (object GUIDs, not names) need extra provider-side setup the scaffold does not generate. No behavior change.
  • Settings backup list shows available backups again (2026-07-06): /api/backup/list screen-scrapes prune_backups.py --stats output and matched the section heading case-sensitively ("Recent Backups"); the restored script prints "Recent backups:", so the Settings page showed "No backups found." despite backups on disk. Parsing extracted into _parse_backup_list() with a case-insensitive heading match and regression tests pinned to the script's real output.
  • Backup restore detects psql statement errors and raises PostgreSQL shared memory default (2026-07-06): restore verification now runs psql with ON_ERROR_STOP=1, extracts ERROR/FATAL/PANIC lines from stderr even when psql exits 0, and connects test database create/drop commands to the postgres maintenance database. The local compose Postgres service now defaults POSTGRES_SHM_SIZE to 1g so pgvector/HNSW index restore tests do not fail with Docker's small shared-memory default. Added unit coverage for psql stderr detection and restore command wiring.
  • Browser extension docs: cross-link client-side OCR/Vision with server-side ingest OCR (2026-07-06): docs/guides/browser-extension.md's Image Text Extraction section and docs/features/image-ocr-ingest.md each documented one OCR pipeline with no reference to the other, leaving no explanation of which pipeline runs when or that markers inserted by one are recognized and skipped by the other (_parse_existing_ocr_urls in vision_ocr_service.py). Cross-linked both pages. Also replaced the stale, duplicate browser-extension/README.md (missing the OCR/Vision feature entirely) with a short pointer to the actively maintained docs/guides/browser-extension.md.

Security

  • SRF-2: GET reads on credential- and admin-scoped routes now require the same role as their write counterpart (2026-07-10): the route-authorization manifest (route_manifest.py) classifies GET requests against a separate rule table (SAFE_ROUTE_RULES) from mutating requests (UNSAFE_ROUTE_RULES); /api/settings*, /api/backup/*, /api/model/*, /api/observables/training/*, and /api/sigma-queue/* were role-gated (admin/rule_reviewer) on the write side but had no matching read-side entry, so GET fell through to the bare AUTHENTICATED default — any authenticated identity, regardless of role, could read live settings values (including provider API keys) via GET /api/settings. Added matching SAFE_ROUTE_RULES entries mirroring each write-side role gate, per the documented role model (docs/guides/authentication.md: admin owns "settings, credentials, ... backup/restore, model management"; rule_reviewer owns "Sigma queue review actions"). Also widened the settings-audit sensitive-key check (settings.py::_is_sensitive_setting) to reuse audit_service's broader key-name allowlist (adds password/credential/etc., previously only TOKEN/SECRET/API_KEY) so audit-log redaction can't silently miss a differently-named credential setting. Regression tests added to tests/api/test_route_family_authorization.py.
  • SRF-1: production trusted-header mode fails closed on an empty proxy allowlist (2026-07-06): with APP_ENV=production and AUTH_MODE=trusted_header, an empty AUTH_TRUSTED_PROXY_IPS let any direct client forge X-Huntable-Verified + identity headers and obtain admin (the peer gate in parse_trusted_identity() passes everything when the allowlist is empty). load_security_config() now aborts startup in that posture unless the documented break-glass ALLOW_INSECURE_PRODUCTION_TRUSTED_PROXY_OPEN=true is set for deployments whose direct access is blocked at the network level. Dev/test behavior unchanged. Production also now rejects non-literal allowlist entries (*, CIDR ranges) at startup — the peer gate is exact-match, so an unmatchable entry would otherwise cause a silent all-requests-denied outage (adversarial-review finding). The SSO golden path was updated in the same change so it keeps booting: config.sh sso production hardening now writes the override with a printed warning (the overlay's proxy container IP is dynamic; its isolation comes from removing the direct app port), and docs/guides/enterprise-sso.md, deploy/sso/README.md, docs/guides/authentication.md, and .env.example document both paths. Regression tests added to tests/unit/test_security_config.py. The optional identity.py peer-gate tightening remains an open operator decision (it would change the documented optional-peer-validation contract).

Added

  • NetworkIndicatorExtract sibling/boundary rules + drop-in prompt (2026-07-05): closed the extractor-standard compliance gap left when NetworkIndicatorExtract shipped in v7.2.0 — all six pre-existing extractor contracts (docs/contracts/{cmdline,proctree,registry,services,scheduled-tasks,huntquery}-extract.md) now list NetworkIndicatorExtract as a sibling with a reciprocal boundary rule mirroring the already-shipped language in the live seed prompts (src/prompts/*), so this is doc-sync, not an extraction-semantics change. Added the missing seventh drop-in prompt (docs/contracts/network-indicator-extract-dropin.md), registered it in the mkdocs nav, and linked it from the contract. New tests/unit/test_extractor_contract_sibling_sync.py (28 checks) pins the cross-listing mandate across contracts, seed prompts, drop-ins, and nav.
  • Image OCR Ingest feature page (2026-07-05): dedicated docs/features/image-ocr-ingest.md documenting the Tesseract ingest pre-pass — SSRF guard model (DNS-pinning httpcore backend, per-hop redirect re-validation, private/CGNAT/mapped-IPv6 rejection, byte/pixel caps), OCR_INGEST_ENABLED + per-source image_ocr_enabled tri-state mechanics, the five seeded news-source opt-outs, ocr_status vocabulary, scripts/backfill_image_ocr.py usage, and the /api/health tesseract block. Registered in the mkdocs nav and cross-linked from docs/index.md. New tests/unit/test_docs_structure_sync.py pins feature-page nav registration and docs/solutions/ frontmatter schema; tests/unit/test_audit_action_vocabulary.py pins the spec-reserved audit action names against future dead-code sweeps.
  • MCP ambient context resources (2026-07-05): registered read-only MCP resources so agents can attach current Huntable context without bespoke tool calls: huntable://sigma-queue/status exposes global queue status counts, huntable://sigma-queue/recent-rules exposes the ten most recent generated Sigma queue entries, and huntable://workflow/active-config exposes the active config id/version, thresholds, toggles, model assignments, and prompt agent names while intentionally omitting prompt bodies. Added focused resource contract tests plus stdio-server registration coverage; docs updated in docs/reference/mcp-tools.md.
  • Enterprise auth Chunk C completion: workflow trigger/retry audit + initiating-actor attribution (2026-07-04): closed the last deferred Chunk C task (Task 5). Human-initiated workflow trigger (POST /api/workflow/articles/{id}/trigger) and retry (POST /api/workflow/executions/{id}/retry) now record mandatory same-transaction workflow.triggered / workflow.retried audit events (audit-write failure rolls the mutation back and surfaces a 500 via the new WorkflowAuditError), and both persist a redacted-safe initiated_by snapshot (user_id/email/roles/auth_mode) under the execution's config_snapshot so worker-side attribution references the originating human without impersonation — service-originated triggers (ingest auto-trigger) carry no initiated_by and are attributed to the service by its absence. WorkflowTriggerService.trigger_workflow gained backward-compatible initiated_by/audit_event_factory parameters (the route builds the event; the service stays HTTP-free). Added the denied-request audit contract suite tests/api/test_audit_denials.py (401/403/unclassified each emit exactly one best-effort auth.request_denied; allowed requests emit none; denials never depend on audit storage) plus workflow trigger/retry atomicity tests in tests/api/test_audit_mutations.py. With MCP writes already service-attributed and no worker/scheduler code emitting audit events or internal HTTP calls, this completes Chunk C service-identity wiring; backup/model/embeddings/eval route audit remains the documented follow-up.
  • Risk-tiered MCP write tools (2026-07-03): the Huntable MCP server now exposes scoped, audited write tools for low-blast-radius actions while keeping execute_sql permanently read-only. Auto-executable tools cover workflow retry/cancel, source active-state toggling, article reviewed markers, and annotation create/update/delete; higher-risk Sigma queue mutations and article deletion create pending mcp_write_confirmations rows instead of applying production mutations through MCP. New audit persistence records MCP writes and confirmation requests in audit_events, with metadata redaction and focused regression coverage in tests/unit/test_mcp_write_tools.py. Docs updated in docs/reference/mcp-tools.md, README.md, and docs/index.md.
  • Enterprise auth, authorization, and audit foundation (2026-06-18): added trusted-header identity enforcement with a central route manifest, fail-closed authorization middleware, narrowed public health surface, role-gated high-risk route families, and durable database-backed audit events. Audit support includes the audit_events table, schema validation, redaction helpers, same-transaction settings/secret audit writes, best-effort authorization-denial audit, admin-only audit read/export/retention endpoints, and documentation for retention plus the DB-backed tamper-risk boundary. OAuth/OIDC and full mandatory-audit migration for every mutation family remain follow-up work.
  • Enterprise auth Chunks B & C: CSRF, mandatory audit, and SSO deployment (2026-06-25): completed the enterprise-auth foundation. Added signed, user-bound CSRF protection (src/web/security/csrf.py, CsrfMiddleware, a base-template token meta tag + same-origin fetch shim) gated by CSRF_ENABLED=auto with production fail-closed on a missing/weak SECRET_KEY. Migrated mandatory same-transaction audit to the sigma_queue, workflow (cancel/cleanup/stale), source-config, annotation create/delete, and scheduled-jobs route families via backward-compatible optional-session refactors in async_manager/services; added service-identity audit helpers for workers and AUDIT_RETENTION_DAYS wiring. Added an opt-in enterprise-SSO step to setup.sh and a config.sh CLI (sso / sso --disable / rotate-secret / set / show) that edits .env without re-running the installer, a ready-to-run nginx + oauth2-proxy reverse-proxy scaffold (deploy/sso/), a localhost login-gate variant for testing Entra/Google with no domain or TLS (deploy/sso/local/), and an Enterprise SSO setup guide (docs/guides/enterprise-sso.md). Backup/model/embeddings/eval audit remains documented follow-up.
  • Local Entra login-gate toggle (2026-06-25): ./config.sh entra on|off|status (delegating to deploy/sso/local/gate.sh) forces every visitor on a local Docker setup through the Entra login by un-publishing the cti_web host port via a committed docker-compose.entra-isolate.yml overlay (ports: !override []), so the oauth2-proxy gate on :4180 becomes the only entry point. The helper self-locates the running stack from the container's compose labels (works from any checkout), requires an interactive confirmation that a real login succeeds before it closes the port, and fails closed -- auto-reverting the port if the app is not reachable through the gate or if a stopped container would otherwise be misreported as gated. This is a login gate (authentication only); per-user roles remain the trusted-header RBAC path. config.sh's .env commands stay docker-free; only entra orchestrates containers.

Fixed

  • AGENTS.md solutions frontmatter description (2026-07-05): the Orientation table claimed docs/solutions/ frontmatter carries a tags key; none of the 11 solution files do and no code consumes one — corrected to the actual key set (title, date, module, problem_type).
  • setup.sh dropped interactively-entered OpenAI/Anthropic keys and the Redis password (2026-07-05): create_env_file substituted secrets into .env.example via sed on placeholder strings (your_openai_api_key_here, your_anthropic_api_key_here, your_secure_redis_password_change_this) that no longer exist in the template -- .env.example ships those keys as bare KEY= with no placeholder text, and has no REDIS_PASSWORD line at all, so the sed calls were silent no-ops and entered values never reached the generated .env. Switched to startup_set_env_key (mirroring the existing SECRET_KEY fix) so OPENAI_API_KEY, ANTHROPIC_API_KEY, and REDIS_PASSWORD are always written directly. Added tests/unit/test_setup_env_secret_substitution.py.

Removed

  • Dead-code cleanup: 8 orphan files + 49 zero-reference symbols (-2,203 lines) (2026-07-05): deleted eight modules nothing imports (cmdline_caliper, query_safety, sigma_novelty_detector, encoder_classifier, regex_windows, cmd_extractor, dspy_cmdline_module, text_highlight — mostly BERT/sklearn-era leftovers) plus 27 zero-reference class methods, 14 module functions, and 4 dead constants across 28 modules, each re-verified by fresh whole-repo grep before removal. The seven unreferenced audit ACTION_* constants were kept with a reserved-vocabulary comment (five are enumerated in the enterprise-auth auditability spec's stable action names; the two backup.* names await the spec's open backup-permission decision). Per-section test suite counts were identical before and after (smoke 85 / unit 4129 / api 469 / integration 39 passed, 0 failed); the stale sigma_novelty_detector row was dropped from docs/features/sigma-rules.md.
  • Domains + Products classification dimensions (Phase D) — removed as YAGNI cruft (2026-06-25): the entity-driven Domains/Products dimensions shipped in 7.5.0 (src/services/entity_dimension_classifier.py + config/domain_classification_kb.yaml / config/product_classification_kb.yaml) were computed in os_detection_node, stored in error_log.os_detection_result.{domains,products}, and rendered as static labels in the Platform Detection trace — but had zero functional consumer from day one (verified across the workflow, API serializers, the MCP server, exports, DB queries, Sigma generation, and downstream nodes: nothing read them for any routing, filter, grouping, or decision). Domain/product routing was never built (design open-question #4 unresolved) and not scheduled, so the producer was inert trace decoration that implied a capability the system did not have, plus a second parallel keyword scorer and two duplicated-token KBs to maintain. Excised as a clean unit — classifier service, both KB YAMLs, workflow wiring (agentic_workflow.py os_detection_node), the two trace-UI rows (workflow.html), the 6 unit tests, and the Playwright workflow_platform_dimensions spec — with no schema migration (the fields lived in the existing error_log JSONB). The curated KBs (42 domain + 19 product entries) remain recoverable from git history (commit 8c03d744) for a clean re-add if a real consumer is ever designed. Design/rationale: docs/superpowers/specs/2026-06-19-entity-driven-platform-classification-design.md (Phase D marked ⛔ REVERTED).

Changed

  • Sigma generation: network-observable abstraction guidance + reasoning-model token budget (2026-07-04): both Sigma generation prompts (sigma_generation.txt, sigma_generate_multi.txt) gain a "Network Observable Abstraction (no atomic IOCs)" section — atomic network values (full URLs/domains/IPs/User-Agents, JA3/JA4, cert hashes) are evidence only and must be generalized into durable behavior (|startswith/|endswith/|contains shapes) or discarded, never emitted as bare selection values. All 9 quickstart presets synced. Reasoning-model max_tokens for Sigma generation raised 4000 -> 10000 (sigma_generation_service.py). Landed alongside workflow execution-detail UI wiring (Langfuse debug links, trace/eval bundle export) in workflow_executions.py / workflow.html with Playwright coverage.
  • Platform Detection trace labels renamed to match the post-embedding reality (2026-06-25): the OS/platform classifier has used deterministic keyword-KB scoring (kb_scoring), not embeddings, since the 2026-06-19 entity-driven rewrite, so the trace's "similarity" wording was stale. Renamed the per-execution Platform Detection labels in workflow.html, workflow_executions.html, and article_detail.html: "View Platform Similarity Scores" -> "View Platform Score Distribution" and "Max Similarity" -> "Top Platform Score". Display text only; the underlying similarities / max_similarity data keys are unchanged (backward-compat). The Sigma rule-dedup "Max Similarity" (genuine cosine/atom similarity) was deliberately left untouched.
  • MkDocs nav curation — promote reference docs out of not_in_nav (2026-06-22): the v7.5.0 CI-unblock (commit 4ced3c10) parked 43 reference/internal pages in mkdocs.yml's not_in_nav and fully excluded docs/superpowers/. Reviewed all 43 against their content and promoted 15 genuinely user/developer-facing pages into the published nav: new Deployment (deployment/docker-architecture, deployment/technical-readout) and Operations (operations/ml-model-runbook, operations/verify-ml-versions-backup) sections; Architecture gains internals/architecture (diagrams) + architecture/agent-config-schema; Development gains development/ui-test-tiers + development/sigma-eval-system; Reference gains reference/prompt-mapping-table, reference/versioning, and reference/do-not (anti-patterns); Contracts gains NetworkIndicatorExtract as a peer plus a Drop-in Prompts subsection for the six *-extract-dropin.md copy-paste variants; and a top-level Brand & Style Guide. The remaining 28 stay out of nav (deprecated QA contracts, dated audits/plans, solutions/**, reports/**, adr/**). docs/superpowers/ moved from exclude_docs to a not_in_nav: superpowers/ glob, so the 16 design specs/plans now build and are reachable by URL but stay out of the menu; the six dead ../../../src|tests/… relative links in the three enterprise-auth specs were rewritten to absolute GitHub blob URLs (relative links from docs/ to source files don't resolve under MkDocs). python -m mkdocs build --strict exits 0 before and after.