Skip to content

Commit

Permalink
perf: remove unused requests
Browse files Browse the repository at this point in the history
  • Loading branch information
snowpeacock authored and snowpeacock committed Jun 19, 2024
1 parent 3b4753b commit 17d5a2c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
6 changes: 0 additions & 6 deletions ad_miner/sources/modules/domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ def __init__(self, arguments, neo4j):
self.objects_to_domain_admin = neo4j.all_requests["objects_to_domain_admin"][
"result"
]
self.objects_to_unconstrained_delegation = neo4j.all_requests[
"objects_to_unconstrained_delegation"
]["result"]
self.objects_to_unconstrained_delegation_2 = neo4j.all_requests[
"users_to_unconstrained_delegation"
]["result"]
self.domain_map_trust = neo4j.all_requests["domain_map_trust"]["result"]
self.domains_list = neo4j.all_requests["domains"]["result"]
self.objects_to_dcsync = neo4j.all_requests["objects_to_dcsync"]["result"]
Expand Down
12 changes: 0 additions & 12 deletions ad_miner/sources/modules/requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -562,18 +562,6 @@
"request": "MATCH p=shortestpath((d:Domain)-[:TrustedBy]->(m:Domain)) WHERE d<>m RETURN DISTINCT(p)",
"output_type": "Graph"
},
"objects_to_unconstrained_delegation": {
"name": "Object with path to non-DC computers with unconstrained delegations ",
"request": "MATCH (n{path_candidate:true}) WITH n ORDER BY n.name SKIP PARAM1 LIMIT PARAM2 MATCH p=shortestPath((n)-[:$properties$*1..$recursive_level$]->(m:Computer{unconstraineddelegation:true,is_dc:false})) WHERE NOT n=m AND NOT m.name IS NULL RETURN DISTINCT(p)",
"output_type": "Graph",
"scope_query": "MATCH (n{path_candidate:true}) RETURN count(n)"
},
"users_to_unconstrained_delegation": {
"name": "Objects with paths to users that have unconstrained delegations ",
"request": "MATCH (n{path_candidate:true}) WITH n ORDER BY n.name SKIP PARAM1 LIMIT PARAM2 MATCH p=shortestPath((n:User{is_da:false,enabled:true})-[:$inbound_control_edges$*1..$recursive_level$]->(m:User{unconstraineddelegation:true,enabled:true,sensitive:false})) WHERE NOT n=m AND NOT m.name IS NULL RETURN DISTINCT(p)",
"output_type": "Graph",
"scope_query": "MATCH (n{path_candidate:true}) RETURN count(n)"
},
"kud": {
"name": "Shortest paths to objects configured for KUD",
"request": "MATCH (n) WHERE (n:Computer) OR (n:User AND n.enabled=true) WITH n ORDER BY n.name SKIP PARAM1 LIMIT PARAM2 MATCH p=shortestPath((n)-[:$properties$*1..$recursive_level$]->(m{target_kud:true})) WHERE NOT n=m AND (((n.is_da IS NULL OR n.is_da=FALSE) AND (n.is_dc IS NULL OR n.is_dc=FALSE)) OR (NOT m.domain CONTAINS '.' + n.domain AND n.domain <> m.domain)) RETURN DISTINCT(p)",
Expand Down

0 comments on commit 17d5a2c

Please sign in to comment.