PyPI / psycopg2-binary / 2.9.13
psycopg2-binary 2.9.13
- Source
- https://github.com/psycopg/psycopg2
- Tag scanned
2.9.13- Compared with
2.9.12(0 signals introduced since)- Files
- 158 scanned, 21 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 9 info
- Scan time
- 7.1 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 6 of 6 warn and critical signals; 6 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-14 18:35
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
likely benign Build script invoking a sibling helper script via a directory variable, plus a find/strip of shared objects.
Reasoning
This is a psycopg build script. The variable dir is set to the script's own directory (typically via dirname/pwd), so calling "${dir}/print_so_versions.sh" runs a sibling script in the repo. The find/strip line is standard wheel stripping. Flagged pattern is a normal build idiom, not malicious.
-
;likely benign Distro-specific branch calling the repo's build_libpq.sh via a script-directory variable.Reasoning
Within a case statement selecting by distro, dir is the script's own directory and the invoked build_libpq.sh is a repository build helper. Standard cibuildwheel pattern; the runtime-determined command is a path derived from the repo, not attacker-controlled input.
-
| | ;likely benign RHEL-family branch invoking the repo's build_libpq.sh via a script-directory variable.Reasoning
Same pattern as the other finding in this file: a centos/rocky/almalinux branch invoking the repo's own build_libpq.sh through the script directory variable. Legitimate build logic.
-
# Build dependency libraries # Show dependency treelikely benign macOS wheel build step calling the project's build_libpq.sh via a project-directory variable.Reasoning
prjdir points to the project root and the script runs the bundled build_libpq.sh to compile dependencies before wheel build. This is ordinary CI build orchestration within the repository.
-
for; do && break if [; thenlikely benign Retry loop using eval on a hardcoded command name to wait for PostgreSQL readiness.Reasoning
eval is applied to the literal string pg_isready inside a retry loop waiting for PostgreSQL to start. It is pointless, not a dropper or obfuscation; the literal is hardcoded so no untrusted input reaches eval. Poor style rather than malicious.
-
is and . -
likely benign Python test string literal enumerating ASCII control characters as hex escapes for an escaping test.
Reasoning
This is a test fixture expressing expected bytes for a COPY/composite-type round-trip, deliberately spelling out control characters 0x01 through 0x7f as escapes. Sequential hex escapes of all ASCII control bytes are expected in a test for escaping behavior; no encoded payload or execution is involved.
Reproduce This Scan
Run disclude locally to verify. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
&&