Skip to content
CVE-2026-77363 Elastic Security · Elastic

Detect obsidian-tc Loopback HTTP Transport DNS-Rebinding / Missing Origin Validation (CVE-2026-77363) in Elastic Security

Detects exploitation and exposure of CVE-2026-77363, a missing Origin/DNS-rebinding protection flaw (CWE-346, CWE-1385) in the npm package obsidian-tc prior to version 1.3.1. The HTTP transport binds to loopback but does not validate the Origin header or guard against DNS rebinding, allowing a malicious web page the victim visits to issue cross-origin requests to the local obsidian-tc HTTP server and read/write the user's Obsidian vault (drive-by vault access). Detection focuses on local HTTP listeners spawned by Node/Electron processes on loopback ports receiving requests bearing external or mismatched Origin/Host headers, unexpected cross-origin reads of vault contents, and the presence of vulnerable package versions on endpoints. Because no public PoC exists and exploitation is theoretical, detection emphasizes vulnerability-state identification and anomalous loopback access patterns rather than a single known exploit signature.

MITRE ATT&CK

Tactic
Initial Access Collection

Elastic Detection Query

Elastic Security (Elastic)
eql
// df00tech DF00-e8e9162ee5 · https://df00tech.com/detections/CVE-2026-77363 · licence: https://df00tech.com/detections/licence
sequence by host.id with maxspan=30s
  [ process where process.name in ("node", "node.exe", "obsidian", "obsidian.exe", "electron") and process.command_line like "*obsidian-tc*" ]
  [ network where network.direction == "ingress" and (destination.ip == "127.0.0.1" or destination.ip == "::1") and network.protocol == "http" ]
high severity medium confidence

Correlates an obsidian-tc Node/Electron process with inbound loopback HTTP connections, surfacing the local listener that is reachable for cross-origin exploitation.

Data Sources

Elastic EndpointPacketbeatFilebeat HTTP module

Required Tables

logs-endpoint.events.processlogs-endpoint.events.networkpacketbeat-*

False Positives & Tuning

  • Legitimate local clients connecting to the obsidian-tc loopback server.
  • Developer or CI processes exercising the HTTP transport.
  • Monitoring agents health-checking the local port.

Other platforms for CVE-2026-77363


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Cross-origin request to obsidian-tc loopback server with spoofed Origin

    Expected signal: Loopback HTTP request event with a non-localhost Origin/Host header toward the obsidian-tc listener.

  2. Test 2 Enumerate vulnerable obsidian-tc version

    Expected signal: Process execution of npm/grep inspecting obsidian-tc version metadata.

  3. Test 3 Simulated DNS-rebinding fetch from browser context

    Expected signal: Node.exe making a loopback HTTP connection carrying a non-localhost Origin header.


Response Playbook

Triage

  1. Confirm the endpoint has obsidian-tc installed and determine the version (`npm ls obsidian-tc` or inspect the plugin's package.json); versions < 1.3.1 are vulnerable.
  2. Determine whether the obsidian-tc HTTP transport was enabled and which loopback port it bound to, and whether that port was reachable during the alert window.
  3. Review captured Origin/Referer and Host headers on requests to the loopback server; any non-localhost Origin or a Host that resolves externally indicates a DNS-rebinding / cross-origin attempt.
  4. Correlate with the user's browser history around the alert time to identify a web page that could have initiated drive-by requests to localhost.

Containment

  1. Disable the obsidian-tc HTTP transport or stop the local server until the package is upgraded.
  2. Upgrade obsidian-tc to version 1.3.1 or later, which adds Origin validation and DNS-rebinding protection.
  3. If vault exposure is suspected, restrict loopback service access via host firewall rules pending remediation.

Evidence Collection

  1. Preserve HTTP/proxy and packet-capture logs showing requests to the loopback port, including full Origin, Referer and Host headers.
  2. Collect the obsidian-tc version, configuration, and any server access logs that record cross-origin requests.
  3. Capture browser history and any suspicious page content/JavaScript that may have performed the rebinding attack.

Escalation Criteria

  • !Escalate if requests with a non-localhost Origin successfully read or wrote vault files (evidence of actual data access).
  • !Escalate if the same cross-origin access pattern appears across multiple users or endpoints, suggesting a targeted campaign.
  • !Escalate to IR if sensitive vault contents are confirmed exfiltrated to an external destination.

Investigation Guide

Forensic Artifacts

  • >obsidian-tc version and configuration (package.json / plugin manifest).
  • >HTTP server access logs and proxy/packet captures containing Origin and Host headers for loopback requests.
  • >Browser history and cache entries for the page that triggered the drive-by request.

Tuning Guidance

Baseline the legitimate local clients and Origin values that normally interact with the obsidian-tc loopback API, then alert only on Origin/Host headers outside that allowlist. Reduce noise by scoping to hosts where obsidian-tc < 1.3.1 is actually installed, and by requiring a non-localhost Origin or an externally-resolving Host rather than merely any loopback traffic.


Hunting Queries

Surfaces loopback obsidian-tc listeners and any cross-origin requests reaching them, for retrospective hunting across the fleet.

Hunting — KQL
kql
// df00tech DF00-e8e9162ee5 · https://df00tech.com/detections/CVE-2026-77363 · licence: https://df00tech.com/detections/licence
DeviceNetworkEvents | where (RemoteIP in ("127.0.0.1", "::1") or LocalIP in ("127.0.0.1", "::1")) | where InitiatingProcessFileName in~ ("node.exe", "obsidian.exe", "electron.exe") | where InitiatingProcessCommandLine has "obsidian-tc" | summarize count() by DeviceName, LocalPort, bin(Timestamp, 1h)
Hunting — SPL
spl
``` df00tech DF00-e8e9162ee5 · https://df00tech.com/detections/CVE-2026-77363 · licence: https://df00tech.com/detections/licence ```
index=web OR index=proxy (dest_ip="127.0.0.1" OR dest="localhost") uri_path="*obsidian*" | regex origin!="^https?:\/\/(localhost|127\.0\.0\.1)" | stats count by src_ip origin uri_path

Atomic Red Team Tests

Test 1 Cross-origin request to obsidian-tc loopback server with spoofed Origin
linux

Simulates a drive-by / DNS-rebinding request by sending an HTTP request to the local obsidian-tc port with an external Origin header.

Command

bash
curl -s -H 'Origin: http://evil.example.com' -H 'Host: attacker.rebind.example' http://127.0.0.1:27123/vault/ -o /dev/null -w '%{http_code}\n'

Cleanup

bash
echo 'No persistent artifacts created by this test'

Expected Telemetry

Loopback HTTP request event with a non-localhost Origin/Host header toward the obsidian-tc listener.

Expected Detection

KQL/SPL/network rules flag the cross-origin loopback request to the obsidian-tc port.

Test 2 Enumerate vulnerable obsidian-tc version
linux

Detects presence of a vulnerable obsidian-tc version on the endpoint.

Command

bash
npm ls obsidian-tc 2>/dev/null || grep -R '"obsidian-tc"' ~/.config/obsidian 2>/dev/null

Cleanup

bash
echo 'Read-only enumeration; nothing to clean up'

Expected Telemetry

Process execution of npm/grep inspecting obsidian-tc version metadata.

Expected Detection

Vulnerability-state identification of obsidian-tc < 1.3.1.

Test 3 Simulated DNS-rebinding fetch from browser context
windows

Runs a Node one-liner that issues a cross-origin fetch to the loopback transport as a browser-driven attack would, verifying missing Origin enforcement.

Command

powershell
node -e "fetch('http://127.0.0.1:27123/vault/',{headers:{Origin:'http://malicious.rebind.test'}}).then(r=>console.log(r.status)).catch(e=>console.log(e.message))"

Cleanup

powershell
echo No cleanup required

Expected Telemetry

Node.exe making a loopback HTTP connection carrying a non-localhost Origin header.

Expected Detection

EDR/network correlation of Node-initiated loopback request with spoofed Origin to obsidian-tc.

Related Detections