# API Abuse from Reconnaissance to Exfiltration: Valid Requests, Malicious Intent (Sophos Frontlines)

> Sophos incident responders describe attackers abusing legitimate API functions, tokens and authorization flaws as one connected sequence: reconnaissance, token acquisition, object enumeration, privilege escalation and persistence, impact, and collection/exfiltration. Requests are well-formed and often return HTTP 200, so WAF and status-code monitoring miss them; the detection unit must be the request sequence, not the single request.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-03T13:31:39Z
- **Last updated:** 2026-12-03T13:31:39Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7391
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7391.png
- **ID:** TL-2026-7391
- **Severity:** MEDIUM
- **Category:** THREAT_INTEL
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 15

## Description

Sophos IR (Rajendra Sekar, Abhijit Gupta; The Frontlines series) reports investigations in which attackers used well-formed, encrypted API requests while source IPs, countries and User-Agents rotated but the route sequence and target stayed constant. The article gives five investigation rules: HTTP success is not application success; authentication is not authorization; access is not exfiltration; correlation is not attribution; sequence is stronger than infrastructure. No CVEs, malware families, named actors or network IOCs are given. The publication date is not stated on the page; it cites July 2026 scanning activity.

Reconnaissance targets public front-end JavaScript bundles, source maps, manifests, login/recovery components, JWKS endpoints, Swagger/OpenAPI documentation, administrative routes, path-traversal strings and backup-file names, often probed with curl. One firewall rule blocking a diagnostic function was bypassed with a trailing slash. Spring Boot Actuator defaults exposed /heapdump and /env without authentication until version 1.5 (2017); Wiz found 2.3% of exposed Actuator instances in cloud environments left /heapdump open without authentication, and heap dumps can contain JWTs, session cookies and passwords. A vendor (Aviatrix, citing SANS ISC) reported /actuator/heapdump scans in July 2026.

Token acquisition occurs through issuance abuse (OTP guessing, recovery-flow abuse, bulk token requests; observed 34,313 OTP attempts from 21,387 IPs and hundreds of token requests in about five minutes), theft of exposed tokens (heap dumps), theft from people or partners (Okta session tokens in HAR support files; Salesloft Drift OAuth tokens) or token forgery (requires a signing key or validation flaw; a JWKS fetch alone does not prove it). A valid token is then used for object-level authorization abuse (BOLA/IDOR): sequential customer IDs such as /api/customers/48101 to 48103 are walked until records return, and a single Firefox-on-Linux client hit identity, authentication, transaction, customer-search and payment-orchestration endpoints from several IPs. Many such requests returned HTTP 200 at the edge while middleware rejected them before business logic ran.

State-changing steps test broken function-level authorization (low-privilege token calling admin functions or setting role fields) and establish persistence via admin-user creation, role/permission/tenant changes, device or authenticator registration, email changes, account linking and OAuth client modification. Collection and exfiltration abuse existing functions: search, list, reports, export jobs, bulk queries, downloads and storage reads. The Drift actor exported large volumes and searched for AWS keys, passwords and Snowflake tokens; Okta's attacker accessed files tied to 134 customers and direct file access went unflagged for 14 days because it logged differently from Files-tab browsing.

IP and country blocking fails: one dataset held 15,030 source IPs, 4,404 with country data spanning 45 countries, consistent with a residential-proxy network (Google disrupted IPIDEA in January 2026, noting more than 550 threat groups used it in a single recent month). The article recommends pivoting on request/trace IDs, token references (jti), session IDs, subject, OAuth client ID, object IDs, export job IDs and device/authenticator IDs; treating route sequence, target identity, cadence and JA4 (only at the first trusted TLS termination point) as strong; and IP, ASN, country, hosting and User-Agent as supporting only. Findings should be graded Confirmed, Probable, Possible, Not established or Contradicted. Cited cases: T-Mobile (~25 Nov 2022 to 5 Jan 2023, ~41 days, ~37M accounts), Okta (28 Sep to 17 Oct 2023, 19 days), Salesloft Drift (8 to 20 Aug 2025, 12 days). Elapsed-day figures are the authors' calculations. Severity here is an analyst judgment, not source-stated.

