Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.

astraly-labs/pragma-sdk

https://github.com/astraly-labs/pragma-sdk · scanned 2026-06-17 01:36 UTC (1 month, 2 weeks ago)

99 raw signals (0 security + 99 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 1 month, 2 weeks ago · v2 · last Δ +2.8 (diff) · 65 actionable findings from 1 signal source. 34 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Corpus Intelligence Cross-corpus context (cohort percentile, top patterns, fix plan) is shown only on repositories you own. Sign up and connect your repo to view it.
Scan summary Repository scanned at 79.5/100 with 88.9% coverage. It contains 1459 nodes across 0 cross-layer flows, written primarily in mixed languages. Engine surfaced 99 findings — concentrated in quality (45), hardware (22), cicd (16). Risk profile is high: 0 critical, 2 high, 30 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 60 of 65 actionable findings. 99 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

high System graph quality Integrity conf 1.00 Blocking `requests.get(...)` inside `async def _handler` — lambda/monitor-balances/app.py:84
Sync I/O inside an async function blocks the event loop. While `requests.get(...)` is running, *all* other coroutines on this loop are paused — silent throughput collapse under concurrency. Use the async equivalent (`httpx.AsyncClient`, `asyncio.sleep`, `aiofiles`) or wrap with `await asyncio.to_th…
lambda/monitor-balances/app.py:84 Sync io in asyncPerformance
high System graph quality Integrity conf 1.00 Blocking `requests.get(...)` inside `async def _handler` — lambda/nostra-lp-pricer/app.py:36
Sync I/O inside an async function blocks the event loop. While `requests.get(...)` is running, *all* other coroutines on this loop are paused — silent throughput collapse under concurrency. Use the async equivalent (`httpx.AsyncClient`, `asyncio.sleep`, `aiofiles`) or wrap with `await asyncio.to_th…
lambda/nostra-lp-pricer/app.py:36 Sync io in asyncPerformance
medium System graph quality Placeholder conf 1.00 Critical user flow still appears backed by mock or placeholder data
A payment/auth/admin/order/billing-style flow contains mock, fake, TODO, dummy, or placeholder markers in runtime source. In the Fable corpus this is a high-leverage completeness smell: the app can look finished while the money, identity, or tenant flow is still scaffolded.
Mock dataCritical flowGenerated repo pattern
medium System graph hardware Security conf 1.00 Dockerfile runs as root: checkpointer/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph hardware Security conf 1.00 Dockerfile runs as root: infra/checkpointer/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph hardware Security conf 1.00 Dockerfile runs as root: infra/lmax-connector/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph hardware Security conf 1.00 Dockerfile runs as root: infra/price-pusher/onchain/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph hardware Security conf 1.00 Dockerfile runs as root: infra/price-pusher/pragma/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph hardware Security conf 1.00 Dockerfile runs as root: lambda/monitor-balances/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph hardware Security conf 1.00 Dockerfile runs as root: lambda/nostra-lp-pricer/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph hardware Security conf 1.00 Dockerfile runs as root: lmax-connector/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph hardware Security conf 1.00 Dockerfile runs as root: pragma-sdk/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph hardware Security conf 1.00 Dockerfile runs as root: price-pusher/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph hardware Security conf 1.00 Dockerfile runs as root: vrf-listener/Dockerfile
No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image.
Container
medium System graph cicd CI/CD security conf 1.00 11 occurrences GitHub Action is tag-pinned rather than SHA-pinned
docker/setup-buildx-action@v3 can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
5 files, 11 locations
.github/workflows/docker-build.yml:22, 24, 39, 53 (4 hits)
.github/workflows/docker-test.yml:24, 26, 36 (3 hits)
.github/workflows/publish.yml:28, 35 (2 hits)
.github/workflows/pre-release.yml:32
.github/workflows/tests.yml:112
CI/CD securitySupply chainGithub actions
medium System graph cicd CI/CD security conf 1.00 3 occurrences GitHub Actions workflow grants broad write permissions
CI tokens with write permissions increase blast radius when an action, dependency, or PR workflow is compromised. Prefer job-level least-privilege permissions.
3 files, 3 locations
.github/workflows/docker-test.yml
.github/workflows/pre-release.yml
.github/workflows/publish.yml
CI/CD securitySupply chainGithub actions
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — lambda/monitor-balances/app.py:84
`requests.get(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — lambda/nostra-lp-pricer/app.py:36
`requests.get(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph quality Integrity conf 1.00 Network/subprocess call without timeout or try/except — pragma-sdk/pragma_sdk/common/fetchers/fetchers/indexcoop.py:61
`requests.get(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries.
runtime safetyRobustness
medium System graph security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). The repo has auth/admin/session surface indicators, so auth may live in custom code, in a separate service, or be missing.
auth
low System graph quality Integrity conf 1.00 8 env vars used in code but missing from .env.example
Drift between code and config docs. The first few: `BETTERUPTIME_ID`, `CHAT_ID`, `GCP_PROJECT_ID`, `IGNORE_PUBLISHERS`, `NETWORK`, `SECRET_NAME`, `TELEGRAM_BOT_USER_OAUTH_TOKEN`, `THRESHOLD_WEI`. Add them (with a placeholder/comment) to .env.example so onboarding doesn't break.
config drift
low System graph quality Debug conf 1.00 Debug logging residue appears in source files
Found 39 console/debugger/print-style debug statements in non-test source. This is a common fast-generation residue before production cleanup.
CleanupRepo hardeningGenerated repo pattern
low System graph hardware Supply chain conf 1.00 Docker base image is tag-pinned but not digest-pinned: public.ecr.aws/docker/library/python:3.12-slim
Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter.
infra/price-pusher/onchain/Dockerfile:1 containersPinned dependencies
low System graph hardware Supply chain conf 1.00 Docker base image is tag-pinned but not digest-pinned: public.ecr.aws/lambda/python:3.11
Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter.
lambda/monitor-balances/Dockerfile:1 containersPinned dependencies
low System graph hardware Supply chain conf 1.00 Docker base image is tag-pinned but not digest-pinned: public.ecr.aws/lambda/python:3.12-x86_64
Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter.
lambda/nostra-lp-pricer/Dockerfile:1 containersPinned dependencies
low System graph hardware Supply chain conf 1.00 7 occurrences Docker base image is tag-pinned but not digest-pinned: python:3.12-slim
Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter.
7 files, 7 locations
checkpointer/Dockerfile:1
infra/checkpointer/Dockerfile:1
infra/lmax-connector/Dockerfile:1
infra/price-pusher/pragma/Dockerfile:1
lmax-connector/Dockerfile:1
price-pusher/Dockerfile:1
vrf-listener/Dockerfile:1
containersPinned dependencies
low System graph hardware Supply chain conf 1.00 Docker base image is tag-pinned but not digest-pinned: python:3.12-slim-bullseye
Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter.
pragma-sdk/Dockerfile:1 containersPinned dependencies
low System graph cicd CI/CD security conf 1.00 2 occurrences GitHub Action is tag-pinned rather than SHA-pinned
actions/checkout@v4 can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
2 files, 2 locations
.github/workflows/docker-test.yml:20
.github/workflows/tests.yml:41
CI/CD securitySupply chainGithub actions
low System graph quality Integrity conf 1.00 14 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: price-pusher/price_pusher/fastapi_health_server.py:health_check, price-pusher/price_pusher/health_server.py:health_check This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or…
14 occurrences
repo-level (14 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: pragma-sdk/pragma_sdk/common/fetchers/fetcher_client.py:fetchers, pragma-sdk/pragma_sdk/common/fetchers/fetcher_client.py:fetchers, pragma-sdk/pragma_sdk/common/fetchers/fetcher_client.py:fetch This is *the* AI-coder failure mode (4× more duplication…
duplicatesduplication
low System graph quality Integrity conf 1.00 2 occurrences Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: pragma-sdk/pragma_sdk/common/fetchers/fetchers/bitstamp.py:fetch_pair, pragma-sdk/pragma_sdk/common/fetchers/fetchers/bitstamp.py:fetch, pragma-sdk/pragma_sdk/common/fetchers/fetchers/coinbase.py:fetch_pair, pragma-sdk/pragma_sdk/common/fetchers/fetch…
2 occurrences
repo-level (2 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 2 occurrences Near-duplicate function bodies in 6 places
Functions with the same first-5-line body hash: pragma-sdk/pragma_sdk/onchain/types/types.py:to_list, pragma-sdk/pragma_sdk/onchain/types/types.py:to_list, pragma-sdk/pragma_sdk/onchain/types/types.py:to_list, pragma-sdk/pragma_sdk/onchain/types/types.py:to_list This is *the* AI-coder failure mode…
2 occurrences
repo-level (2 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 8 places
Functions with the same first-5-line body hash: pragma-sdk/pragma_sdk/common/fetchers/fetchers/bybit.py:operate_usdt_hop, pragma-sdk/pragma_sdk/common/fetchers/fetchers/huobi.py:operate_usdt_hop, pragma-sdk/pragma_sdk/common/fetchers/fetchers/kucoin.py:operate_usdt_hop, pragma-sdk/pragma_sdk/common…
duplicatesduplication
low System graph quality License conf 1.00 No license file detected
No LICENSE/COPYING/NOTICE file was found. Generated repositories often omit licensing, which blocks reuse and automated intake.
Repo hardeningGenerated repo pattern
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `deploy_v1` in checkpointer/tests/integration/fixtures/contracts.py:35
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `deploy_v1` in pragma-sdk/tests/integration/client_test.py:63
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `deploy_v1` in pragma-sdk/tests/integration/merkle_feed_test.py:59
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `deploy_v1` in pragma-sdk/tests/integration/vrf_test.py:84
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `deploy_v1` in vrf-listener/benchmark/deploy.py:69
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `deploy_v1` in vrf-listener/tests/integration/fixtures/clients.py:104
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `invoke_v1` in vrf-listener/benchmark/client.py:86
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `invoke_v1` in vrf-listener/benchmark/stress/stress_tester.py:292
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `prepare_invoke_v1` in pragma-sdk/pragma_sdk/onchain/mixins/randomness.py:102
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `sign_deploy_account_v1` in pragma-sdk/tests/integration/utils.py:50
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `sign_invoke_v1` in pragma-sdk/pragma_sdk/onchain/types/contract.py:56
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph software Dead code conf 1.00 Possibly dead Python function: add_sync_methods
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
pragma-sdk/pragma_sdk/common/utils.py:76
low System graph software Dead code conf 1.00 Possibly dead Python function: build_erc4626_mapping
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
pragma-sdk/pragma_sdk/common/fetchers/fetchers/erc4626.py:290
low System graph software Dead code conf 1.00 Possibly dead Python function: extract_strike_price_and_option_type
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
pragma-sdk/pragma_sdk/common/fetchers/generic_fetchers/deribit/types.py:78
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_expiry_timestamp
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
pragma-sdk/pragma_sdk/common/fetchers/future_fetchers/okx.py:23
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_quantities
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
pragma-sdk/pragma_sdk/common/fetchers/fetchers/indexcoop.py:59
low System graph software Dead code conf 1.00 Possibly dead Python function: health_check
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
price-pusher/price_pusher/health_server.py:35
low System graph software Dead code conf 1.00 Possibly dead Python function: make_secret_key
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
pragma-sdk/pragma_sdk/common/randomness/utils.py:14
low System graph software Dead code conf 1.00 Possibly dead Python function: set_publisher
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
pragma-sdk/pragma_sdk/common/types/entry.py:184
low System graph software Dead code conf 1.00 Possibly dead Python function: spot_entry_to_faucon_topic
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
lmax-connector/lmax_connector/main.py:29
low System graph software Dead code conf 1.00 Possibly dead Python function: to_calldata
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
pragma-sdk/pragma_sdk/onchain/types/types.py:132
low System graph software Dead code conf 1.00 Possibly dead Python function: uint256_to_2_128
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
pragma-sdk/pragma_sdk/common/randomness/utils.py:22
low System graph software Dead code conf 1.00 Possibly dead Python function: update_last_push
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
price-pusher/price_pusher/fastapi_health_server.py:151
low System graph software Dead code conf 1.00 Possibly dead Python function: update_last_push
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
price-pusher/price_pusher/health_server.py:29
low System graph software Dead code conf 1.00 Possibly dead Python function: verify_randomness
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
pragma-sdk/pragma_sdk/common/randomness/utils.py:44
low System graph quality Integrity conf 1.00 Stub function `get_expiry` (body is just `pass`/`return`) — pragma-sdk/pragma_sdk/common/types/entry.py:191
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/ab2ec428-1ec8-4e9b-b0ea-bff34a9d0ada/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/ab2ec428-1ec8-4e9b-b0ea-bff34a9d0ada/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.