Skip to content
CVE-2026-56712

Replicate Cog SSRF via cog-file/cog-path URL inputs (CVE-2026-56712)

Discovery Collection Exfiltration Last updated:

Detects potential exploitation of CVE-2026-56712, a server-side request forgery (SSRF) vulnerability in Replicate Cog through version 0.23.1 (CWE-918). Cog accepts URL-typed inputs (cog.File and cog.Path) and fetches them server-side without validating the resolved destination host or IP. An attacker who can submit a prediction request can coerce the Cog process into making server-side HTTP(S) requests, including to internal-only services, cloud instance metadata endpoints (e.g. 169.254.169.254), and link-local or loopback addresses. HTTP redirects are followed without revalidation, so an external-looking URL can redirect to an internal destination. This detection surfaces prediction requests whose input URLs resolve to internal, metadata, or loopback destinations and anomalous outbound connections from the Cog server process. A proof-of-concept is public.

Based on VulnCheck Advisory, Replicate Cog SSRF via cog.File and cog.Path URL inputs

Vulnerability Intelligence

Theoretical

What is CVE-2026-56712 Replicate Cog SSRF via cog-file/cog-path URL inputs (CVE-2026-56712)?

Replicate Cog SSRF via cog-file/cog-path URL inputs (CVE-2026-56712) (CVE-2026-56712) maps to the Discovery and Collection and Exfiltration tactics — the adversary is trying to figure out your environment in MITRE ATT&CK.

This page provides production-ready detection logic for Replicate Cog SSRF via cog-file/cog-path URL inputs (CVE-2026-56712), covering the data sources and telemetry it touches: Microsoft Defender for Endpoint, EDR network telemetry. The queries below are rated high severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Discovery Collection Exfiltration
Microsoft Sentinel / Defender
kusto
// df00tech DF00-6270410799 · https://df00tech.com/detections/CVE-2026-56712 · licence: https://df00tech.com/detections/licence
// CVE-2026-56712 — Cog SSRF: outbound connections from Cog process to internal/metadata/loopback targets
let metadataIps = dynamic(["169.254.169.254","169.254.170.2","100.100.100.200","fd00:ec2::254"]);
let privateCidrs = dynamic(["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","127.0.0.0/8","169.254.0.0/16"]);
DeviceNetworkEvents
| where InitiatingProcessFileName in~ ("python","python3","cog","uvicorn","gunicorn")
| where InitiatingProcessCommandLine has_any ("cog","predict","http.server","cog.server")
| where ActionType == "ConnectionSuccess"
| extend RemoteIPStr = tostring(RemoteIP)
| where RemoteIPStr in (metadataIps)
    or ipv4_is_in_any_range(RemoteIPStr, privateCidrs)
| project Timestamp, DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, RemoteIPStr, RemotePort, RemoteUrl
| sort by Timestamp desc

Flags outbound connections initiated by the Cog server process toward cloud metadata endpoints, loopback, or RFC1918/link-local ranges, the primary SSRF impact of CVE-2026-56712.

high severity medium confidence

Data Sources

Microsoft Defender for Endpoint EDR network telemetry

Required Tables

DeviceNetworkEvents

False Positives

  • Legitimate model workloads that fetch inputs from an internal artifact store or object storage on a private IP.
  • Health-check or readiness probes from orchestration contacting loopback.
  • Internal CI/CD pipelines invoking Cog predictions against staging services on private ranges.

Query fingerprint DF00-6270410799 · licence

Sigma logsource & community rules

The detection logic for Replicate Cog SSRF via cog-file/cog-path URL inputs (CVE-2026-56712) (CVE-2026-56712) above is provided in a vendor-neutral form so you can deploy it on any SIEM. The same logic is shipped here as native KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the following logsource:

logsource:
  category: network_connection
  product: windows

Browse the community-maintained Sigma rules for this technique:


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 Cog SSRF to cloud metadata endpoint

    Expected signal: Outbound connection from the Cog process to 169.254.169.254 in network/proxy logs.

  2. Test 2 Cog SSRF to internal loopback service

    Expected signal: Cog process connection to 127.0.0.1:8080.

  3. Test 3 Cog SSRF to RFC1918 internal host

    Expected signal: Cog process connection to 10.0.0.5:6379.


Response Playbook

