posthog 7.70.1
- Source
- https://github.com/posthog/posthog-python
- Tag scanned
posthog-v7.70.1- Compared with
posthog-v7.70.0(0 signals introduced since)- Files
- 426 scanned, 273 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 2 warn · 8 info
- Scan time
- 6.9 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 9 of 9 warn and critical signals; 7 demoted to info.
- Disclude version
- 4.0.0
- Scanned (UTC)
- 2026-10-15 18:12
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
return return fsuspicious Example calculator tool that evals a sanitized math expression from an agent.Reasoning
eval is applied to an expression after filtering for allowed characters, but the filter is in the snippet's preceding context only partially shown; the input comes from an LLM tool call, so it is a real code-execution risk in a demo, though not obfuscation. Flagged as suspicious rather than malicious since the code is an example calculator.
-
return return fsuspicious Example calculator tool evaluating a sanitized expression via eval.Reasoning
Same eval-based calculator as multi_agent.py; an insecure pattern in an example file with input character filtering, not evidence of malicious intent.
-
= += 1likely benign Walks the call stack to collect frame information for exception reporting.Reasoning
sys._getframe with a depth loop is a standard stack-walking idiom used to collect frames for exception reporting in a telemetry library.
-
) = # Encode side: our output is byte-identical to the shared wire format.likely benign Test fixture containing a base64-encoded session token.Reasoning
The string is a base64url-encoded JSON token used as a test fixture for a wire-format round-trip; it decodes to readable session metadata with no payload hiding.
-
# zlib header =likely benign Test code decompressing its own captured request body to check contents.Reasoning
Test assertion decompresses a zlib payload captured from a mocked call to verify it does not leak api_key; a normal test pattern operating on local data.
-
= returnlikely benign Test helper decoding a gzipped mock request body.Reasoning
Test helper gunzips a mocked request body to parse JSON for assertions; ordinary test code.
-
=likely benign Test checking the gzip-compressed request payload.Reasoning
Test asserts on gzip-decompressed request body contents; standard test verification of compressed transport.
-
info
warn→ info by reviewdecoder-decompress-payloadposthog/test/tracing/test_client_traces.py:60:23, = return , ,likely benign Test helper decompressing captured gzip request data.Reasoning
Test helper gunzips a captured session.post payload for inspection; ordinary test code.
-
assert == assert ==likely benign Transport test verifying the gzip-decompressed payload.Reasoning
Test asserts the gunzipped payload equals the expected PAYLOAD; normal transport testing.
-
class posthog.client.Client(project_api_key: str, host=None, debug=False, max_queue_size=10000, send=True, on_error=None, flush_at=100, flush_interval=5.0, gzip=False, max_retries=3, sync_mode=False, timeout=15, thread=1, poll_interval=30, personal_api_key=None, disabled=False, disable_geoip=True, is_server=True, histo
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.
&&