You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to find a JSON example for the cache file #146
However, I couldn’t find any information about the format or sample data of the cache file.
Could you provide details on this?
I’d like to pre-build this cache file to enhance the efficiency of repeatedly collecting complete ACLs.
The cache file is built automatically by SharpHound on pretty much any run unless you use the NoCache option. Are you planning to pre-cache using some kind of ldap query?
Yes, as you mentioned, I plan to use LDAP to pre-collect cache to speed up ACL collection. Currently, I only understand two cache-related key formats: IdToTypeCache (e.g., SID:User, SID:Group) and SIDToDomainCache (e.g., Domain:DomainSID). However, I’m not quite clear on what data should be filled in for the values in keys like GlobalCatalogCache, MachineSidCache, and ValueToIdCache.
Activity
rvazarkar commentedon Apr 17, 2025
The cache file isn't anything complicated, its just a JSON serialized instance of this class: https://github.com/SpecterOps/SharpHoundCommon/blob/v4/src/CommonLib/Cache.cs
The cache file is built automatically by SharpHound on pretty much any run unless you use the NoCache option. Are you planning to pre-cache using some kind of ldap query?
NexKosh commentedon Apr 17, 2025
Yes, as you mentioned, I plan to use LDAP to pre-collect cache to speed up ACL collection. Currently, I only understand two cache-related key formats: IdToTypeCache (e.g., SID:User, SID:Group) and SIDToDomainCache (e.g., Domain:DomainSID). However, I’m not quite clear on what data should be filled in for the values in keys like GlobalCatalogCache, MachineSidCache, and ValueToIdCache.
I also checked this https://github.com/SpecterOps/SharpHoundCommon/blob/v4/test/unit/CacheTest.cs, but it seems there are no example data provided.
Or is it the case that as long as I have IdToTypeCache and SIDToDomainCache, I can quickly collect the data, and the others are not necessary?