## MITRE ATT&CK

- T1595 Active Scanning
- T1595.003 Wordlist Scanning
- T1594 Search Victim-Owned Websites
- T1190 Exploit Public-Facing Application
- T1078 Valid Accounts
- T1110 Brute Force
- T1528 Steal Application Access Token
- T1539 Steal Web Session Cookie
- T1552 Unsecured Credentials
- T1550.001 Use Alternate Authentication Material: Application Access Token
- T1087.004 Cloud Account
- T1098 Account Manipulation
- T1098.005 Account Manipulation: Device Registration
- T1136.003 Cloud Account
- T1213 Data from Information Repositories
- T1530 Data from Cloud Storage
- T1119 Automated Collection
- T1567 Exfiltration Over Web Service
- T1090 Proxy

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Spring Boot Actuator /actuator/heapdump and /env Probing or Exposure — API Abuse Reconnaissance** (`TL-2026-7391-SPL-001`)

TL-2026-7391 (Sophos API abuse from reconnaissance to exfiltration): detects requests to Spring Boot Actuator /actuator/heapdump, /heapdump, /admin-api/actuator/heapdump and /env, including trailing-slash variants that bypassed one firewall rule. Heap dumps can hold JWTs, session cookies, passwords and AWS keys, so any HTTP 200 is treated as confirmed exposure and a token-theft precursor. Scanning of these routes was reported in July 2026 (SANS ISC, Aviatrix).

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1595.003, T1190, T1552, T1539
- **Data sources:** web access logs (index=web, sourcetype=access_combined), Azure AppServiceHTTPLogs, webserver logsource
- **Severity:** high
- **Confidence:** high

### Splunk SPL

