Detections

Explore public detection logic contributed by the community across SIEM and rule languages.

132 detections

This hunting query identifies successful AWS IAM access key creation events where a named IAM user creates a key for a different named IAM user.
Such activity may indicate persistence or privilege escalation, particularly when the target user has elevated permissions. The query compares the caller and target usernames; it does not assess the target user's permissions.
Hunting queries are designed to be run manually during threat hunting activities.
Splunk Security@SplunkSecurity
avatar
Splunk Security Content
9 days ago
5011
This analytic detects the usage of the Azure CLI to interact with user accounts such as creating or deleting a user.
Adversaries create new users so that their malicious activity does not interrupt the normal functions of the compromised users and can remain undetected.
While legitimate administrative use is expected, anomalous execution patterns, unexpected users, or unusual parent processes should be treated as potential indicators of compromise and investigated promptly.
Splunk Security@SplunkSecurity
avatar
Splunk Security Content
16 days ago
001
Detects administrative IAM operations such as user, role, or access key creation performed by an identity containing 'agent' in its ARN or username. This behavior is intended to flag unauthorized privilege escalation or persistence mechanisms initiated by automated service identities that should not be modifying IAM configurations.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
28 days ago
203
Detects the addition of a Service Principal to an Azure AD group that has the 'isAssignableToRole' property set to true. This behavior is a known privilege escalation technique where the service principal inherits the privileged roles assigned to that group, bypassing standard direct role-assignment monitoring.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
27 days ago
202
This rule detects scenarios where an external user is invited to an Azure AD tenant and subsequently granted a highly privileged role (such as Global Administrator or User Administrator) within a short window of time (1 hour). This pattern is indicative of potential persistence establishment or privilege escalation by an adversary using guest accounts.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
27 days ago
002
Detects the creation of new programmatic credentials (AWS access keys, Azure AD service principal credentials, or GCP service account keys) where the identity creating the credential differs from the identity for which the credential is being issued. This behavior is often indicative of persistence mechanisms or credential abuse where an attacker with sufficient permissions creates secondary credentials for other accounts.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
27 days ago
001
Detects 'CreateAccessKey' API calls in AWS CloudTrail where the principal making the request is different from the target IAM user. This pattern is commonly associated with persistence mechanisms where an attacker creates additional access keys on legitimate administrator accounts to maintain stealthy access.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
27 days ago
001
Detects potential persistence mechanisms in AWS by monitoring the creation of new IAM users or roles, the issuance of long-lived credentials (access keys or login profiles), or the creation of roles with permissive cross-account trust policies. This rule specifically excludes known legitimate automation roles to reduce noise.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
27 days ago
001
Detects the assignment of high-privilege Entra ID directory roles (e.g., Global Administrator) to identities that either have a recent risky sign-in history or were created within the last 48 hours. This pattern is indicative of privilege escalation following account compromise or the creation of backdoored accounts by an attacker. Assignments including change management tracking tags are excluded to reduce noise.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
27 days ago
001
Detects a suspicious sequence of identity-related operations in Azure AD, characterized by the modification of authentication methods policies followed by rapid application or service principal registration, consent granting, or role assignments by the same actor within a 10-minute window. This behavior often indicates an adversary attempting to establish persistence or escalate privileges via malicious OAuth applications or service principals after weakening security posture.
avatar
Ankit Mehta@Secvyn
avatar
SlimKQL
30 days ago
402
Detects a suspicious sequence of identity-related operations in Azure AD, characterized by the modification of authentication methods policies followed by rapid application or service principal registration, consent granting, or role assignments by the same actor within a 10-minute window. This behavior often indicates an adversary attempting to establish persistence or escalate privileges via malicious OAuth applications or service principals after weakening security posture.
avatar
Ankit Mehta@Secvyn
avatar
Detections.ai Community
30 days ago
002
This rule detects the creation of a new Azure AD (Entra ID) application with a name containing AI-related keywords (e.g., 'ai', 'copilot', 'gpt') that is subsequently granted high-privilege Microsoft Graph API permissions within a 24-hour window. This behavior is often associated with attackers setting up seemingly benign-looking applications to conduct OAuth-based persistent access or data exfiltration.
avatar
Ankit Mehta@Secvyn
avatar
Detections.ai Community
1 month ago
303
Detects the addition or modification of federated identity credentials within Microsoft Entra ID (Azure AD). Adversaries may add these credentials to service principals or applications to achieve persistent access and potentially bypass traditional password-based authentication mechanisms.
avatar
Ankit Mehta@Secvyn
avatar
Detections.ai Community
1 month ago
104
Detects the presence or execution of artifacts associated with the TrustSink proof-of-concept (deploy.py, cleanup_eam.py, deploy_state.json), which is used to register or remove rogue Entra authentication providers.
avatar
Ankit Mehta@Secvyn
avatar
SlimKQL
30 days ago
001
Detects rapid, automated-style creation of an application, associated service principal, and delegated permission grants within a 60-second window. This behavior is indicative of the TrustSink technique or similar automated adversary infrastructure setup in Microsoft Entra ID (formerly Azure AD), where an attacker establishes persistence or elevated access through newly created apps.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
1 month ago
005
Detects the registration of a new multi-tenant OAuth application in an enterprise cloud environment that requests high-risk scopes (e.g., mail access or directory write permissions). This behavior is often associated with OAuth-based consent phishing or the establishment of persistent backdoors in cloud environments.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
27 days ago
000
Detects the registration of a new multi-tenant OAuth application in an enterprise cloud environment that requests high-risk scopes (e.g., mail access or directory write permissions). This behavior is often associated with OAuth-based consent phishing or the establishment of persistent backdoors in cloud environments.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
27 days ago
000
Detects instances where an Entra ID (Azure AD) application is registered and subsequently granted consent by the same user within 30 minutes, specifically when the activity occurs outside of typical business hours (7 AM - 7 PM) or from disparate IP addresses. This behavior pattern is indicative of potential malicious OAuth application registration and subsequent token-granting by an attacker to maintain persistent access to an environment.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
27 days ago
000
Detects potential backdoored persistence in AWS Lambda functions. The rule monitors for two patterns: 1) A Lambda function creation followed by granting cross-account 'lambda:InvokeFunction' permissions to an untrusted or wildcard principal. 2) A privilege escalation event (such as attaching policies) followed by a 'lambda:UpdateFunctionCode' operation on the same function by the same principal, which may indicate an attempt to inject malicious code into a serverless function.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
27 days ago
000
This rule detects unscheduled modifications to federation, application, or service principal credentials, including ADFS token-signing certificates, in both Azure AD (via O365 management activity logs) and local Windows environments (via Security Event Logs). It filters these events against a known rotation schedule to highlight suspicious, non-routine changes that may indicate persistence establishment or identity provider tampering.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
27 days ago
000
Detects when a user account assigned to high-privileged roles (Global Administrator or Authentication Policy Administrator) performs sensitive operations such as application registration, service principal creation, or modifications to authentication policies within a short timeframe (4 hours) of a successful sign-in. This activity is often associated with the initial setup phases of MFA bypass or persistence techniques in Entra ID.
avatar
Ibrahim Saud@tektrix
avatar
Detections.ai Community
1 month ago
304
Page 1 of 7