Hub rules-neo4j

rules-neo4j

v3 public Verified

Neo4j

Neo4j is a graph database management system. These rules govern Cypher query generation and graph operations to prevent insecure traversals, unauthorized data access, and performance-heavy graph queries.

@sigmashakeinc 2 pulls 7 rules published Apr 8, 2026 synced Nov 22, 2026 sigmashakeinc/rules/rulesets/rules-neo4j →
Severity
5 error 2 warn 0 info
demo.cast
Neo4j is a graph database management system. These rules govern Cypher query generation and graph operations to prevent insecure traversals, unauthorized data access, and performance-heavy graph queries.

Rules index

7 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

neo4j

neo4j-apoc-load-url error block

RISK: apoc.load.* procedures that accept dynamic URLs can be abused to perform SSRF, read internal metadata endpoints (e.g., AWS IMDSv1), or exfiltrate data to attacker-controlled servers. FIX: restrict apoc.import.file.use_neo4j_config=true and allowlist permitted URLs in apocConfig; never pass user-controlled strings to apoc.load.*.

Rule source requires an active Pro or Enterprise subscription.
neo4j-apoc-run-shell error block

RISK: apoc.cypher.run / apoc.custom.declare* evaluate arbitrary Cypher strings at runtime, creating a second-order injection surface. FIX: remove these calls from application-generated queries; use static Cypher and APOC's data procedures only.

Rule source requires an active Pro or Enterprise subscription.
neo4j-block-unsafe-patterns warning ask

Potentially unsafe pattern detected in neo4j code: "apoc.algo.execute". Review the use case — this may indicate a security risk, a deprecated API, or a misconfiguration. Confirm the write is intentional.

Rule source requires an active Pro or Enterprise subscription.
neo4j-cypher-injection error block

RISK: string-interpolating user input into a Cypher query enables Cypher injection — attackers can exfiltrate the full graph, modify data, or escalate via APOC procedures (CWE-89 analogue). FIX: always use parameterized Cypher: session.run('MATCH (n) WHERE n.id = $id', { id: userId }) — never concatenate request-derived values.

Rule source requires an active Pro or Enterprise subscription.
neo4j-force-updated-api warning log

RISK: START n=node() is a deprecated Cypher 1.x syntax removed in Neo4j 3+. FIX: replace with MATCH (n) and use parameterized WHERE clauses for filtering.

Rule source requires an active Pro or Enterprise subscription.
neo4j-hardcoded-password error block

RISK: a hardcoded Neo4j password exposes database administrative access to anyone with repository read permissions (CWE-798). FIX: inject credentials from environment variables or a secrets manager and rotate the exposed password immediately.

Rule source requires an active Pro or Enterprise subscription.
neo4j-tls-disabled error block

RISK: disabling Neo4j Bolt TLS sends credentials and all graph data in cleartext — trivial to intercept on a shared or cloud network. FIX: set encrypted: true (driver) and dbms.connector.bolt.tls_level=REQUIRED in neo4j.conf.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v3
Published
Apr 8, 2026
Source commits
0
Synced
Nov 22, 2026
Hash
f563af30941eca89f09db7fab11740d1030eb446963b98abfd99c4ea24d0f0b1
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-neo4j/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-neo4j. The published version only bumps when a maintainer resyncs.

No commit history available.