Detect Kerberos Agent JWT Authentication Bypass via Hard-Coded Signing Key (CVE-2026-135208) in Splunk
Detects exploitation of CVE-2026-135208, an authentication bypass in Kerberos.io Agent before v3.14.4. The JWTMiddleware (jwt_middleware.go) validates JWT tokens using a hard-coded signing secret (CWE-1394: Use of Default Cryptographic Key), allowing any unauthenticated attacker who knows the hard-coded key to forge a valid JWT asserting administrator identity. Forged tokens grant full access to the agent's HTTP admin API (camera config, recording, RTSP/ONVIF settings, system control). This detection surfaces anomalous authenticated access to the Kerberos Agent HTTP API: successful admin API calls from unexpected sources, token use without a preceding legitimate login, access to vulnerable versions, and configuration/credential-modifying actions indicative of post-exploitation. Because exploitation requires only a correctly-signed JWT, network and application logs are the primary telemetry; detection focuses on API access patterns rather than a specific malicious payload.
MITRE ATT&CK
SPL Detection Query
``` df00tech DF00-38f835587e · https://df00tech.com/detections/CVE-2026-135208 · licence: https://df00tech.com/detections/licence ```
index=web OR index=proxy (uri_path="/api/camera*" OR uri_path="/api/config*" OR uri_path="/api/settings*" OR uri_path="/api/system*" OR uri_path="/api/users*" OR uri_path="/api/stream*")
| where (status=200 OR status=201 OR status=204)
| eval has_bearer=if(match(http_authorization,"(?i)Bearer\s"),1,0)
| stats count AS request_count values(http_method) AS methods values(uri_path) AS paths min(_time) AS first_seen max(_time) AS last_seen BY src_ip dest_host
| where request_count >= 1
| convert ctime(first_seen) ctime(last_seen)
| sort - request_count Surfaces successful authenticated requests to Kerberos Agent admin API endpoints. Forged-JWT exploitation produces authenticated API access that does not map to a legitimate browser login flow; correlate src_ip against known management hosts.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Authorized operators administering Kerberos Agents via the HTTP API
- Monitoring/automation accounts with valid tokens polling the API
- Reverse-proxy or uptime health checks against API paths
Other platforms for CVE-2026-135208
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.
- Test 1 Forge administrator JWT with hard-coded key and access admin API
Expected signal: Web/proxy access log entry showing a GET /api/config with a Bearer token and a 200 response from the test source IP.
- Test 2 Enumerate privileged endpoints with forged token
Expected signal: Multiple successful (200/204) authenticated requests to distinct /api/ endpoints from a single source IP within a short window.
- Test 3 Modify camera configuration via forged admin token
Expected signal: Access log entry for a POST /api/config with a Bearer token returning 200/201/204 from the test source.
References (6)
- https://github.com/kerberos-io/agent/security/advisories/GHSA-3c52-7fc8-c39j
- https://github.com/kerberos-io/agent/commit/c0baade8fd6e21ed1b9a834d9ae6b4eaaa67b3b6
- https://github.com/kerberos-io/agent/pull/361
- https://github.com/kerberos-io/agent/releases/tag/v3.14.4
- https://github.com/kerberos-io/agent/blob/v3.14.1/machinery/src/routers/http/jwt_middleware.go#L17-L28
- https://www.vulncheck.com/advisories/kerberos-agent-before-3.14.4-authentication-bypass-via-hard-coded-jwt-signing-key
Response Playbook
Triage
- Confirm the targeted host is running Kerberos.io Agent and identify its version; any version before 3.14.4 is vulnerable to the hard-coded JWT signing key bypass.
- Review the source IP(s) making successful admin API calls and determine whether they belong to authorized management hosts. External or unrecognized sources making authenticated admin calls are high-priority.
- Inspect the JWT presented in Authorization headers (if captured): decode the payload and check issued-at/expiry timestamps and claimed identity. A valid admin token with no corresponding login event indicates forgery.
- Correlate the API access timeline against legitimate operator activity and known maintenance windows to rule out sanctioned administration.
Containment
- Upgrade all affected Kerberos Agent instances to v3.14.4 or later, which replaces the hard-coded signing key with a per-instance secret.
- Block or firewall the agent HTTP admin API so it is not reachable from untrusted networks; restrict to a management VLAN or VPN.
- If upgrade is not immediately possible, place the agent behind a reverse proxy that enforces independent authentication and rotate any secrets/credentials the agent stores.
Evidence Collection
- Preserve web server, reverse proxy, and agent HTTP access logs capturing the suspicious API requests, source IPs, and Authorization headers.
- Capture the current agent configuration, user list, and stored camera/RTSP credentials to establish what an attacker could have viewed or altered.
- Snapshot the host/container running the agent, including environment variables and the agent binary version, for forensic comparison.
Escalation Criteria
- !Escalate to incident response if admin API calls that modify configuration, users, or credentials originate from an unauthorized source.
- !Escalate if evidence shows camera streams, stored credentials, or RTSP/ONVIF settings were accessed or exfiltrated via forged tokens.
- !Escalate if the agent is internet-exposed and vulnerable, given the critical unauthenticated bypass and potential for widespread automated exploitation.
Investigation Guide
Forensic Artifacts
- >
Web/reverse-proxy access logs showing authenticated admin API requests and their Authorization: Bearer headers - >
Kerberos Agent application logs recording API actions (config changes, user edits, stream access) - >
Agent configuration files and stored camera/RTSP/ONVIF credentials that may have been read or modified - >
Container/host image and binary version metadata confirming a pre-3.14.4 vulnerable build
Tuning Guidance
Build an allowlist of authorized management hosts, automation accounts, and reverse-proxy/health-check source IPs, and exclude them from alerting. Narrow the API path list to the specific privileged endpoints exposed by your agent version. In environments where the agent API is reachable only from a dedicated management network, treat any external source as high severity and relax aggregation thresholds; where the API is broadly accessed, raise the request-count threshold and prioritize config/credential-modifying methods (POST/PUT/DELETE).
Hunting Queries
Baselines all successful authenticated calls to the agent API by source IP so analysts can isolate sources that do not match known management hosts.
// df00tech DF00-38f835587e · https://df00tech.com/detections/CVE-2026-135208 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem startswith "/api/" | where scStatus in ("200","201","204") | summarize calls=count(), paths=make_set(csUriStem) by cIP | where calls > 0 | order by calls desc ``` df00tech DF00-38f835587e · https://df00tech.com/detections/CVE-2026-135208 · licence: https://df00tech.com/detections/licence ```
index=web uri_path="/api/*" (status=200 OR status=201 OR status=204) | stats count AS calls values(uri_path) AS paths by src_ip | sort - calls Atomic Red Team Tests
In a lab, mint a JWT signed with the known hard-coded secret used by the vulnerable jwt_middleware.go and call a privileged endpoint to confirm the bypass.
Command
python3 -c "import jwt,time;print(jwt.encode({'sub':'admin','role':'admin','iat':int(time.time()),'exp':int(time.time())+3600}, 'hardcoded-secret-from-advisory', algorithm='HS256'))" > /tmp/forged.jwt; curl -s -H "Authorization: Bearer $(cat /tmp/forged.jwt)" http://127.0.0.1:8080/api/config Cleanup
rm -f /tmp/forged.jwt Expected Telemetry
Web/proxy access log entry showing a GET /api/config with a Bearer token and a 200 response from the test source IP.
Expected Detection
The KQL/SPL API-access detections flag the successful authenticated admin API call from the test source.
Use a forged token to sweep multiple admin API endpoints, simulating reconnaissance after bypass.
Command
for p in /api/config /api/users /api/system /api/settings; do curl -s -o /dev/null -w "%{http_code} $p\n" -H "Authorization: Bearer $(cat /tmp/forged.jwt)" http://127.0.0.1:8080$p; done Cleanup
rm -f /tmp/forged.jwt Expected Telemetry
Multiple successful (200/204) authenticated requests to distinct /api/ endpoints from a single source IP within a short window.
Expected Detection
Aggregation detections report a source IP hitting multiple privileged paths, exceeding the per-source path-diversity expectation.
Simulate post-exploitation impact by issuing a config-changing POST with a forged administrator token.
Command
curl -s -X POST -H "Authorization: Bearer $(cat /tmp/forged.jwt)" -H "Content-Type: application/json" -d '{"name":"atomic-test"}' http://127.0.0.1:8080/api/config Cleanup
curl -s -X POST -H "Authorization: Bearer $(cat /tmp/forged.jwt)" -H "Content-Type: application/json" -d '{"name":"original"}' http://127.0.0.1:8080/api/config; rm -f /tmp/forged.jwt Expected Telemetry
Access log entry for a POST /api/config with a Bearer token returning 200/201/204 from the test source.
Expected Detection
The detections flag a config-modifying method (POST) to a privileged endpoint from an unauthorized source IP.