r/threatintel • • 4h ago

Rewrap: open-source scanner for quantum-vulnerable crypto across files, TLS/SSH endpoints, code and cloud KMS, with a labelled detection benchmark in CI

Thumbnail github.com
3 Upvotes

Author here. Short version of what it does and why:

Every PQC migration guide says "start with a cryptographic inventory", but in practice that inventory is a spreadsheet someone fills in by asking teams. I wanted something that looks at the actual bytes.

`rewrap scan <path|s3://|tls://|ssh://|db url>` reports:

- private keys and certs, including ones pasted into YAML/.env, escaped JSON, base64 in k8s Secrets, and inside nested zip/tar archives

- encrypted data at rest: OpenPGP, age, CMS/S-MIME, JWE, ZIP, `openssl enc`, PKCS#12, JKS, with what the data key is actually wrapped to

- TLS: whether the server *chooses* X25519MLKEM768 or only supports it when the client offers nothing else (browsers offer both, so "supported" isn't enough), plus TLS 1.0/1.1, RSA key transport, weak suites

- SSH: PQ kex (mlkem768x25519 / sntrup761), weak kex/MACs/host keys

- crypto API calls in 10 languages, and KMS keys in AWS/Azure/GCP

Findings are weighted by how long the data has to stay secret, since harvest-now-decrypt-later is a function of data lifetime, not of when CRQCs arrive. Output: HTML, SARIF, CycloneDX 1.6 CBOM. Read-only, no keys needed.

The part I'd most like feedback on is the detection benchmark (docs/benchmark.md): a generated labelled corpus (real files from openssl, go-crypto, age etc., plus look-alikes that must not fire) and live local TLS/SSH servers with known configs. Its first run found 6 bugs in my own scanner: DER PKCS#8 keys missed, a key indented in YAML missed, OpenSSL 3 EVP_RSA_gen not recognised, an empty PEM block reported as a key, and JKS/PKCS#12 rated wrong. It's at 100% now, which mainly tells me the corpus needs harder samples. If you have a file it misclassifies, I'll add it.

Not independently audited yet. Scanning is read-only, but please test the migration features on copies.


r/threatintel • • 16h ago

Building a tool that generates fake security logs with planted attacks, so you can test whether your detections actually fire

Thumbnail github.com
2 Upvotes

r/threatintel • • 6h ago

What we learned running an LLM Honeypot network

Thumbnail vectoral.com
1 Upvotes