# hotnops > 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. Every post has an agent brief (summary, key findings, attack paths, detections, mitigations, vendor status) extracted from the post text, plus the full text as markdown. The briefs are linked into one knowledge graph: entities (products, features, techniques, tools, identities, permissions, APIs, artifacts) are shared across posts by stable id, and every edge cites the post and evidence it came from. - Start with a post's `.md` for one topic, or `graph.json` to reason across posts. - MITRE ATT&CK ids marked `inferred` were mapped by the extractor, not stated by the author. - Cite posts by their URL on this site. ## Posts - [Entra Connect Attacker Tradecraft: Part 3](https://blog.hotnops.dev/posts/entra-connect-attacker-tradecraft-part-3.md): 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. - [Update: Dumping Entra Connect Sync Credentials](https://blog.hotnops.dev/posts/update-dumping-entra-connect-sync-credentials.md): 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. - [Entra Connect Attacker Tradecraft: Part 2](https://blog.hotnops.dev/posts/entra-connect-attacker-tradecraft-part-2.md): 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. - [Attacking Entra Metaverse: Part 1](https://blog.hotnops.dev/posts/attacking-entra-metaverse-part-1.md): 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. - [An AWS Administrator Identity Crisis: Part 1](https://blog.hotnops.dev/posts/an-aws-administrator-identity-crisis-part-1.md): 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. - [I'd TAP That Pass](https://blog.hotnops.dev/posts/id-tap-that-pass.md): 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. - [AWS ReadOnlyAccess: Not Even Once](https://blog.hotnops.dev/posts/aws-readonlyaccess-not-even-once.md): 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. - [Updates to Ghostwriter: UI and Operation Logs](https://blog.hotnops.dev/posts/updates-to-ghostwriter-ui-and-operation-logs.md): 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. - [Persistent AWS access with role chain juggling](https://blog.hotnops.dev/posts/persistent-aws-access-with-role-chain-juggling.md): 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. ## Knowledge graph - [graph.json](https://blog.hotnops.dev/graph.json): posts with briefs, 168 entities, 246 evidence-backed edges - [graph.jsonld](https://blog.hotnops.dev/graph.jsonld): the same graph as schema.org JSON-LD ## Vocabulary Entity ids are ":". Types: product, feature, technique, tool, identity, permission, api, artifact, concept, organization. Edge predicates: - targets: technique → the product or identity it attacks - abuses: technique → the feature, permission, or API it misuses - requires: technique → a prerequisite permission or identity - yields: technique → what the attacker gains (artifact, identity, permission) - leads-to: technique → a follow-on technique - uses: technique → tool used - part-of: feature/API → its product - grants: identity/permission → the permission or capability it confers - stores: product/feature → an artifact it holds - detected-by: technique → a log source or tool that detects it - mitigated-by: technique → a control that mitigates it - extends: tool → tool it builds on - related-to: generic association ## Optional - [llms-full.txt](https://blog.hotnops.dev/llms-full.txt): every post, brief + full text, in one file - [rss](https://blog.hotnops.dev/rss.xml)