Skip to content

adPEAS v2.13.0

Choose a tag to compare

@61106960 61106960 released this 29 Nov 07:58
· 11 commits to main since this release

Download

Pick one of the five assets below - all are functionally identical, and all carry
version 2.13.0. You do not need "Source code (zip)" to run adPEAS.

Asset Use case
adPEAS_obf.ps1 smallest, obfuscated for transfer
adPEAS_ultra.ps1 minimal size, no comments
adPEAS_min.ps1 regular use, smaller footprint
adPEAS.ps1 development, debugging, code review
adPEAS.exe a PowerShell prompt with adPEAS loaded, or adPEAS.exe Invoke-adPEAS ...; needs Windows PowerShell 5.1

Added

  • TGT delegation across a trust is reported. Get-DomainTrusts writes tgtDelegation on
    every trust another forest or domain extends to this one, where the setting has an effect
    (inbound or bidirectional, outside the forest, not quarantined). With
    CROSS_ORGANIZATION_ENABLE_TGT_DELEGATION (netdom /EnableTGTDelegation:Yes) a user of this
    domain hands a usable TGT to every host with unconstrained delegation on the other side - a
    finding with its own write-up, TRUST_TGT_DELEGATION_ENABLED.
  • ESC13 finds writable issuance policies. ESC5 reads each issuance policy object - an ACE on
    one policy, an inherit-only ACE of the OID container and the owner of a policy, none of which
    the container's ACL shows. Whoever may write msDS-OIDToGroupLink, msPKI-Cert-Template-OID or
    a template's msPKI-Certificate-Policy can link a policy to a group; the template is ESC13 then,
    with an IssuancePolicyWriters row.
  • ESC3 covers schema version 1 targets and Any Purpose agents. A certificate with the Any
    Purpose EKU, or none, co-signs as an enrollment agent, and a version 1 template accepts any
    agent's request. Where a non-privileged principal can obtain an agent certificate, every
    version 1 template that can log on and is open to non-privileged enrollment is an ESC3 target.
  • A check that cannot finish says where it failed: its error line ends in the function and
    line that raised the error, [at ConvertFrom-LDAPAttribute, adPEAS.ps1:41482] - the file name
    only, since reports are shared.
  • Item-level targeting of a scheduled task is shown (itemTargeting): one line per
    condition with its AND/OR and NOT. Not evaluated - whether a computer matches is decided on the
    computer - and the texts say "the computers in scope its item-level targeting selects".
  • Get-GPOLogonRestrictions counts the member computers a conclusion holds for: "Domain
    Admins are denied the local logon on member computers" is Secure only where the policies reach
    every enabled member computer - a domain link all of them, an OU that blocks inheritance stops a
    link that is not enforced. Otherwise a hint with the count, and a note on the rest.
  • Get-LAPSCredentialAccess reads the DSRM password Windows LAPS backs up on a domain
    controller (msLAPS-EncryptedDSRMPassword), and its history.
  • Get-DomainInformation lists read-only domain controllers, marked as such, and decodes the
    trust attributes 0x100, 0x800 and 0x1000; a reserved bit is named by its value.
  • The credential search knows more languages. "wachtwoord", "mot de passe", "contrasena",
    "senha", "haslo", "losenord", "adgangskode", "salasana" and "heslo" with a value are found in
    descriptions and deleted objects. Get-CredentialExposure reads JScript and Windows Script File
    logon scripts (*.js, *.wsf) in SYSVOL and NETLOGON.
  • Invoke-ShareHunt counts the active computers that do not run Windows - a Samba server, a
    NAS - in a note (ComputersNotWindows in the export), and says when the session's credential
    reached LDAP only: without a Kerberos session the shares are read as the Windows account adPEAS
    runs as.
  • New cards of their own: orphaned adminCount=1 accounts (OrphanedAdminCount), the
    privileged accounts that hand their TGT to hosts with unconstrained delegation
    (DelegationExposedAccount), explicit permissions on computer objects (ComputerObjectACL),
    one object per read-only domain controller in Get-RODCPasswordReplication, and the domain
    accounts of SQL Server, SCCM and SCOM as objects with the hosts their SPNs name.

