SharpHoundCommon icon indicating copy to clipboard operation
SharpHoundCommon copied to clipboard

Extraction of password policies and some registry values from the GptTmpl file

Open 0cmenog opened this issue 2 years ago • 5 comments
trafficstars

With this PR, the GptTmpl.inf file is parsed more in depth, to extract:

  • MinimumPasswordAge
  • MaximumPasswordAge
  • MinimumPasswordLength
  • PasswordComplexity
  • PasswordHistorySize
  • ClearTextPassword
  • RequiresServerSMBSigning
  • EnablesServerSMBSigning
  • RequiresClientSMBSigning
  • EnablesClientSMBSigning
  • RequiresLDAPClientSigning
  • LmCompatibilityLevel If a key is not found, the field is left empty. This extension is triggered with the collection method GPOLocalGroup and the changes are visible in the domains.json and the ous.json files.

0cmenog avatar Mar 20 '23 16:03 0cmenog

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

github-actions[bot] avatar Mar 20 '23 16:03 github-actions[bot]

I have read the CLA Document and I hereby sign the CLA

0cmenog avatar Mar 20 '23 16:03 0cmenog

This is pretty cool, we've been talking about pulling more info out of GPOs for a while. Will take a look and discuss internally

rvazarkar avatar Apr 10 '23 16:04 rvazarkar

The extraction of the following lockout policies has been added:

  • LockoutDuration
  • LockoutBadCount
  • ResetLockoutCount
  • ForceLogoffWhenHourExpire

Also, some GPO precedences have been added to visualize the really applied GPO rules:

  • link order (already existing)
  • domain rules applied before the OU ones (already existing)
  • blockInheritance
  • enforced
  • nested OU

Indeed, this PR is related to the BloodHoundAD/BloodHound#672 one, where the main part of the precedences are managed.

0cmenog avatar May 25 '23 16:05 0cmenog

The PR has been updated once more to add the extraction of:

  • CachedLogonsCount
  • LDAPEnforceChannelBinding

Moreover, the ingestion and the visualization have been implemented in a new PR for the new BloodHound version.

0cmenog avatar Oct 30 '23 17:10 0cmenog

Hello, please see my comment here: https://github.com/SpecterOps/BloodHound/pull/178#issuecomment-1969184434

StephenHinck avatar Feb 28 '24 15:02 StephenHinck