{"api":"v1","generated_at":"2026-09-15T18:46:05.353Z","licence":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/","attribution":"TOLL, with a link to the page cited"},"page":"https://tollindex.com/e/api-agentstools-dev-code-scan-6ae9a1","pinned_page":"https://tollindex.com/e/api-agentstools-dev-code-scan-6ae9a1/at/2026-09-15T16-57Z","pinned":false,"method":"https://tollindex.com/ledger/method","snapshot_at":"2026-09-15T16:57:44.360Z","snapshot_stamp":"2026-09-15T16-57Z","endpoint":{"slug":"api-agentstools-dev-code-scan-6ae9a1","canonical_url":"https://api.agentstools.dev/code/scan","resource":"https://api.agentstools.dev/code/scan","http_method":"POST","type":"http","x402_version":2,"registries":["cdp"],"primary_registry":"cdp","curated_by_coinbase":false,"description":"Static application-security scan of source code or a git-diff for CWE Top-25 logic bugs: SQL injection, XSS, command injection, code and template injection, SSRF, path traversal, insecure deserialization, weak crypto, insecure randomness, open redirect and XXE across Python, JavaScript, TypeScript, Java and Go. Returns a go/no-go verdict with per-finding CWE, severity, file and line. Static indicators, not a guarantee.","service_name":"code-scan","declared_category":null,"declared_tags":["sast","security","code","cwe","pre-commit"],"route_template":null,"registry_updated":"2026-09-08T23:29:26.313Z"},"derived":{"note":"fields no registry supplies; TOLL derives them and marks them derived on the page","title":"code scan","category":"randomness","first_observed_by_toll":"2026-09-10T19:08:24.178Z","last_observed_by_toll":"2026-09-15T16:57:44.360Z","observation_began":"2026-09-10"},"presence":{"listed_now":true,"first_absent_at":null,"delisting_confirmed_at":null,"events":[{"registry":"cdp","at":"2026-09-10T19:08:24.178Z","event":"listed"}]},"accepts":[{"registry":"cdp","ordinal":0,"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","asset_name":"USD Coin","symbol":"USDC","decimals":6,"amount_display":"0.02 USDC","amount_units":0.02,"decimals_known":true,"pay_to":"0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493","scheme":"exact"}],"counters":{"observed_at":"2026-09-15T16:57:44.360Z","calls_30d":8,"unique_payers_30d":4,"last_called_at":"2026-09-08T23:29:25.785Z"},"validation":{"latest":{"observed_at":"2026-09-15T05:23:55.685Z","state":"pass","failed_checks":[],"endpoint_http_status":402,"run_id":"daily-2026-09-15"},"uptime":[{"days":7,"observed":5,"passed":5,"ratio":1},{"days":30,"observed":5,"passed":5,"ratio":1},{"days":90,"observed":5,"passed":5,"ratio":1}],"history_90d":[{"observed_at":"2026-09-15T05:23:55.685Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-15","state_changed":false},{"observed_at":"2026-09-14T04:58:53.074Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-14","state_changed":false},{"observed_at":"2026-09-13T04:55:41.185Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-13","state_changed":false},{"observed_at":"2026-09-12T07:11:45.455Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-12","state_changed":false},{"observed_at":"2026-09-11T10:51:25.459Z","state":"pass","failed_checks":[],"run_id":"daily-2026-09-11","state_changed":true}]},"seller":{"wallet":"0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493","page":"https://tollindex.com/seller/0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493","endpoints":344,"hosts":2},"reports":0,"registry_record":{"cdp":[{"tags":["sast","security","code","cwe","pre-commit"],"type":"http","accepts":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"payTo":"0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493","amount":"20000","scheme":"exact","network":"eip155:8453","maxTimeoutSeconds":300}],"quality":{"lastCalledAt":"2026-09-08T23:29:25.785Z","l30DaysTotalCalls":8,"l30DaysUniquePayers":4},"resource":"https://api.agentstools.dev/code/scan","extensions":{"bazaar":{"info":{"input":{"body":{"diff":"--- a/db.py\n+++ b/db.py\n@@ -1,2 +1,3 @@\n import sqlite3\n+def f(cur, uid):\n+    cur.execute(f\"SELECT * FROM users WHERE id = {uid}\")\n"},"type":"http","method":"POST","bodyType":"json"},"output":{"type":"json","example":{"object":"code_scan","verdict":"block","coverage":{"cwe_total":12,"cwe_flagged":["CWE-89"],"languages_scanned":["python"]},"findings":[{"cwe":"CWE-89","file":"db.py","line":3,"name":"SQL Injection","reason":"User-controlled data appears to be interpolated into a SQL query.","evidence":"cur.execute(f\"SELECT * FROM users WHERE id = {uid}\")","severity":"high","dimension":"injection","confidence":"high"}],"disclaimer":"Automated static security indicators, not a guarantee.","risk_score":30,"files_scanned":1,"findings_by_cwe":{"CWE-89":1},"ruleset_version":"2026.07.16","added_lines_scanned":2}}},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{"diff":{"type":"string","description":"A unified git-diff; only added lines are scanned"},"files":{"type":"array","items":{"type":"object"},"description":"Alternatively a batch of objects, each with path, content and optional language"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}}}},"description":"Static application-security scan of source code or a git-diff for CWE Top-25 logic bugs: SQL injection, XSS, command injection, code and template injection, SSRF, path traversal, insecure deserialization, weak crypto, insecure randomness, open redirect and XXE across Python, JavaScript, TypeScript, Java and Go. Returns a go/no-go verdict with per-finding CWE, severity, file and line. Static indicators, not a guarantee.","lastUpdated":"2026-09-08T23:29:26.313Z","serviceName":"code-scan","x402Version":2}]}}