````spl
index=web sourcetype=access_combined earliest=-24h
```Matches /actuator/heapdump, /heapdump, /admin-api/actuator/heapdump and /env including trailing slash variants```
| where match(uri_path, "(?i)/(actuator/)?(heapdump|env)/?$")
| eval http_ok=if(status=200,1,0)
| stats count AS requests, sum(http_ok) AS http_200, dc(uri_path) AS distinct_paths, values(uri_path) AS paths, values(useragent) AS user_agents, min(_time) AS first_seen, max(_time) AS last_seen BY clientip
| eval first_seen=strftime(first_seen,"%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen,"%Y-%m-%d %H:%M:%S"), priority=if(http_200>0,"critical_exposed","probe")
| sort - http_200, - requests
````

### Microsoft KQL

```kql
AppServiceHTTPLogs
| where TimeGenerated > ago(24h)
| where CsUriStem matches regex @'(?i)/(actuator/)?(heapdump|env)/?$'
| summarize Requests=count(), Http200=countif(ScStatus == 200), Paths=make_set(CsUriStem, 10), UserAgents=make_set(UserAgent, 5), FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated) by CIp
| project FirstSeen, LastSeen, CIp, Requests, Http200, Paths, UserAgents
| order by Http200 desc, Requests desc
```

### Sigma

```yaml
title: Spring Boot Actuator Heapdump or Env Endpoint Request
id: 3b9e6c14-52a7-4d08-8f3a-1c7d2e9a4b61
status: experimental
description: Detects web requests to Spring Boot Actuator heapdump and env endpoints (/actuator/heapdump, /heapdump, /admin-api/actuator/heapdump, /env) that can expose JWTs, session cookies and secrets. Part of TL-2026-7391 API abuse reconnaissance.
references:
  - https://www.sophos.com/en-us/blog/valid-requests-malicious-intent-investigating-api-abuse-from-reconnaissance-to-exfiltration
  - https://www.wiz.io/blog/spring-boot-actuator-misconfigurations
  - https://isc.sans.edu/forums/diary/Java%20Spring%20Boot%20%22heapdump%22%20scans/33188/
author: Threadlinqs Team
date: 2026-12-03
tags:
  - attack.reconnaissance
  - attack.t1595.003
  - attack.credential-access
  - attack.t1552
  - attack.t1539
  - attack.initial-access
  - attack.t1190
logsource:
  category: webserver
detection:
  selection_heapdump:
    c-uri|contains:
      - '/actuator/heapdump'
      - '/heapdump'
  selection_env:
    c-uri|endswith:
      - '/actuator/env'
      - '/env'
      - '/env/'
  condition: 1 of selection_*
falsepositives:
  - Authorized vulnerability scanners or internal security testing
  - Internal monitoring that legitimately calls Actuator env on a protected management port
level: high
```

**Known false positives:**

- Authorized vulnerability scans or red-team exercises hitting Actuator routes
- Internal monitoring using Actuator /env on a protected management interface

**Tuning notes:** Change index/sourcetype to your web, gateway or CDN log source and map clientip/uri_path/status to your field names. Allowlist scanner and monitoring source IPs. Any http_200>0 should be escalated: rotate secrets and sessions that could have been in the heap. Add your own non-default Actuator base paths.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Distributed OTP/MFA Failures Against One Identity Across Many IPs — Token Issuance Abuse (locked: unlock with TL Creds)
- Application Credential, OAuth Grant or API Token Changes — OAuth Client Modification Persistence (locked: unlock with TL Creds)
- High-Volume Export, Download or Report Calls by One Subject from Multiple IPs — Collection and Exfiltration (locked: unlock with TL Creds)
- Curl-Driven API Reconnaissance — Swagger/OpenAPI, Source Maps, JWKS, Backup Files and Path Traversal (locked: unlock with TL Creds)
- State-Changing Calls to Role and Authenticator Routes — Function-Level Authorization Abuse and Persistence (locked: unlock with TL Creds)
- Token Issuance and OTP Request Bursts on [indicator] and [indicator] — Proxy-Rotated Credential Abuse (locked: unlock with TL Creds)
- Okta MFA Failures Followed by Persistence Changes (Factor, Privilege, User Create) — API Abuse (locked: unlock with TL Creds)
- Sequential Object ID Walking (BOLA/IDOR) on [indicator] from Rotating Source IPs (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [Valid Requests, Malicious Intent: Investigating API Abuse from Reconnaissance to Exfiltration (Sophos)](https://www.sophos.com/en-us/blog/valid-requests-malicious-intent-investigating-api-abuse-from-reconnaissance-to-exfiltration)
- [Data Theft of Salesforce Instances via Salesloft Drift (Google Threat Intelligence Group)](https://cloud.google.com/blog/topics/threat-intelligence/data-theft-salesforce-instances-via-salesloft-drift)
- [Unauthorized Access to Okta's Support Case Management System: Root Cause and Remediation](https://sec.okta.com/articles/2023/11/unauthorized-access-oktas-support-case-management-system-root-cause/)
- [Tracking Unauthorized Access to Okta's Support System](https://sec.okta.com/articles/2023/10/tracking-unauthorized-access-oktas-support-system)
- [Okta October 2023 Security Incident Investigation Closure](https://sec.okta.com/harfiles)
- [Under the Radar: Exploring Spring Boot Actuator Misconfigurations (Wiz)](https://www.wiz.io/blog/spring-boot-actuator-misconfigurations)
- [Java Spring Boot "heapdump" scans (SANS ISC)](https://isc.sans.edu/forums/diary/Java%20Spring%20Boot%20%22heapdump%22%20scans/33188/)
- [Google Disrupts IPIDEA - One of the World's Largest Residential Proxy Networks (The Hacker News)](https://thehackernews.com/2026/01/google-disrupts-ipidea-one-of-worlds.html)
- [Hackers stole access tokens from Okta's support unit (Krebs on Security)](https://krebsonsecurity.com/2023/10/hackers-stole-access-tokens-from-oktas-support-unit/)
- [UNC6395 targets Salesloft in Drift OAuth token theft campaign (Security Affairs)](https://securityaffairs.com/181632/hacking/unc6395-targets-salesloft-in-drift-oauth-token-theft-campaign.html)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7391
