Skip to navigation

Threat reportThreat IntelligenceTL-2026-3305

Non-Human Identity (NHI) Attacks: Over-Privileged, Long-Lived Credentials on Service Accounts, Scripts, IoT and Third-Party Integrations

mediumMONITORING

Non-human identities (service accounts, scripts, IoT devices, third-party integrations) frequently hold excessive privileges and authenticate with long-lived tokens or keys that cannot use 2FA, so a single stolen credential grants durable, hard-to-detect access. Sweet Security's guidance and the OWASP NHI Top 10 frame this as a conceptual, widespread identity risk rather than a single campaign.

Key facts

IdentifiersTL-2026-3305
Also known asNHI compromise, Machine identity abuse
SeverityMEDIUM
Affected productsMulti-vendor Cloud service accounts, API keys and OAuth/access tokens, CI/CD and SaaS integrations, IoT device identities
Weaknesses (CWE)CWE-250, CWE-798, CWE-522
MITRE ATT&CK techniquesT1078 Valid Accounts, T1078.004 Valid Accounts: Cloud Accounts, T1098.001 Account Manipulation: Additional Cloud Credentials, T1199 Trusted Relationship, T1528 Steal Application Access Token, T1530 Data from Cloud Storage, T1550.001 Use Alternate Authentication Material: Application Access Token, T1552.001 Unsecured Credentials: Credentials In Files
MotivationUNKNOWN
Target sectorstechnology, cloud, finance, government administration, health
Target regionsGlobal
Detection rules9 (1 shown free)
Sources6 cited sources

Detection coverage

As of 2026-10-11, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-3305 across Splunk SPL, Microsoft KQL and Sigma, covering 6 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: NHI Credential Used From New Source IP (T1078.004) — AWS Service Identity First-Seen Source

Detects an AWS non-human identity (service-account-named IAM user or role session authenticating with an access key) making API calls from a source IP not seen for that identity in the previous 30 days. Long-lived NHI keys cannot use 2FA, so a new source for a stable automation identity is the primary runtime signal that a stolen key or token is being replayed (T1078.004, T1550.001). Tracked as TL-2026-3305 / OWASP NHI Top 10 (NHI2, NHI7).

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1078.004, T1078, T1550.001
  • Data sources: aws:cloudtrail (index=aws), AWSCloudTrail (Sentinel), aws cloudtrail
  • Severity: medium
  • Confidence: medium

Splunk SPL

```TL-2026-3305 T1078.004 - first-seen source IP for non-human identity```
index=aws sourcetype="aws:cloudtrail" earliest=-30d@d
| eval nhi=coalesce('userIdentity.userName', 'userIdentity.sessionContext.sessionIssuer.userName')
| where match(nhi, "(?i)^(svc|sa|bot|ci|cd|automation|deploy|app|integration)[-_.]") AND isnotnull('userIdentity.accessKeyId') AND NOT like(sourceIPAddress, "%.amazonaws.com")
| stats min(_time) as first_seen max(_time) as last_seen count as api_calls dc(eventName) as distinct_actions values(eventName) as actions by nhi, sourceIPAddress
| where first_seen >= relative_time(now(), "-24h@h")
| eval first_seen=strftime(first_seen, "%F %T"), last_seen=strftime(last_seen, "%F %T")
| sort - api_calls
| table nhi sourceIPAddress first_seen last_seen api_calls distinct_actions actions

Microsoft KQL

let nhiEvents = (start: datetime, finish: datetime) {
    AWSCloudTrail
    | where TimeGenerated between (start .. finish)
    | where isnotempty(UserIdentityAccessKeyId)
    | where SourceIpAddress !endswith ".amazonaws.com"
    | extend Nhi = coalesce(UserIdentityUserName, SessionIssuerUserName)
    | where Nhi matches regex @"(?i)^(svc|sa|bot|ci|cd|automation|deploy|app|integration)[-_.]"
};
let baseline = nhiEvents(ago(30d), ago(1d)) | summarize by Nhi, SourceIpAddress;
nhiEvents(ago(1d), now())
| join kind=leftanti baseline on Nhi, SourceIpAddress
| summarize FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), ApiCalls = count(), Actions = make_set(EventName, 25) by Nhi, SourceIpAddress, UserIdentityType
| order by ApiCalls desc

Sigma

title: AWS API Activity by Service-Account-Named IAM User From Non-Corporate Source
id: 3c1f6a52-8b47-4e19-9a0d-5d2b7e91c301
status: experimental
description: Detects AWS API calls made by an IAM user whose name follows a service-account/automation convention from a source IP outside private ranges and AWS service endpoints. Stolen long-lived NHI keys are replayed from attacker infrastructure.
references:
  - https://www.sweet.security/blog/practical-ways-to-thwart-non-human-identity-attacks
  - https://owasp.org/www-project-non-human-identities-top-10/
author: Threadlinqs Team
date: 2026-10-11
tags:
  - attack.initial-access
  - attack.t1078.004
  - attack.defense-evasion
  - attack.t1550.001
logsource:
  product: aws
  service: cloudtrail
detection:
  selection:
    userIdentity.type: 'IAMUser'
    userIdentity.userName|re: '(?i)^(svc|sa|bot|ci|cd|automation|deploy|app|integration)[-_.]'
  filter_internal:
    sourceIPAddress|cidr:
      - '10.0.0.0/8'
      - '172.16.0.0/12'
      - '192.168.0.0/16'
  filter_aws_service:
    sourceIPAddress|endswith: '.amazonaws.com'
  condition: selection and not 1 of filter_*
falsepositives:
  - Automation running from a new corporate egress IP or a new SaaS vendor range
  - CI/CD runners hosted on public cloud ranges
level: medium

