/security-agent-skills:hunting-connection-string-and-jdbc-url-injectionfrom security-agent-skills
Hunts injection into database connection strings and JDBC/driver URLs where untrusted input sets the host, a driver property, or a URL parameter, enabling server redirects or unsafe driver features.
Ships in security-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Connection strings and driver URLs look like inert configuration, but they are richly featured: they carry the host to connect to and a set of driver properties, and many drivers expose properties that read local files, load classes, run initialization commands, or disable transport security. When an application builds one of these from untrusted input, a tenant identifier, a hostname, a region, or an options blob, the attacker can redirect the connection to a server they control, or append a property that flips a dangerous driver feature on. The result ranges from credential capture at a rogue server to local file reads and code execution through the driver. You find it by locating every place a connection string or URL is built from input and asking which host or property the attacker can set.
Test connection-string handling only against applications and infrastructure you own or are authorized to assess, on non-production systems. A confirming payload can cause the application to connect to a server you control or trigger a driver feature, so stay inside the authorized boundary and use only endpoints you own as the redirect target. If you can't name the authorization, stop.
Establish where connection strings and URLs are built. Inventory every place a connection string, JDBC or driver URL, or datasource is constructed at runtime rather than read whole from fixed configuration. This is the false-positive killer: a connection built entirely from static configuration with no input-derived host or property is not injectable. Name the runtime-built connections first.
Trace untrusted input into the host and the properties. For each runtime-built connection, separate what the attacker can set: the host and port, the database or tenant name, and any driver property or URL parameter. Follow request values, tenant identifiers, and stored settings into each part. A value that sets the host can redirect the connection; a value that sets a property can enable a driver feature.
Identify the dangerous driver features reachable. Read which driver is in use and which of its properties are dangerous: local-file-read options, initialization or startup commands, class-loading or plugin properties, and transport-security toggles. An attacker who can append a property reaches whichever of these the driver exposes. Confirm the specific driver's property surface rather than assuming.
Check for property override and redirection. A multi-attribute connection string can let an appended property override an earlier security setting (disabling TLS, changing the auth mechanism, or adding an init command). A host taken from input can point at an attacker server that captures the credentials the application presents on connect. Determine whether the construction allows extra properties or an arbitrary host.
Check the defenses that actually stop it. Building the connection from fixed configuration and selecting only among a server-side allowlist of known targets, validating any input-derived host against that allowlist, and constructing the string through an API that sets known properties rather than concatenating an options blob each remove the vector. Escaping does not help, because the danger is a legitimate property, not a metacharacter. Determine which stands here.
Confirm and record. Confirm by supplying an in-scope input that redirects the connection to a server you own (observing the inbound connection) or that appends a benign, observable driver property, without pointing at any third-party host or triggering a destructive feature. Kill the lead if every connection is built from fixed configuration or a server-side allowlist of targets, no input-derived host or property reaches the string, and the construction cannot append arbitrary properties. Record the input, the connect sink, and the redirected host or enabled feature.
Confirm. A multi-tenant service builds its datasource URL by inserting a tenant-supplied host into a JDBC URL template. A tenant sets the host to a server the tester controls, and the application connects and presents its database credentials to that server, which the tester observes. Confirmed connection-string host injection to credential capture,
high, remediation = never take the connection host from input; select the datasource from a server-side allowlist of known tenant targets keyed by an authenticated tenant identifier, and build the URL through a driver API rather than string insertion.Kill. Connection strings are built from fixed configuration, the tenant identifier selects among a server-side allowlist of preconfigured datasources, and properties are set through the driver's typed API with no input-derived options blob. A tenant-supplied host or property never reaches the connect call. Killed,
kill_reason= "connections built from fixed config and a server-side target allowlist, no input-derived host or property, and no arbitrary options appended; nothing attacker-set reaches the URL."
You need every runtime-built connection string or URL, which parts (host, database, properties) are input-derived, the driver's dangerous property surface, and whether construction allows an arbitrary host or appended properties. For each connection, ask whether the attacker can set the host or a property and which feature that reaches. Reading the construction shows what is input-derived; a redirect to a host you own or a benign observable property shows whether the boundary holds.
exploiting-ssrf-to-cloud-metadata - a redirected connection host is a server-side request primitive;
both reach an attacker-chosen endpoint from inside the trust boundary.hunting-non-human-identity-and-secret-reachability - the credentials a redirected connection leaks are
exactly the machine identities that skill inventories.auditing-multi-tenant-isolation - tenant-driven datasource selection is where this injection enters;
the tenant boundary and the connection allowlist are the same control.adjudicating-taint-paths - use it to confirm a tenant or request value reaches the connect call as a host
or property through configuration indirection.What SKILL.md sets; muted values are Claude Code's defaults
194 skills in this plugin
/adjudicating-dependency-cve-reachabilityDecide whether a CVE in a dependency actually exposes your application before you scramble to patch: is the vulnerable function on a real call path from your code, do the trigger preconditions hold, and can an attacker control the input that reaches it. Use when an advisory, SCA scan, or dependency bot flags a CVE and you must separate a genuine exposure from unreachable noise, or justify why you are or are not affected. Covers pinning the vulnerable symbol, call-path reachability, precondition checks, and taint from your entry points./adjudicating-taint-pathsDecide whether a whitebox lead is a real bug by tracing taint from an untrusted source to a dangerous sink and confirming every hop against live source. Use after a scanner, a candidate list, or your own reading surfaces a "this looks dangerous" sink (SQL exec, system/exec, file open, deserialize, template render, redirect target, memcpy) and you must decide whether attacker- controlled input actually reaches it - or kill the lead with evidence. Covers forward and reverse taint, witness paths, sanitizer analysis, and the evidence rules that separate a finding from a false positive.npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skillsOther plugins' skills for the same job