Repository navigation
v7.6.0 "Europa"
·
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 ssoanddeploy/sso/README.mdnow 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/listscreen-scrapesprune_backups.py --statsoutput 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
psqlwithON_ERROR_STOP=1, extractsERROR/FATAL/PANIClines from stderr even when psql exits 0, and connects test database create/drop commands to thepostgresmaintenance database. The local compose Postgres service now defaultsPOSTGRES_SHM_SIZEto1gso 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 anddocs/features/image-ocr-ingest.mdeach 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_urlsinvision_ocr_service.py). Cross-linked both pages. Also replaced the stale, duplicatebrowser-extension/README.md(missing the OCR/Vision feature entirely) with a short pointer to the actively maintaineddocs/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 bareAUTHENTICATEDdefault — any authenticated identity, regardless of role, could read live settings values (including provider API keys) viaGET /api/settings. Added matchingSAFE_ROUTE_RULESentries mirroring each write-side role gate, per the documented role model (docs/guides/authentication.md:adminowns "settings, credentials, ... backup/restore, model management";rule_reviewerowns "Sigma queue review actions"). Also widened the settings-audit sensitive-key check (settings.py::_is_sensitive_setting) to reuseaudit_service's broader key-name allowlist (addspassword/credential/etc., previously onlyTOKEN/SECRET/API_KEY) so audit-log redaction can't silently miss a differently-named credential setting. Regression tests added totests/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=productionandAUTH_MODE=trusted_header, an emptyAUTH_TRUSTED_PROXY_IPSlet any direct client forgeX-Huntable-Verified+ identity headers and obtain admin (the peer gate inparse_trusted_identity()passes everything when the allowlist is empty).load_security_config()now aborts startup in that posture unless the documented break-glassALLOW_INSECURE_PRODUCTION_TRUSTED_PROXY_OPEN=trueis 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 ssoproduction 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), anddocs/guides/enterprise-sso.md,deploy/sso/README.md,docs/guides/authentication.md, and.env.exampledocument both paths. Regression tests added totests/unit/test_security_config.py. The optionalidentity.pypeer-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. Newtests/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.mddocumenting 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-sourceimage_ocr_enabledtri-state mechanics, the five seeded news-source opt-outs,ocr_statusvocabulary,scripts/backfill_image_ocr.pyusage, and the/api/healthtesseract block. Registered in the mkdocs nav and cross-linked fromdocs/index.md. Newtests/unit/test_docs_structure_sync.pypins feature-page nav registration anddocs/solutions/frontmatter schema;tests/unit/test_audit_action_vocabulary.pypins 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/statusexposes global queue status counts,huntable://sigma-queue/recent-rulesexposes the ten most recent generated Sigma queue entries, andhuntable://workflow/active-configexposes 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 indocs/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-transactionworkflow.triggered/workflow.retriedaudit events (audit-write failure rolls the mutation back and surfaces a 500 via the newWorkflowAuditError), and both persist a redacted-safeinitiated_bysnapshot (user_id/email/roles/auth_mode) under the execution'sconfig_snapshotso worker-side attribution references the originating human without impersonation — service-originated triggers (ingest auto-trigger) carry noinitiated_byand are attributed to the service by its absence.WorkflowTriggerService.trigger_workflowgained backward-compatibleinitiated_by/audit_event_factoryparameters (the route builds the event; the service stays HTTP-free). Added the denied-request audit contract suitetests/api/test_audit_denials.py(401/403/unclassified each emit exactly one best-effortauth.request_denied; allowed requests emit none; denials never depend on audit storage) plus workflow trigger/retry atomicity tests intests/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_sqlpermanently 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 pendingmcp_write_confirmationsrows instead of applying production mutations through MCP. New audit persistence records MCP writes and confirmation requests inaudit_events, with metadata redaction and focused regression coverage intests/unit/test_mcp_write_tools.py. Docs updated indocs/reference/mcp-tools.md,README.md, anddocs/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_eventstable, 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-originfetchshim) gated byCSRF_ENABLED=autowith production fail-closed on a missing/weakSECRET_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 inasync_manager/services; added service-identity audit helpers for workers andAUDIT_RETENTION_DAYSwiring. Added an opt-in enterprise-SSO step tosetup.shand aconfig.shCLI (sso/sso --disable/rotate-secret/set/show) that edits.envwithout 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 todeploy/sso/local/gate.sh) forces every visitor on a local Docker setup through the Entra login by un-publishing thecti_webhost port via a committeddocker-compose.entra-isolate.ymloverlay (ports: !override []), so the oauth2-proxy gate on:4180becomes 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.envcommands stay docker-free; onlyentraorchestrates containers.
Fixed
- AGENTS.md solutions frontmatter description (2026-07-05): the Orientation table claimed
docs/solutions/frontmatter carries atagskey; 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_filesubstituted secrets into.env.exampleviasedon 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.exampleships those keys as bareKEY=with no placeholder text, and has noREDIS_PASSWORDline at all, so thesedcalls were silent no-ops and entered values never reached the generated.env. Switched tostartup_set_env_key(mirroring the existingSECRET_KEYfix) soOPENAI_API_KEY,ANTHROPIC_API_KEY, andREDIS_PASSWORDare always written directly. Addedtests/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 auditACTION_*constants were kept with a reserved-vocabulary comment (five are enumerated in the enterprise-auth auditability spec's stable action names; the twobackup.*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 stalesigma_novelty_detectorrow was dropped fromdocs/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 inos_detection_node, stored inerror_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.pyos_detection_node), the two trace-UI rows (workflow.html), the 6 unit tests, and the Playwrightworkflow_platform_dimensionsspec — with no schema migration (the fields lived in the existingerror_logJSONB). The curated KBs (42 domain + 19 product entries) remain recoverable from git history (commit8c03d744) 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/|containsshapes) or discarded, never emitted as bare selection values. All 9 quickstart presets synced. Reasoning-modelmax_tokensfor Sigma generation raised 4000 -> 10000 (sigma_generation_service.py). Landed alongside workflow execution-detail UI wiring (Langfuse debug links, trace/eval bundle export) inworkflow_executions.py/workflow.htmlwith 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 inworkflow.html,workflow_executions.html, andarticle_detail.html: "View Platform Similarity Scores" -> "View Platform Score Distribution" and "Max Similarity" -> "Top Platform Score". Display text only; the underlyingsimilarities/max_similaritydata 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 (commit4ced3c10) parked 43 reference/internal pages inmkdocs.yml'snot_in_navand fully excludeddocs/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 gainsinternals/architecture(diagrams) +architecture/agent-config-schema; Development gainsdevelopment/ui-test-tiers+development/sigma-eval-system; Reference gainsreference/prompt-mapping-table,reference/versioning, andreference/do-not(anti-patterns); Contracts gainsNetworkIndicatorExtractas a peer plus a Drop-in Prompts subsection for the six*-extract-dropin.mdcopy-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 fromexclude_docsto anot_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 fromdocs/to source files don't resolve under MkDocs).python -m mkdocs build --strictexits 0 before and after.