Known false positives:

  • Automation moved to a new egress IP, NAT gateway or CI runner pool
  • Newly onboarded third-party integration authenticating with an existing service key

Tuning notes: Maintain a lookup of approved egress CIDRs per NHI and exclude them; adjust the NHI naming regex to your convention; widen the 30d baseline for infrequently running jobs; raise priority when the new IP is a hosting/VPN ASN or the identity holds admin policies.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • Interactive Sign-In by Service Account Identity in Entra ID (T1078.004, Human Use of NHI) · unlock with TL Creds
  • Credential Added to Entra Application or Service Principal (T1098.001) · unlock with TL Creds
  • Service Principal Token Replay From Multiple IPs or Countries (T1550.001, T1528) · unlock with TL Creds
  • Third-Party Integration or Deploy Key Granted Access in GitHub (T1199, T1528) · unlock with TL Creds
  • Cloud Credential Files Accessed via Command Line (T1552.001) · unlock with TL Creds
  • OAuth Consent or Permission Grant to Application in Entra ID (T1528, T1199) · unlock with TL Creds
  • Additional Cloud Credentials Created for Another AWS Identity (T1098.001) · unlock with TL Creds
  • Bulk S3 Object Access by Non-Human Identity (T1530) · unlock with TL Creds

Indicators of compromise

As of 2026-10-11, Threadlinqs Intelligence tracks 6 indicators of compromise for TL-2026-3305.

6 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

Sweet Security (Sarah Elkaim, 2024-07-16) describes attacks that target non-human identities (NHIs): automated scripts, service accounts, IoT devices and third-party integrations. The article identifies three core weaknesses. First, NHIs commonly possess very high access privileges that grant near-unrestricted access to sensitive data. Second, NHIs cannot be protected with two-factor authentication and typically rely on long-lived tokens or keys, so they are exposed once the secret is compromised. Third, multi-cloud environments use differing authentication mechanisms and lifecycle practices, which makes NHIs hard to inventory and track.

The only scenario given is hypothetical: a developer integrates a third-party SaaS tool with access to critical data repositories such as GitHub or Google Drive; if that third party is breached, the tokens used by its NHIs can be stolen and the attacker can impersonate those identities. The article names no actors, malware, CVEs or IOCs and cites no specific breach.

The OWASP Non-Human Identities Top 10 (released 2025-01-14) corroborates and broadens the picture: NHI1 Improper Offboarding, NHI2 Secret Leakage, NHI3 Vulnerable Third-Party NHIs, NHI4 Insecure Authentication, NHI5 Overprivileged NHIs, NHI6 Insecure Cloud Deployment Configurations, NHI7 Long-Lived Secrets, NHI8 Environment Isolation, NHI9 NHI Reuse, NHI10 Human Use of NHIs. Secondary reporting on the OWASP list cites Microsoft's Midnight Blizzard compromise (2024), the Internet Archive Zendesk compromise (2024) and the Okta support system compromise (2023) as incidents illustrating NHI-related credential failures; this record does not independently verify those incidents' root causes. Secondary sources also state that organizations commonly have 10 to 50 times more NHIs than human identities.

This is a conceptual, low-confidence identity-threat record. No active exploitation, PoC, KEV listing or attribution is stated in the sources; severity MEDIUM is analyst-assigned. Mitigations stated by the source: robust NHI inventory, runtime monitoring for anomalous access, short-lived tokens, least privilege, automated token revocation, and deprecation of unused NHIs.

MITRE ATT&CK techniques by tactic:

Initial Access

T1078 Valid Accounts; T1078.004 Valid Accounts: Cloud Accounts; T1199 Trusted Relationship

Persistence

T1098.001 Account Manipulation: Additional Cloud Credentials

Credential Access

T1528 Steal Application Access Token; T1552.001 Unsecured Credentials: Credentials In Files

Collection

T1530 Data from Cloud Storage

lateral-movement

T1550.001 Use Alternate Authentication Material: Application Access Token

Remediation

Immediate actions

  • Inventory all NHIs (service accounts, API keys, tokens, scripts, IoT identities, third-party integrations) and their permissions across every cloud
  • Revoke and rotate tokens and keys belonging to unused, orphaned or unowned NHIs
  • Review third-party SaaS integrations holding access to GitHub, Google Drive and other critical repositories

Workarounds

  • Compensate for the lack of 2FA with network/source restrictions and anomaly alerting on NHI authentication

Longer-term hardening

  • Replace long-lived tokens and keys with short-lived, automatically rotated credentials
  • Enforce least privilege for every NHI and scope tokens narrowly
  • Deploy runtime monitoring for anomalous NHI access behavior
  • Automate token revocation and deprecate NHIs that are no longer used

Affected and fixed versions

  • Multi-vendor — Cloud service accounts, API keys and OAuth/access tokens, CI/CD and SaaS integrations, IoT device identities
    Vulnerable versions: Environments with over-privileged, long-lived NHI credentials

Timeline

  • Okta discloses compromise of its customer support system, cited by OWASP-related reporting as an example of credential-related identity failure
  • Microsoft discloses the Midnight Blizzard compromise of corporate systems, cited as an NHI/credential failure example in OWASP-related reporting
  • Sweet Security publishes 'Practical Ways to Thwart Non-Human Identity Attacks' describing over-privileged, long-lived NHI credentials without 2FA
  • Internet Archive Zendesk support platform compromise becomes public, cited as an NHI-related incident in OWASP-related reporting
  • OWASP releases the first Non-Human Identities Top 10 (NHI1-NHI10) covering offboarding, secret leakage, overprivilege and long-lived secrets
  • Threat tracked by Threadlinqs as a low-confidence conceptual identity-threat record; no active exploitation stated in sources

Sources cited

Previous and next in threat intel

Drafted by the Threadlinqs research pipeline from 6 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats