Skip to content

Commit

Permalink
Merge pull request #81 from BloodHoundAD/BED-3895
Browse files Browse the repository at this point in the history
Add IsACLProtected to property bags for ingest
  • Loading branch information
rvazarkar authored Dec 4, 2023
2 parents 76fb763 + 3a4674f commit 8fb1b84
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Runtime/ObjectProcessors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ private async Task<User> ProcessUserObject(ISearchResultEntry entry,
var gmsa = entry.GetByteProperty(LDAPProperties.GroupMSAMembership);
ret.Aces = aces.Concat(_aclProcessor.ProcessGMSAReaders(gmsa, resolvedSearchResult.Domain)).ToArray();
ret.IsACLProtected = _aclProcessor.IsACLProtected(entry);
ret.Properties.Add("isaclprotected", ret.IsACLProtected);
}

if ((_methods & ResolvedCollectionMethod.Group) != 0)
Expand Down Expand Up @@ -181,6 +182,7 @@ private async Task<Computer> ProcessComputerObject(ISearchResultEntry entry,
{
ret.Aces = _aclProcessor.ProcessACL(resolvedSearchResult, entry).ToArray();
ret.IsACLProtected = _aclProcessor.IsACLProtected(entry);
ret.Properties.Add("isaclprotected", ret.IsACLProtected);
}

if ((_methods & ResolvedCollectionMethod.Group) != 0)
Expand Down Expand Up @@ -327,6 +329,7 @@ private Group ProcessGroupObject(ISearchResultEntry entry,
{
ret.Aces = _aclProcessor.ProcessACL(resolvedSearchResult, entry).ToArray();
ret.IsACLProtected = _aclProcessor.IsACLProtected(entry);
ret.Properties.Add("isaclprotected", ret.IsACLProtected);
}

if ((_methods & ResolvedCollectionMethod.Group) != 0)
Expand Down Expand Up @@ -395,6 +398,7 @@ private async Task<Domain> ProcessDomainObject(ISearchResultEntry entry,
{
ret.Aces = _aclProcessor.ProcessACL(resolvedSearchResult, entry).ToArray();
ret.IsACLProtected = _aclProcessor.IsACLProtected(entry);
ret.Properties.Add("isaclprotected", ret.IsACLProtected);
}

if ((_methods & ResolvedCollectionMethod.Trusts) != 0)
Expand Down Expand Up @@ -442,6 +446,7 @@ private GPO ProcessGPOObject(ISearchResultEntry entry,
{
ret.Aces = _aclProcessor.ProcessACL(resolvedSearchResult, entry).ToArray();
ret.IsACLProtected = _aclProcessor.IsACLProtected(entry);
ret.Properties.Add("isaclprotected", ret.IsACLProtected);
}

if ((_methods & ResolvedCollectionMethod.ObjectProps) != 0)
Expand Down Expand Up @@ -475,6 +480,7 @@ private async Task<OU> ProcessOUObject(ISearchResultEntry entry,
{
ret.Aces = _aclProcessor.ProcessACL(resolvedSearchResult, entry).ToArray();
ret.IsACLProtected = _aclProcessor.IsACLProtected(entry);
ret.Properties.Add("isaclprotected", ret.IsACLProtected);
}

if ((_methods & ResolvedCollectionMethod.ObjectProps) != 0)
Expand Down Expand Up @@ -526,6 +532,7 @@ private Container ProcessContainerObject(ISearchResultEntry entry,
ret.Aces = _aclProcessor.ProcessACL(resolvedSearchResult, entry)
.ToArray();
ret.IsACLProtected = _aclProcessor.IsACLProtected(entry);
ret.Properties.Add("isaclprotected", ret.IsACLProtected);
}

if ((_methods & ResolvedCollectionMethod.ObjectProps) != 0)
Expand Down Expand Up @@ -559,6 +566,7 @@ private async Task<RootCA> ProcessRootCA(ISearchResultEntry entry, ResolvedSearc
{
ret.Aces = _aclProcessor.ProcessACL(resolvedSearchResult, entry).ToArray();
ret.IsACLProtected = _aclProcessor.IsACLProtected(entry);
ret.Properties.Add("isaclprotected", ret.IsACLProtected);
}

if ((_methods & ResolvedCollectionMethod.ObjectProps) != 0)
Expand Down Expand Up @@ -591,6 +599,7 @@ private async Task<AIACA> ProcessAIACA(ISearchResultEntry entry, ResolvedSearchR
{
ret.Aces = _aclProcessor.ProcessACL(resolvedSearchResult, entry).ToArray();
ret.IsACLProtected = _aclProcessor.IsACLProtected(entry);
ret.Properties.Add("isaclprotected", ret.IsACLProtected);
}

if ((_methods & ResolvedCollectionMethod.ObjectProps) != 0)
Expand Down Expand Up @@ -623,6 +632,7 @@ private async Task<EnterpriseCA> ProcessEnterpriseCA(ISearchResultEntry entry, R
{
ret.Aces = _aclProcessor.ProcessACL(resolvedSearchResult, entry).ToArray();
ret.IsACLProtected = _aclProcessor.IsACLProtected(entry);
ret.Properties.Add("isaclprotected", ret.IsACLProtected);
}

if ((_methods & ResolvedCollectionMethod.ObjectProps) != 0)
Expand Down Expand Up @@ -689,6 +699,7 @@ private async Task<NTAuthStore> ProcessNTAuthStore(ISearchResultEntry entry, Res
{
ret.Aces = _aclProcessor.ProcessACL(resolvedSearchResult, entry).ToArray();
ret.IsACLProtected = _aclProcessor.IsACLProtected(entry);
ret.Properties.Add("isaclprotected", ret.IsACLProtected);
}

if ((_methods & ResolvedCollectionMethod.ObjectProps) != 0)
Expand Down Expand Up @@ -728,6 +739,7 @@ private async Task<CertTemplate> ProcessCertTemplate(ISearchResultEntry entry, R
{
ret.Aces = _aclProcessor.ProcessACL(resolvedSearchResult, entry).ToArray();
ret.IsACLProtected = _aclProcessor.IsACLProtected(entry);
ret.Properties.Add("isaclprotected", ret.IsACLProtected);
}

if ((_methods & ResolvedCollectionMethod.ObjectProps) != 0)
Expand Down

0 comments on commit 8fb1b84

Please sign in to comment.