check_crypto_usage
PG1 Sovereign Threat Intelligence: checks source code for weak or outdated cryptography BEFORE it ships. Send the files you already have: files[] of { path, text } (up to 500 files, 64 KB each, 1 MB in all; JavaScript/TypeScript, Python, Java/Kotlin, Go, PHP, Ruby, C#, shell and config files). PG1 matches deterministic rules line by line (comments skipped, no AI model, nothing fetched or run) and returns each finding with its file, line, a masked excerpt (secrets are cut) and the fix. High: CRYPTO_TLS_VERIFY_DISABLED (certificate checks off), CRYPTO_WEAK_CIPHER (DES, 3DES, RC4, Blowfish, RC2), CRYPTO_ECB_MODE (including Java "AES"), CRYPTO_SHORT_RSA_KEY (under 2048 bits), CRYPTO_HARDCODED_KEY, CRYPTO_PRIVATE_KEY_IN_CODE, CRYPTO_JWT_NO_VERIFY, CRYPTO_WEAK_PASSWORD_HASH. Medium: CRYPTO_WEAK_HASH (MD5/SHA-1; fine for non-security checksums), CRYPTO_STATIC_IV, CRYPTO_INSECURE_RANDOM, CRYPTO_OLD_TLS_VERSION. Informational: CRYPTO_QUANTUM_VULNERABLE (RSA or elliptic-curve public-key use: not broken today, noted for post-quantum migration planning; never flags on its own). Returns verdict weak_crypto_found (any high), review (medium only) or no_findings, with counts per code and files not inspected. No findings does not prove the code is free of weak cryptography; never "safe". Nothing is stored: only the verdict and reason codes are logged. Always free (60/hour per caller).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"files": "<files>"
},
"name": "check_crypto_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional: a label for the project, echoed back. Never stored. | |
| files | Yes | The source files to check, up to 500. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| note | No | ||
| checks | No | Which underlying sources were checked for this result and whether each one completed. | |
| counts | No | ||
| status | No | "unknown" whenever a source needed for this answer timed out, errored, or was skipped - never "no_flags" in that case. | |
| reasons | No | Machine-readable reason codes for anything flagged in this result. Empty when nothing was flagged. | |
| summary | Yes | ||
| verdict | Yes | ||
| findings | Yes | ||
| request_id | No | UUID for this request, also sent as the X-Request-Id response header. | |
| bytes_checked | No | ||
| files_checked | Yes | ||
| not_inspected | No | ||
| rules_version | No |