Triage

  1. Identify the prediction request that triggered the outbound connection: correlate the Cog access log entry with the input URL submitted in cog.File/cog.Path parameters.
  2. Determine the destination contacted, check whether it is a cloud metadata endpoint (169.254.169.254, metadata.google.internal), loopback, or an internal-only service.
  3. Confirm the running Cog version; versions through 0.23.1 are vulnerable. Check whether PR #3225 (the fix) has been applied.
  4. Review the response size/status returned to the attacker to assess whether internal data (e.g., IAM credentials) was exfiltrated.

Containment

  1. Restrict egress from the Cog host via network policy: block access to 169.254.169.254 and non-essential internal ranges from the model-serving process.
  2. Upgrade Cog to a fixed release (post-0.23.1 / with PR #3225) or apply input URL allow-listing in front of Cog.
  3. If metadata access is confirmed, rotate any cloud instance credentials/IAM role tokens that may have been exposed.

Evidence Collection

  1. Preserve Cog server access and prediction logs capturing submitted input URLs.
  2. Capture host network flow/proxy logs showing outbound destinations and response sizes.
  3. Snapshot the instance metadata service access logs (if available) to confirm whether credentials were retrieved.

Escalation Criteria

  • ! Escalate to IR if any connection to a cloud metadata endpoint succeeded from the Cog process.
  • ! Escalate if evidence shows internal service enumeration or retrieval of sensitive data beyond the model's expected inputs.

Investigation Guide

Forensic Artifacts

  • > Cog prediction/access logs containing attacker-supplied cog.File/cog.Path URLs.
  • > Host egress/proxy logs showing connections to internal or metadata endpoints.
  • > Cloud metadata service access records.

Tuning Guidance

Baseline the legitimate internal destinations the Cog service fetches inputs from (e.g., known object-storage IPs) and allow-list them. Exclude orchestration loopback health checks. Prioritize alerts where the destination is a cloud metadata IP, as those have no legitimate use from a model-serving process.


Hunting Queries

Hunt for Cog-originated requests targeting metadata/loopback hostnames in URL inputs.

Hunting — KQL
kql
// df00tech DF00-6270410799 · https://df00tech.com/detections/CVE-2026-56712 · licence: https://df00tech.com/detections/licence
DeviceNetworkEvents | where InitiatingProcessCommandLine has "cog" | where RemoteUrl has_any ("169.254.169.254","metadata.google.internal","localhost","127.0.0.1") | project Timestamp, DeviceName, RemoteUrl, RemoteIP
Hunting — SPL
spl
``` df00tech DF00-6270410799 · https://df00tech.com/detections/CVE-2026-56712 · licence: https://df00tech.com/detections/licence ```
index=proxy process=*cog* OR process=*python* | search url="*169.254.169.254*" OR url="*metadata*" OR url="*127.0.0.1*" OR url="*localhost*" | stats count by src, url

Atomic Red Team Tests

Test 1 Cog SSRF to cloud metadata endpoint
linux

Submit a prediction request with a cog.Path/cog.File URL input pointing at the cloud metadata service to simulate SSRF.

Command

bash
curl -s -X POST http://localhost:5000/predictions -H 'Content-Type: application/json' -d '{"input":{"image":"http://169.254.169.254/latest/meta-data/iam/security-credentials/"}}'

Cleanup

bash
echo 'No persistent artifacts; clear prediction logs if desired'

Expected Telemetry

Outbound connection from the Cog process to 169.254.169.254 in network/proxy logs.

Expected Detection

KQL/SPL rules fire on Cog-process egress to 169.254.169.254.

Test 2 Cog SSRF to internal loopback service
linux

Coerce Cog into requesting a loopback-bound admin/internal service via URL input.

Command

bash
curl -s -X POST http://localhost:5000/predictions -H 'Content-Type: application/json' -d '{"input":{"file":"http://127.0.0.1:8080/admin"}}'

Cleanup

bash
echo 'No cleanup required'

Expected Telemetry

Cog process connection to 127.0.0.1:8080.

Expected Detection

Loopback destination matched by the SSRF detection rules.

Test 3 Cog SSRF to RFC1918 internal host
linux

Submit an input URL referencing an internal private-range host to simulate internal network enumeration via SSRF.

Command

bash
curl -s -X POST http://localhost:5000/predictions -H 'Content-Type: application/json' -d '{"input":{"path":"http://10.0.0.5:6379/"}}'

Cleanup

bash
echo 'No cleanup required'

Expected Telemetry

Cog process connection to 10.0.0.5:6379.

Expected Detection

RFC1918 destination matched by the SSRF detection rules.

Related Detections

Browse by tactic

Full ATT&CK matrix Search all detections