{"schemaVersion":1,"resourceType":"connector","slug":"reghive","name":"Registry hives","catalog":"reghive","description":"Parse offline Windows Registry hive files into SQL rows for forensics, with transaction-log replay and deleted-key recovery","language":"Rust","categories":["security"],"repository":"https://github.com/Query-farm/vgi-reghive","license":"MIT","generatedAt":"2026-12-01T18:22:16+00:00","runtime":{"engineVersion":"2.0.1","protocolVersion":"3.4"},"release":{"tag":"v0.5.0","publishedAt":"2026-11-25T20:30:50Z","url":"https://github.com/Query-farm/vgi-reghive/releases/tag/v0.5.0"},"links":{"html":"https://query.farm/products/orchard/connectors/reghive/","llms":"https://query.farm/products/orchard/connectors/reghive/llms.txt","markdown":"https://query.farm/products/orchard/connectors/reghive/index.md","json":"https://query.farm/products/orchard/api/v1/connectors/reghive.json","objects":"https://query.farm/products/orchard/api/v1/connectors/reghive/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=reghive&q={query}"},"authentication":{"mode":"none_declared","guidance":"No service credentials are declared by this connector. Individual datasets, input files or deployments may have their own prerequisites.","interpretation":"Secret parameter required flags describe the upstream declaration; they do not override the service-level mode above. Keep secrets in environment variables or the deployment secret store. SQL values in angle brackets are placeholders, not automatic environment lookups. Native DuckDB and Haybarn 2.0.1 do not provide a SQL getenv() function, even when worker-supplied snippets mention it. Read environment variables in your application and pass credential values through client parameter bindings (for example, Python con.execute(\"CREATE SECRET stripe (TYPE stripe, api_key ?)\", [os.environ[\"STRIPE_API_KEY\"]]) after attaching the connector. Omit unused optional parameters and keep real values out of saved SQL and logs.","secrets":[]},"deployment":{"local":{"methods":[{"id":"github","label":"From GitHub","icon":"simple-icons:github","steps":[{"title":"Attach the release directly","description":"Downloads the latest release for your platform and caches it locally.","lang":"sql","code":"ATTACH 'reghive' AS reghive (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-reghive'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'reghive' AS reghive (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-reghive:0.5.0'\n);"}]}],"pinnedMethods":[{"id":"github","label":"From GitHub","icon":"simple-icons:github","steps":[{"title":"Attach the release directly","description":"Uses the verified release each time you attach the connector.","lang":"sql","code":"ATTACH 'reghive' AS reghive (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-reghive@v0.5.0'\n);"}]},{"id":"docker","label":"Docker","icon":"simple-icons:docker","steps":[{"title":"Attach the signed image","description":"Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.","lang":"sql","code":"ATTACH 'reghive' AS reghive (\n  TYPE vgi,\n  LOCATION 'oci://ghcr.io/query-farm/vgi-reghive:0.5.0'\n);"}]}]},"selfHost":{"instructions":"https://github.com/Query-farm/vgi-reghive","connectionGuide":"https://query.farm/vgi/connect-to-a-worker/","guidance":"Deploy using the connector repository instructions and use its supported HTTP or SSH transport. Replace example URLs with your actual deployment; configure its authentication."},"queryFarm":{"available":true,"console":"https://auth.queryfarm.cloud/console/new?worker=reghive","organizationMonthlyMinimumUsd":10,"pricing":"https://query.farm/products/orchard/hosted/"},"publicDemo":null},"setup":{"extensions":{"duckdb":"SET allow_extension_repositories = 'allowed';\n\nCREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm\n    WITH PREFIX 'https://duckdb-extensions.query.farm';\n\nINSTALL vgi FROM query_farm;\nLOAD vgi FROM query_farm;","haybarn":"INSTALL vgi FROM community;\nLOAD vgi;"},"attachSql":"ATTACH 'reghive' AS reghive (\n  TYPE vgi,\n  LOCATION 'github-auto://Query-farm/vgi-reghive'\n);","attachOptions":[],"note":"Install and load VGI, attach the connector using the catalog alias shown here, then create required secrets. Replace placeholders and omit unused optional secret parameters. Satisfy file, network and credential prerequisites before executing a query."},"example":{"title":"Scan a collected hive and pull the Run-key persistence value it plants.","sql":"SELECT key_path, value_name, value_data FROM reghive.main.read_hive(unhex('7265676601000000010000000000056936c0d501010000000300000000000000010000002000000000200000010000005c00530079007300740065006d0052006f006f0074005c00530079007300740065006d00330032005c0043006f006e006600690067005c0053004f00460054' || repeat('00', 397) || '1085c20e' || repeat('00', 3584) || '6862696e0000000000200000000000000000000000000000000000000000000090ffffff6e6b24000000056936c0d50100000000000000000100000000000000b0030000ffffffff00000000ffffffffffffffffffffffff00000000000000000000000000000000000000001e000000434d492d437265617465486976652d7b534f4654574152452d475549447d0000a8ffffff6e6b20000000056936c0d50100000000200000000100000000000000a0030000ffffffff00000000ffffffffffffffffffffffff000000000000000000000000000000000000000008000000536f667477617265a0ffffff6e6b20000000056936c0d5010000000090000000010000000000000090030000ffffffff00000000ffffffffffffffffffffffff0000000000000000000000000000000000000000090000004d6963726f736f667400000000000000a8ffffff6e6b20000000056936c0d50100000000e8000000010000000000000080030000ffffffff00000000ffffffffffffffffffffffff00000000000000000000000000000000000000000700000057696e646f777300a0ffffff6e6b20000000056936c0d5010000000048010000010000000000000070030000ffffffff00000000ffffffffffffffffffffffff00000000000000000000000000000000000000000e00000043757272656e7456657273696f6e0000a8ffffff6e6b20000000056936c0d50100000000a0010000000000000000000000000000ffffffff0500000058030000ffffffffffffffff00000000000000000000000000000000000000000300000052756e0000000000d0ffffff43003a005c00570069006e0064006f00770073005c006500760069006c002e00650078006500000000000000e0ffffff766b0700280000005802000001000000010000005570646174657200e0ffffff766b0500040000800200000004000000010000005374617274000000f0ffffff665544332211000000000000e0ffffff766b030008000000c80200000b000000010000004269670000000000e0ffffff61006c00700068006100000062006500740061000000000000000000e0ffffff766b040018000000f802000007000000010000004c69737400000000e0ffffff766b040004000080deadbeef0300000001000000426c6f6200000000e8ffffff88020000a8020000d80200001803000038030000f0ffffff6c6601000002000052756e00f0ffffff6c660100a001000043757272f0ffffff6c6601004801000057696e64f0ffffff6c660100e80000004d696372f0ffffff6c66010090000000536f6674180000007700610073002d0068006500720065000000000020000000766b050012000000c00300000100000001000000547261636500000008000000d8030000580000006e6b20000000056936c0d5010000000000000000000000000000000000000000ffffffff01000000f8030000ffffffffffffffff00000000000000000000000000000000000000000800000047686f73744b6579a81b' || repeat('00', 7078))::BLOB) WHERE value_name = 'Updater'","requiresCredentials":null,"note":null,"objects":[{"name":"reghive.main.read_hive","kind":"table_function","links":{"html":"https://query.farm/products/orchard/connectors/reghive/#obj-main-read_hive","markdown":"https://query.farm/products/orchard/connectors/reghive/objects/table_function.bWFpbg.cmVhZF9oaXZl.md","json":"https://query.farm/products/orchard/api/v1/connectors/reghive/objects/table_function.bWFpbg.cmVhZF9oaXZl.json"}}],"evidence":{"status":"captured_result","capturedAt":"2026-12-01T06:16:30+00:00","engineVersion":"2.0.1","protocolVersion":"3.4.0","releaseTag":"v0.5.0","sample":{"columns":["key_path","value_name","value_data"],"types":["VARCHAR","VARCHAR","VARCHAR"],"rows":[["Software\\Microsoft\\Windows\\CurrentVersion\\Run","Updater","C:\\Windows\\evil.exe"]],"more":false}},"artifact":null},"objects":{"total":9,"index":"https://query.farm/products/orchard/api/v1/connectors/reghive/objects.json","search":"https://query.farm/products/orchard/api/v1/search.json?kind=object&connector=reghive&q={query}"},"agentTasks":["Is the text 'definitely not a hive' a valid registry hive? Return one boolean column named ok.","For the bytes 'not a registry hive', does the base-block header summary come back as NULL (i.e. it is not a parseable hive)? Return one boolean column named is_null.","Classify why the bytes 'nope' are not a valid registry hive — return the well-formedness kind label in one column named kind.","The worker ships a reference list of well-known forensic registry keys. How many of them are in the 'Persistence' category? Return the count in one column named n.","In the worker's reference list of well-known forensic registry keys, which MITRE ATT&CK technique is mapped to the classic CurrentVersion\\Run autostart key? Return one column named mitre_technique.","Scan the registry hive file tests/hives/software.hve and match its live (not deleted) values against the worker's reference list of well-known forensic registry keys. For the keys in the 'Persistence' category, how many live values does the hive hold per MITRE ATT&CK technique? Return two columns, mitre_technique and n (the value count), one row per technique.","Which of the worker's reference forensic registry keys that live in the SOFTWARE hive are absent from the hive file tests/hives/software.hve? Return one column named key_path, one row per missing key, ordered by key_path.","The bulk hive reader must tolerate non-registry input without error. When you read the bytes 'not a hive' as a hive, how many rows come back? Return the count in one column named n."],"provenance":{"generatedAt":"2026-12-01T18:22:16+00:00","repository":"https://github.com/Query-farm/vgi-reghive","harvest":{"status":"ok","method":"github-auto","error":null,"vgi_version":"9773130dde"},"catalogVerification":{"verified":true,"status":"passed","total":2,"passed":2,"failed":0,"needs_credentials":0,"location":"github-auto://Query-farm/vgi-reghive@v0.5.0","transport":"github-auto","environment":{"vgi_extension_version":"9773130dde","haybarn_version":"2.0.1rc3","engine_version":"v2.0.1","python":"3.12.4","platform":"darwin_arm64","protocol_version":"3.4.0"},"checked_at":"2026-12-01T06:16:26+00:00"},"interpretation":"Catalog verification records the harvest environment. It is not proof that every query or current live API call succeeds. Only an example with captured_result has a saved result for that exact SQL."},"interpretation":["Missing, null, or undeclared metadata means unknown; do not invent defaults, credential scope, platform support or endpoint URLs.","Search is keyword retrieval, not proof of a capability. Read the exact object declaration before generating SQL.","A table and a table function can have the same name. Preserve parentheses and use the matching overload and schema.","Service credentials, external data availability and deployment authentication are separate requirements."]}