Neo4j
This is a living document that captures notes related to anything and all neo4j and cypher queries.
List Databases
show databases
Create New Database

Switch Database

Import Data from CSV and Define Relationships Between Nodes
Sample Data
Below is a sample CSV file with 3 columns, that represents Windows authentication information between different endpoints (think lateral movement detection/investigation/threat hunting):
Column
Meaning
SourceComputer
A computer that successfully authenticated to a DestinationComputer
DestinationComputer
A computer that SourceComputer authenticated to
DestinationUserName
A user name that was used to logon from SourceComputer to DestinationComputer
Importing Nodes from CSV and Creating Relationships


Clean Database
Match Nodes WHERE DestinationComputer Contains "WS"

Match Nodes WHERE Relationship Contains "james"

Match Nodes with 3 Hops Between Them

Last updated
Was this helpful?