Changed

  • Every card has one headline as heavy as its heaviest object. In the HTML report the line
    above a card's first object is its headline and the lines before it are fine print. Across all
    checks, what was not read or not listed now stands above the headline, the headline counts the
    objects under it, and no line stands between or after them; a second topic under the same
    sub-header is a card of its own with its own title and help.
  • The severity order is Finding > Hint > Secure > Note everywhere: a card that holds one
    yellow item is yellow, where one secure line used to turn a card of hints blue.
  • A finding a check rates down stays down. Where a check knows a finding is only a hint here -
    no issuer trusted for authentication, a machine inside its ESU window, an expected PKI holder,
    a dormant policy - the rows of that object are no longer coloured red under a yellow headline.
  • Severities that now follow from the state they rate:
    • SMB server signing Disabled and Optional mean the same to SMB2 and SMB3: a hint on the
      row of a policy, a finding where they are in force on the domain controllers or weaken
      signing where they win.
    • LDAP signing and channel binding that no policy sets on the domain controllers are a finding:
      they keep the OS default, which before Windows Server 2025 requires neither. On the row of a
      single policy, "Not Configured" stays a hint.
    • A two-way trust inside the forest is no TRUST_BIDIRECTIONAL finding; parent-child and
      tree-root trusts are two-way by design.
    • A password reset delegation that reaches no privileged account is a hint
      (-IncludeAllOUs reads the privileged accounts to tell the two apart).
    • Write access to msDS-AllowedToDelegateTo alone is a hint: the domain controller accepts it
      only from a holder of SeEnableDelegationPrivilege.
    • The relay Exchange setup grants Authenticated Users on Default, Client Frontend and Client
      Proxy is a note - it is how mail clients submit.
    • A read-only domain controller whose machine password is not rotated is a hint of its own,
      not a DCSync credential.
    • A privileged account that requires a smart card is graded by the age of its password: its NT
      hash rolls only when the password expires.
    • A disabled Tier-0 account outside Protected Users is a hint of its own, outside the coverage.
    • A password policy card takes the colour of its worst row; a lockout threshold above 10 has a
      yellow row, and a fine-grained policy with such a row is listed "with a setting to review".
    • A broad group that may enroll is red only beside a red ESC row of the same template.
    • Group Policy Creator Owners is no longer expected on a GPO; IIS_IUSRS on
      SeImpersonatePrivilege is accepted on member servers; the default members of BUILTIN\Users
      count as covered where the default names Users.
    • A local group item that only removes members, and a local group replaced by Tier 0 principals
      only, are notes; a scheduled task registered disabled is a note that says what it would do.
    • A Windows LAPS policy that backs the password up to Entra ID is a hint, not "completely
      non-functional", where Active Directory has no LAPS schema.
    • isTreatAsExternal is a finding only where it weakens SID filtering - a forest trust this
      domain extends.
    • A member of an operator group with reversible encryption is named with its operator group,
      not under the card that calls the credential worth the domain.
  • Invoke-adPEAS -InactiveDays reaches the checks it is documented for:
    Get-InactiveAdminAccounts and Get-OutdatedComputers measure against it - 90 days by default.
  • ESC13 needs a logon EKU. The group's SID reaches a ticket only through a PKINIT logon, and
    the KDC refuses a certificate without an authentication EKU (measured).
  • ESC4 rests on a writer the scope does not expect. With -IncludePrivileged the expected
    writers are listed as hints, and a template with no other writer is counted apart.
  • Get-SCOMInfrastructure lists management servers only: a computer with the Health Service
    SPN alone is an agent and counted.

Fixed

  • Checks stopped on any object with a sIDHistory value with "A parameter cannot be found
    that matches parameter name 'SIDBytes'" (#17). The collector's Convert-SidToString replaced
    the attribute conversion's helper in the single-file build, since v2.5.0;
    Get-SIDHistoryInjection failed exactly when it had something to report.
  • A read that failed was reported as absent or clean. Across more than twenty checks an empty
    or failed read closed on a Secure verdict or "not found": owners, PKI containers and templates,
    certificate mappings, gMSA membership, RODC lists, SCCM, Exchange servers and connectors, RBAC
    links, AD FS, the Guest account and sites, credential roaming, Unix passwords, privileged group
    members, BitLocker escrow and more. Each now says what was not read and gives no clean verdict
    over it; a SYSVOL folder that could not be read is named on every path, not only when nothing
    was found.
  • An inherited Deny cancelled any inherited Allow. Windows evaluates a DACL in order, and an
    Allow the parent OU passes down precedes a Deny of the domain root. Delegations of that shape
    were dropped. The note on cancelled delegations counts only what would have been reported, and
    an inherited pair once.
  • A trusted forest's Domain Admins counted as this forest's. A well-known RID made a principal
    privileged whatever domain issued it; the forest's domain SIDs are asked of the Global Catalog.
  • A name was resolved on the scan host first: a bare "Administrator" in a task or user right
    became the scan host's own account. Only well-known SIDs are taken from the host now.
  • A folder name with brackets was read as a wildcard in the SYSVOL cache, the credential scan
    and -Path mode, and the files beside the subfolders of scripts\ were never listed. A UTF-8
    file without a byte order mark decoded as ANSI on Windows PowerShell 5.1.
  • A GPO whose computer configuration is disabled won the per-setting contest for LDAP and SMB
    signing and the Kerberos policy; a policy overridden everywhere was listed as weakening SMB
    signing; a policy on one OU hid what the other member computers get.
  • A site link counted as reaching member computers only, so a site policy that denies Domain
    Admins the logon locked them out of the domain controllers in that site unnoticed.
  • Members by the primary group of a nested group were missed in five places, and Protected
    Users status never saw a domain controller, a gMSA or such a member of a Tier-0 group.
  • Owners of managed service accounts were not read; Get-NonDefaultComputerOwners reads them
    now. The owner of the CA object is checked like an ACE holder. A non-default owner whose object
    could not be read back is named instead of dropped.
  • A computer or a DN containing "OU=Microsoft Exchange Security Groups" passed as an expected
    member of an Exchange group
    , so a computer account created under the machine account quota in
    Exchange Windows Permissions stayed yellow.
  • Rights that grant control were missed: WriteProperty through the User-Account-Restrictions
    property set (RBCD onto a computer), WriteDacl and WriteOwner on CN=Deleted Objects,
    CreateChild on the domain object, CreateChild for Authenticated Users on the computer container,
    and the domain controllers as targets of an altSecurityIdentities write.
  • Rights that grant nothing were reported: an autoenrollment right alone, Self and the
    extended rights on a GPO (the DANGEROUS_ACL_GPO_EXTENDED card is removed), a variable or
    Read-Host as the value of a password assignment, and a command line that only deletes in a
    directory every user may write.
  • Scripts and tasks were judged at the wrong file: a script run from a share or NETLOGON was
    taken for one inside the policy store; a group as the principal of a task counted as a
    privileged account; LOCAL SERVICE and NETWORK SERVICE were called SYSTEM.
  • Counts and names: a LAPS password readable through two generations counted twice; the
    forest root was named as the parent of every domain; a CA object without a DNS host name was a
    bare line; an escaped comma cut OU and policy target names; NET USE in upper case went unseen;
    "Password: see KeePass" was a finding and "Password never expires" a mention; any account named
    HealthMailbox was left out of the owner check.
  • Get-KerberoastableAccounts skipped hash extraction on a session of the logged-on Windows
    user.
  • Rows on real findings rendered grey where a check did not set the property their colour
    comes from - LAPS reads, OU and password reset delegations, BitLocker and credential roaming
    reads, AdminSDHolder and CA objects.
  • Help and card texts described checks that do not exist: ESC2, ESC14 under Full Enforcement,
    standalone CAs, client LDAP signing, "weaker than the domain default" for fine-grained policies,
    and fifteen switches Get-Help did not list.

Removed

  • Get-DangerousOUPermissions -CheckType LAPS: it dropped every LAPS finding and called the OUs
    clean. Get-LAPSPermissions reports those rights.