{
  "site": "hotnops",
  "description": "Security research by Daniel Heinsen (hotnops) on identity, cloud, and attack paths: Entra ID and Entra Connect internals, AWS IAM privilege escalation and persistence, and attack path management.",
  "author": {
    "name": "Daniel Heinsen",
    "handle": "hotnops"
  },
  "schema": "https://blog.hotnops.dev/llms.txt",
  "posts": [
    {
      "slug": "entra-connect-attacker-tradecraft-part-3",
      "title": "Entra Connect Attacker Tradecraft: Part 3",
      "date": "2025-07-30",
      "url": "https://blog.hotnops.dev/posts/entra-connect-attacker-tradecraft-part-3/",
      "markdown": "https://blog.hotnops.dev/posts/entra-connect-attacker-tradecraft-part-3.md",
      "tags": [
        "entra-id",
        "entra-connect",
        "red-team"
      ],
      "category": "research",
      "summary": "The post shows that a compromised Entra Connect sync account can write the userCertificate property on any device object in the tenant, which lets an attacker obtain a device certificate for devices in a completely separate domain. With that device identity an attacker can bypass device-based conditional access policies (e.g. a Privileged Access Workstation requirement), mint device ID tokens, and recover Intune MDM certificates. Chaining the MDM certificate with a user Intune token, the attacker recovers PKCS certificates issued by an on-premises Intune Certificate Connector, yielding client authentication certificates that can compromise a domain the attacker has no direct access to.",
      "keyFindings": [
        "The Entra Connect sync account sets the userCertificate on device objects in Entra ID, so it can add credentials to any device in the tenant - even devices in a different domain - and thereby obtain a device certificate for that device.",
        "A self-signed certificate written to a device's userCertificate (via AADInternals Set-AADIntAzureADObject with ObjectType Device) lets the attacker complete device registration with Join-AADIntDeviceToAzureAD and get a signed device PFX, though this invalidates the real device's certificate.",
        "With a forged device identity an attacker can satisfy a deviceId-based conditional access policy and obtain a Microsoft Graph token for a user restricted to a Privileged Access Workstation, bypassing the PAW requirement.",
        "If an on-premises Intune Certificate Connector is installed, Entra ID controls the Subject and SAN of issued certificates, making it 'almost a guarantee of Entra ID to on-premises compromise' and setting up an ADCS ESC1-style attack via PKCS certificate profiles.",
        "The attacker recovers a device's existing MDM certificate (instead of issuing a new one) by changing the AADInternals WS-Trust RequestType from Issue to Recovery in Get-MDMRecoveryCert, requiring an Intune access token from a user with a valid Intune license.",
        "PKCS certificates are delivered to the device over OMA-DM/SyncML as an encrypted PFXCertBlob plus PFXCertPassword; the password is encrypted to the recovered MDM certificate, and decrypting both with OpenSSL yields a legitimate client auth certificate (deviceCert.pfx) for the target device."
      ],
      "series": {
        "name": "Entra Connect Attacker Tradecraft",
        "part": 3
      },
      "attackPaths": [
        {
          "name": "Conditional Access (PAW) bypass via forged device identity",
          "prerequisites": [
            "Compromised Entra Connect sync account",
            "Compromised or overwritten credentials for the PAW-restricted user (pawuser)",
            "Knowledge of the required deviceId / target device"
          ],
          "steps": [
            "Confirm the policy by attempting roadtx auth for pawuser and receiving AADSTS53003 (blocked by Conditional Access).",
            "Generate a new self-signed certificate with New-AADIntCertificate using CN set to the target device ID.",
            "Use the sync account to write the certificate to the PAW device's userCertificate via Set-AADIntAzureADObject -ObjectType Device.",
            "Submit a CSR and obtain a new device certificate with Join-AADIntDeviceToAzureAD using the device SID and tenant ID.",
            "Authenticate as pawuser with the device certificate using roadtx prt/prtauth to obtain a Microsoft Graph token, bypassing the PAW policy."
          ],
          "outcome": "A valid Microsoft Graph token for the privileged user is obtained by impersonating the required device, bypassing the deviceId conditional access policy (and invalidating the real device's certificate).",
          "mitre": [
            {
              "id": "T1556",
              "inferred": true
            },
            {
              "id": "T1550.001",
              "inferred": true
            }
          ]
        },
        {
          "name": "Cross-domain compromise via Intune MDM/PKCS certificate recovery",
          "prerequisites": [
            "Compromised sync account and a compromised domain (sccm.hotnops.com) in the tenant",
            "A separate target domain (keytrust.hotnops.com) using Intune with an on-prem Intune Certificate Connector",
            "An Intune access token for a user with a valid Intune license",
            "Line of sight to the target domain controller"
          ],
          "steps": [
            "Compromise a user with an active Intune license to later recover the device MDM certificate.",
            "Enumerate the target Intune group (keytrust-workstations) and pick a device (e.g. 'Workstation') to hijack.",
            "Write a self-signed userCertificate to the Entra device object and register it (Join-AADIntDeviceToAzureAD) to get a device certificate.",
            "Recover the device's MDM certificate with Get-MDMRecoveryCert (WS-Trust RequestType changed to Recovery), using the Intune user token.",
            "Start OMA-DM/SyncML sessions so Intune pushes the PKCS cert as an encrypted PFXCertBlob and PFXCertPassword (seen in SyncMLViewer).",
            "Decrypt PFXCertPassword with the MDM cert's private key, then decrypt PFXCertBlob with OpenSSL to produce deviceCert.pfx for on-prem auth (e.g. with Rubeus)."
          ],
          "outcome": "Attacker obtains a legitimate client authentication (PKCS) certificate for a device in a domain they have no direct access to, enabling on-premises compromise of that domain.",
          "mitre": [
            {
              "id": "T1649",
              "inferred": true
            },
            {
              "id": "T1556",
              "inferred": true
            }
          ]
        }
      ],
      "detections": [],
      "mitigations": [],
      "status": [],
      "resources": [
        {
          "name": "ROADtools (roadtx)",
          "url": "https://github.com/dirkjanm/ROADtools"
        },
        {
          "name": "AADInternals",
          "url": "https://github.com/Gerenios/AADInternals"
        },
        {
          "name": "SyncMLViewer",
          "url": "https://github.com/okieselbach/SyncMLViewer"
        },
        {
          "name": "Intune MDM certificate recovery (call4cloud.nl)",
          "url": "https://call4cloud.nl/intune-mdm-certificate-recovery/"
        },
        {
          "name": "Configure and use PKCS certificates with Intune",
          "url": "https://learn.microsoft.com/en-us/intune/intune-service/protect/certificates-pfx-configure"
        }
      ],
      "entities": [
        "product:entra-id",
        "product:entra-connect",
        "product:active-directory",
        "product:intune",
        "product:adcs",
        "organization:microsoft",
        "organization:specterops",
        "concept:tenant-trust-boundary",
        "identity:sync-account",
        "identity:device-identity",
        "identity:intune-licensed-user",
        "identity:pawuser",
        "artifact:user-certificate",
        "artifact:device-certificate",
        "artifact:mdm-certificate",
        "artifact:pkcs-certificate",
        "artifact:syncml-pfxcertblob",
        "feature:conditional-access",
        "feature:intune-certificate-connector",
        "feature:device-registration",
        "api:oma-dm",
        "api:microsoft-graph",
        "technique:usercertificate-hijack",
        "technique:ca-bypass",
        "technique:intune-cert-abuse",
        "technique:esc1",
        "tool:aadinternals",
        "tool:roadtools",
        "tool:syncmlviewer",
        "tool:rubeus"
      ]
    },
    {
      "slug": "update-dumping-entra-connect-sync-credentials",
      "title": "Update: Dumping Entra Connect Sync Credentials",
      "date": "2025-06-09",
      "url": "https://blog.hotnops.dev/posts/update-dumping-entra-connect-sync-credentials/",
      "markdown": "https://blog.hotnops.dev/posts/update-dumping-entra-connect-sync-credentials.md",
      "tags": [
        "entra-id",
        "entra-connect",
        "red-team"
      ],
      "category": "research",
      "summary": "Microsoft changed how the Entra Connect Sync agent authenticates to Entra ID: the user-style AAD Connector account with an exportable plaintext password was replaced by an application registration that authenticates with a self-signed certificate via the OAuth client credentials flow. The post shows that the old AADInternals credential-dump tradecraft no longer works, but an attacker with privileged access on the Entra Connect host can still use the existing certificate to obtain a Graph token and a proof-of-possession assertion and register their own key on the application, gaining persistent off-host access with no app-role permissions required. It also argues the change widens the Entra-side attack surface, since Application and Cloud Application Administrators can now add credentials to the sync application without breaking sync.",
      "keyFindings": [
        "Entra Connect Sync moved from a user-centric AAD Connector account (random password, special sync role) to an application registration that authenticates via the OAuth 2.0 client credentials flow using a self-signed certificate generated at install and stored in the NGC Crypto Provider store.",
        "The old tradecraft of running AADInternals Get-AADIntSyncCredentials in the context of the ADSync service account to recover the plaintext AAD Connector password no longer applies because there is no plaintext credential to dump.",
        "The decompiled Microsoft.Azure.ActiveDirectory.AdsyncManagement.Server assembly shows UpdateADSyncApplicationKey can add a new key to the sync application without a Global Administrator or Hybrid Identity Administrator Graph token, using only the existing certificate.",
        "Per Microsoft Graph application addKey documentation, an application that can sign a proof-of-possession (POP) assertion with an existing key can add a new key credential to itself without Application.ReadWrite.All or Application.ReadWrite.OwnedBy.",
        "The author's SharpECUtils (ECUtilities) tooling obtains a Graph access token and POP assertion from the on-host certificate and registers an attacker-controlled certificate on the Entra Connect application registration, giving persistent off-host access even when the original private key is TPM-protected.",
        "Previously only Global Administrator and Hybrid Identity Administrator were viable paths to sync-account compromise (Privileged Authentication Administrator password resets would break sync); now Application Administrator and Cloud Application Administrator can add credentials without interrupting sync, and Conditional Access typically does not apply to service principals.",
        "Because the normal UpdateADSyncApplicationKey flow removes the old key, more than one certificate on the Entra Connect application registration is a strong indicator of compromise, and key additions appear in Entra AuditLogs under activities such as 'Add key credential', 'Update application', and 'Add service principal credentials'."
      ],
      "attackPaths": [
        {
          "name": "Legacy: dump the AAD Connector account password on the Entra Connect host",
          "prerequisites": [
            "Privileged access to a host running Entra Connect Sync (pre-change version)",
            "Ability to run in the context of the ADSync service account"
          ],
          "steps": [
            "Impersonate the ADSync service account context on the host",
            "Recover the decryption key and AAD configuration blob from the ADSync database",
            "Extract the plaintext AAD Connector account password",
            "Authenticate to Entra ID as the sync account from off-host"
          ],
          "outcome": "Off-host authentication as the Entra sync account, enabling sync-based attacks (Conditional Access permitting). No longer possible after Microsoft's change.",
          "mitre": [
            {
              "id": "T1555",
              "inferred": true
            },
            {
              "id": "T1078.004",
              "inferred": true
            }
          ]
        },
        {
          "name": "Persist on the Entra Connect Sync application by adding an attacker key with a POP assertion",
          "prerequisites": [
            "Privileged access on the Entra Connect Sync host (post-change version)",
            "Ability to use the installed sync certificate in the ADSync account context"
          ],
          "steps": [
            "Identify the existing certificate credential on the host",
            "Obtain a Graph access token as the sync application using the installed certificate",
            "Generate a proof-of-possession assertion with the installed certificate",
            "Generate an attacker-controlled certificate and key",
            "Register the new certificate on the sync application registration via Graph addKey",
            "Authenticate off-host as the sync application with the attacker key"
          ],
          "outcome": "Persistent, off-host access to the Entra Connect Sync application registration without any app-role permissions, even if the original private key is TPM-protected.",
          "mitre": [
            {
              "id": "T1098.001",
              "inferred": true
            },
            {
              "id": "T1550.001",
              "inferred": true
            }
          ]
        },
        {
          "name": "Add credentials to the sync application from Entra application-management roles",
          "prerequisites": [
            "A principal holding Application Administrator or Cloud Application Administrator (or Global Administrator / Hybrid Identity Administrator)"
          ],
          "steps": [
            "Locate the Entra Connect Sync application registration in the tenant",
            "Add a new credential to the application without removing the existing one",
            "Authenticate as the sync application with the new credential"
          ],
          "outcome": "Control of the sync application without interrupting normal sync operation; broader attack surface than the legacy password-reset path, and Conditional Access typically does not apply to service principals.",
          "mitre": [
            {
              "id": "T1098.001",
              "inferred": true
            }
          ]
        }
      ],
      "detections": [
        "More than one certificate on the Entra Connect Sync application registration indicates tampering, since the normal UpdateADSyncApplicationKey flow removes the old key.",
        "Query Entra AuditLogs for ActivityDisplayName in 'Add service principal credentials', 'Update application', or 'Add key credential' where the target resource type is Application and modified properties include keyCredentials or passwordCredentials.",
        "Even a stealthy attacker who replaces the agent's certificate still generates credential-manipulation audit events on the application registration."
      ],
      "mitigations": [
        "Microsoft's move from a password-based AAD Connector user to a certificate-authenticated application registration removes the plaintext credential that could previously be dumped.",
        "A TPM-protected private key prevents export of the sync certificate, though it does not prevent key addition via POP assertion."
      ],
      "status": [
        "Microsoft changed Entra Connect Sync to authenticate with an application identity (application registration with a self-signed certificate) instead of the AAD Connector user account; the post (June 9, 2025) describes this as a brand-new update not yet expected in the wild.",
        "AADInternals Get-AADIntSyncCredentials no longer yields usable sync credentials on the new agent."
      ],
      "resources": [
        {
          "name": "SharpECUtils (ECUtilities) - token/POP and AddKey tooling",
          "url": "https://github.com/hotnops/ECUtilities/tree/main/SharpECUtils"
        },
        {
          "name": "AADInternals",
          "url": "https://github.com/Gerenios/AADInternals"
        },
        {
          "name": "AADInternals ADSync decryption write-up",
          "url": "https://aadinternals.com/post/adsync/"
        },
        {
          "name": "Microsoft: Entra Connect Sync authentication with application identity",
          "url": "https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/authenticate-application-id"
        },
        {
          "name": "Microsoft: OAuth 2.0 client credentials grant flow",
          "url": "https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow"
        },
        {
          "name": "Microsoft Graph: application addKey",
          "url": "https://learn.microsoft.com/en-us/graph/api/application-addkey?view=graph-rest-1.0&tabs=http"
        },
        {
          "name": "Attacking Entra Metaverse: Part 1",
          "url": "https://posts.specterops.io/attacking-entra-metaverse-part-1-c9cf8c4fb4ee"
        },
        {
          "name": "Entra Connect Attacker Tradecraft: Part 2",
          "url": "https://posts.specterops.io/entra-connect-attacker-tradecraft-part-2-672df0147abc"
        }
      ],
      "entities": [
        "product:entra-id",
        "product:entra-connect",
        "organization:microsoft",
        "organization:specterops",
        "tool:aadinternals",
        "tool:ecutilities",
        "api:microsoft-graph",
        "api:graph-application-addkey",
        "api:oauth-client-credentials-flow",
        "identity:aad-connector-account",
        "identity:sync-account",
        "identity:adsync-service-account",
        "identity:entra-connect-sync-application",
        "identity:global-administrator",
        "identity:hybrid-identity-administrator",
        "identity:privileged-authentication-administrator",
        "identity:application-administrator",
        "identity:cloud-application-administrator",
        "permission:application-readwrite-all",
        "permission:application-readwrite-ownedby",
        "feature:app-registration",
        "feature:conditional-access",
        "feature:ngc-crypto-provider-store",
        "artifact:sync-application-certificate",
        "artifact:attacker-key-credential",
        "artifact:pop-assertion",
        "artifact:aad-configuration-blob",
        "artifact:entra-audit-logs",
        "technique:sync-credential-dump",
        "technique:sync-application-key-addition",
        "technique:sync-application-credential-addition-by-app-admin"
      ]
    },
    {
      "slug": "entra-connect-attacker-tradecraft-part-2",
      "title": "Entra Connect Attacker Tradecraft: Part 2",
      "date": "2025-01-22",
      "url": "https://blog.hotnops.dev/posts/entra-connect-attacker-tradecraft-part-2/",
      "markdown": "https://blog.hotnops.dev/posts/entra-connect-attacker-tradecraft-part-2.md",
      "tags": [
        "entra-id",
        "entra-connect",
        "red-team"
      ],
      "category": "research",
      "summary": "The post asks whether a compromised Entra Connect sync account in one Active Directory domain can add credentials to a user in a different domain synced to the same Entra tenant. It walks through Entra Connect sync rules (provisioning, scoping filters, join rules, transformations) and shows that cloudFiltered accounts such as MSOL_, krbtgt_, and AAD_ are only blocked from outbound provisioning, leaving partially synced objects in the metaverse. An attacker who creates an Entra user with a matching sourceAnchor completes the inbound join, then adds a Windows Hello for Business key that syncs down to msDS-KeyCredentialLink and yields a Kerberos TGT for the target. The post closes with prevention and detection guidance backed by PowerShell cmdlets in the author's ECUtilities module.",
      "keyFindings": [
        "In Entra Connect Sync, cloudFiltered objects such as MSOL_, krbtgt_, and AAD_ accounts are still projected into the metaverse; outbound filtering only blocks them from being provisioned into the Entra connector space.",
        "The 'In from AAD - User Join' sync rule links an Entra user to a metaverse object whose sourceAnchor matches, so an attacker who creates an Entra user with a target's sourceAnchor completes the join to a partially synced on-premises account.",
        "A compromised Entra Connect sync (ADSync) account in Domain A can use the provisioning API via AADInternals to create an Entra user with an arbitrary sourceAnchor that hijacks an account in Domain B of the same tenant.",
        "The sourceAnchor is derived from ms-DS-ConsistencyGuid and falls back to objectGUID; the author's uuid_to_sourceAnchor.py converts a target objectGUID into the sourceAnchor blob needed for the join.",
        "The MSOL_ AD DS connector account created at Entra Connect install has DCSync privileges and write-all over users in the Users OU, so the attack affects any user that inherits its DACLs from the Users OU and whose msDS-KeyCredentialLink the MSOL account can write.",
        "Users in protected groups (adminCount=1) automatically have inheritance disabled by AdminSDHolder/SDProp, so the MSOL account cannot write to them and they are not affected by this attack.",
        "Detection signal: any user in the Entra connector space whose metaverse projection has cloudFiltered set to 'true' indicates something is wrong; an ECUtilities cmdlet enumerates such users."
      ],
      "series": {
        "name": "Entra Connect Attacker Tradecraft",
        "part": 2
      },
      "attackPaths": [
        {
          "name": "Cross-domain account takeover via sourceAnchor join hijack",
          "prerequisites": [
            "Compromised Entra Connect sync (ADSync) account in Domain A (federated.hotnops.com)",
            "Unprivileged Beacon in the target domain (hybrid.hotnops.com)",
            "A target account in the target domain that is cloud filtered / partially synced and whose msDS-KeyCredentialLink is writable by the MSOL account"
          ],
          "steps": [
            "Enumerate users in the target domain to find a partially synced, cloudFiltered account and record its ObjectId.",
            "Derive the target's sourceAnchor from its ObjectId.",
            "Use the compromised sync account's token to create a new Entra user carrying the target's sourceAnchor.",
            "Wait for the target domain's next Entra Connect sync cycle (up to 30 minutes) to join the new Entra user to the on-premises target object.",
            "Register a Windows Hello for Business key on the created Entra user so it syncs down into the target's msDS-KeyCredentialLink.",
            "Convert the registered key to a certificate and request a Kerberos TGT for the target account from the target-domain Beacon."
          ],
          "outcome": "A Kerberos TGT and credentials for a (potentially privileged) account in a separate on-premises domain of the same Entra tenant.",
          "mitre": [
            {
              "id": "T1098",
              "inferred": true
            },
            {
              "id": "T1556",
              "inferred": true
            },
            {
              "id": "T1558",
              "inferred": true
            }
          ]
        }
      ],
      "detections": [
        "Flag any user in the Entra connector space whose metaverse projection has the cloudFiltered attribute set to 'true'; the ECUtilities cmdlet enumerates these (does not catch all hijackable objects but covers the obvious cloudFiltered case)."
      ],
      "mitigations": [
        "Identify all partially synced users (object in the on-prem connector space and metaverse but not in the Entra connector space) using the ECUtilities script.",
        "Identify all privileged users inheriting permissions from the Users OU, which the MSOL account can write to, using the provided ECUtilities cmdlet.",
        "Accounts with inheritance disabled (including protected adminCount=1 accounts handled by AdminSDHolder) cannot be written by the MSOL account and are not affected."
      ],
      "status": [],
      "resources": [
        {
          "name": "ECUtilities (uuid_to_sourceAnchor.py and detection/prevention cmdlets)",
          "url": "https://github.com/hotnops/ECUtilities"
        },
        {
          "name": "AADInternals",
          "url": "https://github.com/Gerenios/AADInternals"
        },
        {
          "name": "Entra Connect sync rules reference gist (CloudFiltered rule, In from AAD - User Join)",
          "url": "https://gist.github.com/hotnops/e450688fb4792845c047d336277f3d2c"
        },
        {
          "name": "Walkthrough video",
          "url": "https://medium.com/media/c660b5db95016d2c1ab9ef61bd362c51/href"
        },
        {
          "name": "Shadow Credentials: Abusing Key Trust Account Mapping for Account Takeover",
          "url": "https://posts.specterops.io/shadow-credentials-abusing-key-trust-account-mapping-for-takeover-8ee1a53566ab"
        },
        {
          "name": "Microsoft Entra Connect Sync: Configure filtering",
          "url": "https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-connect-sync-configure-filtering"
        },
        {
          "name": "AdminSDHolder, Protected Groups and Security Descriptor Propagator",
          "url": "https://learn.microsoft.com/en-us/archive/technet-wiki/22331.adminsdholder-protected-groups-and-security-descriptor-propagator"
        },
        {
          "name": "DEF CON 32 - Abusing Windows Hello Without a Severed Hand",
          "url": "https://www.youtube.com/watch?v=mFJ-NUnFBac"
        },
        {
          "name": "Introducing ROADtools Token eXchange (roadtx)",
          "url": "https://dirkjanm.io/introducing-roadtools-token-exchange-roadtx/"
        },
        {
          "name": "Attacking Azure AD by abusing Synchronisation API (AADInternals talk)",
          "url": "https://aadinternals.com/talks/Attacking%20Azure%20AD%20by%20abusing%20Synchronisation%20API.pdf"
        }
      ],
      "entities": [
        "product:entra-id",
        "product:entra-connect",
        "product:active-directory",
        "organization:microsoft",
        "organization:specterops",
        "concept:tenant-trust-boundary",
        "feature:metaverse",
        "feature:connector-space",
        "feature:outbound-filtering",
        "feature:sync-rules",
        "feature:join-rule-in-from-aad-user-join",
        "artifact:source-anchor",
        "artifact:cloudfiltered",
        "artifact:msds-keycredentiallink",
        "identity:msol-account",
        "identity:sync-account",
        "identity:aad-connector-account",
        "technique:source-anchor-hijack",
        "technique:shadow-credentials",
        "api:provisioning-api",
        "tool:aadinternals",
        "tool:rubeus",
        "tool:ecutilities",
        "tool:cobalt-strike",
        "feature:whfb",
        "feature:adminsdholder"
      ]
    },
    {
      "slug": "attacking-entra-metaverse-part-1",
      "title": "Attacking Entra Metaverse: Part 1",
      "date": "2024-12-13",
      "url": "https://blog.hotnops.dev/posts/attacking-entra-metaverse-part-1/",
      "markdown": "https://blog.hotnops.dev/posts/attacking-entra-metaverse-part-1.md",
      "tags": [
        "entra-id",
        "entra-connect",
        "red-team"
      ],
      "category": "research",
      "summary": "Part 1 of the Attacking Entra Metaverse series argues that the Entra tenant, not the domain, is the trust boundary in hybrid environments. It introduces Entra Connect Sync's connector spaces and metaverse, and shows that while nearly all attribute flow is from Active Directory to Entra, one default rule writes an Entra user's searchableDeviceKey down to the on-premises user's msDS-KeyCredentialLink. By registering a Windows Hello for Business key on a fully controlled Entra user, an attacker gets a Shadow Credentials-style key synced to AD and can obtain a Kerberos TGT for the on-premises account, demonstrating that full control of an Entra user equals compromise of the on-premises user.",
      "keyFindings": [
        "The Entra tenant is the trust boundary: in a tenant spanning many domains, compromise of one domain likely equals compromise of all others, given line of sight.",
        "Entra Connect Sync models AD and Entra as 'connected directories' with 'connector spaces'; import stages objects in a connector space, sync projects them into the metaverse, and export provisions them to the other directory. From the sync engine's view, Entra and AD are both just connector spaces.",
        "By default exactly one attribute flows from an Entra user to an Active Directory user: searchableDeviceKey -> msDS-KeyCredentialLink.",
        "Any Windows Hello for Business or FIDO2 key material added to an Entra user is synced down to the on-premises user's msDS-KeyCredentialLink, the attribute abused by the Shadow Credentials technique.",
        "With a user's plaintext password and one MFA authenticator, an attacker can register a fake device, obtain a PRT, enrich it with an ngcmfa claim using ROADtools (roadtx), register a WHFB key, wait up to 30 minutes for sync, then use the key to request a TGT for the on-premises user with Rubeus.",
        "The primitive matters because an attacker who can change an Entra password while password writeback is disabled can still reach the on-premises account, and because adding a key to an Entra user may not always require the password or MFA."
      ],
      "series": {
        "name": "Attacking Entra Metaverse",
        "part": 1
      },
      "attackPaths": [
        {
          "name": "Entra user to on-premises user via synced WHFB key",
          "prerequisites": [
            "Complete control of a hybrid Entra user: plaintext password and at least one MFA authenticator",
            "The user is synced by Entra Connect Sync with the default searchableDeviceKey -> msDS-KeyCredentialLink rule",
            "Network line of sight to a domain controller for the target domain"
          ],
          "steps": [
            "Obtain a token for the device registration service as the controlled user",
            "Register a fake device and obtain a Primary Refresh Token",
            "Enrich the PRT with a recent MFA (ngcmfa) claim",
            "Register a Windows Hello for Business key on the Entra user",
            "Wait for Entra Connect Sync to write the key to the on-premises msDS-KeyCredentialLink (up to 30 minutes)",
            "Build a certificate from the registered key",
            "Request a Kerberos TGT for the on-premises user with the certificate"
          ],
          "outcome": "A Kerberos TGT (and NTLM credentials) for the on-premises Active Directory user, obtained entirely through actions on the Entra side.",
          "mitre": [
            {
              "id": "T1098",
              "inferred": true
            },
            {
              "id": "T1558",
              "inferred": true
            },
            {
              "id": "T1550",
              "inferred": true
            }
          ]
        }
      ],
      "detections": [],
      "mitigations": [],
      "status": [],
      "resources": [
        {
          "name": "ROADtools",
          "url": "https://github.com/dirkjanm/ROADtools"
        },
        {
          "name": "Shadow Credentials: Abusing Key Trust Account Mapping for Takeover",
          "url": "https://posts.specterops.io/shadow-credentials-abusing-key-trust-account-mapping-for-takeover-8ee1a53566ab"
        },
        {
          "name": "Lateral movement and hash dumping with Temporary Access Passes (dirkjanm.io)",
          "url": "https://dirkjanm.io/lateral-movement-and-hash-dumping-with-temporary-access-passes-microsoft-entra/"
        },
        {
          "name": "Attacking Azure AD by abusing Synchronisation API (AADInternals talk)",
          "url": "https://aadinternals.com/talks/Attacking%20Azure%20AD%20by%20abusing%20Synchronisation%20API.pdf"
        },
        {
          "name": "Microsoft: Entra Connect Sync architecture",
          "url": "https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/concept-azure-ad-connect-sync-architecture"
        }
      ],
      "entities": [
        "product:entra-id",
        "product:entra-connect",
        "product:active-directory",
        "organization:specterops",
        "concept:tenant-trust-boundary",
        "feature:metaverse",
        "feature:connector-space",
        "feature:sync-rules",
        "feature:searchabledevicekey-to-msds-keycredentiallink-flow",
        "feature:whfb",
        "feature:fido2",
        "feature:password-writeback",
        "identity:sync-account",
        "identity:entra-user",
        "identity:on-prem-user",
        "artifact:msds-keycredentiallink",
        "artifact:searchabledevicekey",
        "artifact:primary-refresh-token",
        "artifact:whfb-key",
        "artifact:kerberos-tgt",
        "api:device-registration-service",
        "api:provisioning-api",
        "tool:roadtools",
        "tool:rubeus",
        "tool:openssl",
        "tool:aadinternals",
        "technique:shadow-credentials",
        "technique:whfb-key-sync-to-on-prem"
      ]
    },
    {
      "slug": "an-aws-administrator-identity-crisis-part-1",
      "title": "An AWS Administrator Identity Crisis: Part 1",
      "date": "2024-06-28",
      "url": "https://blog.hotnops.dev/posts/an-aws-administrator-identity-crisis-part-1/",
      "markdown": "https://blog.hotnops.dev/posts/an-aws-administrator-identity-crisis-part-1.md",
      "tags": [
        "aws",
        "iam",
        "cloud"
      ],
      "category": "industry",
      "summary": "The post argues that defining an AWS 'administrator' as a principal with the AdministratorAccess policy (Allow * on *) is too simplistic, and formalizes privilege as permission matrices: Cartesian products of actions and the resources they can act on. It defines a Ridiculous Administrator Matrix (RAM), a resultant set of policy (RSOP) that accounts for SCPs, conditions, permission boundaries and session policies, and a Transitive RSOP that unions the RSOPs of roles reachable via sts:AssumeRole. It then concludes the administrator label matters less than identifying resources defenders care about, so that custom permission sets become the destinations of IAM attack paths; this Part 1 covers direct permissions only, with indirect permissions deferred to the next post.",
      "keyFindings": [
        "Defining an AWS administrator as a principal with the AdministratorAccess policy or an Allow Action \"*\" Resource \"*\" statement is too limiting: adding a single Deny on elastictranscoder:readpipeline leaves 16981 of 16982 actions yet fails that definition.",
        "The post separates direct permissions (a principal is currently an administrator) from indirect permissions (a principal can perform a write operation to become one); Part 1 covers only direct permissions.",
        "Flagging specific 'administrator actions' such as iam:updaterolepolicy, iam:passrole and iam:createuserkeys is rejected as a definition because AWS policies are flexible, it doesn't scale to other clouds, and it mixes direct and indirect permissions.",
        "A permission matrix is the Cartesian product of actions and the resources they can act on; the action-to-resource pair is the atomic unit and represents a successful API call.",
        "An administrator is a principal whose Transitive RSOP — the union of the resultant set of policy (after SCPs, conditions, permission boundaries and session policies) of itself and every role it can reach via sts:AssumeRole — is a superset of the Ridiculous Administrator Matrix (all applicable actions on all resources that exist in the account).",
        "Instead of 'administrator', defenders should define permission matrices for resources they care about, e.g. ec2:stopinstances plus ec2:detachvolume on a domain controller EC2 instance, and find every principal whose Transitive RSOP contains it: 'our permission sets are the destination.'",
        "The author will release a tool implementing these concepts at Black Hat Arsenal in August 2024 (APEMAN, the AWS Policy Evaluation Manager, per the linked Arsenal listing)."
      ],
      "series": {
        "name": "An AWS Administrator Identity Crisis",
        "part": 1
      },
      "attackPaths": [
        {
          "name": "Compromise a domain controller EC2 instance by stopping it and detaching its volume",
          "prerequisites": [
            "Principal's Transitive RSOP contains ec2:stopinstances and ec2:detachvolume on arn:aws:ec2:us-west-2:1234567891012:instance/i-domaincontroller (directly or via assumable roles)"
          ],
          "steps": [
            "Stop the domain controller instance (ec2:stopinstances)",
            "Detach its volume (ec2:detachvolume)",
            "Exfiltrate the volume out of the account"
          ],
          "outcome": "The integrity of the Tier 0 domain controller is compromised; the post uses this as an example of a permission matrix defenders should define as an attack path destination.",
          "mitre": [
            {
              "id": "T1578",
              "inferred": true
            }
          ]
        }
      ],
      "detections": [],
      "mitigations": [],
      "status": [],
      "resources": [
        {
          "name": "APEMAN: The AWS Policy Evaluation Manager (Black Hat USA 2024 Arsenal)",
          "url": "https://www.blackhat.com/us-24/arsenal/schedule/index.html#apeman-the-aws-policy-evaluation-manager-39474"
        },
        {
          "name": "AWS Service Control Policies documentation",
          "url": "https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html"
        },
        {
          "name": "AWS ABAC documentation",
          "url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction_attribute-based-access-control.html"
        }
      ],
      "entities": [
        "organization:aws",
        "organization:specterops",
        "product:aws-iam",
        "product:aws-sts",
        "product:aws-organizations",
        "product:aws-ec2",
        "permission:aws-administratoraccess",
        "permission:sts-assumerole",
        "permission:iam-updaterolepolicy",
        "permission:iam-passrole",
        "permission:iam-createuserkeys",
        "permission:ec2-stopinstances",
        "permission:ec2-detachvolume",
        "feature:aws-service-control-policies",
        "feature:aws-session-policies",
        "feature:aws-permission-boundaries",
        "concept:direct-permissions",
        "concept:indirect-permissions",
        "concept:permission-matrix",
        "concept:ridiculous-administrator-matrix",
        "concept:resultant-set-of-policy",
        "concept:transitive-rsop",
        "concept:identity-transform",
        "concept:permission-sets-as-attack-path-destination",
        "technique:ec2-stop-and-detach-volume-exfiltration",
        "tool:apeman"
      ]
    },
    {
      "slug": "id-tap-that-pass",
      "title": "I'd TAP That Pass",
      "date": "2023-03-29",
      "url": "https://blog.hotnops.dev/posts/id-tap-that-pass/",
      "markdown": "https://blog.hotnops.dev/posts/id-tap-that-pass.md",
      "tags": [
        "entra-id",
        "azure",
        "red-team"
      ],
      "category": "industry",
      "summary": "If Temporary Access Passes (TAPs) are enabled in an Azure AD (Entra ID) tenant, a principal holding the Authentication Administrator role (or equivalent) can add a TAP to a target user without changing or invalidating that user's password, and the TAP satisfies most MFA conditional access requirements. The post then shows that running the TAP-derived token through the OAuth 2.0 on-behalf-of (OBO) flow produced a refresh token that kept working after the TAP was deleted and kept the original VPN ipaddr claim, defeating a location-based conditional access policy. Microsoft fixed the refresh-token-after-TAP-expiry issue as of 3/24/2023, but the author notes OBO's retention of front-end token claims is intentional design and still usable for persistence and CAP subversion.",
      "keyFindings": [
        "An Authentication Administrator, Privileged Authentication Administrator, or holder of the Graph permission UserAuthenticationMethod.ReadWrite.All can add a Temporary Access Pass to a user via POST https://graph.microsoft.com/v1.0/users/<user id>/authentication/temporaryAccessPassMethods.",
        "A TAP does not replace or change the user's existing password, so the target user is not alerted and automation accounts are not broken.",
        "Tokens obtained with a TAP carry amr claim values {tap, mfa}, so the TAP counts as strong authentication and satisfies conditional access policies requiring MFA, except the \"Passwordless\" and \"Phishing Resistant\" authentication strengths.",
        "A TAP is not limited to registering passwordless methods at aka.ms/mysecurityinfo; it can be used with any OAuth client such as the AzureAD PowerShell module (e.g. via AADInternals Get-AADIntAccessTokenForMSGraph), yielding a refresh token usable within the FOCI family; that refresh token expires with the TAP, at most eight hours.",
        "Before Microsoft's 3/24/2023 fix, exchanging a TAP-derived token through an attacker-registered middleware app in the OAuth on-behalf-of flow produced a refresh token that still issued Microsoft Graph access tokens after the TAP was deleted (\"OBO persistence\"); revoking it required revoking all of the user's refresh tokens.",
        "Tokens refreshed from an OBO-derived refresh token kept the original VPN IP in the ipaddr claim (signin_state inknownntwk) even when the attacker was off the VPN, subverting a location-based conditional access policy and showing the original IP in sign-in logs.",
        "After the fix, the author states that using the OBO flow to keep desirable claims in a refresh token remains viable as an intentional OBO design decision: any token for the target user usable in OBO buys the same persistence and CAP subversion."
      ],
      "attackPaths": [
        {
          "name": "Authenticate as a target user through MFA conditional access with a TAP",
          "prerequisites": [
            "TAPs are enabled in the Azure AD tenant (disabled by default)",
            "Attacker controls a principal with Authentication Administrator, Privileged Authentication Administrator, or UserAuthenticationMethod.ReadWrite.All (in the example, an agent on User A's workstation)",
            "If a location CAP applies, authentication must originate from the trusted network (e.g. by pivoting through User A's workstation on the Target VPN)"
          ],
          "steps": [
            "As User A, POST {isUsableOnce: false, lifetimeInMinutes: 60} to Graph /v1.0/users/<user id>/authentication/temporaryAccessPassMethods for User B",
            "Authenticate as User B with the TAP using any OAuth client, e.g. AADInternals Get-AADIntAccessTokenForMSGraph -SaveToCache (AzureAD PowerShell client)",
            "Receive an access token with amr {tap, mfa}, satisfying the MFA conditional access policy, plus a refresh token usable for FOCI clients"
          ],
          "outcome": "Access as User B without changing or alerting on their password and without their second factor; the refresh token is valid until the TAP expires (at most eight hours).",
          "mitre": [
            {
              "id": "T1098",
              "inferred": true
            },
            {
              "id": "T1078.004",
              "inferred": true
            }
          ]
        },
        {
          "name": "OBO persistence: outlive the TAP and the location CAP (fixed by Microsoft 3/24/2023)",
          "prerequisites": [
            "A TAP-derived (or otherwise obtained) user session for the target",
            "Ability to register an Azure AD application (preferably in the same tenant to avoid being blocked as risky) and have the user consent to its Graph permissions that don't require admin consent"
          ],
          "steps": [
            "Register a 'middleware' app: create a client secret, expose an API ('tokenwash'), add every Graph permission not requiring admin consent",
            "Obtain an access token for the TAP'd user with the middleware app as resource via AADInternals Get-AADIntAccessToken -UseDeviceCode, consenting in the browser",
            "POST to login.microsoftonline.com/<tenant_id>/oauth2/v2.0/token: requested_token_use=on_behalf_of, user token as assertion, scope Graph .default offline_access",
            "Delete the TAP (or let it expire), then redeem the OBO refresh token with grant_type=refresh_token for new Microsoft Graph access tokens"
          ],
          "outcome": "Pre-fix: continued Graph access (mail, Teams messages, OneNote, calendar) after the TAP was deleted, from untrusted locations, with tokens still carrying the original VPN ipaddr claim; only revoking all user refresh tokens removed access.",
          "mitre": [
            {
              "id": "T1550.001",
              "inferred": true
            }
          ]
        }
      ],
      "detections": [
        "Treat TAP generation events with heavy scrutiny: Get-AzureADAuditDirectoryLogs -Filter \"category eq 'UserManagement'\" | Where-Object {$_.ResultReason -like \"Admin registered temporary access pass method for user\"}.",
        "TAP logins should be relatively infrequent if TAPs are used only for new hire or new device onboarding.",
        "Alert on the audit activity type \"Add service principal\", which fires when an app registration is created or a user consents to an external application.",
        "Alert on the audit activity type \"Add delegated permission grant\" and investigate every new client ID.",
        "Periodically review all service principals in the tenant; it should yield no surprises.",
        "OBO-derived refresh token use shows the original IP address in sign-in logs, making detection particularly difficult."
      ],
      "mitigations": [
        "Don't enable TAPs if you don't need them yet (they are disabled by default); if used, restrict them to new hire or new device onboarding.",
        "Don't allow all users to create application registrations (permitted by default).",
        "Restrict which applications users can consent to, or block user consent altogether.",
        "Revoking all of the user's refresh tokens is required to remove OBO-derived access."
      ],
      "status": [
        "As of 3/24/2023, Microsoft fixed the issue of refresh tokens (including OBO-derived ones) remaining valid after a TAP has expired or been deleted.",
        "Using the OBO flow to keep desirable claims (e.g. original IP/location) in a refresh token remains viable, as it is an intentional design decision of the OBO flow."
      ],
      "resources": [
        {
          "name": "obo-wash (on-behalf-of flow scripts)",
          "url": "https://github.com/hotnops/obo-wash"
        },
        {
          "name": "AADInternals",
          "url": "https://aadinternals.com/aadinternals/"
        },
        {
          "name": "ROADtools",
          "url": "https://github.com/dirkjanm/ROADtools"
        },
        {
          "name": "Family of Client IDs research (Secureworks)",
          "url": "https://github.com/secureworks/family-of-client-ids-research"
        },
        {
          "name": "Microsoft: Configure a Temporary Access Pass",
          "url": "https://learn.microsoft.com/en-us/azure/active-directory/authentication/howto-authentication-temporary-access-pass"
        },
        {
          "name": "Microsoft: OAuth 2.0 On-Behalf-Of flow",
          "url": "https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow"
        },
        {
          "name": "Microsoft: Restrict who can create applications",
          "url": "https://learn.microsoft.com/en-us/azure/active-directory/roles/delegate-app-roles#restrict-who-can-create-applications"
        },
        {
          "name": "Microsoft: Configure user consent",
          "url": "https://learn.microsoft.com/en-us/azure/active-directory/manage-apps/configure-user-consent?pivots=portal"
        }
      ],
      "entities": [
        "product:entra-id",
        "organization:microsoft",
        "organization:specterops",
        "feature:temporary-access-pass",
        "feature:conditional-access",
        "api:oauth-on-behalf-of",
        "api:microsoft-graph",
        "api:graph-temporaryaccesspassmethods",
        "identity:authentication-administrator",
        "identity:privileged-authentication-administrator",
        "identity:authentication-policy-administrator",
        "permission:userauthenticationmethod-readwrite-all",
        "permission:policy-readwrite-authenticationmethod",
        "technique:tap-mfa-bypass",
        "technique:obo-persistence",
        "artifact:refresh-token",
        "artifact:amr-claim",
        "artifact:ipaddr-claim",
        "feature:family-of-client-ids",
        "feature:app-registration",
        "feature:user-consent",
        "tool:aadinternals",
        "tool:roadtools",
        "tool:obo-wash",
        "artifact:entra-audit-logs",
        "artifact:entra-sign-in-logs"
      ]
    },
    {
      "slug": "aws-readonlyaccess-not-even-once",
      "title": "AWS ReadOnlyAccess: Not Even Once",
      "date": "2021-08-27",
      "url": "https://blog.hotnops.dev/posts/aws-readonlyaccess-not-even-once/",
      "markdown": "https://blog.hotnops.dev/posts/aws-readonlyaccess-not-even-once.md",
      "tags": [
        "aws",
        "iam",
        "cloud"
      ],
      "category": "research",
      "summary": "The post argues that the AWS managed ReadOnlyAccess policy is not harmless and behaves more like \"Admin lite\". Using a fabricated scenario, it shows that a role granted ReadOnlyAccess with an inline policy explicitly denying all IAM actions can still read IAM policy documents through AWS Config's config:SelectResourceConfig, which ReadOnlyAccess gained in an AWS-side policy update in February 2020. It also shows that ReadOnlyAccess's SSM permissions expose Parameter Store secrets and SSM command output, and concludes that deny-list (blacklist) permission modeling forces defenders to track every action in an ever-changing managed policy.",
      "keyFindings": [
        "The AWS managed ReadOnlyAccess policy (as of version 78) grants config:SelectResourceConfig, which lets the caller query the configuration state and attached documents of any entity in the account when AWS Config is enabled.",
        "A role with ReadOnlyAccess plus an inline policy denying all IAM actions can still list IAM policies via AWS Config's config:SelectResourceConfig, effectively bypassing the IAM deny rule.",
        "AWS added config:SelectResourceConfig to ReadOnlyAccess in early February 2020 (version 61 of the policy) without customers accepting an update, so an IAM-deny configuration that was safe before that date silently became bypassable.",
        "As of version 78, ReadOnlyAccess allows ssm:Get*, ssm:Describe*, and ssm:List*, including ssm:DescribeParameters and ssm:GetCommandInvocation, exposing SSM Parameter Store secrets and the output of SSM commands such as setting local administrator passwords on EC2.",
        "A ReadOnlyAccess role can decrypt SSM parameters without an explicit KMS decrypt grant, but only when the parameter is encrypted with the default KMS key.",
        "When access is modeled as a deny list on top of a broad managed policy, the onus is on the defender to understand every permission the policy grants and every action AWS later adds to it."
      ],
      "attackPaths": [
        {
          "name": "Bypass an explicit IAM deny using AWS Config on a ReadOnlyAccess role",
          "prerequisites": [
            "Access to a role with the AWS managed ReadOnlyAccess policy (version 61 or later, which includes config:SelectResourceConfig)",
            "IAM access removed only by an inline policy explicitly denying IAM actions, not by removing ReadOnlyAccess",
            "AWS Config enabled in the account (not enabled by default)"
          ],
          "steps": [
            "Assume the role (in the scenario, the AD-federated CloudGeneral role).",
            "Observe that direct IAM enumeration (listing users, groups, policies) is denied by the inline IAM deny policy.",
            "Call config:SelectResourceConfig to query the configuration state and attached documents of entities in the account, including IAM policies."
          ],
          "outcome": "The caller lists and reads IAM policies despite the explicit IAM deny, effectively bypassing it.",
          "mitre": [
            {
              "id": "T1087.004",
              "inferred": true
            }
          ]
        },
        {
          "name": "Read secrets and command output from SSM with ReadOnlyAccess",
          "prerequisites": [
            "Access to a role with the AWS managed ReadOnlyAccess policy (version 78 grants ssm:Get*, ssm:Describe*, ssm:List*)",
            "For decryption: SSM parameters encrypted with the default KMS key"
          ],
          "steps": [
            "Enumerate SSM parameters with ssm:DescribeParameters.",
            "Retrieve and decrypt SSM parameter values with ReadOnlyAccess's ssm:Get* permissions, no explicit KMS decrypt grant needed (default KMS key only)",
            "Use ssm:GetCommandInvocation to view the output of SSM commands, such as commands setting the local administrative password on EC2 deployments."
          ],
          "outcome": "Access to application secrets and sensitive command output; the authors used SSM permissions to elevate privileges in an AWS account.",
          "mitre": [
            {
              "id": "T1555.006",
              "inferred": true
            }
          ]
        }
      ],
      "detections": [],
      "mitigations": [
        "Avoid overly permissive managed policies like ReadOnlyAccess for generic access; treat roles built on broad managed policies plus a few denies as admin roles, not for large groups of users.",
        "Instead of denying permissions on top of a broad policy, reconsider why they were granted and remove them from the original policy.",
        "Hand-craft bespoke policies that grant only the exact permissions users require, adding more as needed.",
        "Prefer more granular managed policies such as AmazonEC2ReadOnlyAccess over ReadOnlyAccess, noting they are still AWS-managed and may change.",
        "If using AWS managed policies, track changes to them (e.g. with MAMIP or its Twitter bot)."
      ],
      "status": [
        "Early February 2020 (February 6, 2020, version 61 of ReadOnlyAccess): AWS updated ReadOnlyAccess to include config:SelectResourceConfig, enabling the AWS Config bypass of IAM deny policies.",
        "As of ReadOnlyAccess version 78 (at time of writing, August 2021) the policy grants AWS Config permissions and ssm:Get*, ssm:Describe*, ssm:List*."
      ],
      "resources": [
        {
          "name": "MAMIP: Monitor AWS Managed IAM Policies Changes",
          "url": "https://github.com/z0ph/MAMIP/"
        },
        {
          "name": "MAMIP Twitter bot (@mamip_aws)",
          "url": "https://twitter.com/mamip_aws"
        },
        {
          "name": "AWS docs: Managed policies and inline policies",
          "url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html"
        }
      ],
      "entities": [
        "permission:aws-readonlyaccess",
        "organization:aws",
        "product:aws-iam",
        "product:aws-config",
        "permission:config-selectresourceconfig",
        "permission:iam-deny-all-inline-policy",
        "identity:cloudgeneral-role",
        "technique:aws-config-iam-deny-bypass",
        "product:aws-systems-manager",
        "feature:ssm-parameter-store",
        "permission:ssm-describeparameters",
        "permission:ssm-getcommandinvocation",
        "technique:ssm-secret-access-via-readonlyaccess",
        "artifact:ssm-parameters",
        "artifact:ssm-command-output",
        "product:aws-kms",
        "concept:deny-list-permission-modeling",
        "concept:least-privilege",
        "permission:aws-amazonec2readonlyaccess",
        "tool:mamip"
      ]
    },
    {
      "slug": "updates-to-ghostwriter-ui-and-operation-logs",
      "title": "Updates to Ghostwriter: UI and Operation Logs",
      "date": "2020-09-30",
      "url": "https://blog.hotnops.dev/posts/updates-to-ghostwriter-ui-and-operation-logs/",
      "markdown": "https://blog.hotnops.dev/posts/updates-to-ghostwriter-ui-and-operation-logs.md",
      "tags": [
        "ghostwriter",
        "red-team",
        "tooling"
      ],
      "category": "research",
      "summary": "SpecterOps describes updates to Ghostwriter, its web-based red team report generation tool, including a reworked UI that uses more AJAX requests and new WebSocket support for real-time notifications and page updates. The headline addition is Operation Logging (oplog), a central, collaborative log of operator commands that replaces a manually maintained shared spreadsheet. Oplog entries can be created manually, via a REST API used by C2 frameworks such as Cobalt Strike and Mythic, or imported from CSV, and the post lists planned features such as objective, finding and MITRE ATT&CK ID tagging.",
      "keyFindings": [
        "Ghostwriter is a web-based red team report generation tool that tracks clients, projects, findings, and infrastructure.",
        "Ghostwriter's Operation Logging (oplog) feature provides a central log of all commands performed on an engagement, replacing a manual shared spreadsheet that SpecterOps found tedious and error prone.",
        "Ghostwriter oplog exposes a REST API that lets external entities create, update, and delete oplog entries, allowing C2 frameworks like Cobalt Strike and Mythic to log commands automatically.",
        "The oplog page uses WebSockets and asyncio on the back end, so edits and new entries are pushed immediately to everyone viewing the log.",
        "When an operator enters a command in a Cobalt Strike beacon, the command, time, operator, user context, and hostname are logged; for Mythic, command output is also logged.",
        "Ghostwriter can import and export oplog data as CSV; an aggressor script logs Cobalt Strike commands to CSV when teamservers cannot reach Ghostwriter, for import at the end of the engagement."
      ],
      "attackPaths": [],
      "detections": [],
      "mitigations": [],
      "status": [
        "2020-09-30: Many UI changes are live on GitHub; an official release with more enhancements and performance improvements is planned for later in 2020.",
        "Automatic inclusion of oplog data in report generation is not yet implemented.",
        "Planned oplog features: sensitivity tagging and automatic data age-off, extensions for bash/ssh/proxychains/web browsers/shells, objective IDs, finding IDs, MITRE ATT&CK IDs per entry, evidence attachments, daily activity summary, engagement timeline, automatic evidence-to-finding mapping, and TTP roll-up."
      ],
      "resources": [
        {
          "name": "Introducing Ghostwriter, Part 1",
          "url": "https://posts.specterops.io/introducing-ghostwriter-part-1-61e7bd014aff"
        },
        {
          "name": "Ghostwriter operation logs documentation",
          "url": "https://ghostwriter.wiki/documentation/operation-logs"
        }
      ],
      "entities": [
        "tool:ghostwriter",
        "organization:specterops",
        "feature:ghostwriter-operation-logs",
        "api:ghostwriter-oplog-rest-api",
        "feature:ghostwriter-websockets",
        "feature:ghostwriter-ajax-ui",
        "feature:ghostwriter-oplog-csv-import-export",
        "feature:ghostwriter-oplog-copy-entry",
        "feature:ghostwriter-oplog-column-selection",
        "artifact:ghostwriter-oplog-entry",
        "artifact:oplog-csv-file",
        "tool:cobalt-strike",
        "tool:mythic",
        "tool:mythic-sync",
        "tool:ghostwriter-cobalt-strike-aggressor-script",
        "concept:red-team-operation-logging",
        "concept:manual-oplog-spreadsheet"
      ]
    },
    {
      "slug": "persistent-aws-access-with-role-chain-juggling",
      "title": "Persistent AWS access with role chain juggling",
      "date": "2020-07-16",
      "url": "https://blog.hotnops.dev/posts/persistent-aws-access-with-role-chain-juggling/",
      "markdown": "https://blog.hotnops.dev/posts/persistent-aws-access-with-role-chain-juggling.md",
      "tags": [
        "aws",
        "iam",
        "red-team"
      ],
      "category": "research",
      "summary": "The post introduces \"role chain juggling\", a persistence technique in which an attacker holding temporary AWS STS credentials repeatedly calls sts:AssumeRole across roles that trust each other in a cycle, obtaining fresh credentials with a new expiration each time. The authors observed, in a test environment, that assuming back from GitRole to BuildRole issued new credentials with a later expiration rather than reusing the earlier session. Given circular trust relationships, this keeps access alive indefinitely, and the author releases scripts to find circular trust and automate the juggling.",
      "keyFindings": [
        "Role chain juggling: if IAM role trust policies form a cycle, an attacker with temporary STS credentials can repeatedly call sts:AssumeRole around the cycle to keep an AWS session alive indefinitely.",
        "In the author's test, assuming BuildRole, then GitRole, then BuildRole again returned new credentials each time with an expiration later than the previous one; AWS did not detect the circular chain and re-issue earlier credentials.",
        "STS tokens are valid for one hour by default and at most 12 hours, which is the limitation role chain juggling works around.",
        "Circular trust does not need to be just two roles: a chain such as RoleA -> RoleB -> RoleC -> RoleA also enables the technique.",
        "On a red-team engagement, STS credentials (access key, secret key, session token) for federated users were written to a publicly accessible log whenever they were requested, and aws_consoler was used to turn them into a 12-hour web console session.",
        "The author released find_circular_trust.py to detect circular role trust relationships and aws_role_juggler.py to keep a temporary session alive by juggling roles, in the AWSRoleJuggler GitHub repo."
      ],
      "attackPaths": [
        {
          "name": "Indefinite AWS persistence from temporary credentials via role chain juggling",
          "prerequisites": [
            "Temporary STS credentials (in the engagement, federated-user credentials leaked to a publicly accessible log)",
            "A principal that can assume a role belonging to a cycle of roles whose trust policies allow each other (e.g. BuildRole <-> GitRole, or RoleA -> RoleB -> RoleC -> RoleA)"
          ],
          "steps": [
            "Obtain temporary STS credentials (ASIA key id, secret key, session token) and load them into the environment",
            "Call sts:AssumeRole into the first role in the cycle (BuildRole) and export the returned credentials.",
            "Confirm the assumed identity with sts get-caller-identity.",
            "From BuildRole, call sts:AssumeRole into GitRole; the returned credentials have a later expiration.",
            "From GitRole, call sts:AssumeRole back into BuildRole; AWS issues new credentials with a later expiration instead of reusing the earlier session.",
            "Repeat around the cycle before each expiration (automated by aws_role_juggler.py)."
          ],
          "outcome": "The temporary session is kept alive indefinitely, giving persistent access to the AWS environment beyond the 1-hour default / 12-hour maximum STS lifetime.",
          "mitre": [
            {
              "id": "T1078.004",
              "inferred": true
            },
            {
              "id": "T1550.001",
              "inferred": true
            }
          ]
        }
      ],
      "detections": [
        "Run find_circular_trust.py to detect circular trust relationships between IAM roles, the prerequisite for role chain juggling."
      ],
      "mitigations": [],
      "status": [],
      "resources": [
        {
          "name": "AWSRoleJuggler (repo)",
          "url": "https://github.com/hotnops/AWSRoleJuggler/"
        },
        {
          "name": "find_circular_trust.py",
          "url": "https://github.com/hotnops/AWSRoleJuggler/blob/master/find_circular_trust.py"
        },
        {
          "name": "aws_role_juggler.py",
          "url": "https://github.com/hotnops/AWSRoleJuggler/blob/master/aws_role_juggler.py"
        },
        {
          "name": "aws_consoler (NetSPI)",
          "url": "https://github.com/NetSPI/aws_consoler"
        },
        {
          "name": "AWS docs: Roles terms and concepts",
          "url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html"
        }
      ],
      "entities": [
        "technique:role-chain-juggling",
        "technique:role-chaining",
        "technique:sts-credential-theft-from-public-log",
        "api:sts-assumerole",
        "api:sts-getsessiontoken",
        "api:sts-getcalleridentity",
        "product:aws-sts",
        "product:aws-iam",
        "feature:iam-role-trust-policy",
        "concept:circular-role-trust",
        "artifact:aws-session-credentials",
        "artifact:aws-console-session",
        "tool:aws-consoler",
        "tool:aws-role-juggler",
        "tool:find-circular-trust",
        "organization:netspi"
      ]
    }
  ],
  "entities": [
    {
      "id": "technique:whfb-key-sync-to-on-prem",
      "type": "technique",
      "name": "WHFB key sync to on-premises account takeover",
      "descriptions": [
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Register a WHFB key on a controlled Entra user so Entra Connect writes it to msDS-KeyCredentialLink, then authenticate on-premises with the key."
        }
      ],
      "posts": [
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "product:entra-connect",
      "type": "product",
      "name": "Entra Connect Sync",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Sync engine whose sync account sets device userCertificate values in Entra ID, synced from on-prem computer objects."
        },
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Hybrid sync agent whose authentication to Entra ID changed from a user account to an application registration."
        },
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Sync engine (Azure AD Connect) that projects AD objects through a metaverse and provisions them to Entra ID."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Software that propagates changes between Active Directory and Entra via connector spaces and the metaverse."
        }
      ],
      "url": "https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/authenticate-application-id",
      "posts": [
        "entra-connect-attacker-tradecraft-part-3",
        "update-dumping-entra-connect-sync-credentials",
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "technique:obo-persistence",
      "type": "technique",
      "name": "OBO persistence",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Author's name for using the OBO flow to obtain a refresh token decoupled from the TAP that kept working after the TAP was deleted and retained the original IP claim."
        }
      ],
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "technique:source-anchor-hijack",
      "type": "technique",
      "name": "sourceAnchor join hijack",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Create an Entra user with a target's sourceAnchor to complete the inbound join to a partially synced on-premises account in another domain."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-2"
      ]
    },
    {
      "id": "feature:ghostwriter-operation-logs",
      "type": "feature",
      "name": "Ghostwriter Operation Logging (oplog)",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "Central, collaborative, timestamped log of operator commands on an engagement."
        }
      ],
      "url": "https://ghostwriter.wiki/documentation/operation-logs",
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "product:entra-id",
      "type": "product",
      "name": "Entra ID",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "The cloud tenant whose device objects and conditional access the attack manipulates."
        },
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Cloud identity service the Entra Connect Sync agent authenticates to."
        },
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Microsoft cloud identity tenant (hotnops.com) shared by the two on-premises domains in this attack."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Cloud directory (formerly Azure AD) that Entra Connect Sync propagates changes to and from."
        },
        {
          "post": "id-tap-that-pass",
          "text": "Microsoft cloud identity platform in which TAPs and conditional access policies are configured."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3",
        "update-dumping-entra-connect-sync-credentials",
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1",
        "id-tap-that-pass"
      ]
    },
    {
      "id": "technique:role-chain-juggling",
      "type": "technique",
      "name": "Role chain juggling",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "Cyclically chaining sts:AssumeRole across mutually trusting roles to refresh temporary credentials indefinitely."
        }
      ],
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "technique:shadow-credentials",
      "type": "technique",
      "name": "Shadow Credentials",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Abuse msDS-KeyCredentialLink / key trust account mapping to take over an account by registering an attacker-controlled key."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Abuse of msDS-KeyCredentialLink key-trust mapping to obtain a TGT for a user."
        }
      ],
      "url": "https://posts.specterops.io/shadow-credentials-abusing-key-trust-account-mapping-for-takeover-8ee1a53566ab",
      "posts": [
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "technique:intune-cert-abuse",
      "type": "technique",
      "name": "Intune MDM/PKCS certificate abuse",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Recover a device MDM certificate and obtain PKCS certs to get on-prem client auth certificates for another domain."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "technique:sync-application-key-addition",
      "type": "technique",
      "name": "Adding an attacker key to the Entra Connect Sync application",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Use the existing on-host certificate to sign a POP assertion and register an attacker certificate on the application for persistent off-host access."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "technique:tap-mfa-bypass",
      "type": "technique",
      "name": "TAP abuse to satisfy MFA",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Adding a TAP to a target user and authenticating with it to satisfy MFA conditional access without the user's second factor or a password change."
        }
      ],
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "identity:entra-connect-sync-application",
      "type": "identity",
      "name": "Entra Connect Sync application registration",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Application registration created at install that now authenticates the sync agent using a self-signed certificate."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "identity:sync-account",
      "type": "identity",
      "name": "Entra Connect sync account",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Compromised account that can write userCertificate on any device object in the tenant."
        },
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "The Entra-side sync identity; the legacy user form was a high-value target for attackers."
        },
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Compromised sync account whose access token lets the attacker call the provisioning API to create Entra objects."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Special Entra account that sends provisioning messages to adminwebservice.onmicrosoft.com during a sync cycle."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3",
        "update-dumping-entra-connect-sync-credentials",
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "permission:aws-readonlyaccess",
      "type": "permission",
      "name": "ReadOnlyAccess",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "AWS managed policy with read permissions for nearly every AWS service; the post calls it \"Admin lite\"."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "technique:usercertificate-hijack",
      "type": "technique",
      "name": "Device userCertificate hijacking",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Use the sync account to write a self-signed userCertificate to a device and register as that device."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "feature:temporary-access-pass",
      "type": "feature",
      "name": "Temporary Access Pass (TAP)",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Short-lived password that can be added to a user without replacing their password and that satisfies MFA requirements; disabled by default, lifetime at most eight hours."
        }
      ],
      "url": "https://learn.microsoft.com/en-us/azure/active-directory/authentication/howto-authentication-temporary-access-pass",
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "technique:aws-config-iam-deny-bypass",
      "type": "technique",
      "name": "IAM deny bypass via AWS Config",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "Using config:SelectResourceConfig to read IAM policies that an explicit IAM deny is meant to hide."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "tool:aadinternals",
      "type": "tool",
      "name": "AADInternals",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Used for New-AADIntCertificate, Set-AADIntAzureADObject, Join-AADIntDeviceToAzureAD, and the MDM cert recovery code."
        },
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Toolkit whose Get-AADIntSyncCredentials previously exported the AAD Connector account password from the ADSync database."
        },
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "PowerShell toolkit used to create the Entra user with the forged sourceAnchor via the sync account's token."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Existing tooling that manipulates the Entra Connect syncing mechanic."
        },
        {
          "post": "id-tap-that-pass",
          "text": "PowerShell toolkit used to obtain and parse tokens (Get-AADIntAccessTokenForMSGraph, Get-AADIntAccessToken, Parse-JWTtoken)."
        }
      ],
      "url": "https://github.com/Gerenios/AADInternals",
      "posts": [
        "entra-connect-attacker-tradecraft-part-3",
        "update-dumping-entra-connect-sync-credentials",
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1",
        "id-tap-that-pass"
      ]
    },
    {
      "id": "artifact:msds-keycredentiallink",
      "type": "artifact",
      "name": "msDS-KeyCredentialLink",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "The only attribute synced down by default; holds the WHFB key the attacker adds to take over the target account."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "AD attribute that holds key-trust public keys; populated from Entra by the default sync rule."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "feature:conditional-access",
      "type": "feature",
      "name": "Conditional Access",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Entra policy that can require a specific deviceId claim (e.g. a PAW) for token issuance."
        },
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Policies that typically do not apply to service principals, making off-target use of the new credentials more likely."
        },
        {
          "post": "id-tap-that-pass",
          "text": "Azure AD policies such as 'MFA required' and 'only authenticate from the Target VPN' that hinder direct authentication as a target user."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3",
        "update-dumping-entra-connect-sync-credentials",
        "id-tap-that-pass"
      ]
    },
    {
      "id": "product:aws-sts",
      "type": "product",
      "name": "AWS STS",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Provides sts:AssumeRole, treated as an identity transform."
        },
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "AWS Security Token Service, which issues temporary credentials."
        }
      ],
      "url": "https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html",
      "posts": [
        "an-aws-administrator-identity-crisis-part-1",
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "technique:ssm-secret-access-via-readonlyaccess",
      "type": "technique",
      "name": "SSM secret and command-output access via ReadOnlyAccess",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "Reading and decrypting SSM parameters and SSM command output with ReadOnlyAccess permissions to elevate privileges."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "technique:sync-credential-dump",
      "type": "technique",
      "name": "Dumping Entra Connect sync credentials",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Legacy technique: recover the plaintext AAD Connector password from the ADSync database on-host."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "concept:resultant-set-of-policy",
      "type": "concept",
      "name": "Resultant Set of Policy (RSOP)",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "A principal's permission matrix after allows, denies, resolved conditions, session policies, SCPs and permission boundaries (relative complement of allow minus deny)."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "feature:metaverse",
      "type": "feature",
      "name": "Metaverse",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Intermediate object store in Entra Connect where connector-space objects are joined and represented as 'person' objects."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Virtual aggregation of objects from multiple connected directories; acts as a conflict manager between AD and Entra."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "product:active-directory",
      "type": "product",
      "name": "Active Directory",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "On-premises domains (e.g. sccm.hotnops.com, keytrust.hotnops.com) joined to one Entra tenant."
        },
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "On-premises AD domains (federated.hotnops.com and hybrid.hotnops.com) synced into one Entra tenant."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "On-premises directory whose users receive the synced msDS-KeyCredentialLink and from which a TGT is obtained."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3",
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "technique:ca-bypass",
      "type": "technique",
      "name": "Conditional Access bypass via forged device",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Forge a device identity matching a required deviceId claim to bypass a PAW conditional access policy."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "api:microsoft-graph",
      "type": "api",
      "name": "Microsoft Graph",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Resource for which the attacker obtains a token after bypassing the PAW conditional access policy."
        },
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "API the sync application obtains tokens for and through which keys are added."
        },
        {
          "post": "id-tap-that-pass",
          "text": "Back-end API used to create TAPs and as the OBO target resource (https://graph.microsoft.com/.default)."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3",
        "update-dumping-entra-connect-sync-credentials",
        "id-tap-that-pass"
      ]
    },
    {
      "id": "artifact:aws-session-credentials",
      "type": "artifact",
      "name": "Temporary STS credentials",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "Access key ID (prefixed ASIA), secret key, and session token; valid 1 hour by default, 12 hours max."
        }
      ],
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "artifact:entra-audit-logs",
      "type": "artifact",
      "name": "Entra ID AuditLogs",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Log source where key credential additions on the application registration appear."
        },
        {
          "post": "id-tap-that-pass",
          "text": "Audit log source containing 'Admin registered temporary access pass method for user', 'Add service principal', and 'Add delegated permission grant' events."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials",
        "id-tap-that-pass"
      ]
    },
    {
      "id": "concept:transitive-rsop",
      "type": "concept",
      "name": "Transitive RSOP",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Union of the RSOPs of a principal and all roles it can assume; IsAdministrator = RAM ⊆ TransitiveRSOP(principal, context)."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "feature:sync-rules",
      "type": "feature",
      "name": "Sync rules",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Provisioning, scoping filter, join, and transformation rules in the Sync Rules Editor that drive attribute flow in and out of the metaverse."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Rules that specify attribute flow; by default only one flows from Entra to AD."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "identity:aad-connector-account",
      "type": "identity",
      "name": "AAD Connector account",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Legacy user principal (Sync_<host>_...) created at install with a random password and a special sync role."
        },
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Legacy AAD Connect Sync connector account (AAD_<guid>) that is cloud filtered and partially synced; the takeover target in the walkthrough."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials",
        "entra-connect-attacker-tradecraft-part-2"
      ]
    },
    {
      "id": "product:aws-iam",
      "type": "product",
      "name": "AWS IAM",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "AWS identity and policy system whose policies define what actions a principal can perform on which resources."
        },
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "AWS identity and access management; ReadOnlyAccess lets callers list users, groups, and policies."
        },
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "Holds the IAM users and roles whose trust policies enable role chaining."
        }
      ],
      "url": "https://aws.amazon.com/iam/",
      "posts": [
        "an-aws-administrator-identity-crisis-part-1",
        "aws-readonlyaccess-not-even-once",
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "technique:sync-application-credential-addition-by-app-admin",
      "type": "technique",
      "name": "Adding sync application credentials as an Application Administrator",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Entra-side path: application-management roles add credentials to the sync application without disrupting sync."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "tool:ecutilities",
      "type": "tool",
      "name": "ECUtilities / SharpECUtils",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Author's .NET tooling that obtains a Graph token and POP assertion from the on-host certificate and adds a new key to the sync application."
        },
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Author's PowerShell module and scripts for converting UUIDs to sourceAnchors and enumerating partially synced and affected users."
        }
      ],
      "url": "https://github.com/hotnops/ECUtilities/tree/main/SharpECUtils",
      "posts": [
        "update-dumping-entra-connect-sync-credentials",
        "entra-connect-attacker-tradecraft-part-2"
      ]
    },
    {
      "id": "tool:ghostwriter",
      "type": "tool",
      "name": "Ghostwriter",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "Web-based red team report generation tool that tracks clients, projects, findings, and infrastructure and automates routine reporting."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "api:ghostwriter-oplog-rest-api",
      "type": "api",
      "name": "Ghostwriter oplog REST API",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "Rudimentary REST API allowing external entities to create, update, and delete oplog entries."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "api:graph-application-addkey",
      "type": "api",
      "name": "Microsoft Graph application addKey",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Endpoint that lets an application add a key credential to itself when given a POP assertion signed with an existing key."
        }
      ],
      "url": "https://learn.microsoft.com/en-us/graph/api/application-addkey?view=graph-rest-1.0&tabs=http",
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "api:sts-assumerole",
      "type": "api",
      "name": "sts:AssumeRole",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "STS call used to assume each role in the chain; each call returned credentials with a new expiration."
        }
      ],
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "artifact:mdm-certificate",
      "type": "artifact",
      "name": "Intune MDM certificate",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Certificate recovered to enable an OMA-DM/SyncML session with Intune for a target device."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "artifact:pkcs-certificate",
      "type": "artifact",
      "name": "PKCS certificate",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Client auth certificate issued by Intune Certificate Connector via ADCS to devices for on-prem authentication."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "artifact:refresh-token",
      "type": "artifact",
      "name": "Refresh token",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Token obtained via TAP or OBO; the TAP-derived one expires with the TAP, the OBO-derived one (pre-fix) outlived it."
        }
      ],
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "artifact:user-certificate",
      "type": "artifact",
      "name": "userCertificate property",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Self-signed cert set on a computer/device object; synced to Entra ID it enables unauthenticated device registration."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "concept:permission-matrix",
      "type": "concept",
      "name": "Permission matrix",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Cartesian product of actions and resources they can act on; each action-to-resource pair represents a successful API call."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "concept:tenant-trust-boundary",
      "type": "concept",
      "name": "Tenant as the trust boundary",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "A sync account can impersonate any device in the tenant, reaching devices and domains the attacker has no direct access to."
        },
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "A sync account in one domain can reach accounts in another domain of the same Entra tenant, so the tenant, not the AD domain, is the real boundary."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Series thesis: compromise of one domain in a tenant likely equals compromise of every other domain in it."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3",
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "feature:iam-role-trust-policy",
      "type": "feature",
      "name": "IAM role trust policy",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "Assume-role policy document defining which principals may assume a role."
        }
      ],
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "feature:searchabledevicekey-to-msds-keycredentiallink-flow",
      "type": "feature",
      "name": "searchableDeviceKey -> msDS-KeyCredentialLink attribute flow",
      "descriptions": [
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "The single default Entra-to-AD attribute flow, which writes Entra key material to the on-premises user."
        }
      ],
      "posts": [
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "feature:whfb",
      "type": "feature",
      "name": "Windows Hello for Business key",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Key registered on the created Entra user; converted to a PFX for use with Rubeus."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Key registration mechanism used to add key material to the Entra user."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "identity:msol-account",
      "type": "identity",
      "name": "MSOL_ AD DS connector account",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Account created at Entra Connect install with DCSync privileges and write-all over users in the Users OU."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-2"
      ]
    },
    {
      "id": "organization:microsoft",
      "type": "organization",
      "name": "Microsoft",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Vendor of Entra ID, Entra Connect, and Intune."
        },
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Vendor that changed Entra Connect Sync authentication to an application identity."
        },
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Vendor of Entra ID and Entra Connect; its filtering docs are referenced."
        },
        {
          "post": "id-tap-that-pass",
          "text": "Vendor of Azure AD; fixed the TAP refresh-token persistence issue as of 3/24/2023."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3",
        "update-dumping-entra-connect-sync-credentials",
        "entra-connect-attacker-tradecraft-part-2",
        "id-tap-that-pass"
      ]
    },
    {
      "id": "permission:config-selectresourceconfig",
      "type": "permission",
      "name": "config:SelectResourceConfig",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "AWS Config action granted by ReadOnlyAccess that queries configuration state and attached documents of any entity in the account."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "permission:iam-deny-all-inline-policy",
      "type": "permission",
      "name": "Inline deny of all IAM actions",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "Inline policy added to the CloudGeneral role to explicitly deny everything in IAM on top of ReadOnlyAccess."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "permission:ssm-describeparameters",
      "type": "permission",
      "name": "ssm:DescribeParameters",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "SSM action included in ReadOnlyAccess via ssm:Describe*."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "permission:ssm-getcommandinvocation",
      "type": "permission",
      "name": "ssm:GetCommandInvocation",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "SSM action included in ReadOnlyAccess that lets the caller view the output of SSM commands."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "product:aws-systems-manager",
      "type": "product",
      "name": "AWS Systems Manager (SSM)",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "AWS service whose Get/Describe/List permissions are included in ReadOnlyAccess."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "technique:ec2-stop-and-detach-volume-exfiltration",
      "type": "technique",
      "name": "Stop instance and detach volume for exfiltration",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Stopping an EC2 instance and detaching its volume so it can be exfiltrated out of the account."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "technique:esc1",
      "type": "technique",
      "name": "ADCS ESC1 via Intune",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Intune controls the Subject/SAN of issued PKCS certificates, enabling ESC1-style impersonation for users or devices."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "technique:role-chaining",
      "type": "technique",
      "name": "Role chaining",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "A role, rather than a user, assuming another role; possible an arbitrary number of times if trust policies permit."
        }
      ],
      "url": "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_terms-and-concepts.html",
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "technique:sts-credential-theft-from-public-log",
      "type": "technique",
      "name": "STS credential theft from a publicly accessible log",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "Red-team initial access: federated users' STS credentials were written to a public log whenever issued."
        }
      ],
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "tool:aws-consoler",
      "type": "tool",
      "name": "aws_consoler",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "NetSPI utility converting AWS CLI credentials into AWS console access."
        }
      ],
      "url": "https://github.com/NetSPI/aws_consoler",
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "tool:cobalt-strike",
      "type": "tool",
      "name": "Cobalt Strike",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Beacon in the target domain used to enumerate the target and request the TGT."
        },
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "C2 framework whose beacon commands can be automatically logged to the Ghostwriter oplog."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-2",
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "tool:roadtools",
      "type": "tool",
      "name": "ROADtools (roadtx)",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Used to attempt/complete user authentication and PRT auth, demonstrating and then bypassing the CA policy."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Dirk-jan Mollema's toolkit used for device registration, PRT acquisition and enrichment, and WHFB key registration."
        },
        {
          "post": "id-tap-that-pass",
          "text": "Used to view the conditional access policies applied to the test user."
        }
      ],
      "url": "https://github.com/dirkjanm/ROADtools",
      "posts": [
        "entra-connect-attacker-tradecraft-part-3",
        "attacking-entra-metaverse-part-1",
        "id-tap-that-pass"
      ]
    },
    {
      "id": "tool:rubeus",
      "type": "tool",
      "name": "Rubeus",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Uses the resulting device certificate to obtain a TGT for the target device."
        },
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Used with the WHFB-derived PFX to request a TGT for the hijacked account from the target-domain Beacon."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Used to request a TGT for the on-premises user with the certificate built from the WHFB key."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3",
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "api:graph-temporaryaccesspassmethods",
      "type": "api",
      "name": "Graph temporaryAccessPassMethods endpoint",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "POST https://graph.microsoft.com/v1.0/users/<user id>/authentication/temporaryAccessPassMethods with isUsableOnce and lifetimeInMinutes creates a TAP for a user."
        }
      ],
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "api:oauth-client-credentials-flow",
      "type": "api",
      "name": "OAuth 2.0 client credentials flow",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Flow the new sync agent uses to authenticate as an application with a certificate-signed assertion."
        }
      ],
      "url": "https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow",
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "api:provisioning-api",
      "type": "api",
      "name": "Entra provisioning (synchronization) API",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "API the sync account authenticates to in order to create Entra objects with a chosen sourceAnchor."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Endpoint the sync account sends provisioning messages to when creating Entra users."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "artifact:cloudfiltered",
      "type": "artifact",
      "name": "cloudFiltered attribute",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Metaverse attribute set true for accounts like MSOL_/krbtgt_/AAD_ to block outbound provisioning; its presence on synced users is a detection signal."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-2"
      ]
    },
    {
      "id": "artifact:device-certificate",
      "type": "artifact",
      "name": "Device certificate",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Signed PFX obtained after device registration, used for device authentication."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "artifact:oplog-csv-file",
      "type": "artifact",
      "name": "Oplog CSV file",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "Properly formatted CSV of commands that can be uploaded into Ghostwriter."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "artifact:source-anchor",
      "type": "artifact",
      "name": "sourceAnchor",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Join key (sourceAnchorBinary) derived from ms-DS-ConsistencyGuid or objectGUID that ties on-premises and Entra objects together."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-2"
      ]
    },
    {
      "id": "artifact:ssm-parameters",
      "type": "artifact",
      "name": "SSM parameters",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "Stored sensitive values such as application secrets."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "artifact:sync-application-certificate",
      "type": "artifact",
      "name": "Entra Connect Sync certificate",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Self-signed certificate generated at install that authenticates the sync application; its private key may sit on a TPM."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "artifact:syncml-pfxcertblob",
      "type": "artifact",
      "name": "PFXCertBlob / PFXCertPassword",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Encrypted certificate blob and password delivered over OMA-DM SyncML; password is encrypted to the MDM certificate."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "concept:circular-role-trust",
      "type": "concept",
      "name": "Circular role trust",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "Roles whose trust relationships form a cycle (A->B->A or A->B->C->A); the key prerequisite, which may accrue as environments grow."
        }
      ],
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "concept:identity-transform",
      "type": "concept",
      "name": "IdentityTransform",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "A way for one principal to act as another, e.g. sts:AssumeRole."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "concept:indirect-permissions",
      "type": "concept",
      "name": "Indirect permissions",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Principals that can modify the environment (a write operation) to become an administrator; deferred to a later post."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "concept:manual-oplog-spreadsheet",
      "type": "concept",
      "name": "Manual shared oplog spreadsheet",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "SpecterOps' historical internally hosted spreadsheet of operator activity, described as tedious, error prone, and distracting for operators."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "concept:permission-sets-as-attack-path-destination",
      "type": "concept",
      "name": "Permission sets as attack path destinations",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Rather than identity or infrastructure, custom permission matrices over resources defenders care about are the destinations of AWS IAM attack paths."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "concept:ridiculous-administrator-matrix",
      "type": "concept",
      "name": "Ridiculous Administrator Matrix (RAM)",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Permission matrix of every resource in the account paired with every action that can act on it."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "feature:app-registration",
      "type": "feature",
      "name": "Application registration",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Entra ID object type that can authenticate as itself with secrets, certificates, or federated credentials."
        },
        {
          "post": "id-tap-that-pass",
          "text": "Registering an app (with client secret and exposed API) to act as the OBO middleware; allowed for all users by default."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials",
        "id-tap-that-pass"
      ]
    },
    {
      "id": "feature:aws-service-control-policies",
      "type": "feature",
      "name": "Service Control Policies (SCPs)",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Policies processed when computing a principal's RSOP."
        }
      ],
      "url": "https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html",
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "feature:connector-space",
      "type": "feature",
      "name": "Connector space",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Per-connector staging area; objects exist in the AD connector space and the Entra connector space with join links to the metaverse."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Per-connected-directory staging representation; objects land here on import before being projected into the metaverse."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "feature:device-registration",
      "type": "feature",
      "name": "Device Registration Service",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Service devices call with a CSR and TKpub to register; hybrid join automates this via userCertificate."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "feature:ghostwriter-oplog-csv-import-export",
      "type": "feature",
      "name": "Oplog CSV import/export",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "Import and export of operation logs as CSV files, including from offline tools."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "feature:ghostwriter-websockets",
      "type": "feature",
      "name": "Ghostwriter WebSocket support",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "Real-time toast notifications and page updates; pushes oplog changes to all viewers over a persistent connection."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "feature:intune-certificate-connector",
      "type": "feature",
      "name": "Intune Certificate Connector",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "On-prem component that issues user/device certificates from ADCS; controls Subject/SAN enabling ESC1."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "feature:join-rule-in-from-aad-user-join",
      "type": "feature",
      "name": "In from AAD - User Join rule",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Join rule that links an Entra user to a metaverse object when their sourceAnchor values match."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-2"
      ]
    },
    {
      "id": "feature:outbound-filtering",
      "type": "feature",
      "name": "Outbound filtering",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Sync rule filtering that blocks cloudFiltered objects from being provisioned to the Entra connector space while still projecting them into the metaverse."
        }
      ],
      "url": "https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-connect-sync-configure-filtering#outbound-filtering",
      "posts": [
        "entra-connect-attacker-tradecraft-part-2"
      ]
    },
    {
      "id": "feature:ssm-parameter-store",
      "type": "feature",
      "name": "SSM Parameter Store",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "Where AWS recommends storing sensitive variables such as application secrets."
        }
      ],
      "url": "https://aws.amazon.com/blogs/mt/the-right-way-to-store-secrets-using-parameter-store/",
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "identity:adsync-service-account",
      "type": "identity",
      "name": "ADSync service account",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "On-host service account context that could decrypt the AAD configuration blob and now holds the certificate used to authenticate."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "identity:authentication-administrator",
      "type": "identity",
      "name": "Authentication Administrator",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Azure AD role able to add a TAP to users; the attacker's User A holds it in the example scenario."
        }
      ],
      "url": "https://learn.microsoft.com/en-us/azure/active-directory/roles/permissions-reference#authentication-administrator",
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "identity:cloudgeneral-role",
      "type": "identity",
      "name": "CloudGeneral role",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "Fabricated example role, federated from an AD group, with ReadOnlyAccess plus ECR/S3 write and an IAM deny inline policy."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "identity:entra-user",
      "type": "identity",
      "name": "Fully controlled Entra user",
      "descriptions": [
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Hybrid user the attacker controls, including plaintext password and MFA methods."
        }
      ],
      "posts": [
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "identity:on-prem-user",
      "type": "identity",
      "name": "On-premises AD user",
      "descriptions": [
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "The joined Active Directory counterpart of the Entra user, compromised via the synced key."
        }
      ],
      "posts": [
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "identity:privileged-authentication-administrator",
      "type": "identity",
      "name": "Privileged Authentication Administrator",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Could reset the legacy sync account password, but doing so broke the sync agent."
        },
        {
          "post": "id-tap-that-pass",
          "text": "Azure AD role able to add a TAP to users."
        }
      ],
      "url": "https://learn.microsoft.com/en-us/azure/active-directory/roles/permissions-reference#privileged-authentication-administrator",
      "posts": [
        "update-dumping-entra-connect-sync-credentials",
        "id-tap-that-pass"
      ]
    },
    {
      "id": "organization:aws",
      "type": "organization",
      "name": "AWS",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Cloud provider whose IAM policy evaluation logic the post formalizes."
        },
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "Vendor that manages and updates the ReadOnlyAccess managed policy."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1",
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "organization:specterops",
      "type": "organization",
      "name": "SpecterOps",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Publisher of the blog series."
        },
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Publisher of the research post."
        },
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "Publisher of the blog series."
        },
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Publisher of the series and of the original Shadow Credentials research."
        },
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Publisher of the post (Posts By SpecterOps Team Members)."
        },
        {
          "post": "id-tap-that-pass",
          "text": "Author's employer; the test tenant's trusted VPN location was 'SpecterOps-vpn'."
        },
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "Team updating Ghostwriter and source of the historical spreadsheet-based oplog practice."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3",
        "update-dumping-entra-connect-sync-credentials",
        "entra-connect-attacker-tradecraft-part-2",
        "attacking-entra-metaverse-part-1",
        "an-aws-administrator-identity-crisis-part-1",
        "id-tap-that-pass",
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "permission:ec2-stopinstances",
      "type": "permission",
      "name": "ec2:stopinstances",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "EC2 action that acts only on ec2:instance resources; part of the domain controller exfiltration permission matrix."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "permission:sts-assumerole",
      "type": "permission",
      "name": "sts:AssumeRole",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Action identified as an 'IdentityTransform': a principal that can assume an administrator role is also an administrator."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "product:aws-config",
      "type": "product",
      "name": "AWS Config",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "AWS configuration service; not enabled by default but used in the scenario environment."
        }
      ],
      "url": "https://aws.amazon.com/config/",
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "product:aws-ec2",
      "type": "product",
      "name": "Amazon EC2",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Service used in examples; a domain controller runs as an EC2 instance."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "tool:apeman",
      "type": "tool",
      "name": "APEMAN (AWS Policy Evaluation Manager)",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Tool implementing these concepts, to be showcased at Black Hat Arsenal in August 2024 (name from the linked Arsenal listing)."
        }
      ],
      "url": "https://www.blackhat.com/us-24/arsenal/schedule/index.html#apeman-the-aws-policy-evaluation-manager-39474",
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "tool:find-circular-trust",
      "type": "tool",
      "name": "find_circular_trust.py",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "Script released by the author to detect circular trust relationships in AWS environments."
        }
      ],
      "url": "https://github.com/hotnops/AWSRoleJuggler/blob/master/find_circular_trust.py",
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "tool:ghostwriter-cobalt-strike-aggressor-script",
      "type": "tool",
      "name": "Cobalt Strike oplog aggressor script",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "Aggressor script that logs each command to a CSV file for later import into Ghostwriter when teamservers cannot reach it."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "tool:mythic",
      "type": "tool",
      "name": "Mythic",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "C2 framework that integrates with the oplog; command output is also logged."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "tool:mythic-sync",
      "type": "tool",
      "name": "Mythic sync utility",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "Utility shown auto-populating oplog entries from Mythic."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "api:device-registration-service",
      "type": "api",
      "name": "Enterprise device registration service",
      "descriptions": [
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Resource the attacker obtains a token for in order to register a device and request a PRT."
        }
      ],
      "posts": [
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "api:oauth-on-behalf-of",
      "type": "api",
      "name": "OAuth 2.0 On-Behalf-Of (OBO) flow",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Flow where a middleware app exchanges a user's token (requested_token_use=on_behalf_of) for a back-end API token; used here for 'OBO persistence'."
        }
      ],
      "url": "https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow",
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "api:oma-dm",
      "type": "api",
      "name": "OMA-DM / SyncML",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Protocol over which Intune pushes certificate install commands (PFXCertInstall) to enrolled devices."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "api:sts-getcalleridentity",
      "type": "api",
      "name": "sts:GetCallerIdentity",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "Used to confirm the currently assumed role."
        }
      ],
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "api:sts-getsessiontoken",
      "type": "api",
      "name": "sts:GetSessionToken",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "Used to obtain an STS token for IAM user Bob to simulate stolen federated-user credentials."
        }
      ],
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "artifact:aad-configuration-blob",
      "type": "artifact",
      "name": "AAD configuration blob",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Encrypted blob in the ADSync SQL database that formerly contained the plaintext AAD Connector password."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "artifact:amr-claim",
      "type": "artifact",
      "name": "amr claim",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Access token claim; 'pwd' for password logins, '{tap, mfa}' for TAP logins, still present after OBO exchange."
        }
      ],
      "url": "https://www.rfc-editor.org/rfc/rfc8176.html",
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "artifact:attacker-key-credential",
      "type": "artifact",
      "name": "Attacker-added key credential",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Attacker-generated certificate registered on the sync application for persistent off-host access."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "artifact:aws-console-session",
      "type": "artifact",
      "name": "AWS web console session",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "12-hour web-based console session generated from STS credentials with aws_consoler."
        }
      ],
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "artifact:entra-sign-in-logs",
      "type": "artifact",
      "name": "Azure AD sign-in logs",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Show the original IP address for refresh-token requests derived from OBO, making detection difficult."
        }
      ],
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "artifact:ghostwriter-oplog-entry",
      "type": "artifact",
      "name": "Oplog entry",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "Record of an operator action including command, time, operator, user context, hostname, and (for Mythic) output; editable like a spreadsheet cell."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "artifact:ipaddr-claim",
      "type": "artifact",
      "name": "ipaddr claim",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Access token claim that retained the original VPN IP in OBO-refreshed tokens even after disconnecting from the VPN."
        }
      ],
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "artifact:kerberos-tgt",
      "type": "artifact",
      "name": "Kerberos TGT",
      "descriptions": [
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Ticket obtained for the on-premises user via PKINIT using the synced key."
        }
      ],
      "posts": [
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "artifact:pop-assertion",
      "type": "artifact",
      "name": "Proof-of-possession assertion",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Signed assertion proving possession of the existing private key, sufficient for addKey without app roles."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "artifact:primary-refresh-token",
      "type": "artifact",
      "name": "Primary Refresh Token (PRT)",
      "descriptions": [
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Device-bound token obtained after registering a fake device and enriched with an ngcmfa claim to allow WHFB key registration."
        }
      ],
      "posts": [
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "artifact:searchabledevicekey",
      "type": "artifact",
      "name": "searchableDeviceKey",
      "descriptions": [
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Entra user attribute holding registered WHFB/FIDO2 key material."
        }
      ],
      "posts": [
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "artifact:ssm-command-output",
      "type": "artifact",
      "name": "SSM command output",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "Output of SSM commands, e.g. setting the local administrative password on EC2 deployments."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "artifact:whfb-key",
      "type": "artifact",
      "name": "Attacker-registered WHFB key",
      "descriptions": [
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Key pair registered on the Entra user; the private key is later used to request a TGT."
        }
      ],
      "posts": [
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "concept:deny-list-permission-modeling",
      "type": "concept",
      "name": "Deny-list (blacklist) permission modeling",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "Granting a broad policy and then denying dangerous actions, instead of granting only intended permissions."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "concept:direct-permissions",
      "type": "concept",
      "name": "Direct permissions",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Principals that are currently an administrator; the focus of Part 1."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "concept:least-privilege",
      "type": "concept",
      "name": "Least privilege",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "Users and roles should have only the privileges needed for their task; the post recommends bespoke, hand-crafted policies."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "concept:red-team-operation-logging",
      "type": "concept",
      "name": "Red team operation logging",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "Keeping detailed timestamped logs of operator actions to deconflict activity, document findings, and reconstruct attack timelines."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "feature:adminsdholder",
      "type": "feature",
      "name": "AdminSDHolder / SDProp",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-2",
          "text": "AD mechanism that applies a template DACL to protected (adminCount=1) principals and disables their inheritance."
        }
      ],
      "url": "https://learn.microsoft.com/en-us/archive/technet-wiki/22331.adminsdholder-protected-groups-and-security-descriptor-propagator",
      "posts": [
        "entra-connect-attacker-tradecraft-part-2"
      ]
    },
    {
      "id": "feature:aws-permission-boundaries",
      "type": "feature",
      "name": "Permission boundaries",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Considered when producing the RSOP permission matrix."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "feature:aws-session-policies",
      "type": "feature",
      "name": "Session policies",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Policies processed when computing a principal's RSOP."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "feature:family-of-client-ids",
      "type": "feature",
      "name": "Family of Client IDs (FOCI)",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Group of Microsoft clients for which a refresh token can obtain access tokens."
        }
      ],
      "url": "https://github.com/secureworks/family-of-client-ids-research",
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "feature:fido2",
      "type": "feature",
      "name": "FIDO2 keys",
      "descriptions": [
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Alternative key material that the post says would also sync down to msDS-KeyCredentialLink."
        }
      ],
      "posts": [
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "feature:ghostwriter-ajax-ui",
      "type": "feature",
      "name": "Ghostwriter AJAX UI updates",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "More background AJAX requests to reduce page loads and refreshes."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "feature:ghostwriter-oplog-column-selection",
      "type": "feature",
      "name": "Oplog column selection",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "Choose which oplog table columns to display and hide the rest."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "feature:ghostwriter-oplog-copy-entry",
      "type": "feature",
      "name": "Oplog entry copy button",
      "descriptions": [
        {
          "post": "updates-to-ghostwriter-ui-and-operation-logs",
          "text": "Copy button on each row to avoid re-entering repetitive manual entries."
        }
      ],
      "posts": [
        "updates-to-ghostwriter-ui-and-operation-logs"
      ]
    },
    {
      "id": "feature:ngc-crypto-provider-store",
      "type": "feature",
      "name": "NGC Crypto Provider store",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Where the install-time self-signed certificate is saved, potentially TPM-backed."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "feature:password-writeback",
      "type": "feature",
      "name": "Password writeback",
      "descriptions": [
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "When disabled, an Entra password change does not reach AD; the key-sync primitive bypasses this limitation."
        }
      ],
      "posts": [
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "feature:user-consent",
      "type": "feature",
      "name": "User consent to application permissions",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Users consenting to delegated permissions for applications; needed for the middleware app's Graph permissions."
        }
      ],
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "identity:application-administrator",
      "type": "identity",
      "name": "Application Administrator",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Commonly assigned role that can now add credentials to the sync application registration."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "identity:authentication-policy-administrator",
      "type": "identity",
      "name": "Authentication Policy Administrator",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Azure AD role able to enable TAPs for the tenant."
        }
      ],
      "url": "https://learn.microsoft.com/en-us/azure/active-directory/roles/permissions-reference#authentication-policy-administrator",
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "identity:cloud-application-administrator",
      "type": "identity",
      "name": "Cloud Application Administrator",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Commonly assigned role that can now add credentials to the sync application registration."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "identity:device-identity",
      "type": "identity",
      "name": "Device identity",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "A registered Entra device whose certificate the attacker forges to impersonate the device."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "identity:global-administrator",
      "type": "identity",
      "name": "Global Administrator",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Role required to install the agent; previously one of only two viable paths to sync-account compromise."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "identity:hybrid-identity-administrator",
      "type": "identity",
      "name": "Hybrid Identity Administrator",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Role required to install the agent; previously one of only two viable paths to sync-account compromise."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "identity:intune-licensed-user",
      "type": "identity",
      "name": "Intune-licensed user",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "A compromised user with a valid Intune license whose token is needed to recover the device MDM certificate."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "identity:pawuser",
      "type": "identity",
      "name": "pawuser",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Privileged user (e.g. Global Administrator) restricted by conditional access to a Privileged Access Workstation."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "organization:netspi",
      "type": "organization",
      "name": "NetSPI",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "Publisher of the aws_consoler tool."
        }
      ],
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "permission:application-readwrite-all",
      "type": "permission",
      "name": "Application.ReadWrite.All",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Graph app role the sync application does not have, yet is not needed to add a key with a POP assertion."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "permission:application-readwrite-ownedby",
      "type": "permission",
      "name": "Application.ReadWrite.OwnedBy",
      "descriptions": [
        {
          "post": "update-dumping-entra-connect-sync-credentials",
          "text": "Graph app role the documentation lists for addKey, but which is not required when a POP assertion is provided."
        }
      ],
      "posts": [
        "update-dumping-entra-connect-sync-credentials"
      ]
    },
    {
      "id": "permission:aws-administratoraccess",
      "type": "permission",
      "name": "AdministratorAccess",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "AWS managed policy (Allow * on *); equals the Cartesian product of every possible ARN and every possible action, a superset of the RAM."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "permission:aws-amazonec2readonlyaccess",
      "type": "permission",
      "name": "AmazonEC2ReadOnlyAccess",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "More granular AWS managed policy containing only EC2-related read permissions; still AWS-managed and subject to change."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "permission:ec2-detachvolume",
      "type": "permission",
      "name": "ec2:detachvolume",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "EC2 action paired with ec2:stopinstances to exfiltrate an instance's volume."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "permission:iam-updaterolepolicy",
      "type": "permission",
      "name": "iam:updaterolepolicy",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Example of a high-value 'administrator action' the author declines to use as an administrator definition."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "permission:policy-readwrite-authenticationmethod",
      "type": "permission",
      "name": "Policy.ReadWrite.AuthenticationMethod",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Microsoft Graph permission that allows enabling TAPs for the tenant."
        }
      ],
      "url": "https://graphpermissions.merill.net/permission/Policy.ReadWrite.AuthenticationMethod",
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "permission:userauthenticationmethod-readwrite-all",
      "type": "permission",
      "name": "UserAuthenticationMethod.ReadWrite.All",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Microsoft Graph permission that allows adding a TAP to a user."
        }
      ],
      "url": "https://graphpermissions.merill.net/permission/UserAuthenticationMethod.ReadWrite.All",
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "product:adcs",
      "type": "product",
      "name": "Active Directory Certificate Services",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "On-prem CA that Intune Certificate Connector submits CSRs to and receives issued certificates from."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "product:aws-kms",
      "type": "product",
      "name": "AWS KMS",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "Key service; ReadOnlyAccess can decrypt SSM parameters only if they use the default KMS key."
        }
      ],
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "product:aws-organizations",
      "type": "product",
      "name": "AWS Organizations",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Source of Service Control Policies accounted for in RSOP."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "product:intune",
      "type": "product",
      "name": "Microsoft Intune",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "MDM service that issues MDM and PKCS certificates to enrolled devices; user-centric due to licensing."
        }
      ],
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "tool:aws-role-juggler",
      "type": "tool",
      "name": "aws_role_juggler.py",
      "descriptions": [
        {
          "post": "persistent-aws-access-with-role-chain-juggling",
          "text": "Long-running script released by the author that keeps a temporary session alive by juggling roles indefinitely."
        }
      ],
      "url": "https://github.com/hotnops/AWSRoleJuggler/blob/master/aws_role_juggler.py",
      "posts": [
        "persistent-aws-access-with-role-chain-juggling"
      ]
    },
    {
      "id": "tool:mamip",
      "type": "tool",
      "name": "MAMIP",
      "descriptions": [
        {
          "post": "aws-readonlyaccess-not-even-once",
          "text": "Monitor AWS Managed IAM Policies Changes, by z0ph and 0xdabbad00, with a Twitter bot that tweets each AWS managed policy change."
        }
      ],
      "url": "https://github.com/z0ph/MAMIP/",
      "posts": [
        "aws-readonlyaccess-not-even-once"
      ]
    },
    {
      "id": "tool:obo-wash",
      "type": "tool",
      "name": "obo-wash",
      "descriptions": [
        {
          "post": "id-tap-that-pass",
          "text": "Author's scripts for experimenting with the Azure AD on-behalf-of flow."
        }
      ],
      "url": "https://github.com/hotnops/obo-wash",
      "posts": [
        "id-tap-that-pass"
      ]
    },
    {
      "id": "tool:openssl",
      "type": "tool",
      "name": "OpenSSL",
      "descriptions": [
        {
          "post": "attacking-entra-metaverse-part-1",
          "text": "Used to turn the registered key into a self-signed certificate bundled as PKCS12."
        }
      ],
      "posts": [
        "attacking-entra-metaverse-part-1"
      ]
    },
    {
      "id": "tool:syncmlviewer",
      "type": "tool",
      "name": "SyncMLViewer",
      "descriptions": [
        {
          "post": "entra-connect-attacker-tradecraft-part-3",
          "text": "Observes the OMA-DM sessions between Intune and the device to capture the certificate blobs."
        }
      ],
      "url": "https://github.com/okieselbach/SyncMLViewer",
      "posts": [
        "entra-connect-attacker-tradecraft-part-3"
      ]
    },
    {
      "id": "permission:iam-createuserkeys",
      "type": "permission",
      "name": "iam:createuserkeys",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Example of a high-value 'administrator action'."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    },
    {
      "id": "permission:iam-passrole",
      "type": "permission",
      "name": "iam:passrole",
      "descriptions": [
        {
          "post": "an-aws-administrator-identity-crisis-part-1",
          "text": "Example of a high-value 'administrator action'."
        }
      ],
      "posts": [
        "an-aws-administrator-identity-crisis-part-1"
      ]
    }
  ],
  "edges": [
    {
      "from": "identity:sync-account",
      "rel": "part-of",
      "to": "product:entra-connect",
      "evidence": "The sync account for Entra Connect sync is responsible for setting the userCertificate on the device in Entra ID.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "identity:sync-account",
      "rel": "grants",
      "to": "artifact:user-certificate",
      "evidence": "It has the permission to add credentials (userCertificate) to any device in the tenant, even if not in the same domain.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:usercertificate-hijack",
      "rel": "abuses",
      "to": "artifact:user-certificate",
      "evidence": "Controlling the userCertificate property results in obtaining the device certificate for Entra ID.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:usercertificate-hijack",
      "rel": "requires",
      "to": "identity:sync-account",
      "evidence": "We use our compromised sync account to write the self-signed certificate to the device object in Entra ID.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:usercertificate-hijack",
      "rel": "abuses",
      "to": "feature:device-registration",
      "evidence": "The userCertificate enables automation of device registration without user credentials.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:usercertificate-hijack",
      "rel": "yields",
      "to": "artifact:device-certificate",
      "evidence": "We submit a CSR and obtain a new device certificate (signed PFX).",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:usercertificate-hijack",
      "rel": "uses",
      "to": "tool:aadinternals",
      "evidence": "New-AADIntCertificate, Set-AADIntAzureADObject -ObjectType Device, and Join-AADIntDeviceToAzureAD are used.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:usercertificate-hijack",
      "rel": "yields",
      "to": "identity:device-identity",
      "evidence": "We can obtain a device certificate for any device in the tenant, impersonating that device identity.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "artifact:user-certificate",
      "rel": "stores",
      "to": "product:entra-id",
      "evidence": "The userCertificate is exported to the Entra ID connector space on the next sync.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:ca-bypass",
      "rel": "abuses",
      "to": "feature:conditional-access",
      "evidence": "With the ability to modify the userCertificate on the PAW, we can bypass the conditional access policy.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:ca-bypass",
      "rel": "leads-to",
      "to": "technique:usercertificate-hijack",
      "evidence": "The bypass relies on writing the userCertificate and obtaining a new device certificate.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:ca-bypass",
      "rel": "requires",
      "to": "identity:pawuser",
      "evidence": "If we compromise or overwrite credentials of pawuser, we can bypass the policy by forging a device identity.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:ca-bypass",
      "rel": "uses",
      "to": "tool:roadtools",
      "evidence": "roadtx auth / prt / prtauth are used to demonstrate and then bypass the policy.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:ca-bypass",
      "rel": "yields",
      "to": "api:microsoft-graph",
      "evidence": "We now have a valid token for Microsoft Graph by impersonating a device identity.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:intune-cert-abuse",
      "rel": "leads-to",
      "to": "technique:usercertificate-hijack",
      "evidence": "If we can authenticate as any device we can authenticate as a keytrust device and obtain a device certificate.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:intune-cert-abuse",
      "rel": "requires",
      "to": "identity:intune-licensed-user",
      "evidence": "We need to compromise a user with a valid Intune license to obtain the MDM certificate of the device.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:intune-cert-abuse",
      "rel": "abuses",
      "to": "feature:intune-certificate-connector",
      "evidence": "The Intune Certificate Connector can issue certificates for users and devices in keytrust.hotnops.com.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:intune-cert-abuse",
      "rel": "yields",
      "to": "artifact:mdm-certificate",
      "evidence": "Get-MDMRecoveryCert recovers the MDM certificate for the target device.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:intune-cert-abuse",
      "rel": "yields",
      "to": "artifact:pkcs-certificate",
      "evidence": "With the MDM certificate and access token we acquire the PKCS certificates for the device.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:intune-cert-abuse",
      "rel": "abuses",
      "to": "api:oma-dm",
      "evidence": "PKCS certs are pushed as PFXCertInstall items over OMA-DM/SyncML sessions.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:intune-cert-abuse",
      "rel": "uses",
      "to": "tool:aadinternals",
      "evidence": "Get-MDMRecoveryCert is copied from AADInternals with the RequestType changed to Recovery.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:intune-cert-abuse",
      "rel": "uses",
      "to": "tool:syncmlviewer",
      "evidence": "Using SyncMLViewer we can observe the OMA-DM sessions between Intune and the device.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:intune-cert-abuse",
      "rel": "leads-to",
      "to": "technique:esc1",
      "evidence": "They set themselves up for a pretty sweet ESC1 attack in which Intune controls the Subject in issued certificates.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:esc1",
      "rel": "abuses",
      "to": "product:adcs",
      "evidence": "Intune submits a CSR to the ADCS server and receives a response through the Intune Certificate Connector.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "technique:esc1",
      "rel": "targets",
      "to": "product:active-directory",
      "evidence": "This is almost a guarantee of Entra ID to on-premises compromise as Entra ID controls Subject/SAN.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "artifact:syncml-pfxcertblob",
      "rel": "yields",
      "to": "artifact:pkcs-certificate",
      "evidence": "Decrypting PFXCertBlob with the PFXCertPassword yields the legitimate client auth certificate deviceCert.pfx.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "artifact:mdm-certificate",
      "rel": "grants",
      "to": "artifact:syncml-pfxcertblob",
      "evidence": "The PFXCertPassword is encrypted with the MDM certificate recovered in step 4.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "artifact:device-certificate",
      "rel": "yields",
      "to": "artifact:mdm-certificate",
      "evidence": "An access token for Intune and a device certificate is sufficient to obtain an MDM certificate for a device.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "artifact:pkcs-certificate",
      "rel": "uses",
      "to": "tool:rubeus",
      "evidence": "You can use it with Rubeus to obtain a TGT for the device.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "feature:intune-certificate-connector",
      "rel": "part-of",
      "to": "product:intune",
      "evidence": "The Intune Certificate Connector is installed in a domain to issue certificates for Intune.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "feature:device-registration",
      "rel": "part-of",
      "to": "product:entra-id",
      "evidence": "The Device Registration Service registers devices into Entra ID.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "concept:tenant-trust-boundary",
      "rel": "related-to",
      "to": "product:entra-id",
      "evidence": "We can obtain a device certificate for any device in the tenant, reaching separate domains.",
      "post": "entra-connect-attacker-tradecraft-part-3"
    },
    {
      "from": "identity:entra-connect-sync-application",
      "rel": "part-of",
      "to": "product:entra-connect",
      "evidence": "After install, an application registration exists in Entra ID that the sync agent authenticates as.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "feature:app-registration",
      "rel": "part-of",
      "to": "product:entra-id",
      "evidence": "App registrations in Entra ID can authenticate as themselves using the client credentials flow.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "api:graph-application-addkey",
      "rel": "part-of",
      "to": "api:microsoft-graph",
      "evidence": "AddKey posts to the Graph /v1.0/applications(appId=...)/addKey endpoint.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "feature:ngc-crypto-provider-store",
      "rel": "stores",
      "to": "artifact:sync-application-certificate",
      "evidence": "A self-signed certificate is generated on install and saved in the NGC Crypto Provider store.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "artifact:aad-configuration-blob",
      "rel": "related-to",
      "to": "identity:aad-connector-account",
      "evidence": "The plaintext password of the AAD Connector account was in the AAD configuration blob.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-credential-dump",
      "rel": "uses",
      "to": "tool:aadinternals",
      "evidence": "AADInternals Get-AADIntSyncCredentials made it simple to obtain the sync password.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-credential-dump",
      "rel": "requires",
      "to": "identity:adsync-service-account",
      "evidence": "You would need to impersonate the context of the Entra Connect sync (ADSync) account to run the command.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-credential-dump",
      "rel": "targets",
      "to": "identity:aad-connector-account",
      "evidence": "The plaintext password of the AAD Connector account could be obtained and used to authenticate off-host.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-credential-dump",
      "rel": "yields",
      "to": "identity:sync-account",
      "evidence": "With the connector password an attacker could authenticate as the sync account, CAPs permitting.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-credential-dump",
      "rel": "mitigated-by",
      "to": "api:oauth-client-credentials-flow",
      "evidence": "Moving to an app registration with certificate auth means there are no plaintext credentials to dump.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "identity:entra-connect-sync-application",
      "rel": "abuses",
      "to": "api:oauth-client-credentials-flow",
      "evidence": "The new agent authenticates via the client credentials flow with a certificate-signed assertion.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-application-key-addition",
      "rel": "targets",
      "to": "identity:entra-connect-sync-application",
      "evidence": "The goal is to persist access to the compromised AAD connector application by adding our own certificate.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-application-key-addition",
      "rel": "requires",
      "to": "identity:adsync-service-account",
      "evidence": "A .NET assembly performs the necessary steps in the context of the ADSync account on the host.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-application-key-addition",
      "rel": "requires",
      "to": "artifact:sync-application-certificate",
      "evidence": "The cert hash of the existing certificate credential is needed to obtain a Graph token and POP assertion.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-application-key-addition",
      "rel": "abuses",
      "to": "api:graph-application-addkey",
      "evidence": "If you have access to an existing key, you can add your own with no permissions needed.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-application-key-addition",
      "rel": "uses",
      "to": "tool:ecutilities",
      "evidence": "SharpECUtils obtains the token and POP assertion and the AddKey binary registers the new key.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-application-key-addition",
      "rel": "yields",
      "to": "artifact:pop-assertion",
      "evidence": "The certificate is used to obtain a proof of possession assertion proving possession of the private key.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-application-key-addition",
      "rel": "yields",
      "to": "artifact:attacker-key-credential",
      "evidence": "The AddKey binary successfully added our key, giving persistent off-host access to the application registration.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-application-key-addition",
      "rel": "detected-by",
      "to": "artifact:entra-audit-logs",
      "evidence": "A KQL query over AuditLogs for key/password credential changes surfaced all of the author's key additions.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-application-key-addition",
      "rel": "leads-to",
      "to": "technique:sync-credential-dump",
      "evidence": "Red team crisis averted; we can keep our sync tradecraft, albeit a bit more detectable.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "permission:application-readwrite-ownedby",
      "rel": "related-to",
      "to": "api:graph-application-addkey",
      "evidence": "Documentation lists Application.ReadWrite.OwnedBy for addKey, yet the sync application has no app roles and still succeeds.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "permission:application-readwrite-all",
      "rel": "related-to",
      "to": "identity:entra-connect-sync-application",
      "evidence": "The application was not provisioned with Application.ReadWrite.All or Application.ReadWrite.OwnedBy.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "identity:global-administrator",
      "rel": "grants",
      "to": "identity:entra-connect-sync-application",
      "evidence": "The installer uses Global Administrator or Hybrid Identity Administrator credentials to create the application registration.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "identity:hybrid-identity-administrator",
      "rel": "grants",
      "to": "identity:entra-connect-sync-application",
      "evidence": "The installer uses Global Administrator or Hybrid Identity Administrator credentials to create the application registration.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "identity:privileged-authentication-administrator",
      "rel": "related-to",
      "to": "identity:sync-account",
      "evidence": "A privileged auth administrator or higher could change the legacy sync account password, but that broke the sync agent.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-application-credential-addition-by-app-admin",
      "rel": "requires",
      "to": "identity:application-administrator",
      "evidence": "It is far more common to have principals assigned Application/Cloud Application Administrator, making the attack surface larger.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-application-credential-addition-by-app-admin",
      "rel": "requires",
      "to": "identity:cloud-application-administrator",
      "evidence": "It is far more common to have principals assigned Application/Cloud Application Administrator, making the attack surface larger.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-application-credential-addition-by-app-admin",
      "rel": "targets",
      "to": "identity:entra-connect-sync-application",
      "evidence": "The update lets an attacker add credentials without interrupting the normal flow of the sync agent.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "technique:sync-application-credential-addition-by-app-admin",
      "rel": "detected-by",
      "to": "artifact:entra-audit-logs",
      "evidence": "There are still detections for credential manipulation on an application registration.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "feature:conditional-access",
      "rel": "related-to",
      "to": "identity:entra-connect-sync-application",
      "evidence": "Conditional Access typically doesn't affect service principals, so off-target use of the credentials is more likely.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "organization:microsoft",
      "rel": "related-to",
      "to": "product:entra-connect",
      "evidence": "Microsoft changed the way the Entra Connect Sync agent authenticates to Entra ID.",
      "post": "update-dumping-entra-connect-sync-credentials"
    },
    {
      "from": "feature:metaverse",
      "rel": "part-of",
      "to": "product:entra-connect",
      "evidence": "The user representation in the metaverse is called a 'person' within the Entra sync engine.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "feature:connector-space",
      "rel": "part-of",
      "to": "product:entra-connect",
      "evidence": "The connector enumerates LDAP and populates all AD users into the connector space.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "feature:sync-rules",
      "rel": "part-of",
      "to": "product:entra-connect",
      "evidence": "Rules in the Sync Rules Editor define provisioning, scoping, join, and transformations.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "feature:outbound-filtering",
      "rel": "part-of",
      "to": "product:entra-connect",
      "evidence": "CloudFiltered objects are prevented from being provisioned only, AKA Outbound Filtering.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "feature:join-rule-in-from-aad-user-join",
      "rel": "part-of",
      "to": "feature:sync-rules",
      "evidence": "The 'In from AAD - User Join' rule is one of the sync rules examined.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "feature:metaverse",
      "rel": "stores",
      "to": "artifact:cloudfiltered",
      "evidence": "Transformations set cloudFiltered to true on the metaverse person for matching sAMAccountName patterns.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "feature:metaverse",
      "rel": "stores",
      "to": "artifact:source-anchor",
      "evidence": "Transformations set sourceAnchorBinary on the metaverse object from ms-DS-ConsistencyGuid or objectGUID.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "product:active-directory",
      "rel": "related-to",
      "to": "product:entra-id",
      "evidence": "Two on-premises domains sync into one Entra tenant (hotnops.com).",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "product:entra-connect",
      "rel": "related-to",
      "to": "organization:microsoft",
      "evidence": "Entra Connect Sync and its filtering documentation are Microsoft's.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:source-anchor-hijack",
      "rel": "abuses",
      "to": "feature:join-rule-in-from-aad-user-join",
      "evidence": "The join rule ties an Entra user and a metaverse object with the same sourceAnchor together.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:source-anchor-hijack",
      "rel": "abuses",
      "to": "feature:outbound-filtering",
      "evidence": "CloudFiltered users are only blocked from provisioning, leaving partially linked objects in the metaverse to hijack.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:source-anchor-hijack",
      "rel": "abuses",
      "to": "api:provisioning-api",
      "evidence": "Obtain credentials for the ADSync account and use the provisioning API to create the user.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:source-anchor-hijack",
      "rel": "requires",
      "to": "identity:sync-account",
      "evidence": "The attacker takes advantage of the compromised Entra Connect sync account in federated.hotnops.com.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:source-anchor-hijack",
      "rel": "requires",
      "to": "artifact:source-anchor",
      "evidence": "Create a new Entra user with the target's sourceAnchor so it links to the targeted AAD_ account.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:source-anchor-hijack",
      "rel": "targets",
      "to": "identity:aad-connector-account",
      "evidence": "The cloudFiltered AAD_<guid> connector account in hybrid.hotnops.com is the takeover target.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:source-anchor-hijack",
      "rel": "targets",
      "to": "product:active-directory",
      "evidence": "The compromised sync account in federated.hotnops.com is used to take over hybrid.hotnops.com.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:source-anchor-hijack",
      "rel": "uses",
      "to": "tool:aadinternals",
      "evidence": "AADInternals is used to create the Entra account with the chosen sourceAnchor.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:source-anchor-hijack",
      "rel": "uses",
      "to": "tool:ecutilities",
      "evidence": "The author's uuid_to_sourceAnchor.py converts the target UUID to a sourceAnchor.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:source-anchor-hijack",
      "rel": "leads-to",
      "to": "technique:shadow-credentials",
      "evidence": "After the join completes, add an msDS-KeyCredentialLink and elevate using the Shadow Credentials method.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:shadow-credentials",
      "rel": "abuses",
      "to": "artifact:msds-keycredentiallink",
      "evidence": "Add an msDS-KeyCredentialLink to the newly created Entra user to take over the account.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:shadow-credentials",
      "rel": "requires",
      "to": "identity:msol-account",
      "evidence": "The attack works as long as the MSOL account can write the target's msDS-KeyCredentialLink property.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:shadow-credentials",
      "rel": "uses",
      "to": "feature:whfb",
      "evidence": "Registering a WHFB key on the created Entra user yields winhello.key, formatted as a PFX.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:shadow-credentials",
      "rel": "uses",
      "to": "tool:rubeus",
      "evidence": "Rubeus is used with the PFX to obtain a TGT and credentials for the targeted account.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:shadow-credentials",
      "rel": "uses",
      "to": "tool:cobalt-strike",
      "evidence": "The PFX is uploaded to the Beacon in hybrid.hotnops.com, which then holds a token for the targeted account.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:shadow-credentials",
      "rel": "yields",
      "to": "identity:aad-connector-account",
      "evidence": "Your Beacon process now has a token for your targeted account.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "identity:msol-account",
      "rel": "grants",
      "to": "artifact:msds-keycredentiallink",
      "evidence": "The MSOL account is given write-all over users in the Users OU, including msDS-KeyCredentialLink.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "identity:msol-account",
      "rel": "part-of",
      "to": "product:entra-connect",
      "evidence": "When Entra Connect is installed, an AD DS Connector account MSOL_<random> is created with DCSync privileges.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "identity:sync-account",
      "rel": "part-of",
      "to": "product:entra-connect",
      "evidence": "The Entra Connect Sync account authenticates to the provisioning API.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:shadow-credentials",
      "rel": "mitigated-by",
      "to": "feature:adminsdholder",
      "evidence": "Users in protected groups automatically have inheritance disabled, so the MSOL account cannot write to them.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:source-anchor-hijack",
      "rel": "detected-by",
      "to": "artifact:cloudfiltered",
      "evidence": "If any users in the Entra connector space have a metaverse projection with cloudFiltered true, something is wrong.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:source-anchor-hijack",
      "rel": "detected-by",
      "to": "tool:ecutilities",
      "evidence": "An ECUtilities cmdlet lists Entra connector space users whose metaverse projection is cloudFiltered.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "technique:source-anchor-hijack",
      "rel": "mitigated-by",
      "to": "tool:ecutilities",
      "evidence": "ECUtilities cmdlets identify partially synced users and users inheriting DACLs from the Users OU.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "concept:tenant-trust-boundary",
      "rel": "related-to",
      "to": "product:entra-id",
      "evidence": "A sync account in Domain A can take over a user in another domain within the same Entra tenant.",
      "post": "entra-connect-attacker-tradecraft-part-2"
    },
    {
      "from": "feature:metaverse",
      "rel": "part-of",
      "to": "product:entra-connect",
      "evidence": "The metaverse within Entra Connect is a virtual representation of multiple data sources.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "feature:connector-space",
      "rel": "part-of",
      "to": "product:entra-connect",
      "evidence": "Each connected directory has a virtual representation called a connector space.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "feature:sync-rules",
      "rel": "part-of",
      "to": "product:entra-connect",
      "evidence": "The flow of attributes is specified by the Entra Connect rules.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "feature:searchabledevicekey-to-msds-keycredentiallink-flow",
      "rel": "part-of",
      "to": "feature:sync-rules",
      "evidence": "By default there is one and only one attribute written from an Entra user to an AD user: searchableDeviceKey -> msDS-KeyCredentialLink.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "feature:whfb",
      "rel": "part-of",
      "to": "product:entra-id",
      "evidence": "A WHFB key is registered on the Entra user.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "identity:sync-account",
      "rel": "uses",
      "to": "api:provisioning-api",
      "evidence": "A special Entra sync account sends a provisioning message to adminwebservice.onmicrosoft.com to create a new Entra user.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "product:entra-id",
      "rel": "stores",
      "to": "artifact:searchabledevicekey",
      "evidence": "Key material added to an Entra user lands in searchableDeviceKey.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "product:active-directory",
      "rel": "stores",
      "to": "artifact:msds-keycredentiallink",
      "evidence": "The export shows msDS-KeyCredentialLink provisioned to the Active Directory user.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "feature:searchabledevicekey-to-msds-keycredentiallink-flow",
      "rel": "related-to",
      "to": "artifact:msds-keycredentiallink",
      "evidence": "Any WHFB or FIDO2 key added to an Entra user is synced down to the on-premises user's msDS-KeyCredentialLink.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "requires",
      "to": "identity:entra-user",
      "evidence": "We are assuming complete control of an Entra user account, including plaintext password and access to MFA methods.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "abuses",
      "to": "feature:whfb",
      "evidence": "We are going to be registering a WHFB key; a FIDO2 key would also work in theory.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "abuses",
      "to": "feature:searchabledevicekey-to-msds-keycredentiallink-flow",
      "evidence": "The default Entra-to-AD attribute flow carries the key to msDS-KeyCredentialLink.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "abuses",
      "to": "feature:metaverse",
      "evidence": "The delta sync projects the updated property onto the joined user in the metaverse before export to AD.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "abuses",
      "to": "api:device-registration-service",
      "evidence": "A token for the enterprise device registration resource is obtained to register a fake device.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "uses",
      "to": "tool:roadtools",
      "evidence": "roadtx handles device registration, PRT acquisition, PRT enrichment with ngcmfa, and WHFB key registration.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "uses",
      "to": "tool:openssl",
      "evidence": "OpenSSL builds a CSR, self-signs it, and bundles the key into a PFX.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "uses",
      "to": "tool:rubeus",
      "evidence": "The PFX is used with Rubeus asktgt to obtain a TGT for the user.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "yields",
      "to": "artifact:primary-refresh-token",
      "evidence": "Register a new device and obtain a Primary Refresh Token, then enrich it with an MFA claim.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "yields",
      "to": "artifact:whfb-key",
      "evidence": "At this point we have added a WHFB key to the Entra user.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "yields",
      "to": "artifact:kerberos-tgt",
      "evidence": "We obtained a TGT for a user by actions we took on the Entra side.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "yields",
      "to": "identity:on-prem-user",
      "evidence": "Complete control of an Entra user is equal to compromise of the on-premises user.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "targets",
      "to": "product:active-directory",
      "evidence": "The goal is to authenticate as the user on-premises.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "leads-to",
      "to": "technique:shadow-credentials",
      "evidence": "If we can add a public key to msDS-KeyCredentialLink, we can obtain a TGT with the private key, as in Shadow Credentials.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:shadow-credentials",
      "rel": "abuses",
      "to": "artifact:msds-keycredentiallink",
      "evidence": "msDS-KeyCredentialLink has been covered extensively as an abuse primitive known as Shadow Credentials.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "related-to",
      "to": "feature:password-writeback",
      "evidence": "If an attacker can modify an Entra password when password writeback is disabled, this enables on-premises access.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "technique:whfb-key-sync-to-on-prem",
      "rel": "related-to",
      "to": "concept:tenant-trust-boundary",
      "evidence": "The key-adding primitive is the foundation for cross-domain attacks that show the tenant is the trust boundary.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "identity:entra-user",
      "rel": "related-to",
      "to": "identity:on-prem-user",
      "evidence": "The Entra user is joined to the on-premises user in the metaverse.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "tool:aadinternals",
      "rel": "related-to",
      "to": "product:entra-connect",
      "evidence": "Tooling exists to manipulate the syncing mechanic in AADInternals.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "feature:fido2",
      "rel": "related-to",
      "to": "artifact:msds-keycredentiallink",
      "evidence": "Any WHFB or FIDO2 key added to an Entra user will be synced down to msDS-KeyCredentialLink.",
      "post": "attacking-entra-metaverse-part-1"
    },
    {
      "from": "product:aws-iam",
      "rel": "part-of",
      "to": "organization:aws",
      "evidence": "the policy evaluation logic provided by AWS",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "permission:aws-administratoraccess",
      "rel": "grants",
      "to": "concept:ridiculous-administrator-matrix",
      "evidence": "the RAM is a subset of the permission matrix derived from the AdministratorAccess policy",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "concept:ridiculous-administrator-matrix",
      "rel": "related-to",
      "to": "concept:permission-matrix",
      "evidence": "add that action/resource pair to a permission matrix which we will call the Ridiculous Administrator Matrix",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "concept:resultant-set-of-policy",
      "rel": "related-to",
      "to": "concept:permission-matrix",
      "evidence": "a resulting set of policy (RSOP) permission matrix that is a superset of the RAM",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "concept:resultant-set-of-policy",
      "rel": "related-to",
      "to": "feature:aws-service-control-policies",
      "evidence": "all SCPs, conditions, permission boundaries, and session policies have considered",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "concept:resultant-set-of-policy",
      "rel": "related-to",
      "to": "feature:aws-session-policies",
      "evidence": "processSessionPolicy(principal, allowStatements, denyStatement)",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "concept:resultant-set-of-policy",
      "rel": "related-to",
      "to": "feature:aws-permission-boundaries",
      "evidence": "permission boundaries ... considered when producing the permission matrix",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "feature:aws-service-control-policies",
      "rel": "part-of",
      "to": "product:aws-organizations",
      "evidence": "SCPs link to AWS Organizations user guide",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "concept:transitive-rsop",
      "rel": "extends",
      "to": "concept:resultant-set-of-policy",
      "evidence": "TransitiveRSOP(A) = RSOP(a) ∪ RSOP(b) ∪ RSOP(C)",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "permission:sts-assumerole",
      "rel": "part-of",
      "to": "product:aws-sts",
      "evidence": "We will identify sts:AssumeRole as a type of IdentityTransform",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "permission:sts-assumerole",
      "rel": "related-to",
      "to": "concept:identity-transform",
      "evidence": "sts:AssumeRole as a type of IdentityTransform",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "concept:transitive-rsop",
      "rel": "related-to",
      "to": "concept:identity-transform",
      "evidence": "include all permission matrices of all roles that our role can assume",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "concept:indirect-permissions",
      "rel": "related-to",
      "to": "concept:direct-permissions",
      "evidence": "the latter requires some sort of write operation to obtain the necessary privileges",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "permission:iam-updaterolepolicy",
      "rel": "related-to",
      "to": "concept:indirect-permissions",
      "evidence": "flagging admin actions mixes in indirect and direct permissions",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "technique:ec2-stop-and-detach-volume-exfiltration",
      "rel": "requires",
      "to": "permission:ec2-stopinstances",
      "evidence": "define ec2:stopinstances and ec2:detachvolume as their own permission matrix",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "technique:ec2-stop-and-detach-volume-exfiltration",
      "rel": "requires",
      "to": "permission:ec2-detachvolume",
      "evidence": "stopping an instance and detaching the volume so it can be exfiltrated",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "technique:ec2-stop-and-detach-volume-exfiltration",
      "rel": "targets",
      "to": "product:aws-ec2",
      "evidence": "a domain controller running as an EC2 instance",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "permission:ec2-stopinstances",
      "rel": "part-of",
      "to": "product:aws-ec2",
      "evidence": "ec2:stopinstances can only act on ec2:instance resources",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "concept:permission-sets-as-attack-path-destination",
      "rel": "related-to",
      "to": "concept:permission-matrix",
      "evidence": "our permission sets are the destination",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "concept:permission-sets-as-attack-path-destination",
      "rel": "related-to",
      "to": "concept:transitive-rsop",
      "evidence": "isPrincipalWeActuallyCareAbout(principal) = PM0 ⊆ TransitiveRSOP(principal)",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "tool:apeman",
      "rel": "uses",
      "to": "concept:transitive-rsop",
      "evidence": "introducing these concepts to make sense of the implementation, which comes in the form of a tool",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "tool:apeman",
      "rel": "related-to",
      "to": "product:aws-iam",
      "evidence": "the AWS policy evaluation manager (Arsenal link)",
      "post": "an-aws-administrator-identity-crisis-part-1"
    },
    {
      "from": "feature:temporary-access-pass",
      "rel": "part-of",
      "to": "product:entra-id",
      "evidence": "Temporary Access Passes (TAP) are enabled in the Azure AD tenant",
      "post": "id-tap-that-pass"
    },
    {
      "from": "feature:conditional-access",
      "rel": "part-of",
      "to": "product:entra-id",
      "evidence": "MFA requirements implemented in Azure AD conditional access",
      "post": "id-tap-that-pass"
    },
    {
      "from": "api:graph-temporaryaccesspassmethods",
      "rel": "part-of",
      "to": "api:microsoft-graph",
      "evidence": "POST https://graph.microsoft.com/v1.0/users/<user id>/authentication/temporaryAccessPassMethods",
      "post": "id-tap-that-pass"
    },
    {
      "from": "identity:authentication-administrator",
      "rel": "grants",
      "to": "feature:temporary-access-pass",
      "evidence": "to add a TAP to a user, you'll need to be an authentication admin",
      "post": "id-tap-that-pass"
    },
    {
      "from": "identity:privileged-authentication-administrator",
      "rel": "grants",
      "to": "feature:temporary-access-pass",
      "evidence": "OR privileged authentication admin",
      "post": "id-tap-that-pass"
    },
    {
      "from": "permission:userauthenticationmethod-readwrite-all",
      "rel": "grants",
      "to": "feature:temporary-access-pass",
      "evidence": "OR UserAuthenticationMethod.ReadWrite.All",
      "post": "id-tap-that-pass"
    },
    {
      "from": "identity:authentication-policy-administrator",
      "rel": "grants",
      "to": "feature:temporary-access-pass",
      "evidence": "to enable temporary access passes for the tenant: Authentication Policy Administrator",
      "post": "id-tap-that-pass"
    },
    {
      "from": "permission:policy-readwrite-authenticationmethod",
      "rel": "grants",
      "to": "feature:temporary-access-pass",
      "evidence": "enable TAPs: OR Policy.ReadWrite.AuthenticationMethod",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:tap-mfa-bypass",
      "rel": "abuses",
      "to": "feature:temporary-access-pass",
      "evidence": "assign users a short lived password ... that satisfies most multi-factor authentication requirements",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:tap-mfa-bypass",
      "rel": "abuses",
      "to": "api:graph-temporaryaccesspassmethods",
      "evidence": "Invoke-WebRequest ... POST .../authentication/temporaryAccessPassMethods",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:tap-mfa-bypass",
      "rel": "requires",
      "to": "identity:authentication-administrator",
      "evidence": "You have an authentication admin role in Azure AD",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:tap-mfa-bypass",
      "rel": "targets",
      "to": "feature:conditional-access",
      "evidence": "any conditional access policy that requires MFA will be satisfied (except for Passwordless and Phishing Resistant strengths)",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:tap-mfa-bypass",
      "rel": "uses",
      "to": "tool:aadinternals",
      "evidence": "$token = Get-AADIntAccessTokenForMSGraph # Enter TAP when prompted",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:tap-mfa-bypass",
      "rel": "yields",
      "to": "artifact:refresh-token",
      "evidence": "You now have a refresh token ... that refresh token will expire when the TAP expires, at most eight hours",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:tap-mfa-bypass",
      "rel": "yields",
      "to": "artifact:amr-claim",
      "evidence": "amr : {tap, mfa}",
      "post": "id-tap-that-pass"
    },
    {
      "from": "artifact:refresh-token",
      "rel": "grants",
      "to": "feature:family-of-client-ids",
      "evidence": "refresh token for which you can obtain access tokens for other clients within the same family of client ID's (FOCI)",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:tap-mfa-bypass",
      "rel": "leads-to",
      "to": "technique:obo-persistence",
      "evidence": "persist access with a TAP via the on-behalf-of flow",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:obo-persistence",
      "rel": "abuses",
      "to": "api:oauth-on-behalf-of",
      "evidence": "payload needs requested_token_use set to on_behalf_of",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:obo-persistence",
      "rel": "requires",
      "to": "feature:app-registration",
      "evidence": "First, we will need to register a new Azure AD application ... act as the middleware",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:obo-persistence",
      "rel": "requires",
      "to": "feature:user-consent",
      "evidence": "we will need to consent to the graph API permissions",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:obo-persistence",
      "rel": "targets",
      "to": "api:microsoft-graph",
      "evidence": "the back-end API, which will be Microsoft Graph",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:obo-persistence",
      "rel": "yields",
      "to": "artifact:refresh-token",
      "evidence": "I just got a valid access token from a refresh token obtained from a temporary access password that has been deleted",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:obo-persistence",
      "rel": "targets",
      "to": "feature:conditional-access",
      "evidence": "subverting the location based conditional access policy",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:obo-persistence",
      "rel": "abuses",
      "to": "artifact:ipaddr-claim",
      "evidence": "The ipaddr claim was still the VPN IP address to which I was no longer connected",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:obo-persistence",
      "rel": "uses",
      "to": "tool:obo-wash",
      "evidence": "I uploaded some scripts here: github.com/hotnops/obo-wash",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:obo-persistence",
      "rel": "uses",
      "to": "tool:aadinternals",
      "evidence": "Get-AADIntAccessToken -ClientId <middleware> -Resource <middleware> -UseDeviceCode",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:tap-mfa-bypass",
      "rel": "detected-by",
      "to": "artifact:entra-audit-logs",
      "evidence": "ResultReason -like 'Admin registered temporary access pass method for user'",
      "post": "id-tap-that-pass"
    },
    {
      "from": "technique:obo-persistence",
      "rel": "detected-by",
      "to": "artifact:entra-audit-logs",
      "evidence": "alert for activity type 'Add service principal' ... filter on 'Add delegated permission grant'",
      "post": "id-tap-that-pass"
    },
    {
      "from": "artifact:entra-sign-in-logs",
      "rel": "related-to",
      "to": "technique:obo-persistence",
      "evidence": "new refresh tokens will show the original IP address in the sign in logs, making detection particularly difficult",
      "post": "id-tap-that-pass"
    },
    {
      "from": "tool:roadtools",
      "rel": "related-to",
      "to": "feature:conditional-access",
      "evidence": "Conditional Access Policies for Tap Test User Courtesy of RoadRecon",
      "post": "id-tap-that-pass"
    },
    {
      "from": "organization:microsoft",
      "rel": "related-to",
      "to": "technique:obo-persistence",
      "evidence": "As of 3/24/2023, Microsoft has fixed the issue of refresh tokens remaining valid after a TAP has expired",
      "post": "id-tap-that-pass"
    },
    {
      "from": "organization:aws",
      "rel": "related-to",
      "to": "permission:aws-readonlyaccess",
      "evidence": "AWS updates their ReadOnlyAccess policy ... without warning or even accepting an update",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "permission:aws-readonlyaccess",
      "rel": "grants",
      "to": "permission:config-selectresourceconfig",
      "evidence": "As of the policy version 78, the ReadOnlyAccess policy also grants awsconfig permissions ... config:SelectResourceConfig",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "permission:config-selectresourceconfig",
      "rel": "part-of",
      "to": "product:aws-config",
      "evidence": "awsconfig permissions ... config:SelectResourceConfig action",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "permission:aws-readonlyaccess",
      "rel": "grants",
      "to": "permission:ssm-describeparameters",
      "evidence": "ReadOnlyAccess policy allows ssm:Get*, ssm:Describe*, ssm:List*. This includes ... ssm:DescribeParameters",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "permission:aws-readonlyaccess",
      "rel": "grants",
      "to": "permission:ssm-getcommandinvocation",
      "evidence": "let's not forget about ssm:GetCommandInvocation, which allows the caller to view the output of SSM commands",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "permission:ssm-describeparameters",
      "rel": "part-of",
      "to": "product:aws-systems-manager",
      "evidence": "AWS Systems Manager (SSM) permissions ... ssm:DescribeParameters",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "permission:ssm-getcommandinvocation",
      "rel": "part-of",
      "to": "product:aws-systems-manager",
      "evidence": "ssm:GetCommandInvocation ... view the output of SSM commands",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "feature:ssm-parameter-store",
      "rel": "part-of",
      "to": "product:aws-systems-manager",
      "evidence": "What are SSM parameters? ... where AWS recommends you store your sensitive variables",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "feature:ssm-parameter-store",
      "rel": "stores",
      "to": "artifact:ssm-parameters",
      "evidence": "where AWS recommends you store your sensitive variables, like application secrets",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "identity:cloudgeneral-role",
      "rel": "grants",
      "to": "permission:aws-readonlyaccess",
      "evidence": "the organization gave the CloudGeneral role the AWS managed ReadOnlyAccess policy",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "identity:cloudgeneral-role",
      "rel": "grants",
      "to": "permission:iam-deny-all-inline-policy",
      "evidence": "the cloud engineering team adds an inline policy to the CloudGeneral role to explicitly deny access to anything IAM",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "technique:aws-config-iam-deny-bypass",
      "rel": "abuses",
      "to": "permission:config-selectresourceconfig",
      "evidence": "Using this permission, we can query the configuration state and attached document of any entity in the account",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "technique:aws-config-iam-deny-bypass",
      "rel": "requires",
      "to": "permission:aws-readonlyaccess",
      "evidence": "ReadOnlyAccess ... grants awsconfig permissions, which means it's granted to the CloudGeneral role",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "technique:aws-config-iam-deny-bypass",
      "rel": "targets",
      "to": "product:aws-iam",
      "evidence": "CloudGeneral shouldn't have access to list policies, but can through aws:config",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "technique:aws-config-iam-deny-bypass",
      "rel": "abuses",
      "to": "permission:iam-deny-all-inline-policy",
      "evidence": "effectively bypassing the IAM deny rule",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "technique:aws-config-iam-deny-bypass",
      "rel": "targets",
      "to": "product:aws-config",
      "evidence": "config isn't enabled by default, but we've seen it used in multiple environments",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "technique:ssm-secret-access-via-readonlyaccess",
      "rel": "abuses",
      "to": "permission:ssm-describeparameters",
      "evidence": "use the AWS Systems Manager (SSM...) permissions to elevate our privileges ... includes fun things like ssm:DescribeParameters",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "technique:ssm-secret-access-via-readonlyaccess",
      "rel": "abuses",
      "to": "permission:ssm-getcommandinvocation",
      "evidence": "ssm:GetCommandInvocation, which allows the caller to view the output of SSM commands",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "technique:ssm-secret-access-via-readonlyaccess",
      "rel": "requires",
      "to": "permission:aws-readonlyaccess",
      "evidence": "ReadOnlyAccess policy allows ssm:Get*, ssm:Describe*, ssm:List*",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "technique:ssm-secret-access-via-readonlyaccess",
      "rel": "yields",
      "to": "artifact:ssm-parameters",
      "evidence": "CloudGeneral can decrypt SSM parameters even though KMS decrypt is not granted",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "technique:ssm-secret-access-via-readonlyaccess",
      "rel": "yields",
      "to": "artifact:ssm-command-output",
      "evidence": "view the output of SSM commands, like say, setting the local administrative password on EC2 deployments",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "technique:ssm-secret-access-via-readonlyaccess",
      "rel": "requires",
      "to": "product:aws-kms",
      "evidence": "SSM parameter decrypt will only work if it's encrypted with the default KMS key",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "permission:iam-deny-all-inline-policy",
      "rel": "related-to",
      "to": "concept:deny-list-permission-modeling",
      "evidence": "they are now starting to treat access as a \"blacklist\", where they remove the dangerous actions",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "technique:aws-config-iam-deny-bypass",
      "rel": "mitigated-by",
      "to": "concept:least-privilege",
      "evidence": "You are likely better off making bespoke policies that grant the exact permissions you need",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "technique:aws-config-iam-deny-bypass",
      "rel": "mitigated-by",
      "to": "permission:aws-amazonec2readonlyaccess",
      "evidence": "There are more granular policies, for example, AmazonEC2ReadOnlyAccess, which is only the EC2 related permissions",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "tool:mamip",
      "rel": "related-to",
      "to": "permission:aws-readonlyaccess",
      "evidence": "a really nifty twitter bot that shoots out a tweet every time an AWS managed policy is changed",
      "post": "aws-readonlyaccess-not-even-once"
    },
    {
      "from": "feature:ghostwriter-operation-logs",
      "rel": "part-of",
      "to": "tool:ghostwriter",
      "evidence": "Operation Logging (Oplog) for Ghostwriter",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "api:ghostwriter-oplog-rest-api",
      "rel": "part-of",
      "to": "feature:ghostwriter-operation-logs",
      "evidence": "Ghostwriter operational logging has a rudimentary REST API that allows external entities to create, update, and delete oplog entries.",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "feature:ghostwriter-websockets",
      "rel": "part-of",
      "to": "tool:ghostwriter",
      "evidence": "we have also added support for WebSockets ... real-time toast notifications and page updates",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "feature:ghostwriter-ajax-ui",
      "rel": "part-of",
      "to": "tool:ghostwriter",
      "evidence": "Ghostwriter now uses more AJAX requests to submit requests in the background and reduce page loads and refreshes.",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "feature:ghostwriter-operation-logs",
      "rel": "uses",
      "to": "feature:ghostwriter-websockets",
      "evidence": "The oplog page uses websockets and async.io on the back end, so changes are immediately pushed to all those who are viewing the oplog.",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "feature:ghostwriter-oplog-csv-import-export",
      "rel": "part-of",
      "to": "feature:ghostwriter-operation-logs",
      "evidence": "Ghostwriter can import/export CSV files for operation logging.",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "feature:ghostwriter-oplog-copy-entry",
      "rel": "part-of",
      "to": "feature:ghostwriter-operation-logs",
      "evidence": "Ghostwriter has a copy button at the very right of the row.",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "feature:ghostwriter-oplog-column-selection",
      "rel": "part-of",
      "to": "feature:ghostwriter-operation-logs",
      "evidence": "you can select the columns which you want to display and hide all the rest",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "feature:ghostwriter-operation-logs",
      "rel": "stores",
      "to": "artifact:ghostwriter-oplog-entry",
      "evidence": "the command, time, operator, user context, and hostname are all immediately logged and displayed on the oplog page",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "feature:ghostwriter-oplog-csv-import-export",
      "rel": "uses",
      "to": "artifact:oplog-csv-file",
      "evidence": "Simply upload a CSV to import commands that were logged to a CSV file.",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "tool:cobalt-strike",
      "rel": "uses",
      "to": "api:ghostwriter-oplog-rest-api",
      "evidence": "This allows C2 frameworks like CobaltStrike and Mythic to seamlessly integrate",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "tool:mythic",
      "rel": "uses",
      "to": "api:ghostwriter-oplog-rest-api",
      "evidence": "This allows C2 frameworks like CobaltStrike and Mythic to seamlessly integrate",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "tool:mythic-sync",
      "rel": "extends",
      "to": "tool:mythic",
      "evidence": "An entry being auto-populated from the mythic sync utility",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "tool:mythic-sync",
      "rel": "uses",
      "to": "feature:ghostwriter-operation-logs",
      "evidence": "An entry being auto-populated from the mythic sync utility",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "tool:ghostwriter-cobalt-strike-aggressor-script",
      "rel": "extends",
      "to": "tool:cobalt-strike",
      "evidence": "we have an aggressor script that will log each command to a properly formatted CSV file",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "tool:ghostwriter-cobalt-strike-aggressor-script",
      "rel": "yields",
      "to": "artifact:oplog-csv-file",
      "evidence": "log each command to a properly formatted CSV file that can then be imported into Ghostwriter at the end of the engagement",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "feature:ghostwriter-operation-logs",
      "rel": "related-to",
      "to": "concept:red-team-operation-logging",
      "evidence": "We refer to this as operation logging or 'oplog' for short.",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "feature:ghostwriter-operation-logs",
      "rel": "related-to",
      "to": "concept:manual-oplog-spreadsheet",
      "evidence": "this completely manual approach of a shared oplog sheet is tedious to maintain and error prone",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "organization:specterops",
      "rel": "uses",
      "to": "concept:manual-oplog-spreadsheet",
      "evidence": "At SpecterOps, we've historically aggregated any operator activity ... into a web-based internally hosted spreadsheet.",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "organization:specterops",
      "rel": "related-to",
      "to": "tool:ghostwriter",
      "evidence": "a few of us at SpecterOps have focused on updating Ghostwriter",
      "post": "updates-to-ghostwriter-ui-and-operation-logs"
    },
    {
      "from": "technique:role-chain-juggling",
      "rel": "abuses",
      "to": "api:sts-assumerole",
      "evidence": "Does the expiration date get refreshed on every AssumeRole API call?",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "technique:role-chain-juggling",
      "rel": "requires",
      "to": "concept:circular-role-trust",
      "evidence": "The one major assumption for this technique of persistent access is that two roles trust each other",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "technique:role-chain-juggling",
      "rel": "requires",
      "to": "artifact:aws-session-credentials",
      "evidence": "a role assumed with temporary credentials can be preserved indefinitely",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "technique:role-chain-juggling",
      "rel": "yields",
      "to": "artifact:aws-session-credentials",
      "evidence": "Our expiration date is now 15:58:11 instead of 15:49:22",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "technique:role-chain-juggling",
      "rel": "extends",
      "to": "technique:role-chaining",
      "evidence": "what are the consequences of two roles that can assume each other?",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "technique:role-chain-juggling",
      "rel": "abuses",
      "to": "feature:iam-role-trust-policy",
      "evidence": "I created two roles and ensured that their trust policies included each other",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "technique:role-chain-juggling",
      "rel": "targets",
      "to": "product:aws-sts",
      "evidence": "keep a persistent session in AWS with proper role trust relationships",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "technique:role-chain-juggling",
      "rel": "uses",
      "to": "tool:aws-role-juggler",
      "evidence": "aws_role_juggler.py ... will keep your temporary session alive by juggling roles indefinitely",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "technique:role-chaining",
      "rel": "abuses",
      "to": "api:sts-assumerole",
      "evidence": "aws sts assume-role --role-arn ...BuildRole",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "technique:role-chaining",
      "rel": "requires",
      "to": "feature:iam-role-trust-policy",
      "evidence": "As long as trust policies permit, roles can be chained an arbitrary number of times",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "technique:sts-credential-theft-from-public-log",
      "rel": "yields",
      "to": "artifact:aws-session-credentials",
      "evidence": "STS credentials for federated users that were being written to a publicly accessible log",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "technique:sts-credential-theft-from-public-log",
      "rel": "leads-to",
      "to": "technique:role-chain-juggling",
      "evidence": "We began to brainstorm on how to keep access given only temporary STS credentials",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "technique:sts-credential-theft-from-public-log",
      "rel": "uses",
      "to": "tool:aws-consoler",
      "evidence": "we would use the aws_consoler tool to generate a web-based console session",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "tool:aws-consoler",
      "rel": "related-to",
      "to": "artifact:aws-console-session",
      "evidence": "generate a web-based console session, which in turn, gave us a 12 hour session",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "tool:aws-consoler",
      "rel": "related-to",
      "to": "organization:netspi",
      "evidence": "GitHub - NetSPI/aws_consoler",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "product:aws-sts",
      "rel": "related-to",
      "to": "artifact:aws-session-credentials",
      "evidence": "AccessKeyId starts with ASIA. This indicates that the key is a temporary credential using the STS service",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "api:sts-assumerole",
      "rel": "part-of",
      "to": "product:aws-sts",
      "evidence": "aws sts assume-role",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "api:sts-getsessiontoken",
      "rel": "part-of",
      "to": "product:aws-sts",
      "evidence": "aws sts get-session-token --duration-seconds 3600",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "api:sts-getcalleridentity",
      "rel": "part-of",
      "to": "product:aws-sts",
      "evidence": "aws sts get-caller-identity",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "feature:iam-role-trust-policy",
      "rel": "part-of",
      "to": "product:aws-iam",
      "evidence": "aws iam create-role ... --assume-role-policy-document",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "concept:circular-role-trust",
      "rel": "detected-by",
      "to": "tool:find-circular-trust",
      "evidence": "find_circular_trust.py to detect circular trust relationships in AWS environments",
      "post": "persistent-aws-access-with-role-chain-juggling"
    },
    {
      "from": "technique:role-chain-juggling",
      "rel": "detected-by",
      "to": "tool:find-circular-trust",
      "evidence": "To help find this issue, I'm releasing a python script find_circular_trust.py",
      "post": "persistent-aws-access-with-role-chain-juggling"
    }
  ]
}