This section provides a summary of recommendations regarding security in Neo4j.
Below is a simple checklist highlighting the specific areas within Neo4j that may need some extra attention in order to ensure
the appropriate level of security for your application.
Deploy Neo4j on safe servers in safe networks:
- Use subnets and firewalls.
- Only open up for the necessary ports.
For a list of relevant ports see Section 3.2, “Ports”.
- Use volume encryption (e.g. Bitlocker).
- Manage access to database dumps (refer to Section 10.3, “Dump and load databases”) and backups (refer to Section 6.2, “Perform a backup”).
In particular, ensure that there is no external access to the port specified by the setting
dbms.backup.address (this defaults to 6362).
Failing to protect this port leaves a security hole open by which an unauthorized user can make a copy of the database onto
a different machine.
- Manage access to data files and transaction logs.
Prohibit all operating system access to Neo4j files except as instructed in Section 3.1.3, “Permissions”.
- For remote access to the Neo4j database, only open up for encrypted Bolt or HTTPS.
Use SSL certificates issued from a trusted Certificate Authority.
Be on top of the security for custom extensions:
- Ensure the correct file permissions on the Neo4j files.
Only the operating system user that Neo4j runs as should have permissions to those files.
Refer to Section 3.1.3, “Permissions” for instructions on permission levels.
In particular, protect data files, transaction logs and database dumps from unauthorized read access.
Protect against the execution of unauthorized extensions by restricting access to the bin, lib, and plugins directories.
LOAD CSV is enabled, ensure that it does not allow unauthorized users to import data.
How to configure
LOAD CSV is described in Developer Manual →
- Do not turn off Neo4j authentication.
Refer to Section 7.1.3, “Enabling authentication and authorization” for details on this setting.
- Survey your neo4j.conf file (see Section 3.1, “File locations”) for ports relating to deprecated functions (such as neo4j-shell, controlled by the parameter
dbms.shell.port) and remote JMX (controlled by the parameter setting
- Review Section 7.4, “Browser credentials handling” to determine whether the default credentials handling in Neo4j Browser complies with your security regulations.
Follow the instructions to configure it if necessary.
- Use the latest patch version of Neo4j.