Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kpom/bed 4907/cypher shortcut helpers #1034

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kpom-specter
Copy link
Contributor

Description

Add the ability to have "helper" shortcuts that allow a user to specify ALL_ATTACK_PATHS (or by AZ/AD).

Motivation and Context

This PR addresses: https://specterops.atlassian.net/browse/BED-4907

How Has This Been Tested?

curl 'http://bhe.localhost/api/v2/graphs/cypher' --compressed -X POST
-H "Authorization: Bearer ************"
-H 'Content-Type: application/json'
--data-raw '{"query":"MATCH p=shortestPath((n)-[:ALL_ATTACK_PATHS
1..]->(m:Computer))\nWHERE m.unconstraineddelegation = true AND n<>m\nRETURN p\nLIMIT 1000"}' | jq

should return a list of all Attack Edge Types

  • New feature (non-breaking change which adds functionality)

@kpom-specter
Copy link
Contributor Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant